@import url("https://fonts.googleapis.com/css2?family=Victor+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");

/* ═══════════════════════════════════════════════════════════
   Global scrollbar suppression
   ═══════════════════════════════════════════════════════════ */
* {
    scrollbar-width: none;
}
*::-webkit-scrollbar {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   Sidebar Layout
   ═══════════════════════════════════════════════════════════ */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: hsl(var(--background));
}

.app-sidebar {
    width: 200px;
    min-width: 200px;
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
}

.sidebar-brand {
    padding: 16px 16px 12px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand .logo {
    width: 28px;
    height: 28px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    font-style: italic;
    flex-shrink: 0;
}

.sidebar-brand-text {
    flex: 1;
    min-width: 0;
}

.sidebar-brand-text .sidebar-brand-title {
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.sidebar-brand-text .sidebar-brand-sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
}

.sidebar-theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition:
        color 100ms ease,
        background 100ms ease;
    flex-shrink: 0;
}

.sidebar-theme-toggle:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    padding: 12px 16px 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition:
        background 100ms ease,
        color 100ms ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.sidebar-link.active {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    font-weight: 600;
    border-left-color: hsl(var(--primary));
}

.sidebar-link .icon {
    width: 16px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: background 100ms ease;
}

.sidebar-user:hover {
    background: hsl(var(--accent));
}

.sidebar-user-avatar {
    width: 28px;
    height: 28px;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 9px;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-user-chevron {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    transition: transform 200ms ease;
    flex-shrink: 0;
}

.sidebar-user.open .sidebar-user-chevron {
    transform: rotate(90deg);
}

.sidebar-user-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    left: 8px;
    right: 8px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 50;
}

.sidebar-user.open .sidebar-user-dropdown {
    display: block;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition:
        background 100ms ease,
        color 100ms ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    border-radius: 4px;
}

.sidebar-dropdown-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.sidebar-dropdown-item .icon {
    width: 16px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 8px;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer .sidebar-link {
    font-size: 12px;
    padding: 7px 10px;
}

.app-content {
    flex: 1;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.topbar-breadcrumb {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.topbar-breadcrumb a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
}

.topbar-breadcrumb a:hover {
    color: hsl(var(--foreground));
    text-decoration: underline;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-body {
    flex: 1;
    padding: 28px 32px 48px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.app-body-wide {
    max-width: 1400px;
}

/* Logout confirmation modal */
.logout-modal {
    display: none;
}

.logout-modal.open {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════
   Sidebar collapsible group (Accounts → Naukri / Indeed / …)
   ═══════════════════════════════════════════════════════════ */
.sidebar-group {
    display: flex;
    flex-direction: column;
}

.sidebar-group-toggle {
    justify-content: flex-start;
}

.sidebar-group-label {
    flex: 1;
}

.sidebar-group-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    transition: transform 150ms ease;
}

.sidebar-group.open .sidebar-group-chevron {
    transform: rotate(90deg);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    padding: 2px 0 4px;
}

.sidebar-group.open .sidebar-submenu {
    display: flex;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px 7px 38px;
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-left: 2px solid transparent;
    transition:
        background 100ms ease,
        color 100ms ease;
}

a.sidebar-sublink:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    text-decoration: none;
}

.sidebar-sublink.active {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    font-weight: 600;
    border-left-color: hsl(var(--primary));
}

.sidebar-sublink.disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.soon-badge {
    margin-left: auto;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 5px;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
}

/* ═══════════════════════════════════════════════════════════
   Mobile menu button + sidebar overlay
   ═══════════════════════════════════════════════════════════ */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 35;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-menu-btn i {
    width: 20px;
    height: 20px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 39;
}

.sidebar-overlay.open {
    display: block;
}

@media (max-width: 768px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
        z-index: 60;
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-content {
        margin-left: 0;
    }
    .app-body {
        padding: 64px 16px 32px;
    }
    .app-topbar {
        padding: 12px 16px 12px 60px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="justify-content:space-between"] {
        flex-wrap: wrap;
        gap: 12px;
    }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
} /* ═══════════════════════════════════════════════════════════
   shadcn-style neutral design system — sharp corners everywhere
   ═══════════════════════════════════════════════════════════ */

:root {
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 47% 11%;
    --primary: 222 47% 11%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --accent: 210 40% 96%;
    --accent-foreground: 222 47% 11%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 210 40% 98%;
    --success: 142 71% 36%;
    --warning: 38 92% 50%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 222 47% 11%;

    --font-sans: "Victor Mono", ui-monospace, monospace;
    --font-mono: "Victor Mono", ui-monospace, monospace;

    --sidebar-w: 240px;
    --radius: 0;
}

[data-theme="dark"] {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;
    --card: 222 47% 9%;
    --card-foreground: 210 40% 98%;
    --popover: 222 47% 6%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222 47% 11%;
    --secondary: 217 33% 14%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217 33% 14%;
    --muted-foreground: 215 20% 65%;
    --accent: 217 33% 14%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 63% 48%;
    --destructive-foreground: 210 40% 98%;
    --success: 142 65% 50%;
    --warning: 38 92% 60%;
    --border: 217 33% 18%;
    --input: 217 33% 18%;
    --ring: 215 20% 65%;
}

/* ═══════════════════════════════════════════════════════════
   Base
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    border-radius: 5px !important;
}

html,
body {
    height: 100%;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

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

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
}

em {
    font-style: italic;
    font-weight: 600;
}

::selection {
    background: hsl(var(--foreground) / 0.15);
}

/* ═══════════════════════════════════════════════════════════
   Layout shell (dashboard/app)
   ═══════════════════════════════════════════════════════════ */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 0 0 16px;
    border-right: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.sidebar-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
}
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    min-height: 20px;
}
.brand-logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
}
.brand-title {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-style: italic; /* Victor Mono italic for brand flair */
}
.brand-sub {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-mono);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-label {
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    padding: 10px 8px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-left: 2px solid transparent;
    transition:
        background 120ms ease,
        color 120ms ease;
}
.nav-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}
.nav-item.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-left-color: hsl(var(--foreground));
}
.nav-dot {
    width: 6px;
    height: 6px;
    background: hsl(var(--muted-foreground));
    display: inline-block;
}
.nav-item.active .nav-dot {
    background: hsl(var(--foreground));
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    cursor: pointer;
    transition:
        background 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
}
.user-pill:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--foreground) / 0.3);
}
.user-pill:hover .user-logout {
    color: hsl(var(--destructive));
}
.user-avatar {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    flex-shrink: 0;
}
.user-avatar svg {
    width: 14px;
    height: 14px;
}
.user-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-logout {
    display: grid;
    place-items: center;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    transition: color 120ms ease;
}
.user-logout svg {
    width: 14px;
    height: 14px;
}

.btn-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    transition:
        background 120ms ease,
        color 120ms ease;
}
.btn-signout:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition:
        background 120ms ease,
        color 120ms ease;
}
.theme-toggle:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

/* main column */
.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.main-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 32px;
    min-height: 89px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}
.topbar-left {
    min-width: 0;
}
.topbar-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.topbar-sub {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    margin-top: 2px;
    font-style: italic; /* Victor Mono italic for subtitles */
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pill-status .dot {
    width: 6px;
    height: 6px;
    background: hsl(var(--success));
    display: inline-block;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition:
        background 120ms ease,
        color 120ms ease,
        border-color 120ms ease;
    font-size: 14px;
}
.icon-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
    border-color: hsl(var(--foreground) / 0.3);
}

.scroll {
    padding: 28px 32px 48px;
    flex: 1;
}

.panel {
    display: none;
}
.panel.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    transition:
        background 120ms ease,
        color 120ms ease,
        border-color 120ms ease;
}
.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}
.btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}
.btn-ghost:hover {
    background: hsl(var(--accent));
}

.btn-destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}
.btn-destructive:hover {
    background: hsl(var(--destructive) / 0.9);
}

.btn-mini {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════ */
.field {
    margin-bottom: 14px;
}
.field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: hsl(var(--foreground));
}
.field label .sub {
    font-weight: 400;
    color: hsl(var(--muted-foreground));
    font-size: 11px;
    font-style: italic; /* Victor Mono italic for hints */
}

