* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f8fc;
    --bg-soft: #fbfcff;
    --surface: #ffffff;
    --surface-subtle: rgba(255, 255, 255, 0.82);
    --surface-muted: #f7f9ff;
    --text: #0f172a;
    --text-soft: #334155;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --brand: #4f46e5;
    --brand-deep: #3730a3;
    --brand-soft: rgba(79, 70, 229, 0.1);
    --violet: #7c3aed;
    --violet-soft: rgba(124, 58, 237, 0.11);
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.13);
    --emerald: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.13);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --rose: #f43f5e;
    --rose-soft: rgba(244, 63, 94, 0.12);
    --sky: #0ea5e9;
    --sky-soft: rgba(14, 165, 233, 0.12);
    --indigo-soft: rgba(79, 70, 229, 0.09);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 36px rgba(79, 70, 229, 0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --container: 1320px;
    --transition: 180ms ease;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.06), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

body.app-body,
body.guest-body {
    min-height: 100vh;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 20px;
    height: 20px;
}

.button-icon,
.badge-icon,
.dropdown-icon,
.flash-icon {
    width: 15px;
    height: 15px;
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns var(--transition);
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 92px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 255, 0.94) 100%);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.sidebar-top,
.brand-lockup,
.topbar,
.topbar-left,
.topbar-actions,
.button-row,
.row-meta,
.auth-links,
.auth-footer,
.panel-kicker-row,
.metric-row,
.metric-headline,
.assistant-action-head,
.list-row,
.list-row-side,
.profile-summary,
.profile-dropdown,
.workflow-item,
.workspace-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-top {
    justify-content: space-between;
}

.brand-lockup {
    min-width: 0;
    gap: 12px;
}

.brand-mark,
.metric-icon,
.panel-icon-wrap,
.profile-avatar,
.empty-state-icon,
.icon-button,
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(6, 182, 212, 0.14) 48%, rgba(16, 185, 129, 0.12));
    color: var(--brand);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.14);
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-scroll {
    display: grid;
    gap: 18px;
    overflow-y: auto;
    padding-right: 4px;
}

.workspace-inline {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.05) 54%, rgba(255,255,255,0.92));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.workspace-label,
.sidebar-kicker,
.section-eyebrow,
.nav-group-label,
.showcase-label,
.auth-eyebrow,
.topbar-kicker,
.ai-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.sidebar-kicker,
.auth-eyebrow,
.ai-kicker {
    color: var(--brand);
}

.workspace-name {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.nav-group {
    display: grid;
    gap: 8px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.nav-link,
.mobile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background var(--transition);
}

.nav-link:hover,
.mobile-nav-link:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.03));
    color: var(--text);
    transform: translateX(2px);
}

.nav-link.active,
.mobile-nav-link.active {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.06));
    color: var(--brand-deep);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.nav-link.active::before {
    background: var(--brand);
}

.nav-icon-dashboard { color: var(--brand); }
.nav-icon-reports { color: var(--violet); }
.nav-icon-employees { color: var(--emerald); }
.nav-icon-goals { color: var(--amber); }
.nav-icon-feedback { color: var(--rose); }
.nav-icon-meetings { color: var(--sky); }
.nav-icon-cycles { color: var(--violet); }
.nav-icon-reviews { color: var(--brand); }
.nav-icon-growth { color: var(--emerald); }
.nav-icon-assistant { color: var(--cyan); }
.nav-icon-settings,
.nav-icon-company { color: var(--text-soft); }

.nav-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.nav-text {
    white-space: nowrap;
}

.app-shell.sidebar-collapsed .nav-text,
.app-shell.sidebar-collapsed .nav-group-label,
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .workspace-inline {
    display: none;
}

.app-shell.sidebar-collapsed .sidebar {
    padding-inline: 12px;
}

.app-shell.sidebar-collapsed .sidebar-top {
    justify-content: center;
}

.app-shell.sidebar-collapsed .brand-lockup {
    justify-content: center;
}

.app-shell.sidebar-collapsed .nav-link {
    justify-content: center;
    padding-inline: 0;
}

.main {
    padding: 28px 32px 44px;
}

.page-content {
    max-width: var(--container);
    animation: fadeUp 320ms ease;
}

.topbar {
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.topbar-left {
    gap: 14px;
    min-width: 0;
}

.page-intro {
    min-width: 0;
}

.page-title,
.topbar-title,
.guest-title,
.auth-title,
.section-display {
    margin: 0;
    letter-spacing: -0.04em;
}

.page-title {
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.05;
    font-weight: 700;
}

.page-subtitle,
.section-lead,
.guest-copy,
.auth-subtitle,
.ai-copy,
.row-copy,
.section-subtitle,
.list-muted {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
}

.topbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.button-row {
    flex-wrap: wrap;
}

.icon-button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.ai-button,
.password-toggle {
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        color var(--transition),
        opacity var(--transition);
}

.icon-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,247,255,0.94));
    border-color: var(--border);
    color: var(--text-soft);
}

.icon-button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.ai-button:hover {
    transform: translateY(-1px);
}

.icon-button:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary,
.ai-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover,
.ai-button:hover {
    background: linear-gradient(135deg, var(--brand-deep) 0%, #5b21b6 100%);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.ai-button:disabled,
.icon-button:disabled,
.password-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary,
.btn-ghost,
.password-toggle {
    color: var(--text-soft);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,255,0.94));
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-ghost:hover,
.password-toggle:hover {
    border-color: rgba(79, 70, 229, 0.18);
    background: linear-gradient(180deg, rgba(248,250,255,0.98), rgba(240,245,255,0.96));
}

.btn-ghost {
    background: rgba(255,255,255,0.7);
}

.btn-block {
    width: 100%;
}

.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.ai-button:active,
.icon-button:active {
    transform: scale(0.98);
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.flash-success {
    border-color: rgba(16, 185, 129, 0.18);
    background: rgba(236, 253, 245, 0.84);
}

.flash-error {
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(254, 242, 242, 0.92);
}

.flash-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.page-stack,
.stack-sm,
.stack-md,
.stack-lg,
.notice-list,
.list-stack,
.prompt-list,
.assistant-action-list {
    display: grid;
}

.page-stack {
    gap: 36px;
}

.stack-sm {
    gap: 10px;
}

.stack-md,
.list-stack,
.notice-list,
.prompt-list {
    gap: 14px;
}

.stack-lg,
.assistant-action-list {
    gap: 24px;
}

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-display {
    font-size: clamp(30px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    max-width: 900px;
}

.content-section,
.ai-panel,
.metric-card,
.auth-card,
.showcase-stat,
.assistant-action,
.table-shell {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.content-section {
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252,253,255,0.96));
    position: relative;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(79,70,229,0.72), rgba(6,182,212,0.42), rgba(16,185,129,0.22));
    opacity: 0.8;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,252,255,0.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.metric-card {
    min-width: 0;
    padding: 18px 18px 16px;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
    box-shadow: none;
    animation: fadeUp 360ms ease;
}

.metric-card:last-child {
    border-right: 0;
}

.metric-headline {
    justify-content: space-between;
    margin-bottom: 10px;
}

.metric-label {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.metric-row {
    align-items: baseline;
    justify-content: space-between;
}

.metric-value {
    margin: 0;
    font-size: clamp(28px, 2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.metric-meta,
.metric-trend {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.metric-card-employees {
    background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
}

.metric-card-goals {
    background: linear-gradient(180deg, rgba(245,158,11,0.09), rgba(245,158,11,0.02));
}

.metric-card-reviews {
    background: linear-gradient(180deg, rgba(79,70,229,0.09), rgba(79,70,229,0.02));
}

.metric-card-feedback {
    background: linear-gradient(180deg, rgba(244,63,94,0.08), rgba(244,63,94,0.02));
}

.metric-card-dashboard,
.metric-card-growth {
    background: linear-gradient(180deg, rgba(6,182,212,0.08), rgba(6,182,212,0.02));
}

.metric-icon-employees { background: rgba(16,185,129,0.12); color: var(--emerald); }
.metric-icon-goals { background: rgba(245,158,11,0.14); color: var(--amber); }
.metric-icon-reviews { background: rgba(79,70,229,0.12); color: var(--brand); }
.metric-icon-feedback { background: rgba(244,63,94,0.12); color: var(--rose); }
.metric-icon-dashboard,
.metric-icon-growth { background: rgba(6,182,212,0.13); color: var(--cyan); }

.dashboard-main-grid,
.assistant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.82fr);
    gap: 32px;
    align-items: start;
}

.dashboard-primary,
.dashboard-secondary,
.assistant-primary,
.assistant-secondary {
    display: grid;
    gap: 24px;
}

.insight-grid {
    display: grid;
    gap: 18px;
}

.insight-block {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(79,70,229,0.04), rgba(255,255,255,0));
    border: 1px solid rgba(79,70,229,0.08);
}

.insight-label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-item {
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
}

.workflow-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.list-shell {
    display: grid;
}

.list-row {
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), transform var(--transition);
}

.list-row:hover {
    background: linear-gradient(90deg, rgba(79,70,229,0.03), rgba(6,182,212,0.02));
}

.list-row:first-child {
    padding-top: 0;
}

.list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.list-row-link:hover {
    transform: translateX(3px);
}

.list-row-main {
    min-width: 0;
}

.list-row-side {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.list-row-progress {
    min-width: 150px;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.list-person {
    align-items: center;
}

.row-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.list-muted {
    font-size: 13px;
}

.meta-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.inline-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.notice-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.notice-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), var(--cyan));
}

.notice-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #5871ff);
    transform-origin: left;
    animation: growBar 700ms ease;
}

