/* ── JobHunter design system ────────────────────────────────────
   Premium flat aesthetic: no gradients, no glass. Crisp 1px
   borders, restrained emerald accent, generous whitespace,
   strong type hierarchy. Light default, dark via [data-theme].  */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    color-scheme: light;
    --bg: #fafaf8;
    --surface: #ffffff;
    --surface2: #f2f2ef;
    --border: #e6e5e1;
    --border-strong: #d4d3ce;
    --ink: #191a18;
    --muted: #6d716e;
    --faint: #9b9f9c;
    --accent: #0d7a5c;
    --accent-hover: #0a6249;
    --accent-soft: #e7f2ee;
    --accent-ink: #0a5741;
    --green: #0d7a5c;
    --green-soft: #e7f2ee;
    --amber: #9a6700;
    --amber-soft: #f8efdc;
    --red: #b4231f;
    --red-soft: #f9e9e8;
    --blue: #1f5ecc;
    --blue-soft: #e9effb;
    --shadow: 0 1px 2px rgba(25, 26, 24, 0.05);
    --shadow-lg: 0 10px 30px rgba(25, 26, 24, 0.10);
    --r: 8px;
    --r-lg: 12px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101211;
    --surface: #171918;
    --surface2: #1f2220;
    --border: #282b29;
    --border-strong: #363a37;
    --ink: #e9eae7;
    --muted: #999e9a;
    --faint: #6c706d;
    --accent: #3cc493;
    --accent-hover: #55d2a5;
    --accent-soft: #16281f;
    --accent-ink: #6adcb1;
    --green: #3cc493;
    --green-soft: #16281f;
    --amber: #e3b341;
    --amber-soft: #2b2416;
    --red: #ef7a72;
    --red-soft: #2e1a18;
    --blue: #6ea8f7;
    --blue-soft: #17202e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #101211;
        --surface: #171918;
        --surface2: #1f2220;
        --border: #282b29;
        --border-strong: #363a37;
        --ink: #e9eae7;
        --muted: #999e9a;
        --faint: #6c706d;
        --accent: #3cc493;
        --accent-hover: #55d2a5;
        --accent-soft: #16281f;
        --accent-ink: #6adcb1;
        --green: #3cc493;
        --green-soft: #16281f;
        --amber: #e3b341;
        --amber-soft: #2b2416;
        --red: #ef7a72;
        --red-soft: #2e1a18;
        --blue: #6ea8f7;
        --blue-soft: #17202e;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.2s ease, color 0.2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.wrap-narrow { width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }

/* ── Type ── */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
.eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}
.micro {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ── Nav: floating pill bar ── */
.nav {
    position: sticky;
    top: 12px;
    z-index: 100;
    margin: 12px 0 4px;
    padding: 0 clamp(16px, 3vw, 48px);
    background: transparent;
    border-bottom: none;
}
.nav-inner {
    max-width: 1560px;
    margin: 0 auto;
    height: 64px;
    padding: 0 12px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 26px;
    color: var(--ink);
    letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 550;
    color: var(--muted);
    text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: var(--surface2); text-decoration: none; }
.nav-link.active { color: var(--bg); background: var(--ink); font-weight: 650; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn { border-radius: 999px; }

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.credit-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--border-strong); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--r);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #08130e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-primary { color: #08130e; }
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: 0.88; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface2); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-lg { padding: 12px 26px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 5px 12px; font-size: 14px; }
.btn-block { width: 100%; }

/* ── Cards / panels ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

.panel-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ── Forms ── */
.field { margin-bottom: 18px; }
.field > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    padding: 9px 12px;
    border-radius: var(--r);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 80px; }

.seg {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    overflow: hidden;
}
.seg button {
    padding: 8px 16px;
    background: var(--surface);
    color: var(--muted);
    border: none;
    border-right: 1px solid var(--border);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--ink); color: var(--bg); }