input,
textarea,
select {
    width: 100%;
    padding: 9px 12px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    color: hsl(var(--foreground));
    font-size: 13px;
    transition: border-color 120ms ease;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--ring));
}
input::placeholder,
textarea::placeholder {
    color: hsl(var(--muted-foreground));
    font-style: italic; /* Victor Mono italic for placeholders */
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-mono);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   Cards & Sections
   ═══════════════════════════════════════════════════════════ */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    padding: 20px;
    color: hsl(var(--card-foreground));
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.section-head h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.section-head .right {
    font-family: var(--font-mono);
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   Badges
   ═══════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 10.5px;
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}
.badge-active,
.badge-success {
    color: hsl(var(--success));
    border-color: hsl(var(--success) / 0.4);
    background: hsl(var(--success) / 0.08);
}
.badge-destructive,
.badge-failed {
    color: hsl(var(--destructive));
    border-color: hsl(var(--destructive) / 0.4);
    background: hsl(var(--destructive) / 0.08);
}
.badge-warning {
    color: hsl(var(--warning));
    border-color: hsl(var(--warning) / 0.4);
    background: hsl(var(--warning) / 0.1);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
}

/* ═══════════════════════════════════════════════════════════
   Empty state
   ═══════════════════════════════════════════════════════════ */
.empty {
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed hsl(var(--border));
    background: hsl(var(--card));
}
.empty-icon {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.empty h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.empty p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

/* ═══════════════════════════════════════════════════════════
   Modal / Dialog
   ═══════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: hsl(var(--foreground) / 0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-backdrop.open {
    display: flex;
}
.modal {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 10px 38px -10px hsl(var(--foreground) / 0.35);
    scrollbar-width: none;
}
.modal::-webkit-scrollbar {
    display: none;
}
.modal-head {
    padding: 20px 24px 16px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.modal-head h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.modal-head .sub {
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
    margin-top: 4px;
    font-style: italic; /* Victor Mono italic */
}
.modal-close {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    font-size: 16px;
    transition:
        background 120ms ease,
        color 120ms ease;
}
.modal-close:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}
.modal-body {
    padding: 20px 24px 24px;
}

/* ═══════════════════════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 16px;
}
.tab {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition:
        color 120ms ease,
        border-color 120ms ease;
}
.tab:hover {
    color: hsl(var(--foreground));
}
.tab.active {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════
   Messages & Status
   ═══════════════════════════════════════════════════════════ */
.msg {
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
    font-style: italic; /* Victor Mono italic */
}
.msg.error {
    color: hsl(var(--destructive));
}
.msg.success {
    color: hsl(var(--success));
}
.msg.muted {
    color: hsl(var(--muted-foreground));
}

.status {
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
    min-height: 18px;
    margin-top: 8px;
    font-style: italic; /* Victor Mono italic */
}

/* ═══════════════════════════════════════════════════════════
   Landing Page Styles
   ═══════════════════════════════════════════════════════════ */
.lp-body {
    min-height: 100vh;
}

.lp-nav {
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    position: sticky;
    top: 0;
    z-index: 50;
}

.lp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.lp-brand-text .title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-style: italic; /* Victor Mono italic for brand */
}

.lp-brand-text .sub {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    display: block;
}

.lp-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lp-nav-links a {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    transition: color 120ms ease;
}

.lp-nav-links a:hover {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.lp-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lp-theme-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition:
        background 120ms ease,
        color 120ms ease;
}

.lp-theme-btn:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.lp-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.lp-container {
    max-width: 900px;
    margin: 0 auto;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    padding: 4px 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 24px;
}

.lp-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: hsl(var(--success));
    display: inline-block;
}

.lp-headline {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.lp-headline em {
    font-style: italic; /* Victor Mono italic for emphasis */
    font-weight: 700;
}

.lp-sub {
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto 32px;
}

.lp-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.lp-meta {
    display: flex;
    gap: 14px;
    justify-content: center;
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lp-meta span {
    padding: 4px 10px;
    border: 1px solid hsl(var(--border));
}

.lp-section {
    padding: 80px 24px;
    border-top: 1px solid hsl(var(--border));
}

.lp-section-head {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.lp-section-eyebrow {
    font-size: 11px;
    font-family: var(--font-mono);
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
    font-style: italic; /* Victor Mono italic */
}

.lp-section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.lp-section-sub {
    font-size: 15px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.lp-features {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lp-feature {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.lp-feature-icon {
    font-size: 24px;
    margin-bottom: 14px;
}

.lp-feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lp-feature-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.lp-steps {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.lp-step {
    padding: 28px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    border-left-width: 3px;
}

.lp-step-num {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
}

.lp-step-num strong {
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-right: 8px;
    font-style: italic; /* Victor Mono italic */
}

.lp-step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lp-step-text {
    font-size: 14px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.lp-cta-band {
    padding: 80px 24px;
    text-align: center;
    background: hsl(var(--accent));
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.lp-cta-band h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
}

.lp-cta-band p {
    font-size: 15px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 28px;
}

.lp-footer {
    padding: 32px 24px;
    border-top: 1px solid hsl(var(--border));
}

.lp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.lp-footer a {
    margin-left: 20px;
    transition: color 120ms ease;
}

.lp-footer a:hover {
    color: hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════
   Chat Interface Styles
   ═══════════════════════════════════════════════════════════ */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.tool-result {
    align-self: flex-start;
    max-width: 70%;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-left-width: 3px;
    padding: 12px 14px;
    font-size: 13px;
}

.tool-result.success {
    border-left-color: hsl(var(--success));
}

.tool-result.error {
    border-left-color: hsl(var(--destructive));
}

.tool-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-style: italic; /* Victor Mono italic */
}

.tool-args {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    background: hsl(var(--muted));
    padding: 8px;
    margin-top: 8px;
    overflow-x: auto;
}

.chat-composer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.chat-input {
    flex: 1;
}

.chat-hint {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    padding: 8px;
    font-style: italic; /* Victor Mono italic */
}

/* ═══════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}
.full-width {
    width: 100%;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: hsl(var(--muted-foreground));
}
.text-error {
    color: hsl(var(--destructive));
}
.text-success {
    color: hsl(var(--success));
}

/* ═══════════════════════════════════════════════════════════
   Lucide Icons
   ═══════════════════════════════════════════════════════════ */
.sidebar-link .lucide,
.sidebar-dropdown-item .lucide {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.sidebar-theme-toggle .lucide {
    width: 15px;
    height: 15px;
}
.sidebar-user-chevron.lucide {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.5;
}
.section-head h2 .lucide {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
    margin-right: 5px;
    opacity: 0.7;
}
.empty-icon .lucide {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}
.icon-btn .lucide {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
/* ================================================================
   User-detail grid & info layout
   ================================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-grid {
    display: grid;
    gap: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid hsl(var(--border));
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground));
    word-break: break-word;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .lp-nav-links {
        display: none;
    }

    .lp-headline {
        font-size: 36px;
    }

    .lp-section-title {
        font-size: 24px;
    }

    .lp-features {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        padding: 0 16px;
    }

    .scroll {
        padding: 20px 16px;
    }
}

/* ── Tables ───────────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid hsl(var(--border));
    white-space: nowrap;
}

td {
    font-size: 13px;
    padding: 12px 14px;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

tr:last-child td {
    border-bottom: none;
}

.user-row:hover td {
    background: hsl(var(--muted) / 0.3);
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    outline: none;
    transition: border-color 150ms ease;
}

.form-input:focus,
.form-select:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

/* ═══════════════════════════════════════════════════════════
   Account page — profile header
   ═══════════════════════════════════════════════════════════ */
.acct-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.acct-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    overflow: hidden;
    text-transform: uppercase;
    border-radius: 50% !important;
}

.acct-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
}

.acct-header-text {
    flex: 1;
    min-width: 0;
}

.acct-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    word-break: break-word;
}

.acct-header-sub {
    color: hsl(var(--muted-foreground));
    font-size: 13px;
    font-style: italic;
    word-break: break-word;
}

.acct-refresh-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition:
        color 120ms ease,
        border-color 120ms ease;
}

.acct-refresh-btn:hover {
    color: hsl(var(--foreground));
    border-color: hsl(var(--primary));
}

.acct-refresh-btn .lucide {
    width: 16px;
    height: 16px;
}

.acct-refresh-btn.spinning .lucide {
    animation: acct-spin 800ms linear infinite;
}

@keyframes acct-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   Account page — tab navbar with sliding indicator
   ═══════════════════════════════════════════════════════════ */
.tab-nav {
    position: relative;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 120ms ease;
}

.tab-btn .lucide {
    width: 15px;
    height: 15px;
}

.tab-btn:hover {
    color: hsl(var(--foreground));
}

.tab-btn.active {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.tab-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: hsl(var(--primary));
    transition:
        transform 220ms ease,
        width 220ms ease;
    transform: translateX(0);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Account page — profile rendering (chips, progress, lists)
   ═══════════════════════════════════════════════════════════ */
.progress-track {
    width: 100%;
    height: 8px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: hsl(var(--primary));
    transition: width 400ms ease;
}

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

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--secondary-foreground));
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
}

.profile-item {
    padding: 12px 0;
    border-bottom: 1px solid hsl(var(--border));
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.profile-item-sub {
    font-size: 12.5px;
    color: hsl(var(--muted-foreground));
    margin-top: 2px;
}

.profile-item-meta {
    font-size: 11px;
    font-family: var(--font-mono);
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.profile-item-desc {
    font-size: 12.5px;
    color: hsl(var(--foreground));
    margin-top: 6px;
    white-space: pre-line;
    line-height: 1.5;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
}

.career-item-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2px;
}

.career-item-value {
    font-size: 13.5px;
    color: hsl(var(--foreground));
    word-break: break-word;
}

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

.auto-hint {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 4px 0 16px;
}

.auto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.auto-row label {
    font-size: 13px;
}

.toggle-pair {
    display: inline-flex;
    gap: 4px;
}

.toggle-pair button {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 120ms ease;
}

.toggle-pair button.on {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.panel-automation-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auto-line {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    overflow: visible;
}

.auto-line-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    flex-wrap: wrap;
}

.auto-line-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.auto-line-icon i {
    width: 18px;
    height: 18px;
}

.auto-line-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.auto-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
}

.auto-info i {
    width: 15px;
    height: 15px;
}

.auto-info:hover {
    color: hsl(var(--foreground));
}

.auto-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-width: 70vw;
    padding: 10px 12px;
    background: hsl(var(--popover));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 9px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 30;
}

.auto-info:hover .auto-tip,
.auto-info.show .auto-tip {
    opacity: 1;
    transform: translateY(0);
}

/* Info tooltips inside a form field open on click/tap only — never on hover —
   so brushing the icon on the way to the input below doesn't pop the tooltip
   over the field. Section-header tooltips keep their hover behaviour. */
.auto-field .auto-info:hover .auto-tip {
    opacity: 0;
    transform: translateY(4px);
}

.auto-field .auto-info.show .auto-tip {
    opacity: 1;
    transform: translateY(0);
}

.auto-line-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 120px;
}

.auto-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    font-size: 11px;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.auto-tag-more {
    background: hsl(var(--primary) / 0.12);
    border-color: transparent;
    color: hsl(var(--primary));
}

.auto-tag-muted {
    background: none;
    border-color: transparent;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.auto-next {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.10);
    color: hsl(var(--primary));
    font-size: 11px;
    font-weight: 600;
}

.auto-next[hidden] {
    display: none;
}

.auto-line-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.auto-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 120ms ease;
}

.auto-chip:hover {
    color: hsl(var(--foreground));
    border-color: hsl(var(--primary));
}

.auto-chip.open {
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.auto-chip i {
    width: 14px;
    height: 14px;
}

.auto-runnow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auto-runnow i {
    width: 14px;
    height: 14px;
}

.auto-runnow:not(:disabled):hover {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.auto-runnow:disabled {
    opacity: 0.7;
    cursor: default;
}

.auto-line-detail {
    padding: 16px 18px;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--secondary) / 0.4);
}

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

.auto-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auto-field-wide {
    grid-column: 1 / -1;
}

.auto-field > span {
    font-size: 12px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.auto-field input {
    width: 100%;
}

.auto-field textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 84px;
    padding: 10px 12px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--input, var(--background)));
    color: inherit;
}