.progress-bar-violet {
    background: linear-gradient(90deg, #5451d6, #7c3aed);
}

.progress-bar-cyan {
    background: linear-gradient(90deg, #0284c7, #06b6d4);
}

.ai-panel {
    padding: 22px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(6,182,212,0.1), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,255,0.98));
}

.ai-panel-glow {
    background:
        radial-gradient(circle at top right, rgba(48, 70, 211, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,255,0.96) 100%);
}

.ai-panel-head {
    display: grid;
    gap: 14px;
}

.panel-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(6,182,212,0.14), rgba(16,185,129,0.12));
    color: var(--brand);
    box-shadow: 0 0 0 0 rgba(48, 70, 211, 0.16);
    animation: softPulse 3.4s ease-in-out infinite;
}

.panel-icon-wrap-feedback { color: var(--rose); }
.panel-icon-wrap-growth { color: var(--emerald); }
.panel-icon-wrap-reviews,
.panel-icon-wrap-assistant { color: var(--brand); }

.ai-panel-feedback {
    background:
        radial-gradient(circle at top right, rgba(244,63,94,0.09), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,249,250,0.97));
}

.ai-panel-growth {
    background:
        radial-gradient(circle at top right, rgba(16,185,129,0.1), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,255,251,0.97));
}

.ai-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.prompt-card,
.assistant-action,
.empty-state {
    border-radius: 18px;
}

.prompt-card {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(6,182,212,0.04));
    border: 1px solid rgba(79,70,229,0.08);
    font-size: 14px;
    line-height: 1.65;
}

.assistant-action {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.96));
}

.assistant-action-head {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ai-result,
.mini-card,
.row-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(255,255,255,0.98));
    border: 1px solid var(--border);
}

.ai-result {
    animation: fadeUp 260ms ease;
}

.empty-state {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 10px 0 4px;
}

.empty-state-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79,70,229,0.14), rgba(6,182,212,0.12), rgba(16,185,129,0.08));
    color: var(--brand);
}

.empty-state-icon-goals { color: var(--amber); }
.empty-state-icon-feedback { color: var(--rose); }
.empty-state-icon-employees { color: var(--emerald); }
.empty-state-icon-company,
.empty-state-icon-reports { color: var(--brand); }
.empty-state-icon-growth { color: var(--cyan); }

.empty-state-copy h4 {
    margin: 0 0 4px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.empty-state-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-primary {
    color: var(--brand-deep);
    background: linear-gradient(180deg, rgba(79,70,229,0.14), rgba(124,58,237,0.12));
    border-color: rgba(79,70,229,0.12);
}

.badge-info {
    color: #0f4f70;
    background: linear-gradient(180deg, rgba(6,182,212,0.16), rgba(14,165,233,0.12));
    border-color: rgba(6,182,212,0.14);
}

.badge-success,
.badge-active,
.badge-on_track,
.badge-completed {
    color: #0f5132;
    background: linear-gradient(180deg, rgba(16,185,129,0.16), rgba(34,197,94,0.12));
    border-color: rgba(16,185,129,0.14);
}

.badge-warning,
.badge-pending,
.badge-draft {
    color: #92400e;
    background: linear-gradient(180deg, rgba(245,158,11,0.18), rgba(251,191,36,0.12));
    border-color: rgba(245,158,11,0.14);
}

.badge-danger,
.badge-overdue,
.badge-off_track {
    color: #991b1b;
    background: linear-gradient(180deg, rgba(244,63,94,0.16), rgba(239,68,68,0.11));
    border-color: rgba(244,63,94,0.14);
}

.badge-neutral,
.badge-admin,
.badge-hr,
.badge-manager,
.badge-employee,
.badge-private,
.badge-public,
.badge-role-admin,
.badge-role-hr,
.badge-role-manager,
.badge-role-employee,
.badge-submitted {
    color: var(--text-soft);
    background: linear-gradient(180deg, rgba(148,163,184,0.18), rgba(241,245,249,0.9));
    border-color: rgba(148,163,184,0.18);
}

.badge-role-admin,
.badge-admin {
    color: #3b2f8f;
    background: linear-gradient(180deg, rgba(124,58,237,0.16), rgba(79,70,229,0.1));
}

.badge-role-hr,
.badge-hr {
    color: #0f4f70;
    background: linear-gradient(180deg, rgba(14,165,233,0.16), rgba(6,182,212,0.1));
}

.badge-role-manager {
    color: #0f5132;
    background: linear-gradient(180deg, rgba(16,185,129,0.16), rgba(52,211,153,0.1));
}

.badge-role-employee,
.badge-employee {
    color: #92400e;
    background: linear-gradient(180deg, rgba(245,158,11,0.16), rgba(251,191,36,0.1));
}

.field-label,
.form-section-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

.form-help {
    font-size: 13px;
    color: var(--text-muted);
}

.field-input {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,252,255,0.98));
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.field-input {
    min-height: 120px;
    resize: vertical;
}

.field-input:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.input-group {
    position: relative;
}

.input-group .field-input {
    padding-right: 74px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-full {
    grid-column: 1 / -1;
}

.table-shell {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,252,255,0.98));
}

.table-shell th,
.table-shell td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.table-shell th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(79,70,229,0.08), rgba(6,182,212,0.04));
}

.table-shell tbody tr {
    transition: background var(--transition);
}

.table-shell tbody tr:hover {
    background: rgba(15, 23, 42, 0.025);
}

.profile-menu {
    position: relative;
}

.notification-menu {
    position: relative;
}

.notification-menu summary {
    list-style: none;
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}

.profile-summary {
    list-style: none;
    gap: 10px;
    cursor: pointer;
}

.profile-summary::-webkit-details-marker {
    display: none;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79,70,229,0.16), rgba(6,182,212,0.12));
    color: var(--brand-deep);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.profile-avatar-lg {
    width: 44px;
    height: 44px;
}

.profile-avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 24px;
}

.profile-copy {
    display: grid;
    gap: 2px;
}

.profile-copy strong {
    font-size: 14px;
}

.profile-copy span {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    z-index: 20;
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, calc(100vw - 32px));
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,251,255,0.98));
    box-shadow: var(--shadow-md);
    z-index: 30;
}

.notification-dropdown-head,
.notification-dropdown-foot,
.notification-item,
.notification-item-copy {
    display: flex;
    gap: 12px;
}

.notification-dropdown-head,
.notification-dropdown-foot {
    align-items: center;
    justify-content: space-between;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(79,70,229,0.08);
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.03), rgba(255,255,255,0.9));
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(79,70,229,0.16);
    box-shadow: var(--shadow-sm);
}

.notification-item-copy {
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.notification-time {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.notification-empty {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(79,70,229,0.16);
    background: rgba(79,70,229,0.04);
}

.notification-badge,
.notification-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--violet));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(124,58,237,0.28);
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
}

.dropdown-link:hover {
    background: rgba(15, 23, 42, 0.04);
}

.dropdown-danger {
    color: #b91c1c;
}

.mobile-nav {
    display: none;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.mobile-nav-link {
    flex: 0 0 auto;
    padding: 0 12px;
    min-height: 38px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,255,0.92));
}

.guest-shell {
    min-height: 100vh;
    padding: 32px;
}

.guest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 470px);
    gap: 56px;
    align-items: center;
    max-width: 1180px;
    min-height: calc(100vh - 64px);
    margin: 0 auto;
}

.guest-showcase {
    display: grid;
    gap: 26px;
}

.guest-brand,
.guest-copy-block {
    display: grid;
    gap: 12px;
}

.guest-title {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    font-weight: 700;
    max-width: 640px;
}

.showcase-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
}

.showcase-stat {
    padding: 18px 20px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.06) 55%, rgba(255,255,255,0.96));
}

.showcase-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.auth-shell {
    display: flex;
    justify-content: flex-end;
}

.auth-card {
    width: min(100%, 440px);
    padding: 34px 34px 30px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.96));
    box-shadow: 0 20px 48px rgba(79,70,229,0.1);
}