/* Tag editor */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    min-height: 44px;
    align-items: center;
    cursor: text;
}
.tags:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tags .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 3px 6px 3px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}
.tags .chip.core { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tags .chip button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0 3px;
}
.tags .chip button:hover { color: var(--red); }
.tags input {
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 14.5px;
    font-family: inherit;
    padding: 4px;
    flex: 1;
    min-width: 110px;
}
.tags input:focus { outline: none; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-plain { background: var(--surface2); color: var(--muted); }

/* ── Job rows ── */
.job-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.job-row:last-child { border-bottom: none; }
.job-row.applied { opacity: 0.55; }
.job-score {
    width: 48px;
    height: 48px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
.job-score.high { background: var(--green-soft); color: var(--green); }
.job-score.mid { background: var(--amber-soft); color: var(--amber); }
.job-score.low { background: var(--surface2); color: var(--muted); }
.job-title { font-size: 16.5px; font-weight: 650; }
.job-sub { font-size: 14.5px; color: var(--muted); margin-top: 1px; }
.job-reasons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.job-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ── Stat tiles ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
}
.stat .v { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
    text-align: left;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }

/* ── Paywall ── */
.paywall {
    text-align: center;
    padding: 56px 32px;
}
.paywall .lock {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}
.paywall h2 { font-size: 24px; margin-bottom: 8px; }
.paywall p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
.price-line { font-size: 16px; margin-bottom: 20px; }
.price-line strong { font-size: 24px; font-variant-numeric: tabular-nums; }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: var(--r);
    font-size: 14.5px;
    font-weight: 550;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.25s ease;
    max-width: 380px;
}
.toast.error { background: var(--red); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ── Auth pages ── */
.auth-wrap {
    min-height: calc(100vh - 61px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.auth-alt { text-align: center; font-size: 15px; color: var(--muted); margin-top: 18px; }

/* ── Landing ── */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.035em;
    max-width: 780px;
    margin: 16px auto 0;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin: 20px auto 32px;
    line-height: 1.65;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--faint); }

.band { border-top: 1px solid var(--border); padding: 72px 0; }
.band h2 { font-size: 30px; letter-spacing: -0.025em; margin-bottom: 10px; }
.band .lead { color: var(--muted); max-width: 560px; margin-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}
.step .n {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px; }
.feature {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    font-size: 15.5px;
}
.feature .tick {
    color: var(--accent);
    font-weight: 800;
    flex-shrink: 0;
}
.feature b { display: block; margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: 14.5px; }

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 36px 32px;
}
.pricing-card .amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin: 12px 0 2px;
}
.pricing-card .per { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 26px; }
.pricing-card li { padding: 7px 0; font-size: 15.5px; display: flex; gap: 10px; }
.pricing-card li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    font-size: 14.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Mock window on landing hero */
.mock {
    max-width: 720px;
    margin: 56px auto 0;
    text-align: left;
    overflow: hidden;
}
.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock .job-row { padding: 16px 20px; }

/* ── Page scaffolding ── */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 36px 0 22px;
}
.page-head h1 { font-size: 26px; }
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

.empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--muted);
}
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .job-row { grid-template-columns: 44px 1fr; }
    .job-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .hero { padding: 64px 0 48px; }
}

/* ═══ Landing page (premium) ═══════════════════════════════════ */

.nav-landing { background: transparent; }

.pill-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: var(--shadow);
}
.pill-eyebrow .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-x {
    padding: 92px 0 0;
    position: relative;
    overflow: hidden;
}
/* Dawn motif: concentric rings rising from a soft sun disc below the fold */
.hero-x::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    width: 1900px;
    height: 1900px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: repeating-radial-gradient(circle,
        transparent 0 118px, var(--border) 118px 119.5px);
    -webkit-mask-image: radial-gradient(circle, black 26%, transparent 62%);
    mask-image: radial-gradient(circle, black 26%, transparent 62%);
    pointer-events: none;
}
.hero-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 30%;
    width: 560px;
    height: 560px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(2px);
    opacity: 0.8;
    pointer-events: none;
}
.hero-x .wrap { position: relative; z-index: 1; }
.hero-inner { text-align: center; }
.hero-x h1 {
    font-size: clamp(40px, 6.6vw, 70px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 22px auto 0;
    max-width: 820px;
}
.hero-x .sub {
    font-size: 20px;
    color: var(--muted);
    max-width: 600px;
    margin: 22px auto 34px;
    line-height: 1.65;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* Product mock */
.mock-x {
    max-width: 780px;
    margin: 64px auto 0;
    text-align: left;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.mock-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-url {
    flex: 1;
    max-width: 260px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 12px;
}
.mock-title { font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.mock-sub { font-size: 14px; color: var(--muted); }
.mock-fade { opacity: 0.55; -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 96%); mask-image: linear-gradient(to bottom, black 30%, transparent 96%); }

/* Source strip */
.source-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 44px 0 56px;
}
.source-marks { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; }
.source-marks span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--faint);
}