.auto-field > span .auto-info {
    vertical-align: middle;
    margin-left: 4px;
}

.auto-detail-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.auto-detail-foot .status {
    margin: 0;
    flex: 1;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.kpi-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: hsl(var(--foreground));
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding-top: 10px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.bar-col .bar {
    width: 70%;
    max-width: 38px;
    min-height: 2px;
    background: hsl(var(--primary));
    border-radius: 4px 4px 0 0;
    transition: height 200ms ease;
}

.bar-label {
    font-size: 9.5px;
    color: hsl(var(--muted-foreground));
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ln-chart { display: block; max-width: 100%; }
.ln-line {
    fill: none;
    stroke: hsl(var(--primary));
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.ln-area { fill: hsl(var(--primary)); opacity: 0.12; stroke: none; }
.ln-dot { fill: hsl(var(--primary)); cursor: pointer; transition: r 120ms ease; }
.ln-dot:hover { r: 4.5; }
.ln-grid { stroke: hsl(var(--muted-foreground)); opacity: 0.18; stroke-width: 1; }
.ln-lbl { font-size: 9.5px; fill: hsl(var(--muted-foreground)); }

.kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: hsl(var(--muted) / 0.5);
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    font-size: 12px;
    color: hsl(var(--foreground));
}

.kw-chip b {
    font-size: 11px;
    color: hsl(var(--primary));
}

.history-card {
    max-width: 960px;
    width: 94%;
    padding: 20px 24px 24px;
}

.history-body {
    max-height: 64vh;
    overflow: auto;
    margin-top: 14px;
}

.history-table {
    width: 100%;
    table-layout: auto;
}

.history-table .history-reason {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
}

.history-table .history-date {
    white-space: nowrap;
}

.profile-empty-hint {
    font-size: 12.5px;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.profile-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: hsl(var(--foreground));
    white-space: pre-line;
}

.analysis-output {
    font-size: 13px;
    line-height: 1.6;
    color: hsl(var(--foreground));
}

/* ═══════════════════════════════════════════════════════════
   LANDING — PINNED SCROLL STAGE (fixed video, sliding panels)
   Scoped to .lp-glass so the dashboard/admin theme is untouched.
   ═══════════════════════════════════════════════════════════ */

.lp-glass {
    --lp-ink: 220 14% 96%;
    --lp-ink-muted: 220 9% 72%;
    --lp-surface: 0 0% 100%;
    color: hsl(var(--lp-ink));
    background: hsl(220 14% 6%);
}

/* native scroll is disabled — a JS controller snaps between panels */
html:has(.lp-body.lp-glass),
.lp-body.lp-glass {
    height: 100%;
    overflow: hidden;
}

/* full-viewport wrapper + pinned stage; panels slide within, video stays fixed */
.lp-scroll {
    position: fixed;
    inset: 0;
}
.lp-stage {
    position: fixed;
    inset: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}
.lp-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100%;
    opacity: 0;
}
.lp-panel:first-child {
    top: 0;
    opacity: 1;
}

/* video fills the viewport, plays in a loop behind everything */
.lp-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* top bar — floating, full width, content left + right */
.lp-glass .lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 20px 28px;
}
.lp-glass .lp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* brand — single italic "Naukar" wordmark = the logo, white pill */
.lp-glass .lp-brand {
    display: inline-flex;
    align-items: center;
    font-style: italic;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: hsl(220 18% 12%);
    background: hsl(var(--lp-surface) / 0.95);
    border: 1px solid hsl(var(--lp-surface));
    border-radius: 999px !important;
    padding: 8px 20px;
    box-shadow: 0 8px 28px hsl(220 30% 3% / 0.35);
    text-decoration: none;
}
.lp-glass .lp-brand:hover {
    text-decoration: none;
}

/* actions */
.lp-glass .lp-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* buttons — soft rounded glass */
.lp-glass .btn {
    border-radius: 999px !important;
    padding: 11px 22px;
    font-size: 14px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}
.lp-glass .btn:hover {
    transform: translateY(-1px);
}

/* Get started — solid white */
.lp-glass .btn-primary {
    background: hsl(var(--lp-surface) / 0.95);
    border: 1px solid hsl(var(--lp-surface));
    color: hsl(220 18% 12%);
    box-shadow: 0 8px 28px hsl(220 30% 3% / 0.35);
}
.lp-glass .btn-primary:hover {
    background: hsl(var(--lp-surface));
}

/* Sign in — frosted glassmorphism */
.lp-glass .btn-ghost {
    background: hsl(var(--lp-surface) / 0.08);
    border: 1px solid hsl(var(--lp-surface) / 0.18);
    color: hsl(var(--lp-ink));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: inset 0 1px 0 hsl(var(--lp-surface) / 0.15);
}
.lp-glass .btn-ghost:hover {
    background: hsl(var(--lp-surface) / 0.14);
    border-color: hsl(var(--lp-surface) / 0.32);
    color: hsl(var(--lp-ink));
}