.auth-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.08;
}

.auth-form {
    gap: 16px;
}

.auth-links {
    justify-content: space-between;
}

.auth-footer {
    margin-top: 20px;
    justify-content: flex-start;
}

.link-inline {
    color: var(--brand);
    font-weight: 600;
}

.link-inline:hover {
    color: var(--brand-deep);
}

.cards-grid,
.split-grid,
.two-col {
    display: grid;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.split-grid,
.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card,
.goal-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.98));
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.profile-card:hover,
.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero-card,
.profile-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.97));
    box-shadow: var(--shadow-sm);
}

.hero-copy-block,
.hero-side,
.hero-spotlight,
.profile-hero-main,
.profile-hero-actions,
.profile-card-head,
.profile-meta-row {
    display: grid;
    gap: 12px;
}

.hero-title,
.profile-hero-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy,
.profile-hero-subtitle {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-spotlight {
    min-width: 240px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79,70,229,0.09), rgba(6,182,212,0.06) 56%, rgba(255,255,255,0.98));
    border: 1px solid var(--border);
}

.hero-spotlight-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
}

.action-card,
.feature-card,
.progress-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79,70,229,0.14), rgba(6,182,212,0.12));
    color: var(--brand);
}

.ai-result-pre {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    overflow-x: auto;
    font-size: 13px;
}

.mini-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.text-body,
.text-muted {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.checkbox-row input {
    margin-top: 2px;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-meta-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(79,70,229,0.06), rgba(255,255,255,0.98));
    border: 1px solid rgba(79,70,229,0.08);
}

.profile-meta-item span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.profile-meta-item strong {
    font-size: 14px;
    color: var(--text);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pill-muted {
    color: var(--brand-deep);
    background: linear-gradient(180deg, rgba(79,70,229,0.12), rgba(6,182,212,0.08));
    border: 1px solid rgba(79,70,229,0.1);
}

.talent-matrix-shell {
    position: relative;
    padding: 26px 26px 26px 72px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,251,255,0.98));
    box-shadow: var(--shadow-sm);
}

.talent-matrix-shell-embedded {
    margin-top: 18px;
}

.matrix-axis {
    position: absolute;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.axis-left {
    top: 50%;
    left: 12px;
    transform: rotate(-90deg) translateY(50%);
    transform-origin: left top;
}

.axis-bottom {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.matrix-columns,
.matrix-rows {
    display: grid;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.matrix-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 14px;
}

.matrix-rows {
    position: absolute;
    top: 58px;
    left: 14px;
    bottom: 42px;
    width: 42px;
    align-content: stretch;
}

.matrix-rows span {
    display: flex;
    align-items: center;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.matrix-cell {
    min-height: 240px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.92));
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.matrix-cell-high_potential_high_performance { background: linear-gradient(180deg, rgba(16,185,129,0.14), rgba(255,255,255,0.98)); }
.matrix-cell-high_potential_medium_performance { background: linear-gradient(180deg, rgba(6,182,212,0.12), rgba(255,255,255,0.98)); }
.matrix-cell-high_potential_low_performance { background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(255,255,255,0.98)); }
.matrix-cell-medium_potential_high_performance { background: linear-gradient(180deg, rgba(79,70,229,0.11), rgba(255,255,255,0.98)); }
.matrix-cell-medium_potential_medium_performance { background: linear-gradient(180deg, rgba(148,163,184,0.12), rgba(255,255,255,0.98)); }
.matrix-cell-medium_potential_low_performance { background: linear-gradient(180deg, rgba(244,63,94,0.1), rgba(255,255,255,0.98)); }
.matrix-cell-low_potential_high_performance { background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(255,255,255,0.98)); }
.matrix-cell-low_potential_medium_performance { background: linear-gradient(180deg, rgba(251,191,36,0.1), rgba(255,255,255,0.98)); }
.matrix-cell-low_potential_low_performance { background: linear-gradient(180deg, rgba(244,63,94,0.12), rgba(255,255,255,0.98)); }

.matrix-cell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.matrix-cell-title,
.matrix-cell-count {
    margin: 0;
}

.matrix-cell-title {
    font-size: 15px;
    font-weight: 700;
}

.matrix-cell-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.matrix-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.matrix-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    text-align: left;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.matrix-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(79,70,229,0.18);
    box-shadow: var(--shadow-sm);
}

.matrix-chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79,70,229,0.16), rgba(6,182,212,0.12));
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
}

.matrix-chip-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.matrix-chip-copy strong {
    font-size: 13px;
}

.matrix-chip-copy strong,
.matrix-chip-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matrix-chip-copy span,
.matrix-empty {
    font-size: 12px;
    color: var(--text-muted);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.compare-grid-workspace {
    margin-top: 18px;
}

.compare-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(79,70,229,0.1);
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(6,182,212,0.03), rgba(255,255,255,0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.compare-card-head,
.compare-score-strip,
.compare-snapshot,
.governance-list {
    display: grid;
    gap: 10px;
}

.compare-card-head {
    gap: 8px;
}

.compare-score-strip,
.compare-snapshot {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.7);
}

.compare-history {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(79,70,229,0.18);
    background: rgba(79,70,229,0.04);
}

.governance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,249,255,0.94));
    border: 1px solid rgba(79,70,229,0.08);
}

.governance-item span {
    color: var(--text-muted);
    font-size: 13px;
}

.governance-item strong {
    font-size: 14px;
    color: var(--text);
}

.talent-drawer {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15,23,42,0.24);
    display: flex;
    justify-content: flex-end;
}

.talent-drawer-card {
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,251,255,0.98));
    box-shadow: -18px 0 42px rgba(15,23,42,0.12);
    display: grid;
    gap: 20px;
    animation: drawerIn 220ms ease;
}

.talent-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.talent-drawer-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.drawer-stat {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(79,70,229,0.08), rgba(255,255,255,0.98));
    display: grid;
    gap: 6px;
}

.drawer-stat span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.drawer-stat strong {
    font-size: 18px;
}

.skeleton,
.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after,
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: shimmer 1.2s infinite;
}

@media (max-width: 1180px) {
    .dashboard-main-grid,
    .assistant-layout,
    .guest-grid,
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        justify-content: flex-start;
    }

    .kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 40;
        inset: 0 auto 0 0;
        width: min(82vw, 280px);
        transform: translateX(-100%);
        transition: transform 220ms ease;
        box-shadow: var(--shadow-md);
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-shell.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.22);
        z-index: 30;
    }

    .main {
        padding: 20px 18px 36px;
    }

    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .topbar,
    .dashboard-intro,
    .workflow-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .notification-dropdown {
        right: auto;
        left: 0;
    }

    .split-grid,
    .two-col,
    .form-grid,
    .showcase-stats,
    .stats-grid,
    .talent-drawer-stats,
    .profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .profile-hero {
        flex-direction: column;
    }

    .talent-matrix-shell {
        padding-left: 26px;
    }

    .matrix-rows,
    .matrix-axis {
        display: none;
    }
}

@media (max-width: 720px) {
    .guest-shell {
        padding: 18px;
    }

    .auth-card {
        padding: 24px 22px;
    }

    .content-section,
    .ai-panel,
    .assistant-action {
        padding: 18px;
    }

    .kpi-strip {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        border-bottom: 1px solid var(--border);
    }

    .metric-card:nth-child(2n) {
        border-right: 0;
    }

    .metric-card:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growBar {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(48, 70, 211, 0.14);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(48, 70, 211, 0);
    }
}

@keyframes drawerIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.human-check {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.04) 55%, rgba(255,255,255,0.96));
}

.human-check-copy {
    display: grid;
    gap: 4px;
}

.human-check-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand);
}

.human-check-question {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
}

.human-check-field {
    display: grid;
    gap: 8px;
}

.trap-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.verification-panel {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248, 250, 255, 0.92));
}

.verification-copy {
    display: grid;
    gap: 8px;
}

/* Auth refresh */
.guest-shell-auth {
    position: relative;
    overflow: hidden;
    padding: 32px 34px;
}

.guest-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.75;
}

.auth-orb-one {
    width: 340px;
    height: 340px;
    top: 5%;
    left: 3%;
    background: rgba(124, 58, 237, 0.14);
}

.auth-orb-two {
    width: 320px;
    height: 320px;
    top: 12%;
    right: 8%;
    background: rgba(6, 182, 212, 0.14);
}

.auth-orb-three {
    width: 420px;
    height: 420px;
    bottom: -8%;
    left: 24%;
    background: rgba(16, 185, 129, 0.1);
}

.guest-grid-auth {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 560px);
    gap: 78px;
    align-items: start;
    max-width: 1380px;
}

.guest-showcase-auth {
    gap: 30px;
    align-content: start;
    padding: 4px 0 0;
}