/* Stats band */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-x { padding: 30px 24px; border-right: 1px solid var(--border); }
.stat-x:last-child { border-right: none; }
.stat-x .v { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.stat-x .k { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Bands */
.band { padding: 88px 0; border-top: 1px solid var(--border); }
.band-head { margin-bottom: 44px; }
.band-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; line-height: 1.15; }
.band-head .lead { color: var(--muted); max-width: 560px; margin-top: 12px; font-size: 17px; }

/* Steps with connector */
.steps-x { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step-x { position: relative; padding-top: 6px; }
.step-x .step-line {
    position: absolute;
    top: 24px; left: 48px; right: -28px;
    border-top: 1px dashed var(--border-strong);
}
.step-x:last-child .step-line { display: none; }
.step-x .n {
    position: relative;
    z-index: 1;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 750;
    margin-bottom: 18px;
}
.step-x h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-x p { font-size: 15.5px; color: var(--muted); max-width: 300px; }

/* Comparison table */
.compare { overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 22px; }
.compare-table th.hl, .compare-table td.hl {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 600;
}
.compare-table td:first-child { font-weight: 650; width: 190px; }
.compare-table em { font-style: normal; border-bottom: 2px solid var(--accent); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature-card { padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card .f-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}
.feature-card b { display: block; font-size: 16.5px; margin-bottom: 5px; letter-spacing: -0.01em; }
.feature-card span { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Pricing */
.pricing-x {
    max-width: 460px;
    margin: 0 auto;
    padding: 34px 34px 30px;
    border-top: 3px solid var(--accent);
}
.pricing-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pricing-x .amount {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.pricing-x .per { font-size: 17px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.pricing-sub { color: var(--muted); font-size: 15px; margin: 12px 0 20px; line-height: 1.6; }
.pricing-x ul { list-style: none; margin-bottom: 26px; border-top: 1px solid var(--border); padding-top: 18px; }
.pricing-x li { padding: 7px 0; font-size: 15.5px; display: flex; gap: 12px; }
.pricing-x li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.pricing-note { text-align: center; font-size: 13.5px; color: var(--faint); margin-top: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
    cursor: pointer;
    font-size: 16.5px;
    font-weight: 650;
    padding: 16px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 21px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15.5px; padding: 0 0 18px; max-width: 640px; line-height: 1.7; }

/* Final CTA — inverted panel */
.cta-band { padding: 40px 0 96px; }
.cta-inner {
    background: var(--ink);
    color: var(--bg);
    border-radius: 20px;
    text-align: center;
    padding: 72px 32px;
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.cta-inner p { opacity: 0.65; margin: 14px 0 30px; font-size: 17px; }
.btn-cta { background: var(--bg); color: var(--ink); border: none; }
.btn-cta:hover { opacity: 0.9; }

/* Footer */
.footer-x {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
}
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols .micro { margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; }
.footer-cols a:hover { color: var(--ink); text-decoration: none; }
.footer-base { padding: 20px 0 36px; font-size: 13.5px; color: var(--faint); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
    .hero-x { padding-top: 56px; }
    .stat-x { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-x:last-child { border-bottom: none; }
    .step-x .step-line { display: none; }
    .band { padding: 64px 0; }
}

/* ── Role strip (multi-role profiles) ── */
.role-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.role-pill:hover { border-color: var(--accent); color: var(--ink); }
.role-pill.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.role-pill.new { border-style: dashed; background: transparent; }
.role-pill .role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.role-pill.sel .role-dot { background: var(--accent); }
.role-foot { display: flex; gap: 10px; align-items: center; margin: 16px 0 8px; }


/* ── End-to-end width refinements ── */
@media (min-width: 1100px) {
    .card-pad { padding: 32px 36px; }
    .wrap-narrow .card-pad {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 44px;
        align-items: start;
    }
    .wrap-narrow .card-pad > .field { margin-bottom: 22px; }
}
.mock-x { max-width: 860px; }
.pricing-x { max-width: 480px; }
.faq, .band-head .lead { max-width: 760px; }

/* ── Max-width refinements ── */
.wrap, .nav-inner { max-width: 1720px; }
.wrap-narrow { max-width: 1240px; }

/* Split hero on large screens: copy left, product mock right */
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1200px) {
    .hero-x { padding-top: 72px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; }
    .hero-inner { text-align: left; }
    .hero-x h1 { margin-left: 0; max-width: none; font-size: clamp(40px, 3.8vw, 64px); }
    .hero-x .sub { margin-left: 0; margin-right: 0; max-width: 540px; }
    .hero-ctas { justify-content: flex-start; }
    .mock-x { margin: 0; max-width: none; }
}

/* Today page: two-column card grid on wide screens */
@media (min-width: 1280px) {
    #content.card.job-grid {
        background: transparent;
        border: none;
        box-shadow: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }
    #content.card.job-grid .job-row {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow);
    }
    #content.card.job-grid .job-row:hover { border-color: var(--border-strong); }
}

/* Admin: stats + sources side by side on wide screens */
@media (min-width: 1280px) {
    .admin-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
    .admin-cols .stat-grid { margin-bottom: 0 !important; }
}

/* ── Mobile menu ── */
.nav-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
@media (max-width: 720px) {
    .nav-burger { display: inline-flex; }
    .nav-links { display: none; }
    .nav-inner.menu-open { border-radius: 24px; }
    .nav-inner.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 74px;
        left: clamp(16px, 3vw, 48px);
        right: clamp(16px, 3vw, 48px);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        padding: 10px;
        gap: 2px;
        z-index: 120;
    }
    .nav-inner { position: relative; }
}

/* ── Day selector chips ── */
.day-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.day-bar:empty { display: none; }
.day-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.day-chip:hover { border-color: var(--accent); color: var(--ink); }
.day-chip.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Job detail modal ── */
.modal-ov {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 11, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 24px;
    overflow-y: auto;
}
.modal-box {
    width: 100%;
    max-width: 760px;
    padding: 24px 26px;
    animation: modalIn 0.18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-desc {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    font-size: 14.5px;
    line-height: 1.7;
    max-height: 46vh;
    overflow-y: auto;
    white-space: pre-line;
}
.modal-foot { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ── Pass rows (billing) ── */
.pass-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.pass-row:last-child { border-bottom: none; }

/* ── Landing pricing tiers ── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}
.tier { padding: 28px 26px; position: relative; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); border-width: 2px; }
.tier-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
:root[data-theme="dark"] .tier-flag { color: #08130e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tier-flag { color: #08130e; }
}
.tier .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 10px 0 2px; }
.tier .per { font-size: 15px; font-weight: 550; color: var(--muted); margin-left: 4px; }
.tier-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.tier ul { list-style: none; margin: 0 0 22px; flex: 1; }
.tier li { padding: 6px 0; font-size: 14.5px; display: flex; gap: 10px; }
.tier li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ── Legal pages ── */
.legal { padding: 48px 24px 72px; max-width: 820px; }
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.legal p b { color: var(--ink); }

/* ── Split auth pages ── */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    padding: 24px clamp(16px, 3vw, 48px) 48px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 110px);
}
.auth-side {
    background: var(--ink);
    color: var(--bg);
    border-radius: 20px;
    display: flex;
}
.auth-side-inner {
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}
.auth-side-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; opacity: 0.7; }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; gap: 12px; font-size: 16px; opacity: 0.85; }
.auth-points li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.auth-side-foot { font-size: 14px; opacity: 0.5; margin-top: 10px; }

.auth-main { display: flex; align-items: center; justify-content: center; }
.auth-main .auth-card { width: 100%; max-width: 440px; }
.auth-main .auth-card h1 { font-size: 30px; margin-bottom: 6px; letter-spacing: -0.03em; }
.input-lg { padding: 13px 16px; font-size: 16px; border-radius: 10px; }
.auth-legal { font-size: 12.5px; color: var(--faint); margin-top: 14px; text-align: center; line-height: 1.6; }

@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { display: none; }
    .auth-main { padding-top: 24px; }
}

/* ── Landing animations ── */

/* Staggered rise-in on first paint */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: riseIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.16s; }
.r3 { animation-delay: 0.28s; }