@media (max-width: 640px) {
    .lp-glass .lp-nav {
        padding: 14px 16px;
    }
    .lp-glass .lp-brand-text {
        font-size: 18px;
    }
    .lp-glass .btn {
        padding: 10px 16px;
    }
}

/* left-side hero copy — center stays clear, right stays empty */
.lp-glass .lp-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 36vw;
    padding: 0 28px 0 56px;
    pointer-events: none;
}
.lp-glass .lp-left-title {
    font-weight: 700;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 24px hsl(195 50% 6% / 0.55);
}
.lp-glass .lp-left-title em {
    font-style: italic;
    font-weight: 500;
    color: hsl(0 0% 100% / 0.92);
}
.lp-glass .lp-left-sub {
    margin-top: 18px;
    max-width: 30ch;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    color: hsl(0 0% 100% / 0.88);
    text-shadow: 0 1px 16px hsl(195 50% 6% / 0.6);
}

/* right-side request-to-join — clean, transparent, video shows through */
.lp-glass .lp-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 5;
    width: min(34vw, 420px);
    padding: 0 56px 0 28px;
    text-align: right;
}
.lp-glass .lp-right-title {
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: -0.01em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 20px hsl(195 50% 6% / 0.55);
}
.lp-glass .lp-right-title em {
    font-style: italic;
    font-weight: 500;
}
.lp-glass .lp-right-note {
    margin-top: 12px;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.55;
    color: hsl(0 0% 100% / 0.82);
    text-shadow: 0 1px 14px hsl(195 50% 6% / 0.6);
}
.lp-glass .lp-right-note em {
    font-style: italic;
    font-weight: 600;
    color: hsl(0 0% 100% / 0.95);
}
.lp-glass .lp-request {
    margin-top: 26px;
}
.lp-glass .lp-request-input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid hsl(0 0% 100% / 0.32) !important;
    border-radius: 0 !important;
    padding: 10px 2px !important;
    font-size: 17px;
    text-align: right;
    color: hsl(0 0% 100%) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}
.lp-glass .lp-request-input::placeholder {
    color: hsl(0 0% 100% / 0.5);
    font-style: italic;
}
.lp-glass .lp-request-input:focus {
    outline: none !important;
    border-bottom-color: hsl(0 0% 100% / 0.85) !important;
    box-shadow: none !important;
}
/* kill Chrome's white autofill background; keep field transparent + white text */
.lp-glass .lp-request-input:-webkit-autofill,
.lp-glass .lp-request-input:-webkit-autofill:hover,
.lp-glass .lp-request-input:-webkit-autofill:focus,
.lp-glass .lp-request-input:-webkit-autofill:active {
    -webkit-text-fill-color: hsl(0 0% 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    caret-color: hsl(0 0% 100%);
    transition:
        background-color 600000s 0s,
        color 600000s 0s;
}
.lp-glass .lp-request-foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.lp-glass .lp-request-msg {
    font-size: 13px;
    font-style: italic;
    color: hsl(0 0% 100% / 0.85);
    text-shadow: 0 1px 12px hsl(195 50% 6% / 0.7);
}
.lp-glass .lp-request-msg.is-error {
    color: hsl(6 80% 78%);
    font-style: normal;
}
.lp-glass .lp-request-msg.is-success {
    color: hsl(150 55% 80%);
    font-style: normal;
}
.lp-glass .lp-request-btn {
    padding: 10px 26px;
}
.lp-glass .lp-request-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

@media (max-width: 860px) {
    .lp-glass .lp-left {
        max-width: 88vw;
        padding: 0 24px;
        text-align: center;
        left: 50%;
        top: 30%;
        transform: translate(-50%, -50%);
    }
    .lp-glass .lp-left-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .lp-glass .lp-right {
        width: min(88vw, 460px);
        padding: 0 24px;
        right: auto;
        left: 50%;
        top: 74%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    .lp-glass .lp-request-input,
    .lp-glass .lp-request-foot {
        text-align: center;
    }
    .lp-glass .lp-request-foot {
        justify-content: center;
    }
}

/* scroll cue — fades out as the user scrolls into the cards */
.lp-glass .lp-scrollcue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 4;
    pointer-events: none;
}
.lp-glass .lp-scrollcue-label {
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: hsl(0 0% 100% / 0.7);
}
.lp-glass .lp-scrollcue-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(hsl(0 0% 100% / 0.7), hsl(0 0% 100% / 0));
    animation: lp-cue 1.8s ease-in-out infinite;
    transform-origin: top;
}
@keyframes lp-cue {
    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* cards panel — "what it does" */
.lp-glass .lp-panel-cards {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-glass .lp-cards-wrap {
    width: min(1100px, 90vw);
    padding: 0 24px;
}
.lp-glass .lp-cards-title {
    text-align: center;
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 44px);
    letter-spacing: -0.02em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 24px hsl(195 50% 6% / 0.55);
    margin-bottom: clamp(24px, 4vh, 48px);
}
.lp-glass .lp-cards-title em {
    font-style: italic;
    font-weight: 500;
}
.lp-glass .lp-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.lp-glass .lp-card {
    background: hsl(var(--lp-surface) / 0.08);
    border: 1px solid hsl(var(--lp-surface) / 0.18);
    border-radius: 20px !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
        0 24px 60px hsl(220 30% 3% / 0.4),
        inset 0 1px 0 hsl(var(--lp-surface) / 0.15);
    padding: 26px 22px;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}
.lp-glass .lp-card:hover {
    transform: translateY(-6px);
    background: hsl(var(--lp-surface) / 0.14);
    border-color: hsl(var(--lp-surface) / 0.32);
}
.lp-glass .lp-card-kicker {
    display: inline-block;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: hsl(0 0% 100% / 0.6);
    margin-bottom: 14px;
}
.lp-glass .lp-card-title {
    font-weight: 700;
    font-size: 19px;
    color: hsl(0 0% 100%);
    margin-bottom: 10px;
}
.lp-glass .lp-card-title em {
    font-style: italic;
    font-weight: 500;
    color: hsl(0 0% 100% / 0.92);
}
.lp-glass .lp-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: hsl(0 0% 100% / 0.82);
}

@media (max-width: 980px) {
    .lp-glass .lp-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .lp-glass .lp-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lp-glass .lp-card {
        padding: 18px;
    }
}

/* panel 3 — how it works (left timeline) + why it feels human (bottom-right) */
.lp-glass .lp-how {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 44vw;
    padding: clamp(110px, 15vh, 160px) 28px 0 56px;
}
.lp-glass .lp-how-title {
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 48px);
    letter-spacing: -0.02em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 24px hsl(195 50% 6% / 0.55);
    margin-bottom: clamp(22px, 3.5vh, 40px);
}
.lp-glass .lp-how-title em {
    font-style: italic;
    font-weight: 500;
}