.auth-brand {
    gap: 14px;
}

.brand-mark-lg {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.14);
}

.brand-icon-lg {
    width: 24px;
    height: 24px;
}

.brand-copy-auth {
    gap: 4px;
}

.guest-copy-auth {
    gap: 18px;
    max-width: 700px;
}

.guest-title-auth {
    font-size: clamp(46px, 5.5vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 660px;
}

.guest-copy-auth {
    font-size: 18px;
    line-height: 1.72;
    color: var(--text-soft);
    max-width: 600px;
}

.showcase-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.showcase-chip-indigo {
    color: #4338ca;
    background: linear-gradient(180deg, rgba(79,70,229,0.14), rgba(255,255,255,0.96));
    border-color: rgba(79,70,229,0.14);
}

.showcase-chip-cyan {
    color: #0f4f70;
    background: linear-gradient(180deg, rgba(6,182,212,0.14), rgba(255,255,255,0.96));
    border-color: rgba(6,182,212,0.14);
}

.showcase-chip-emerald {
    color: #0f5132;
    background: linear-gradient(180deg, rgba(16,185,129,0.14), rgba(255,255,255,0.96));
    border-color: rgba(16,185,129,0.14);
}

.showcase-scene {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
    gap: 16px;
    max-width: 760px;
}

.showcase-scene-card {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.76);
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.scene-card-hero {
    min-height: 252px;
    background:
        linear-gradient(135deg, rgba(79,70,229,0.12), rgba(6,182,212,0.07) 56%, rgba(255,255,255,0.95)),
        rgba(255,255,255,0.82);
}

.scene-card-ai {
    align-self: start;
    min-height: 146px;
    background:
        linear-gradient(135deg, rgba(6,182,212,0.12), rgba(124,58,237,0.08) 56%, rgba(255,255,255,0.95)),
        rgba(255,255,255,0.82);
}

.scene-card-matrix {
    background:
        linear-gradient(135deg, rgba(16,185,129,0.11), rgba(14,165,233,0.07) 60%, rgba(255,255,255,0.95)),
        rgba(255,255,255,0.82);
    min-height: 284px;
}

.scene-card-compact {
    background:
        linear-gradient(135deg, rgba(245,158,11,0.1), rgba(244,63,94,0.06) 55%, rgba(255,255,255,0.95)),
        rgba(255,255,255,0.82);
}

.scene-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.scene-card-copy {
    display: grid;
    gap: 6px;
}

.showcase-floating-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
}

.scene-card-copy strong {
    font-size: 17px;
    line-height: 1.48;
    letter-spacing: -0.03em;
}

.scene-card-footer,
.scene-compact-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scene-footer-stat {
    display: grid;
    gap: 4px;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
}

.scene-footer-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.scene-footer-stat strong {
    font-size: 14px;
}

.scene-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.scene-icon-indigo {
    color: #4338ca;
    background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(255,255,255,0.95));
}

.scene-icon-cyan {
    color: #0f4f70;
    background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(255,255,255,0.95));
}

.scene-icon-emerald {
    color: #0f5132;
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(255,255,255,0.95));
}

.scene-icon-amber {
    color: #92400e;
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.95));
}

.scene-bars {
    display: grid;
    gap: 12px;
}

.scene-bar-row {
    display: grid;
    gap: 8px;
}

.scene-bar-copy,
.scene-stat-line,
.scene-matrix-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scene-bar-copy span,
.scene-stat-line span {
    font-size: 13px;
    color: var(--text-muted);
}

.scene-bar-copy strong,
.scene-stat-line strong {
    font-size: 13px;
    color: var(--text);
}

.scene-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    overflow: hidden;
}

.scene-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.scene-bar-fill-indigo {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.scene-bar-fill-cyan {
    background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

.scene-bar-fill-emerald {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.scene-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scene-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.scene-mini-chip-violet {
    color: #4c1d95;
    background: rgba(124,58,237,0.12);
}

.scene-mini-chip-cyan {
    color: #0f4f70;
    background: rgba(6,182,212,0.12);
}

.scene-mini-chip-emerald {
    color: #0f5132;
    background: rgba(16,185,129,0.12);
}

.scene-ai-output {
    display: grid;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
}

.scene-ai-output p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
}

.scene-ai-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(79,70,229,0.1);
    color: #4338ca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scene-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.scene-matrix-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.scene-matrix-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.22);
}

.scene-matrix-meta {
    font-size: 11px;
    font-weight: 800;
    color: rgba(15,23,42,0.55);
}

.scene-matrix-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    color: #0f5132;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matrix-tone-1 { background: linear-gradient(180deg, rgba(244,63,94,0.16), rgba(255,255,255,0.98)); }
.matrix-tone-2 { background: linear-gradient(180deg, rgba(251,191,36,0.16), rgba(255,255,255,0.98)); }
.matrix-tone-3 { background: linear-gradient(180deg, rgba(56,189,248,0.15), rgba(255,255,255,0.98)); }
.matrix-tone-4 { background: linear-gradient(180deg, rgba(99,102,241,0.16), rgba(255,255,255,0.98)); }
.matrix-tone-5 { background: linear-gradient(180deg, rgba(16,185,129,0.17), rgba(255,255,255,0.98)); }
.matrix-tone-6 { background: linear-gradient(180deg, rgba(124,58,237,0.18), rgba(255,255,255,0.98)); }

.matrix-cell-highlight {
    position: relative;
}

.matrix-cell-highlight::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    border: 2px solid rgba(15,23,42,0.16);
}

.scene-avatar-row {
    display: flex;
    margin-left: auto;
}

.scene-avatar-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -6px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.95);
    background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(6,182,212,0.14));
    color: var(--brand-deep);
    font-size: 11px;
    font-weight: 800;
}

.scene-compact-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #7c2d12;
    background: rgba(255,255,255,0.74);
}

.showcase-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 660px;
}

.showcase-metric-card,
.showcase-inline-stat {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.56);
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.showcase-metric-card strong,
.showcase-inline-stat strong {
    font-size: 15px;
    line-height: 1.5;
}

.showcase-footer-inline {
    max-width: 560px;
}

.auth-shell-premium {
    justify-content: center;
    align-items: start;
    padding-top: 18px;
}

.auth-panel {
    width: min(100%, 500px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.7);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,250,255,0.92));
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 72px rgba(79, 70, 229, 0.095);
}

.auth-panel-wide {
    width: min(100%, 560px);
}

.auth-panel-header {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    color: #4338ca;
}

.auth-step-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f4f70;
    background: linear-gradient(180deg, rgba(6,182,212,0.14), rgba(255,255,255,0.96));
    border: 1px solid rgba(6,182,212,0.14);
}

.auth-panel-title {
    margin: 0;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.auth-panel-copy {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
}

.auth-social-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.btn-social-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 17px;
    border: 1px solid rgba(15,23,42,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.96));
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn-social-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.08);
    border-color: rgba(79,70,229,0.16);
}

.auth-divider {
    position: relative;
    margin: 16px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(15,23,42,0.08);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 12px;
    background: rgba(250,252,255,0.96);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--text-muted);
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-input-lg {
    min-height: 54px;
    padding: 13px 16px;
    border-radius: 17px;
    font-size: 15px;
}

.field-input[readonly] {
    color: var(--text-soft);
    background: linear-gradient(180deg, rgba(79,70,229,0.08), rgba(255,255,255,0.98));
}

.input-group-premium .field-input {
    padding-right: 84px;
}

.password-toggle-premium {
    right: 10px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 13px;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.94);
    color: var(--text-soft);
    font-weight: 600;
}

.auth-links-tight {
    margin-top: -2px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
}

.checkbox-inline input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.btn-xl {
    min-height: 56px;
    border-radius: 17px;
    font-size: 16px;
}

.auth-footer-balanced {
    justify-content: center;
    margin-top: 18px;
}

.auth-connected-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(16,185,129,0.14);
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.08) 58%, rgba(255,255,255,0.96));
}

.auth-connected-copy {
    display: grid;
    gap: 4px;
}

.auth-connected-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #0f5132;
}

.form-section-card {
    margin-top: 2px;
    padding-top: 2px;
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.form-section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(79,70,229,0.14), rgba(6,182,212,0.1));
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 800;
}

.form-section-copy {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-submit-stack {
    display: grid;
    gap: 10px;
}

@media (max-width: 1180px) {
    .guest-grid-auth {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-shell-premium {
        justify-content: flex-start;
    }

    .guest-title-auth {
        max-width: 100%;
    }

    .showcase-scene {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .guest-shell-auth {
        padding: 18px;
    }

    .auth-panel,
    .auth-panel-wide {
        width: 100%;
        padding: 22px;
        border-radius: 24px;
    }

    .guest-title-auth {
        font-size: clamp(36px, 13vw, 52px);
    }

    .showcase-scene,
    .showcase-footer {
        grid-template-columns: 1fr;
    }

    .auth-kicker-row,
    .auth-connected-strip,
    .auth-links-tight {
        align-items: flex-start;
        flex-direction: column;
    }

    .scene-matrix-cell {
        height: 40px;
    }
}

.context-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.06) 62%, rgba(255, 255, 255, 0.96));
}