/* Mock rows cascade in after the window lands */
.mock-row { opacity: 0; animation: riseIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.mock-row:nth-of-type(1) { animation-delay: 0.55s; }
.mock-row:nth-of-type(2) { animation-delay: 0.7s; }
.mock-row:nth-of-type(3) { animation-delay: 0.85s; }

/* Dawn rings breathe; sun disc drifts */
@keyframes ringBreathe { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.035); } }
@keyframes sunDrift { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }
.hero-x::before { animation: ringBreathe 9s ease-in-out infinite; }
.hero-x::after { animation: sunDrift 7s ease-in-out infinite; }

/* Source marquee */
.marquee {
    overflow: hidden;
    max-width: 720px;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee-track span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--faint);
    white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Card hover lift on tiers + steps */
.tier, .step { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tier:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier.featured:hover { border-color: var(--accent); }

/* CTA button pulse-glow (subtle, ink panel only) */
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0.06); } }
.cta-inner .btn-cta { animation: ctaPulse 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .rise, .mock-row { opacity: 1; animation: none; }
    .hero-x::before, .hero-x::after, .marquee-track, .cta-inner .btn-cta { animation: none; }
    .tier:hover, .step:hover { transform: none; }
}

/* ── Admin dashboard ── */
.admin-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
    align-items: start;
}
@media (max-width: 900px) { .admin-two { grid-template-columns: 1fr; } }
.card-head {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.stat .v.accent { color: var(--accent); }
.chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 150px;
    margin-top: 14px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
    gap: 6px;
}
.bar {
    width: 100%;
    max-width: 34px;
    background: var(--accent);
    border-radius: 5px 5px 2px 2px;
    transition: height 0.4s ease;
}
.bar-ink { background: var(--ink); }
.bar-col:hover .bar { opacity: 0.75; }
.bar-label {
    font-size: 10.5px;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}