.lp-glass .lp-steps {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.6vh, 28px);
}
/* connecting line running through the number nodes */
.lp-glass .lp-steps::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: hsl(0 0% 100% / 0.28);
}
.lp-glass .lp-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
    background: none;
    border: none;
}
.lp-glass .lp-step-n {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 999px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-size: 12px;
    color: hsl(0 0% 100% / 0.9);
    background: hsl(220 25% 8% / 0.55);
    border: 1px solid hsl(0 0% 100% / 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}
.lp-glass .lp-step-title {
    font-weight: 700;
    font-size: clamp(16px, 1.4vw, 19px);
    color: hsl(0 0% 100%);
    text-shadow: 0 1px 14px hsl(195 50% 6% / 0.55);
    padding-top: 6px;
}
.lp-glass .lp-step-text {
    margin-top: 3px;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.55;
    color: hsl(0 0% 100% / 0.82);
    text-shadow: 0 1px 12px hsl(195 50% 6% / 0.6);
}

/* why it feels human — plain hero-style text, bottom-right, larger */
.lp-glass .lp-human {
    position: absolute;
    right: 56px;
    bottom: clamp(96px, 13vh, 150px);
    width: min(42vw, 560px);
    text-align: right;
}
.lp-glass .lp-human-title {
    font-weight: 700;
    font-size: clamp(32px, 2.2vw, 54px);
    letter-spacing: -0.02em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 24px hsl(195 50% 6% / 0.55);
}
.lp-glass .lp-human-title em {
    font-style: italic;
    font-weight: 500;
    color: hsl(0 0% 100% / 0.92);
}
.lp-glass .lp-human-text {
    margin-top: 16px;
    margin-left: auto;
    max-width: 46ch;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.55;
    color: hsl(0 0% 100% / 0.85);
    text-shadow: 0 1px 16px hsl(195 50% 6% / 0.6);
}

@media (max-width: 860px) {
    .lp-glass .lp-how {
        top: 0;
        left: 0;
        max-width: 100vw;
        padding: clamp(96px, 14vh, 130px) 24px 0;
        transform: none;
    }
    .lp-glass .lp-human {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 6%;
        width: min(88vw, 520px);
        text-align: center;
    }
    .lp-glass .lp-human-text {
        margin-left: auto;
        margin-right: auto;
    }
    .lp-glass .lp-rest {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(88vw, 520px);
        padding: 0 24px;
        text-align: center;
    }
    .lp-glass .lp-rest-text {
        margin-left: auto;
        margin-right: auto;
    }
}

/* panel 4 — a quiet, personal close (right side, keeps center clear) */
.lp-glass .lp-rest {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: min(40vw, 520px);
    padding: 0 56px 0 28px;
    text-align: right;
}
.lp-glass .lp-rest-kicker {
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(0 0% 100% / 0.6);
    text-shadow: 0 1px 12px hsl(195 50% 6% / 0.6);
}
.lp-glass .lp-rest-title {
    margin-top: 16px;
    font-weight: 700;
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: hsl(0 0% 100%);
    text-shadow: 0 2px 28px hsl(195 50% 6% / 0.6);
}
.lp-glass .lp-rest-title em {
    font-style: italic;
    font-weight: 500;
    color: hsl(0 0% 100% / 0.78);
}
.lp-glass .lp-rest-text {
    margin: 20px 0 0 auto;
    max-width: 44ch;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.6;
    color: hsl(0 0% 100% / 0.85);
    text-shadow: 0 1px 16px hsl(195 50% 6% / 0.65);
}
.lp-glass .lp-rest-cta {
    margin-top: 30px;
}
/* ═══════════════════════════════════════════════════════════
   Dotted-grid + liquid-glass landing shell
   ═══════════════════════════════════════════════════════════ */
.dot-stage {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: hsl(var(--background));
}

.dot-stage__dots {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image: radial-gradient(
        hsl(var(--foreground) / 0.18) 1px,
        transparent 1px
    );
}

[data-theme="dark"] .dot-stage__dots {
    background-image: radial-gradient(
        hsl(var(--foreground) / 0.22) 1px,
        transparent 1px
    );
}

.dot-stage__fade {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: hsl(var(--background));
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        transparent 20%,
        black
    );
    mask-image: radial-gradient(ellipse at center, transparent 20%, black);
}

.glass-card {
    position: relative;
    z-index: 20;
    padding: 48px 56px;
    text-align: center;
    background: hsl(var(--card) / 0.45);
    border: 1px solid hsl(var(--border) / 0.6);
    box-shadow: 0 8px 40px hsl(var(--foreground) / 0.08);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.glass-card__welcome {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
}

.glass-card__name {
    color: hsl(var(--foreground));
}

.glass-card__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    background: linear-gradient(
        to bottom,
        hsl(var(--foreground)),
        hsl(var(--muted-foreground))
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-logout {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
}

@media (max-width: 600px) {
    .glass-card {
        padding: 36px 28px;
    }
    .glass-card__title {
        font-size: 32px;
    }
}
/* ═══════════════════════════════════════════════════════════
   Gradient + frosted-glass + white-panel shell (admin / dashboard)
   Fixed pastel gradient, theme-independent. Scoped under .gx-*
   ═══════════════════════════════════════════════════════════ */
.gx-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    padding: 0;
    background: #ece7f4;
}

/* Unified frosted-glass surface holding both sidebar + panel (no gap) */
.gx-shell {
    position: relative;
    height: 100%;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 48px rgba(80, 70, 120, 0.18);
}

.gx-stage
    *:not(.gx-brand-pill):not(.gx-badge):not(.gx-live-dot):not(.gx-icon-btn) {
    border-radius: 4px;
}

/* ── Sidebar: animated cloud-mesh gradient under a frosted overlay ─ */
.gx-sidebar {
    position: relative;
    z-index: 2;
    flex: 0 0 232px;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 4px 0 0 4px;
    background:
        radial-gradient(1100px 800px at 12% 6%, #c9b8f0 0%, transparent 55%),
        radial-gradient(1000px 760px at 92% 18%, #b7e0c8 0%, transparent 52%),
        radial-gradient(1200px 820px at 78% 96%, #f2d3bd 0%, transparent 55%),
        radial-gradient(900px 700px at 22% 92%, #cfe0f0 0%, transparent 50%),
        linear-gradient(135deg, #d7c6ef 0%, #c3e2d2 45%, #f3d8c4 100%);
}

/* Floating clouds: oversized drifting radial blobs */
.gx-sidebar::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -2;
    background:
        radial-gradient(
            closest-side at 30% 30%,
            rgba(180, 150, 240, 0.85) 0%,
            transparent 70%
        ),
        radial-gradient(
            closest-side at 70% 40%,
            rgba(150, 220, 180, 0.8) 0%,
            transparent 70%
        ),
        radial-gradient(
            closest-side at 45% 75%,
            rgba(245, 200, 170, 0.85) 0%,
            transparent 70%
        ),
        radial-gradient(
            closest-side at 80% 80%,
            rgba(170, 200, 240, 0.8) 0%,
            transparent 70%
        );
    background-repeat: no-repeat;
    background-size:
        70% 70%,
        65% 65%,
        75% 75%,
        60% 60%;
    filter: blur(26px);
    animation: gx-clouds 26s ease-in-out infinite alternate;
}

/* Frosted overlay sitting above the mesh, below the content */
.gx-sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}

@keyframes gx-clouds {
    0% {
        background-position:
            0% 0%,
            100% 0%,
            0% 100%,
            100% 100%;
    }
    50% {
        background-position:
            30% 20%,
            60% 30%,
            40% 70%,
            70% 60%;
    }
    100% {
        background-position:
            60% 40%,
            20% 60%,
            80% 30%,
            30% 80%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gx-sidebar::before {
        animation: none;
    }
}

.gx-brand {
    padding: 0px 8px 5px;
}

.gx-brand-pill {
    display: inline-flex;
    align-items: center;
    font-style: italic;
    font-weight: 800;
    font-size: 35px;
    letter-spacing: -0.01em;
    color: #1f1b30;
    background: transparent;
    border: none;
    padding: 6px 6px;
    box-shadow: none;
}

.gx-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.gx-nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(42, 37, 64, 0.5);
    padding: 14px 10px 6px;
}

.gx-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 5px !important;
    font-size: 14px;
    font-weight: 500;
    color: #36304a;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background 0.15s,
        border-color 0.15s;
    background: transparent;
    width: 100%;
    text-align: left;
}

.gx-nav-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gx-nav-item.active {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(80, 70, 120, 0.12);
    color: #1f1b30;
}

.gx-nav-item .icon {
    width: 17px;
    height: 17px;
    stroke-width: 2px;
}

.gx-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #9a3b3b;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.gx-logout:hover {
    background: rgba(255, 255, 255, 0.45);
}

.gx-logout .icon {
    width: 17px;
    height: 17px;
}

/* ── White content panel ───────────────────────────────── */
.gx-panel {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gx-panel-head {
    padding: 22px 28px 16px;
    border-bottom: 1px solid #ededf2;
}

.gx-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f1b30;
}

.gx-panel-sub {
    font-size: 13px;
    color: #6b6780;
    margin-top: 3px;
}

.gx-panel-body {
    padding: 22px 28px 28px;
    overflow-y: auto;
    flex: 1;
}

.gx-tab {
    display: none;
}

.gx-tab.active {
    display: block;
}

/* ── Content primitives inside the white panel ─────────── */
.gx-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.gx-stat {
    padding: 18px 20px;
    border-radius: 16px;
    background: #f7f6fb;
    border: 1px solid #eeedf4;
}

.gx-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f1b30;
}

.gx-stat-label {
    font-size: 12px;
    color: #6b6780;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.gx-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e6e5ee;
    background: #faf9fc;
    font-size: 14px;
    color: #1f1b30;
    margin-bottom: 16px;
    outline: none;
}

.gx-search:focus {
    border-color: #b9a6e6;
    box-shadow: 0 0 0 3px rgba(124, 95, 214, 0.12);
}

.gx-table {
    width: 100%;
    border-collapse: collapse;
}

.gx-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b87a0;
    padding: 10px 12px;
    border-bottom: 1px solid #ededf2;
    font-weight: 600;
}