.context-banner-copy {
    display: grid;
    gap: 4px;
}

.context-banner-copy strong {
    font-size: 15px;
    color: var(--text-strong);
}

.context-banner-copy span:last-child {
    font-size: 14px;
    color: var(--text-muted);
}

.context-banner-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand-deep);
}

.settings-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-soft);
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.settings-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.24);
}

.settings-tab.active {
    color: var(--brand-deep);
    border-color: rgba(79, 70, 229, 0.22);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.08));
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 14px;
}

.platform-filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) minmax(170px, 0.8fr) auto;
    gap: 12px;
    margin-bottom: 18px;
}

.invitation-grid {
    display: grid;
    gap: 18px;
}

.invitation-column {
    padding-top: 2px;
}

.section-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.section-mini-head h3 {
    margin: 0;
    font-size: 17px;
}

.section-mini-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-deep);
    font-weight: 800;
    font-size: 12px;
}

.list-row-stacked {
    align-items: flex-start;
}

.list-row-meta {
    display: inline-flex;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.field-textarea-lg {
    min-height: 240px;
}

.section-card-footer {
    margin-top: 16px;
}

.checklist-shell {
    display: grid;
    gap: 14px;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.checklist-item.is-complete {
    border-color: rgba(16, 185, 129, 0.18);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.96));
}

.checklist-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checklist-copy {
    display: grid;
    gap: 4px;
}

.checklist-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.checklist-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 980px) {
    .context-banner,
    .checklist-item,
    .platform-filterbar {
        grid-template-columns: 1fr;
    }

    .context-banner,
    .checklist-actions {
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .settings-tabbar {
        gap: 8px;
    }

    .settings-tab {
        width: 100%;
        justify-content: center;
    }

    .toggle-row,
    .detail-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------- */
/* Autosocial-inspired PMS refresh                                            */
/* -------------------------------------------------------------------------- */

:root {
    --bg: #f8fafc;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-subtle: rgba(255, 255, 255, 0.88);
    --surface-muted: #f8fafc;
    --text: #0f172a;
    --text-soft: #1e293b;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.24);
    --border-strong: rgba(100, 116, 139, 0.28);
    --brand: #2563eb;
    --brand-deep: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.1);
    --violet: #d946ef;
    --violet-soft: rgba(217, 70, 239, 0.11);
    --cyan: #0ea5e9;
    --cyan-soft: rgba(14, 165, 233, 0.12);
    --emerald: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.11);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.12);
    --rose: #f43f5e;
    --rose-soft: rgba(244, 63, 94, 0.1);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 38px rgba(15, 23, 42, 0.08);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --container: 1400px;
}

html,
body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(217, 70, 239, 0.04), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.app-body,
body.guest-body {
    color: var(--text);
}

.app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
    background: transparent;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
    padding: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.sidebar-top,
.workspace-inline,
.sidebar-scroll {
    padding-inline: 18px;
}

.sidebar-top {
    padding-top: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #d946ef 60%, #f59e0b);
    color: #fff;
    box-shadow: none;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 11px;
}