.bar-col:nth-child(even) .bar-label { visibility: hidden; }

/* ── User insights panel ── */
.insights { margin-bottom: 48px; }
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.insight-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 900px) { .insight-two { grid-template-columns: 1fr; } }
.demand-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.demand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface2);
    font-size: 13.5px;
}
.demand-chip b { font-weight: 650; }
.demand-chip .num {
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 12px;
    font-weight: 700;
}
.co-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
    font-weight: 550;
}
.co-row:last-child { border-bottom: none; }

/* ── Mini action buttons (save / vote) ── */
.row-mini { display: flex; gap: 4px; }
.mini-btn {
    width: 30px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1;
    padding: 0;
}
.mini-btn:hover { border-color: var(--border-strong); }
.mini-btn.on { background: var(--accent-soft); border-color: var(--accent); }
.mini-btn.on-bad { background: var(--red-soft); border-color: var(--red); }

/* ── Graphical polish ── */

.card, .nav-inner, .stat, .modal-box { position: relative; }

/* Icon chips on stat tiles */
.tile-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

/* User avatar in the nav */
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 750;
    flex-shrink: 0;
}

/* Company initial chips */
.co-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.co-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 750;
    flex-shrink: 0;
}

/* Paywall sunrise illustration */
.sunrise-art { margin-bottom: 14px; animation: sunUp 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes sunUp { from { opacity: 0; transform: translateY(10px); } }

/* Job rows: score ring + hover accent edge */
.job-score { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent); }
.job-row { position: relative; transition: background 0.15s; }
.job-row::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
    transition: background 0.15s;
}
.job-row:hover { background: color-mix(in srgb, var(--surface2) 45%, transparent); }
.job-row:hover::before { background: var(--accent); }

/* Job titles read as ink, not link-green */
.job-title a { color: var(--ink); }
.job-title a:hover { color: var(--accent); text-decoration: none; }

/* Cards get a hairline top highlight for depth */
.card { box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, var(--bg) 40%, transparent); }

@media (prefers-reduced-motion: reduce) { .sunrise-art { animation: none; } }

/* SVG icons inside tile chips */
.tile-ico svg { width: 18px; height: 18px; display: block; }

/* ── Password show/hide toggle ── */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s, background 0.15s;
}
.pw-toggle:hover { color: var(--ink); background: var(--surface2); }
.pw-toggle svg { display: block; }