.gx-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #f3f2f7;
    font-size: 14px;
    color: #2c2840;
}

.gx-row {
    cursor: pointer;
    transition: background 0.12s;
}

.gx-row:hover {
    background: #faf9fc;
}

.gx-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.gx-badge-active {
    background: #e2f5ea;
    color: #2f8a5b;
}

.gx-badge-pending {
    background: #fdf0d9;
    color: #b07d1f;
}

.gx-badge-suspended,
.gx-badge-denied,
.gx-badge-expired {
    background: #fbe1e1;
    color: #b3403f;
}

.gx-empty {
    text-align: center;
    padding: 56px 20px;
    color: #8b87a0;
}

.gx-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #4a4560;
    margin: 12px 0 6px;
}

.gx-coming {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
}

.gx-coming-title {
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c5fd6, #4f9d76);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gx-coming-sub {
    font-size: 14px;
    color: #6b6780;
    margin-top: 8px;
}

.gx-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b6780;
}

.gx-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36c47e;
    box-shadow: 0 0 0 0 rgba(54, 196, 126, 0.5);
    animation: gx-pulse 2s infinite;
}

@keyframes gx-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 196, 126, 0.5);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(54, 196, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(54, 196, 126, 0);
    }
}

@media (max-width: 820px) {
    .gx-stage {
        flex-direction: column;
        padding: 10px;
    }
    .gx-sidebar {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .gx-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gx-nav-label {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   Admin user-row inline actions + edit modal
   ═══════════════════════════════════════════════════════════ */
.gx-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border: 1px solid rgba(80, 70, 120, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: #5b5470;
    cursor: pointer;
    border-radius: 8px;
    vertical-align: middle;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.gx-icon-btn:hover {
    background: #fff;
    color: #1f1b30;
    border-color: rgba(80, 70, 120, 0.3);
}

.gx-icon-btn .icon,
.gx-icon-btn svg {
    width: 15px;
    height: 15px;
}

.gx-icon-btn.gx-icon-danger:hover {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.4);
}

.gx-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(40, 34, 60, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gx-modal-backdrop.open {
    display: flex;
}

.gx-modal {
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(40, 34, 60, 0.32);
    padding: 22px 22px 18px;
    color: #1f1b30;
}

.gx-modal-head { flex: 0 0 auto; }
.gx-modal-foot { flex: 0 0 auto; }

.gx-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    margin: 0 -22px;
    padding: 0 22px;
}

.gx-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gx-modal-head h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.gx-modal-x {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #7a7390;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gx-modal-x:hover {
    background: rgba(80, 70, 120, 0.1);
}

.gx-modal-x svg {
    width: 18px;
    height: 18px;
}

.gx-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #7a7390;
    margin: 14px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gx-field-label:first-child {
    margin-top: 0;
}

.gx-select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(80, 70, 120, 0.2);
    background: #fafafc;
    font-size: 14px;
    color: #1f1b30;
    font-family: inherit;
}

.gx-modal-note {
    font-size: 14px;
    color: #36304a;
    line-height: 1.5;
}

.gx-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.gx-btn-ghost {
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(80, 70, 120, 0.2);
    background: #fff;
    color: #36304a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.gx-btn-ghost:hover {
    background: #f3f1f8;
}

.gx-btn-primary {
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: #1f1b30;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.gx-btn-primary:hover {
    background: #322b4d;
}

.gx-btn-primary.gx-btn-danger {
    background: #c0392b;
}

.gx-btn-primary.gx-btn-danger:hover {
    background: #a93226;
}
/* ═══════════════════════════════════════════════════════════
   Dashboard "My Accounts" sidebar (per-provider account lists)
   ═══════════════════════════════════════════════════════════ */
.gxacc-prov {
    display: flex;
    flex-direction: column;
}

.gxacc-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 5px !important;
    border: 1px solid transparent;
    transition:
        background 0.15s,
        border-color 0.15s;
}

.gxacc-head:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gxacc-prov.open > .gxacc-head {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(80, 70, 120, 0.12);
}

.gxacc-prov.open > .gxacc-head .gxacc-toggle {
    color: #1f1b30;
}

.gxacc-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5b5470;
    cursor: pointer;
}

.gxacc-toggle:hover {
    color: #1f1b30;
}

.gxacc-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #8b87a0;
    transition: transform 150ms ease;
}

.gxacc-prov.open .gxacc-chevron {
    transform: rotate(90deg);
}

.gxacc-disabled .gxacc-toggle {
    color: #a09cb3;
    cursor: default;
}

.gxacc-list {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin: 5px 4px 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.26);
    border-radius: 10px !important;
}

.gxacc-prov.open .gxacc-list {
    display: flex;
}

.gxacc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 9px;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition:
        background 0.13s ease,
        box-shadow 0.13s ease;
}

.gxacc-row:hover {
    background: rgba(255, 255, 255, 0.82);
}

.gxacc-row.active {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 9px rgba(80, 70, 120, 0.14);
}

.gxacc-ava {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7c5fd6, #4f9d76);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.gxacc-link {
    flex: 1;
    min-width: 0;
    text-align: left;
    background: none;
    border: none;
    color: #4a4560;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gxacc-link:hover {
    color: #1f1b30;
}

.gxacc-row.active .gxacc-link {
    color: #1f1b30;
    font-weight: 600;
}

.gxacc-empty {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    color: #8b87a0;
}

.gxacc-frame {
    display: block;
    width: 100%;
    border: none;
    height: 100vh;
    background: #fff;
}

/* Embedded account-detail (loaded inside the dashboard iframe) */
.embed .app-sidebar,
.embed .mobile-menu-btn,
.embed .sidebar-overlay {
    display: none !important;
}

.embed .app-content {
    margin-left: 0 !important;
}

/* Bare sidebar icon buttons (add / delete) — no chrome, bg on hover only */
.gx-icon-btn.gxacc-btn {
    width: 24px;
    height: 24px;
    margin-left: 0;
    border: none;
    background: transparent;
    color: #8b87a0;
}

.gx-icon-btn.gxacc-btn:hover {
    border: none;
    background: rgba(255, 255, 255, 0.55);
    color: #1f1b30;
}

.gx-icon-btn.gxacc-btn.gx-icon-danger:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   Provider accounts view (main panel)
   ═══════════════════════════════════════════════════════════ */
.gxac-soon {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.55);
    color: #6b6780;
}

.gxac-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gxac-title {
    font-size: 22px;
    font-weight: 700;
    color: #2a2540;
}

.gxac-sub {
    font-size: 13px;
    color: #6b6780;
    margin-top: 4px;
}

.gxac-loading {
    padding: 40px 0;
    text-align: center;
    color: #8b87a0;
    font-size: 14px;
}

.gxac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gxac-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(80, 70, 120, 0.12);
    border-radius: 14px !important;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(80, 70, 120, 0.06);
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.gxac-card:hover {
    box-shadow: 0 6px 18px rgba(80, 70, 120, 0.14);
    transform: translateY(-2px);
}

.gxac-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gxac-card-ava {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7c5fd6, #4f9d76);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.gxac-card-email {
    font-size: 14px;
    font-weight: 600;
    color: #2a2540;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gxac-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(80, 70, 120, 0.1);
    padding-top: 14px;
}

.gxac-empty {
    text-align: center;
    padding: 56px 20px;
    color: #6b6780;
}

.gxac-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #4a4560;
    margin-bottom: 6px;
}

.gxac-empty-sub {
    font-size: 13px;
    color: #8b87a0;
}

/* ═══════════════════════════════════════════════════════════
   Account profile — premium polish + edit-in-place
   ═══════════════════════════════════════════════════════════ */
/* Italic section + header titles */
.section-head h2,
.acct-header-text h1 {
    font-style: italic;
}

/* Long unbroken runs (e.g. dotted lines in a summary) must wrap, not overflow */
.profile-text,
.profile-item-desc {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Header experience pill */
.acct-exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    color: hsl(var(--foreground));
}

.acct-exp .lucide {
    width: 13px;
    height: 13px;
}

/* Section-head can hold an edit action on the right */
.section-edit-btn,
.item-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    transition:
        color 120ms ease,
        background 120ms ease,
        border-color 120ms ease;
}