.workspace-inline {
    margin: 14px 18px 0;
    padding-block: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(217, 70, 239, 0.06), rgba(255,255,255,0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.sidebar-scroll {
    gap: 22px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.nav-group-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.sidebar-nav {
    gap: 6px;
}

.nav-link,
.mobile-nav-link {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.nav-link::before {
    display: none;
}

.nav-link:hover,
.mobile-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: none;
}

.nav-link.active,
.mobile-nav-link.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.nav-link.active .nav-icon,
.mobile-nav-link.active .nav-icon {
    color: #ffffff !important;
}

.main {
    padding: 0 28px 40px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    margin-bottom: 26px;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.page-intro {
    display: grid;
    gap: 6px;
}

.page-kicker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-kicker-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #d946ef);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

.topbar-kicker {
    color: #64748b;
    letter-spacing: 0.16em;
}

.page-title {
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 800;
    line-height: 1;
}

.page-subtitle,
.section-lead,
.guest-copy,
.auth-subtitle,
.row-copy,
.section-subtitle,
.list-muted,
.auth-panel-copy {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.button-row {
    gap: 10px;
}

.icon-button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.ai-button,
.password-toggle {
    border-radius: 14px;
}

.icon-button {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.btn-primary,
.ai-button {
    background: linear-gradient(135deg, #2563eb 0%, #d946ef 72%, #f59e0b 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.ai-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #c026d3 72%, #ea580c 100%);
}

.btn-secondary,
.btn-ghost,
.password-toggle {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.26);
    color: #334155;
}

.btn-secondary:hover,
.btn-ghost:hover,
.password-toggle:hover {
    background: #f8fafc;
    border-color: rgba(37, 99, 235, 0.24);
}

.page-stack {
    gap: 28px;
}

.dashboard-intro {
    align-items: flex-end;
    gap: 28px;
}

.section-eyebrow,
.auth-kicker,
.auth-eyebrow,
.ai-kicker,
.showcase-label {
    color: #64748b;
    letter-spacing: 0.18em;
}

.section-display {
    font-size: clamp(31px, 3vw, 40px);
    line-height: 1.04;
    font-weight: 800;
    max-width: 960px;
}

.content-section,
.ai-panel,
.metric-card,
.auth-card,
.showcase-stat,
.assistant-action,
.table-shell,
.auth-panel {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.content-section {
    padding: 24px;
}

.content-section::before {
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(37,99,235,0.65), rgba(217,70,239,0.45), rgba(245,158,11,0.25));
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kpi-strip {
    gap: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.metric-card {
    padding: 18px 18px 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.metric-headline {
    margin-bottom: 14px;
}

.metric-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.metric-value {
    font-size: clamp(30px, 2vw, 34px);
    font-weight: 800;
}

.metric-card-employees,
.metric-card-goals,
.metric-card-reviews,
.metric-card-feedback,
.metric-card-dashboard,
.metric-card-growth {
    background: #ffffff;
}

.dashboard-main-grid,
.assistant-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    gap: 24px;
}

.dashboard-primary,
.dashboard-secondary,
.assistant-primary,
.assistant-secondary {
    gap: 20px;
}

.insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.insight-block {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.progress-track {
    background: #e2e8f0;
}

.progress-bar,
.progress-bar-violet,
.progress-bar-cyan,
.progress-bar-emerald {
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.progress-bar-violet {
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.progress-bar-cyan {
    background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

.progress-bar-emerald {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
}

.field-input,
.field-input-lg {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #f8fafc;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.field-input:focus,
.field-input-lg:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    background: #ffffff;
}

textarea.field-input,
textarea.field-input-lg {
    min-height: 116px;
    padding-top: 12px;
}

.input-group {
    align-items: stretch;
}

.input-group .field-input {
    flex: 1 1 auto;
}

.platform-filterbar,
.form-grid,
.auth-form-grid {
    gap: 14px;
}

.platform-filterbar {
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(160px, 0.9fr)) auto;
    align-items: end;
}

.list-shell {
    display: grid;
    gap: 12px;
}

.list-row {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.list-row:hover,
.list-row-link:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.list-row-link {
    cursor: pointer;
}

.list-row-stacked {
    align-items: flex-start;
}

.list-row-main {
    gap: 6px;
}

.row-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.meta-list,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.table-shell {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table-shell thead th {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.table-shell tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
    color: #334155;
    vertical-align: top;
}

.table-shell tbody tr:last-child td {
    border-bottom: 0;
}

.badge {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-neutral {
    background: #f8fafc;
    border-color: rgba(226, 232, 240, 0.95);
    color: #475569;
}

.badge-success,
.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.badge-danger {
    background: rgba(244, 63, 94, 0.1);
    color: #be123c;
}

.badge-admin,
.badge-hr,
.badge-manager,
.badge-employee {
    border-color: transparent;
}

.badge-admin {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.badge-hr {
    background: rgba(217, 70, 239, 0.1);
    color: #a21caf;
}

.badge-manager {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

.badge-employee {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.empty-state {
    padding: 28px;
    border-radius: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(255,255,255,0.98));
}

.empty-state h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    color: #64748b;
    max-width: 520px;
}

.notice-list,
.workflow-list {
    gap: 12px;
}

.notice-item,
.workflow-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.notice-dot {
    background: linear-gradient(180deg, #2563eb, #d946ef);
}

.assistant-action {
    padding: 22px;
}

.prompt-card,
.ai-result,
.scene-ai-output {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f8fafc;
}

.settings-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-tab {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.settings-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.workflow-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.workflow-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.workflow-tab:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
}

.workflow-tab.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.workflow-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.workflow-tab.active .workflow-tab-count {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.data-grid-toolbar,
.data-grid-summary,
.data-grid-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.data-grid-toolbar {
    margin-bottom: 18px;
}

.data-grid-summary {
    margin-bottom: 14px;
}

.data-grid-footer {
    margin-top: 16px;
    justify-content: space-between;
}

.data-grid-shell {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

.data-grid-scroll {
    overflow-x: auto;
}

.data-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.data-grid-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(248, 250, 252, 0.94);
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    white-space: nowrap;
}

.data-grid-table tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.98);
    vertical-align: top;
}

.data-grid-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-grid-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.72);
}

.data-grid-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.data-grid-copy {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.data-grid-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.data-grid-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.data-grid-checkbox {
    width: 16px;
    height: 16px;
}

.platform-filterbar .btn-secondary {
    min-width: 96px;
}

.guest-shell {
    padding: 28px;
}

.guest-grid {
    max-width: 1360px;
    min-height: calc(100vh - 56px);
    gap: 44px;
    align-items: stretch;
}

.guest-showcase {
    align-content: start;
    padding-top: 18px;
}

.guest-title {
    font-size: clamp(44px, 6vw, 72px);
    line-height: 0.94;
    max-width: 760px;
    color: #0f172a;
}

.guest-copy-block {
    gap: 18px;
}

.showcase-chip-row {
    gap: 10px;
    flex-wrap: wrap;
}

.showcase-chip {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: rgba(255,255,255,0.86);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.showcase-chip-indigo { color: #4f46e5; }
.showcase-chip-cyan { color: #0f4f70; }
.showcase-chip-emerald { color: #166534; }

.showcase-scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.showcase-scene-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255,255,255,0.84);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.scene-card-hero {
    grid-column: 1 / -1;
}

.scene-card-head {
    align-items: flex-start;
}

.scene-card-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    color: #0f172a;
}

.scene-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.scene-icon-indigo { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.scene-icon-cyan { background: rgba(14, 165, 233, 0.1); color: #0284c7; }
.scene-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
.scene-icon-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }

.showcase-footer-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.showcase-inline-stat {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255,255,255,0.9);
}

.showcase-inline-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.45;
}

.auth-shell {
    align-items: center;
}

.auth-panel,
.auth-card {
    width: min(100%, 560px);
    padding: 30px;
    border-radius: 28px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.auth-panel-header {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-panel-title,
.auth-title {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.auth-kicker {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
    color: #4f46e5;
}

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(226, 232, 240, 0.95);
}

.auth-divider::before {
    margin-right: 16px;
}

.auth-divider::after {
    margin-left: 16px;
}

.btn-social-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.auth-links-tight {
    justify-content: space-between;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.checkbox-inline input {
    width: 16px;
    height: 16px;
}

.link-inline {
    font-weight: 700;
    color: #2563eb;
}

.btn-xl {
    min-height: 52px;
}

.pagination,
.pagination nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination {
    width: 100%;
    justify-content: space-between;
}

.pagination-summary {
    font-size: 14px;
    color: #64748b;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.pagination-link {
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}

.pagination-link:hover {
    border-color: rgba(79, 70, 229, 0.22);
    color: #0f172a;
    box-shadow: var(--shadow-sm);
}

.pagination-link.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.pagination-link.is-disabled {
    color: #94a3b8;
    background: #f8fafc;
    pointer-events: none;
}

.pagination-ellipsis {
    min-width: auto;
    padding: 0 4px;
    border: 0;
    background: transparent;
}

.flash-message {
    border-radius: 18px;
}

.text-muted {
    color: #64748b;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .guest-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-shell {
        justify-content: flex-start;
    }

    .showcase-scene {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 84vw);
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 60;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main {
        padding: 0 20px 32px;
    }

    .dashboard-main-grid,
    .assistant-layout,
    .insight-grid,
    .showcase-footer-inline,
    .showcase-stats,
    .showcase-scene {
        grid-template-columns: 1fr;
    }

    .kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-filterbar {
        grid-template-columns: 1fr 1fr;
    }

    .platform-filterbar .btn-secondary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .guest-shell,
    .main {
        padding-inline: 16px;
    }

    .topbar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .page-title {
        font-size: 28px;
    }

    .section-display,
    .guest-title,
    .auth-panel-title,
    .auth-title {
        font-size: 34px;
    }

    .auth-panel,
    .auth-card,
    .content-section,
    .assistant-action,
    .showcase-scene-card {
        padding: 20px;
    }

    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .platform-filterbar {
        grid-template-columns: 1fr;
    }
}

/* 2026-06 premium simplification pass */

.page-stack {
    gap: 22px;
}

.main {
    padding: 24px 28px 40px;
}

.topbar {
    padding-bottom: 16px;
    margin-bottom: 14px;
}

.topbar-title {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-muted);
}

.dashboard-main-grid {
    gap: 22px;
    align-items: start;
}

.dashboard-primary,
.dashboard-secondary {
    display: grid;
    gap: 22px;
}

.page-kicker-row {
    gap: 8px;
    margin-bottom: 4px;
}

.page-kicker-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.page-header,
.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 4px 0 2px;
    border: 0;
    background: transparent;
}

.page-header-copy,
.dashboard-intro > div:first-child {
    max-width: 780px;
}

.page-header-eyebrow,
.dashboard-intro .section-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
}

.page-header-title,
.dashboard-intro .section-display {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 780;
    max-width: 13ch;
}

.page-header-subtitle,
.dashboard-intro .section-lead {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 62ch;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.page-header-actions .button-row {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.content-section,
.assistant-action,
.auth-panel,
.auth-card {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.04);
}

.content-section,
.assistant-action {
    padding: 22px;
}

.section-header {
    margin-bottom: 16px;
    gap: 12px;
}

.section-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 60ch;
}

.kpi-strip {
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
    min-height: 0;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.03);
}

.metric-headline {
    gap: 10px;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.metric-value {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.list-shell {
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
}

.list-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.list-shell > .list-row:first-child {
    padding-top: 0;
}

.list-shell > .list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.row-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.row-copy,
.list-row-meta,
.list-muted {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.table-shell {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
}

.table-shell thead th {
    padding: 14px 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(248, 250, 252, 0.92);
}

.table-shell tbody td {
    padding: 16px;
    font-size: 14px;
    vertical-align: top;
}

.table-shell tbody tr {
    transition: background-color 160ms ease, transform 160ms ease;
}

.table-shell tbody tr:hover {
    background: rgba(248, 250, 255, 0.9);
}

.platform-filterbar,
.form-grid {
    gap: 14px;
}

.platform-filterbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 18px;
}

.field-stack {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 13px;
    font-weight: 650;
    color: var(--text-soft);
}

.field-input,
.field-input-lg,
select.field-input,
textarea.field-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font: inherit;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

textarea.field-input,
textarea.field-input-lg {
    min-height: 118px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

select.field-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

select.field-input option,
textarea.field-input,
input.field-input,
.field-input-lg {
    font: inherit;
    font-family: inherit;
}

select.field-input[multiple] {
    min-height: 180px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.field-input::placeholder,
.field-input-lg::placeholder {
    color: #94a3b8;
}

.field-input:hover,
.field-input-lg:hover {
    border-color: rgba(79, 70, 229, 0.18);
    background: #fff;
}

.field-input:focus,
.field-input-lg:focus {
    outline: 0;
    border-color: rgba(79, 70, 229, 0.48);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background: #fff;
}

.field-input[readonly],
.field-input[disabled],
.field-input-lg[readonly],
.field-input-lg[disabled] {
    background: rgba(248, 250, 252, 0.96);
    color: var(--text-muted);
    cursor: not-allowed;
}

.field-input.is-invalid,
.field-input[aria-invalid="true"],
.field-input-lg.is-invalid,
.field-input-lg[aria-invalid="true"] {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
}

.form-help {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

.field-help {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

.field-required {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-error {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #e11d48;
}

.validation-summary {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 18px;
    background: rgba(255, 241, 242, 0.92);
    color: #9f1239;
}

.validation-summary strong {
    display: block;
    margin-bottom: 8px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.validation-summary li + li {
    margin-top: 4px;
}

.dashboard-analytics-grid,
.dashboard-analytics-grid-2 {
    display: grid;
    gap: 20px;
}

.dashboard-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-analytics-grid-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.score-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    overflow: hidden;
}

.score-label {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.score-value {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 2.2rem);
    line-height: 0.98;
    font-weight: 750;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.score-meta {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.score-band {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.chart-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.chart-shell {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
}

.chart-shell h4,
.chart-shell .chart-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--text-strong);
}

.chart-shell p {
    margin: 0 0 14px;
    color: var(--text-soft);
}

.chart-placeholder {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.chart-bars {
    display: grid;
    gap: 14px;
}

.chart-bars-row {
    display: grid;
    gap: 8px;
}

.chart-bars-compact .chart-bars-row {
    gap: 6px;
}

.chart-bars-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.chart-bars-label {
    color: var(--text-strong);
    font-weight: 600;
}

.chart-bars-value {
    color: var(--text-muted);
    font-weight: 700;
}

.chart-bars-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.92);
    overflow: hidden;
}

.chart-bars-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6 60%, #ec4899);
}

.chart-bars-note {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.chart-line svg,
.chart-radar svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-line-path {
    fill: none;
    stroke: url(#chartLineGradient);
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-line-dot {
    fill: #fff;
    stroke: #4f46e5;
    stroke-width: 3;
}

.chart-axis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.chart-axis span {
    text-align: center;
}

.chart-donut {
    display: grid;
    gap: 18px;
}

.chart-donut-visual {
    width: var(--donut-size, 176px);
    height: var(--donut-size, 176px);
    margin: 0 auto;
    border-radius: 50%;
    background: var(--donut-gradient);
    display: grid;
    place-items: center;
}

.chart-donut-center {
    width: calc(var(--donut-size, 176px) * 0.58);
    height: calc(var(--donut-size, 176px) * 0.58);
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.chart-donut-center strong {
    font-size: 28px;
    line-height: 1;
    color: var(--text-strong);
}

.chart-donut-center span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chart-donut-legend {
    display: grid;
    gap: 10px;
}

.chart-donut-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.chart-donut-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--swatch-color);
}

.chart-radar {
    display: grid;
    gap: 16px;
}

.chart-radar-ring,
.chart-radar-axis {
    stroke: rgba(148, 163, 184, 0.28);
    fill: none;
}

.chart-radar-shape {
    fill: rgba(79, 70, 229, 0.18);
    stroke: #4f46e5;
    stroke-width: 3;
}

.chart-radar-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.chart-radar-label-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-soft);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.star-rating-star {
    font-size: 18px;
    line-height: 1;
}

.star-rating-sm .star-rating-star {
    font-size: 15px;
}

.star-rating-lg .star-rating-star {
    font-size: 22px;
}

.star-rating-star-full,
.star-rating-star-half {
    color: #f59e0b;
}

.star-rating-star-empty {
    color: rgba(148, 163, 184, 0.45);
}

.star-rating-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
}

.star-input {
    display: grid;
    gap: 10px;
}

.star-input-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.star-input-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    cursor: pointer;
}

.star-input-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-input-stars {
    display: inline-flex;
    gap: 2px;
}

.star-input-star {
    color: rgba(148, 163, 184, 0.45);
}

.star-input-star.filled {
    color: #f59e0b;
}

.star-input-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.star-input-option:has(input:checked) {
    border-color: rgba(79, 70, 229, 0.34);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.feedback-rating-grid {
    display: grid;
    gap: 16px;
}

.feedback-rating-row {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.72);
}

.feedback-rating-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.feedback-rating-row-header strong {
    color: var(--text-strong);
}

.performance-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: stretch;
}

.score-hero {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(79, 70, 229, 0.9));
    color: #fff;
}

.score-hero .score-label,
.score-hero .score-meta,
.score-hero .star-rating-value {
    color: rgba(255, 255, 255, 0.82);
}

.score-hero .score-value,
.score-hero .score-band {
    color: #fff;
}

.score-hero .score-band {
    background: rgba(255, 255, 255, 0.14);
}

.filter-toolbar-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-toolbar-inline .field-input {
    min-width: 170px;
}

.filter-toolbar-inline .field-input[type="text"] {
    min-width: 280px;
    flex: 1 1 280px;
}

@media (max-width: 1200px) {
    .dashboard-analytics-grid-2,
    .performance-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-analytics-grid,
    .dashboard-analytics-grid-2,
    .chart-card-grid,
    .score-grid,
    .performance-hero {
        grid-template-columns: 1fr;
    }

    .filter-toolbar-inline .field-input,
    .filter-toolbar-inline .field-input[type="text"] {
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .score-grid,
    .score-grid-compact {
        grid-template-columns: 1fr;
    }
}

.input-group-premium {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-premium .field-input {
    padding-right: 88px;
}

.password-toggle-premium {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-soft);
    font-weight: 600;
}

.checkbox-inline,
.checkbox-row {
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
}

.checkbox-inline input,
.checkbox-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-social-google {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    font-weight: 650;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-social-google:hover {
    transform: translateY(-1px);
}

.btn-xl {
    min-height: 50px;
}

.guest-shell-auth {
    position: relative;
    padding: 32px 36px;
}

.guest-grid-auth {
    max-width: 1380px;
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
    gap: 52px;
    align-items: center;
}

.guest-showcase-auth {
    align-self: center;
    max-width: 720px;
    padding: 0;
}

.auth-brand {
    margin-bottom: 28px;
}

.guest-copy-block.guest-copy-auth {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-title-auth {
    margin: 0;
    max-width: 10.5ch;
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.guest-copy.guest-copy-auth {
    max-width: 24ch;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-muted);
}

.auth-visual-panel {
    max-width: 520px;
    margin: 0;
}

.auth-visual-surface {
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
}

.auth-visual-bars {
    margin-bottom: 14px;
}

.auth-visual-bar {
    border-radius: 999px;
}

.auth-visual-copy strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.showcase-footer-minimal {
    margin-top: 16px;
}

.showcase-inline-stat-minimal {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-shell-premium {
    justify-self: end;
    width: 100%;
    max-width: 500px;
}

.auth-panel {
    padding: 28px;
}

.auth-panel-compact {
    gap: 18px;
}

.auth-panel-header {
    gap: 10px;
}

.auth-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
}

.auth-panel-title {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    max-width: 10ch;
}

.auth-panel-copy {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 32ch;
}

.auth-divider {
    margin: 4px 0;
}

.auth-links-tight {
    justify-content: space-between;
}

.auth-footer-balanced {
    justify-content: center;
    padding-top: 2px;
}

.human-check-card {
    padding: 16px;
    border-radius: 16px;
}

.assistant-layout,
.dashboard-main-grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(290px, 0.86fr);
}

.dashboard-main-grid-talent {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.dashboard-main-grid-talent .dashboard-secondary {
    position: static;
    min-width: 0;
}

.dashboard-main-grid-talent .content-section,
.dashboard-main-grid-talent .compare-card,
.dashboard-main-grid-talent .matrix-cell {
    min-width: 0;
}

.participant-summary-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.72);
}

.participant-list {
    display: grid;
    gap: 12px;
}

.participant-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.participant-list-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.participant-status {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

[data-participant-picker] {
    min-height: 196px;
}

[data-participant-picker] option {
    padding: 8px 10px;
}

.talent-index-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.platform-dashboard-layout,
.platform-dashboard-main,
.platform-dashboard-top-grid {
    display: grid;
    gap: 22px;
}

.platform-dashboard-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.platform-dashboard-layout .content-section,
.platform-dashboard-top-grid .content-section {
    min-width: 0;
}

.talent-index-main,
.talent-index-sidebar,
.participant-workspace,
.participant-role-grid,
.participant-role-card,
.grid-filter-row {
    display: grid;
    gap: 16px;
}

.talent-index-main,
.talent-index-sidebar,
.participant-role-card {
    min-width: 0;
}

.talent-index-sidebar .content-section,
.talent-index-sidebar .ai-panel {
    min-width: 0;
    position: static;
}

.participant-workspace {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.98));
}

.participant-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.participant-workspace-title {
    min-width: 0;
}

.participant-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.participant-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: rgba(79, 70, 229, 0.06);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.participant-total-badge strong {
    font-size: 13px;
    color: var(--brand-deep);
}

.participant-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.participant-role-card {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.participant-role-card[data-optional-role="true"] {
    align-content: start;
}

.participant-role-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.participant-chip-picker {
    position: relative;
    display: grid;
    gap: 10px;
}

.participant-chip-search {
    min-height: 44px;
}

.participant-chip-results {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.participant-result-option {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.94);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.participant-result-option:hover {
    background: rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

.participant-result-option strong {
    font-size: 13px;
}

.participant-result-option span {
    font-size: 12px;
    color: var(--text-muted);
}

.participant-select-hidden {
    display: none;
}

.participant-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 30px;
}

.participant-chip-row.is-empty {
    min-height: 0;
}

.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(79,70,229,0.1), rgba(6,182,212,0.06));
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.participant-chip:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

.participant-results-placeholder {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.94);
    font-size: 13px;
    color: var(--text-muted);
}

.grid-filter-toolbar {
    width: 100%;
}

.grid-filter-row,
.platform-filterbar {
    align-items: center;
}

.grid-filter-row,
.platform-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.grid-filter-controls {
    display: flex;
    flex: 1 1 760px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.grid-filter-controls > input.field-input[type="text"],
.grid-filter-controls > input.field-input[type="search"] {
    width: auto;
    flex: 1 1 320px;
    min-width: 240px;
    max-width: 360px;
}

.grid-filter-controls > select.field-input {
    width: auto;
    flex: 0 1 190px;
    min-width: 150px;
    max-width: 200px;
}

.grid-filter-controls > .grid-filter-per-page {
    flex-basis: 140px;
    max-width: 150px;
}

.grid-filter-controls > .btn-secondary,
.grid-filter-controls > .btn-ghost {
    flex: 0 0 auto;
}

.platform-filterbar > input.field-input[type="text"],
.platform-filterbar > input.field-input[type="search"] {
    width: auto;
    flex: 1 1 320px;
    min-width: 240px;
    max-width: 360px;
}

.platform-filterbar > select.field-input {
    width: auto;
    flex: 0 1 190px;
    min-width: 150px;
    max-width: 200px;
}

.platform-filterbar > .btn-secondary,
.platform-filterbar > .btn-ghost {
    flex: 0 0 auto;
}

.participant-filterbar {
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.participant-filterbar.grid-filter-toolbar {
    width: 100%;
}

.participant-filterbar .grid-filter-row,
.participant-filter-row {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(4, minmax(160px, 0.82fr)) auto;
    gap: 10px;
    align-items: center;
}

.participant-filterbar .field-input {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
}

.role-filter-toolbar .grid-filter-row {
    grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(160px, 0.82fr)) auto auto;
    gap: 10px;
    align-items: center;
}

.role-filter-toolbar .field-input {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
}

.role-filter-toolbar__search,
.role-filter-toolbar__select {
    min-width: 0;
}

.role-filter-toolbar__search {
    width: auto;
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 320px;
}

.role-filter-toolbar__select {
    width: auto;
    flex: 0 1 170px;
    min-width: 138px;
    max-width: 182px;
}

.role-filter-toolbar__per-page {
    flex-basis: 128px;
    min-width: 118px;
    max-width: 132px;
}

.role-filter-toolbar .btn-secondary,
.role-filter-toolbar .btn-ghost {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.participant-filterbar .btn-secondary {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.talent-create-panel[hidden] {
    display: none !important;
}

.grid-filter-toolbar .btn-secondary,
.grid-filter-toolbar .btn-ghost,
.platform-filterbar .btn-secondary,
.platform-filterbar .btn-ghost {
    width: auto;
}

.grid-filter-saved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

[data-filter-key="talent-matrix-sessions-grid"] .grid-filter-controls {
    flex-basis: 100%;
    gap: 10px;
}

[data-filter-key="talent-matrix-sessions-grid"] .grid-filter-saved {
    flex-basis: 100%;
    margin-left: 0;
}

[data-filter-key="talent-matrix-sessions-grid"] .grid-filter-search {
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 280px;
}

[data-filter-key="talent-matrix-sessions-grid"] .grid-filter-select {
    flex: 0 1 138px;
    min-width: 116px;
    max-width: 148px;
}

[data-filter-key="talent-matrix-sessions-grid"] .grid-filter-per-page {
    flex: 0 1 120px;
    min-width: 104px;
    max-width: 124px;
}

.grid-filter-saved .field-input {
    min-width: 156px;
    min-height: 42px;
}

.table-sort-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.table-sort-link:hover {
    color: var(--brand);
}

.form-error-copy,
.form-warning-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.form-error-copy {
    color: #b42318;
}

.form-warning-copy {
    color: #b45309;
}

.participant-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stack-sm {
    display: grid;
    gap: 10px;
}

.data-grid-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.data-grid-utility {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.data-grid-bulkbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: rgba(79, 70, 229, 0.05);
}

.data-grid-bulkbar.active {
    display: flex;
}

.data-grid-bulkmeta {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
}

.data-grid-column-panel {
    position: relative;
}

.data-grid-column-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 220px;
    display: none;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
}

.data-grid-column-panel.open .data-grid-column-menu {
    display: grid;
    gap: 8px;
}

.reports-layout {
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    align-items: start;
}

.reports-layout > * {
    min-width: 0;
}

.reports-layout .dashboard-primary,
.reports-layout .dashboard-secondary,
.reports-layout .content-section,
.reports-layout .insight-grid,
.reports-layout .insight-block {
    min-width: 0;
}

.reports-sidebar {
    position: static;
    align-self: start;
}

.reports-layout .content-section {
    overflow: visible;
}

.data-grid-column-menu label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.data-grid-table [data-grid-col].is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .guest-grid-auth {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: auto;
    }

    .guest-showcase-auth,
    .auth-shell-premium {
        max-width: 100%;
        justify-self: stretch;
    }

    .guest-title-auth {
        max-width: 12ch;
    }

    .assistant-layout,
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main-grid-talent {
        grid-template-columns: 1fr;
    }

    .platform-dashboard-top-grid {
        grid-template-columns: 1fr;
    }

    .reports-layout {
        grid-template-columns: 1fr;
    }

    .talent-index-layout,
    .participant-role-grid {
        grid-template-columns: 1fr;
    }

    .page-header,
    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .guest-shell-auth {
        padding: 18px 16px 24px;
    }

    .guest-title-auth,
    .auth-panel-title,
    .page-header-title,
    .dashboard-intro .section-display {
        max-width: none;
        font-size: 2.35rem;
    }

    .guest-copy-auth,
    .page-header-subtitle,
    .dashboard-intro .section-lead {
        font-size: 14px;
    }

    .content-section,
    .assistant-action,
    .auth-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .platform-filterbar,
    .grid-filter-row,
    .form-grid,
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .participant-filterbar {
        padding: 10px;
    }

    .list-row,
    .workflow-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .button-row,
    .list-row-side {
        width: 100%;
        flex-wrap: wrap;
    }

    .auth-visual-panel {
        display: none;
    }
}

@media (max-width: 1360px) {
    .role-filter-toolbar .grid-filter-row {
        grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(150px, 0.8fr)) auto auto;
    }

    .participant-filterbar .grid-filter-row,
    .participant-filter-row {
        grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.8fr));
    }
}

@media (max-width: 1080px) {
    .role-filter-toolbar .grid-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participant-filterbar .grid-filter-row,
    .participant-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    [data-filter-key="talent-matrix-sessions-grid"] .grid-filter-controls {
        flex-basis: 100%;
    }

    [data-filter-key="talent-matrix-sessions-grid"] .grid-filter-search {
        min-width: 220px;
        max-width: 320px;
    }

    [data-filter-key="talent-matrix-sessions-grid"] .grid-filter-select {
        min-width: 132px;
        max-width: 168px;
    }
}

/* 2026-06 heading and auth tightening follow-up */

.page-header,
.dashboard-intro {
    align-items: flex-start;
}

.page-header-copy,
.dashboard-intro > div:first-child {
    max-width: min(100%, 1100px);
}

.page-header-title,
.dashboard-intro .section-display {
    max-width: none;
    font-size: clamp(1.72rem, 2vw, 2.45rem);
    line-height: 1.08;
}

.page-header-subtitle,
.dashboard-intro .section-lead {
    max-width: 72ch;
    font-size: 14px;
    line-height: 1.58;
}

.guest-shell-compact {
    position: relative;
    min-height: 100vh;
    padding: 24px 24px 40px;
}

.guest-compact-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.auth-shell-compact {
    width: 100%;
    max-width: 500px;
}

.auth-shell-compact .auth-panel {
    padding: 30px;
}

.auth-inline-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
}

.auth-shell-compact .auth-panel-title {
    max-width: none;
    font-size: clamp(1.7rem, 2.2vw, 2.1rem);
    line-height: 1.04;
}

.auth-shell-compact .auth-panel-copy {
    max-width: 32ch;
}

@media (max-width: 1180px) {
    .page-header-title,
    .dashboard-intro .section-display {
        font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    }
}

@media (max-width: 720px) {
    .guest-shell-compact {
        padding: 18px 16px 24px;
    }

    .guest-compact-main {
        min-height: 100vh;
        padding: 8px 0 0;
    }

    .auth-shell-compact {
        max-width: 100%;
    }

    .auth-shell-compact .auth-panel {
        padding: 22px 18px;
    }

    .participant-workspace-head {
        grid-template-columns: 1fr;
    }

    .participant-total {
        justify-items: start;
        text-align: left;
    }

    .page-header-title,
    .dashboard-intro .section-display {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .workflow-tabbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
}

.permission-group {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(248, 250, 252, 0.72);
}

.permission-group-head {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.permission-checkbox {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #fff;
}

.btn-xs {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}