/* ── App sidebar ── */
.side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 236px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 22px 14px 18px;
    z-index: 90;
}
.side-brand { font-size: 24px; padding: 0 12px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-link:hover { color: var(--ink); background: var(--surface2); text-decoration: none; }
.side-link.active { background: var(--accent-soft); color: var(--accent-ink); }
.side-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 6px 0;
    border-top: 1px solid var(--border);
}
.side-foot .credit-pill { justify-content: center; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user-meta { flex: 1; min-width: 0; line-height: 1.3; }
.side-user-name {
    font-size: 13.5px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-user-meta a { font-size: 12.5px; color: var(--muted); }
.side-user-meta a:hover { color: var(--red); text-decoration: none; }
.side-user .theme-toggle { width: 30px; height: 30px; flex-shrink: 0; }

/* Content shifts right of the sidebar on desktop; mobile keeps the top bar */
body.with-sidebar { padding-left: 236px; }
body.with-sidebar .app-topnav { display: none; }
@media (max-width: 1000px) {
    .side { display: none; }
    body.with-sidebar { padding-left: 0; }
    body.with-sidebar .app-topnav { display: block; }
}

/* ── Shell v2: dark sidebar + light app bar ── */
.side {
    background: var(--ink);
    color: var(--bg);
    border-right: none;
    padding: 24px 16px 20px;
}
.side-brand { color: var(--bg); font-size: 24px; padding: 0 10px 20px; }
.side-brand:hover { text-decoration: none; }
.side-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.45;
    padding: 0 12px 8px;
}
.side-link { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.side-link:hover { color: var(--bg); background: color-mix(in srgb, var(--bg) 8%, transparent); }
.side-link.active {
    background: var(--accent);
    color: #fff;
}
:root[data-theme="dark"] .side-link.active { color: #08130e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .side-link.active { color: #08130e; }
}
.side-promo {
    margin-top: auto;
    background: color-mix(in srgb, var(--bg) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
    border-radius: 14px;
    padding: 16px;
}
.side-promo-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.side-promo p { font-size: 12.5px; opacity: 0.65; line-height: 1.5; margin-bottom: 12px; }
.side-foot { display: none; }

/* App bar */
.appbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(20px, 4vw, 64px);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.appbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.appbar-title { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.appbar-right { display: flex; align-items: center; gap: 10px; }
.appbar-burger { display: none; }

/* Mobile: sidebar becomes a slide-in drawer */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 11, 0.45);
    z-index: 89;
}
@media (max-width: 1000px) {
    .side {
        display: flex;
        transform: translateX(-102%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }
    body.drawer-open .side { transform: none; }
    body.drawer-open .drawer-backdrop { display: block; }
    body.with-sidebar { padding-left: 0; }
    .appbar-burger { display: inline-flex; }
}

/* ── Job list view switcher ── */
.view-switch {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.view-switch button {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 7px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid var(--border);
}
.view-switch button:last-child { border-right: none; }
.view-switch button.on { background: var(--ink); color: var(--bg); }
.view-switch svg { width: 15px; height: 15px; display: block; }

/* View: two-column and grid cards */
#content.view-cols2, #content.view-grid {
    background: transparent;
    border: none;
    box-shadow: none;
    display: grid;
    gap: 14px;
    align-items: start;
}
#content.view-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#content.view-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
#content.view-cols2 .job-row, #content.view-grid .job-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}
#content.view-grid .job-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
}
#content.view-grid .job-score { width: 44px; height: 44px; font-size: 14px; }
#content.view-grid .job-title { font-size: 14.5px; }
#content.view-grid .job-sub { font-size: 12.5px; }
#content.view-grid .job-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 2px;
}
@media (max-width: 900px) {
    #content.view-cols2 { grid-template-columns: 1fr; }
}

/* ── Job filters bar ── */
.job-filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

/* ── Tracker board ── */
.board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: start;
    margin-bottom: 48px;
}
.board-col {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.board-col-win { border-color: var(--accent); }
.board-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 4px 6px;
}
.board-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
}
.board-card-title { font-size: 14px; font-weight: 650; line-height: 1.35; }
.board-card-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.board-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.board-empty { text-align: center; color: var(--faint); padding: 14px 0; }

/* ── Support tickets ── */
.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: var(--surface2); }
.ticket-subject { font-size: 15px; font-weight: 650; }
.ticket-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 46vh; overflow-y: auto; }
.msg { border-radius: 12px; padding: 12px 14px; max-width: 88%; }
.msg-user { background: var(--surface2); border: 1px solid var(--border); align-self: flex-start; }
.msg-admin { background: var(--accent-soft); border: 1px solid transparent; align-self: flex-end; }
.msg-head { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.msg-admin .msg-head { color: var(--accent-ink); }
.msg-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