.section-edit-btn:hover,
.item-edit-btn:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--secondary));
    border-color: hsl(var(--border));
}

.section-edit-btn .lucide,
.item-edit-btn .lucide {
    width: 13px;
    height: 13px;
}

.profile-item {
    position: relative;
}

.profile-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.acct-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.project-card:last-child {
    margin-bottom: 0;
}

/* Edit-in-place forms */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.edit-field-row .edit-field {
    flex: 1;
    min-width: 140px;
}

.edit-field label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.edit-input,
.edit-textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 13px;
    border-radius: 8px;
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.edit-input:focus,
.edit-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.edit-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.edit-hint {
    font-size: 11px;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 2px;
}

.edit-actions .edit-status {
    margin-right: auto;
    font-size: 12px;
}

.edit-chip-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
}

.edit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    font-size: 12px;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
}

.edit-chip button {
    display: inline-flex;
    border: none;
    background: none;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    padding: 0;
    line-height: 1;
}

.edit-chip button:hover {
    color: hsl(var(--destructive));
}

.edit-chip-add {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12px;
    min-width: 90px;
    color: hsl(var(--foreground));
}

.edit-chip-add:focus {
    outline: none;
}

/* ── Resume analyzer ── */
#analyze-top-actions { display: none; gap: 8px; align-items: center; }
.resume-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  box-sizing: border-box;
  height: 30px;
  padding: 0 13px;
  font-size: 13px;
  text-decoration: none;
  color: hsl(var(--card-foreground));
  background: hsl(var(--accent) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.resume-preview:hover { border-color: hsl(var(--primary)); background: hsl(var(--accent)); }
.resume-preview i { width: 16px; height: 16px; }
.resume-preview-name { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-preview-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: hsl(var(--primary));
}
.resume-preview-open i { width: 13px; height: 13px; }
@keyframes naukar-spin { to { transform: rotate(360deg); } }
.spin { animation: naukar-spin .8s linear infinite; }
.source-opt.loading { pointer-events: none; }
.source-opt.loading i { display: none; }
.source-opt.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: naukar-spin .8s linear infinite;
}
.source-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.source-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
}
.source-opt i { width: 15px; height: 15px; }
.source-opt.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--accent) / 0.4);
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone.drag {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
}
.dropzone i { width: 26px; height: 26px; margin-bottom: 4px; }
.dropzone p { margin: 0; font-size: 13px; }
.dropzone .dz-link { color: hsl(var(--primary)); text-decoration: underline; }
.dropzone .dz-file { font-size: 12px; font-weight: 600; color: hsl(var(--card-foreground)); }
.dropzone .dz-hint { font-size: 11px; opacity: .8; }

.source-split {
  display: flex;
  align-items: stretch;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}
.source-pane {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px;
  cursor: pointer;
  transition: background .15s;
}
.source-pane + .source-pane { border-left: 2px dashed hsl(var(--border)); }
.source-pane.active { background: hsl(var(--accent) / 0.5); }
.source-pane-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: hsl(var(--card-foreground));
}
.source-pane-head i { width: 16px; height: 16px; }
.source-pane-hint { font-size: 12px; color: hsl(var(--muted-foreground)); margin: 0; }
.source-pane .resume-preview { margin-top: 0; }
.source-pane .dropzone { padding: 18px 12px; }
.analyze-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.analyze-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.analyze-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.analyze-chips .resume-preview { margin-top: 0; }

/* Radix (Iconify) icons in the resume analyzer */
#panel-resume iconify-icon,
#ats-modal iconify-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
#panel-resume h2 iconify-icon,
#ats-modal h2 iconify-icon { font-size: 18px; }
#panel-resume .dropzone iconify-icon { font-size: 24px; margin-bottom: 2px; }
.re-tool-group .btn-icon { border-radius: 8px; transition: color .15s, border-color .15s, background .15s; }
.re-tool-group .btn-icon:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary)); }

.markdown-body { font-size: 14px; line-height: 1.6; color: hsl(var(--card-foreground)); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 14px 0 6px; line-height: 1.3; }
.markdown-body h1 { font-size: 20px; }
.markdown-body h2 { font-size: 17px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body p { margin: 8px 0; }
.markdown-body ul, .markdown-body ol { margin: 8px 0; padding-left: 22px; }
.markdown-body li { margin: 3px 0; }
.markdown-body code {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  background: hsl(var(--accent));
  padding: 1px 5px;
  border-radius: 4px;
}
.markdown-body pre {
  background: hsl(var(--accent));
  padding: 12px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.markdown-body pre code { background: none; padding: 0; }
.markdown-body strong { color: hsl(var(--card-foreground)); }
.markdown-body blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.markdown-body table { border-collapse: collapse; margin: 10px 0; }
.markdown-body th, .markdown-body td { border: 1px solid hsl(var(--border)); padding: 6px 10px; }

/* ── Polished resume editor ── */
.resume-editor-modal {
  max-width: 920px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.re-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.re-toolbar .re-status {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}
.re-toolbar .re-status.error { color: hsl(0 72% 51%); }
.re-stage {
  position: relative;
}
.re-stage iframe {
  width: 100%;
  height: 0;
  border: 0;
  background: transparent;
  display: block;
}
.re-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}
.re-ai {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.re-ai input {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
}
.re-ai input:focus { outline: none; border-color: hsl(var(--primary)); }

/* ── ATS score result ── */
.ats-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--accent) / 0.4);
  border-radius: var(--radius);
}
.ats-score {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.ats-score small { font-size: 11px; font-weight: 500; opacity: .85; }
.ats-score.good { background: hsl(142 70% 38%); }
.ats-score.mid { background: hsl(38 92% 45%); }
.ats-score.low { background: hsl(0 72% 51%); }
.ats-sub .ats-title { font-weight: 600; font-size: 14px; }
.ats-sub .meta { font-size: 12px; color: hsl(var(--muted-foreground)); margin: 2px 0 4px; }
.ats-sub p { font-size: 13px; }
.ats-checks { list-style: none; margin: 14px 0 0; padding: 0; }
.ats-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid hsl(var(--border));
}
.ats-check .ats-ic {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.ats-check.pass .ats-ic { background: hsl(142 70% 38%); }
.ats-check.warn .ats-ic { background: hsl(38 92% 45%); }
.ats-check.fail .ats-ic { background: hsl(0 72% 51%); }
.ats-sugg { margin-top: 14px; }
.ats-sugg .ats-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ats-sugg ul { margin: 0; padding-left: 20px; font-size: 13px; }
.ats-sugg li { margin: 3px 0; }
.re-toolbar .re-status { margin-left: auto; text-align: right; }
.re-tool-group { display: inline-flex; gap: 6px; }
.btn-icon { width: 28px; padding: 0; flex: 0 0 auto; }
.btn-icon i { width: 15px; height: 15px; }
.ats-modal { max-width: 720px; }
.ats-modal .modal-body { padding: 18px 22px 22px; }
.polish-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}
.polish-inline-head h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.icon-spin { animation: polish-spin 0.8s linear infinite; }
@keyframes polish-spin { to { transform: rotate(360deg); } }

/* ───────────────────────────────────────────────────────────
   Dark variant for the gradient-glass shell (.gx-*)
   Activated by [data-theme="dark"] on <html>; higher specificity
   than the base .gx-* rules so it overrides them.
   ─────────────────────────────────────────────────────────── */
[data-theme="dark"] .gx-stage {
    background:
        radial-gradient(1100px 800px at 12% 6%, #2a2350 0%, transparent 55%),
        radial-gradient(1000px 760px at 92% 18%, #15392c 0%, transparent 52%),
        radial-gradient(1200px 820px at 78% 96%, #3a2a1d 0%, transparent 55%),
        radial-gradient(900px 700px at 22% 92%, #1a2740 0%, transparent 50%),
        linear-gradient(135deg, #15131f 0%, #111815 45%, #1b150e 100%);
}

[data-theme="dark"] .gx-shell {
    background: rgba(20, 18, 30, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gx-panel {
    background:
        radial-gradient(1000px 700px at 100% 0%, rgba(124, 95, 214, 0.12) 0%, transparent 55%),
        radial-gradient(900px 650px at 0% 100%, rgba(79, 157, 118, 0.10) 0%, transparent 55%),
        linear-gradient(160deg, #17151f 0%, #131119 55%, #15120e 100%);
    color: #e6e4ee;
}

/* Embedded account-detail iframe shares the same premium tone so the
   main analytics surface no longer reads flat against the sidebar. */
[data-theme="dark"] .app-shell {
    background:
        radial-gradient(1000px 700px at 100% 0%, rgba(124, 95, 214, 0.12) 0%, transparent 55%),
        radial-gradient(900px 650px at 0% 100%, rgba(79, 157, 118, 0.10) 0%, transparent 55%),
        linear-gradient(160deg, #17151f 0%, #131119 55%, #15120e 100%);
}

/* Glassmorphism panels for the main analytics/profile surfaces; they
   frost over the gradient .app-shell instead of reading as solid blocks. */
[data-theme="dark"] .card,
[data-theme="dark"] .kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .gx-panel-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gx-panel-title {
    color: #f3f1f9;
}

[data-theme="dark"] .gx-panel-sub,
[data-theme="dark"] .gx-coming-sub,
[data-theme="dark"] .gx-empty {
    color: #9a96ad;
}

[data-theme="dark"] .gx-nav-label {
    color: #8b87a0;
}

[data-theme="dark"] .gx-nav-item {
    color: #cfccde;
}

[data-theme="dark"] .gx-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gx-nav-item.active {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

[data-theme="dark"] .gx-brand-pill {
    color: #ffffff;
}

[data-theme="dark"] .gx-table th {
    color: #9a96ad;
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .gx-table td {
    color: #d8d5e4;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gx-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .gx-empty-title {
    color: #cfccde;
}

[data-theme="dark"] .gxacc-frame {
    background: transparent;
}

/* Floating global theme toggle used by the shell pages */
.gx-theme-toggle {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 50;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #3a3550;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, background 0.2s ease;
}

.gx-theme-toggle:hover {
    transform: translateY(-1px);
}

[data-theme="dark"] .gx-theme-toggle {
    background: rgba(40, 38, 54, 0.7);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e6e4ee;
}

/* Dark overrides for the shell's account list, modals, buttons, cards */
[data-theme="dark"] .gxacc-head:hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .gxacc-prov.open > .gxacc-head {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
[data-theme="dark"] .gxacc-prov.open > .gxacc-head .gxacc-toggle,
[data-theme="dark"] .gxacc-toggle:hover { color: #ffffff; }
[data-theme="dark"] .gxacc-toggle { color: #cfccde; }
[data-theme="dark"] .gxacc-chevron { color: #8b87a0; }
[data-theme="dark"] .gxacc-disabled .gxacc-toggle { color: #6f6b82; }
[data-theme="dark"] .gxacc-list { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .gxacc-row {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .gxacc-row:hover { background: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .gxacc-row.active { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
[data-theme="dark"] .gxacc-link { color: #d8d5e4; }

[data-theme="dark"] .gx-modal { background: #1a1826; color: #e6e4ee; }
[data-theme="dark"] .gx-modal-head h3 { color: #f3f1f9; }
[data-theme="dark"] .gx-field-label { color: #9a96ad; }
[data-theme="dark"] .gx-modal-note { color: #c9c5d8; }
[data-theme="dark"] .gx-select,
[data-theme="dark"] .gx-modal input,
[data-theme="dark"] .gx-modal select,
[data-theme="dark"] .gx-modal textarea {
    background: rgba(255, 255, 255, 0.05);
    color: #e6e4ee;
    border-color: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .gx-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #d8d5e4;
    border-color: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .gx-btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .gx-btn-primary {
    background: linear-gradient(135deg, #7c5fd6 0%, #4f9d76 100%);
    color: #ffffff;
}
[data-theme="dark"] .gx-btn-primary:hover {
    background: linear-gradient(135deg, #8b6ee2 0%, #5cae84 100%);
}
[data-theme="dark"] .gx-btn-primary.gx-btn-danger { background: #c0392b; }
[data-theme="dark"] .gx-btn-primary.gx-btn-danger:hover { background: #a93226; }

[data-theme="dark"] .gxac-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .gxac-card:hover { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .gxac-title,
[data-theme="dark"] .gxac-empty-title { color: #f3f1f9; }
[data-theme="dark"] .gxac-sub,
[data-theme="dark"] .gxac-card-email,
[data-theme="dark"] .gxac-empty-sub,
[data-theme="dark"] .gxac-loading { color: #9a96ad; }
[data-theme="dark"] .gxac-soon { background: rgba(255, 255, 255, 0.14); color: #d6d3e2; }


/* Dark-mode sidebar: the .gx-sidebar paints its own light cloud-mesh
   (base background + ::before blobs + ::after frosted-white overlay).
   The dark theme only restyles .gx-stage, so without these the sidebar
   stayed light while text turned light → washed-out / illegible. */
[data-theme="dark"] .gx-sidebar {
    background:
        radial-gradient(1000px 760px at 92% 18%, #15392c 0%, transparent 52%),
        radial-gradient(1200px 820px at 78% 96%, #3a2a1d 0%, transparent 55%),
        radial-gradient(900px 700px at 22% 92%, #1a2740 0%, transparent 50%),
        linear-gradient(135deg, #15131f 0%, #111815 45%, #1b150e 100%);
}

[data-theme="dark"] .gx-sidebar::before {
    background:
        radial-gradient(460px 380px at 82% 30%, rgba(38, 92, 70, 0.28) 0%, transparent 60%),
        radial-gradient(440px 360px at 30% 82%, rgba(58, 42, 29, 0.30) 0%, transparent 60%),
        radial-gradient(400px 340px at 88% 88%, rgba(26, 39, 64, 0.28) 0%, transparent 60%);
    opacity: 0.7;
}

[data-theme="dark"] .gx-sidebar::after {
    background: rgba(16, 14, 24, 0.42);
}

/* ── Indeed analytics consistency chart ── */
.an-legend { display: flex; gap: 18px; margin-bottom: 12px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.an-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.an-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.an-dot-applied { background: hsl(var(--primary)); }
.an-dot-updates { background: hsl(142, 60%, 45%); }
.an-cols { display: flex; align-items: flex-end; gap: 4px; height: 180px; width: 100%; }
.an-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 100%; }
.an-stack { display: flex; flex-direction: column; justify-content: flex-end; width: 70%; max-width: 26px; height: 100%; }
.an-bar { width: 100%; min-height: 0; transition: height 200ms ease; }
.an-bar-applied { background: hsl(var(--primary)); border-radius: 4px 4px 0 0; }
.an-bar-updates { background: hsl(142, 60%, 45%); }
.an-stack .an-bar-applied:first-child { border-radius: 4px 4px 0 0; }
.an-col-label { font-size: 9px; color: hsl(var(--muted-foreground)); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ── Update with AI ── */
.ai-card { border: 1px solid hsl(var(--primary) / 0.35); }
.ai-source-row { display: flex; gap: 10px; width: 100%; }
.ai-radio {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; cursor: pointer; white-space: nowrap;
  padding: 11px 12px; border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.4);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.ai-radio:hover { background: hsl(var(--muted) / 0.7); }
.ai-radio:has(input:checked) {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.5);
}
.ai-radio input { flex: 0 0 auto; width: auto; padding: 0; margin: 0; accent-color: hsl(var(--primary)); }
.nk-ai-pick { width: auto !important; padding: 0 !important; }
@media (max-width: 640px) { .ai-source-row { flex-direction: column; } }
.ai-diff-group { margin-bottom: 18px; }
.ai-diff-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ai-diff-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid hsl(var(--border)); }
.ai-diff-text { font-size: 13px; }
.ai-diff-removed .ai-diff-text { opacity: 0.6; text-decoration: line-through; }
.ai-diff-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ai-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-right: 4px; }
.ai-tag-new { background: hsl(142 60% 45% / 0.18); color: hsl(142 60% 32%); }
.ai-tag-edit { background: hsl(38 92% 50% / 0.2); color: hsl(38 80% 38%); }
.ai-tag-keep { background: hsl(var(--muted) / 0.6); color: hsl(var(--muted-foreground)); }
.ai-tag-remove { background: hsl(var(--destructive) / 0.16); color: hsl(var(--destructive)); }
.ai-fld { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-fld-old, .ai-fld-new { font-size: 13px; }
.ai-fld-old > div { margin-top: 4px; white-space: pre-wrap; opacity: 0.7; }
.ai-fld-new textarea { width: 100%; margin-top: 4px; min-height: 70px; }
@media (max-width: 640px) { .ai-fld { grid-template-columns: 1fr; } }