/* RoboJob */

/* ------------------------------------------------------------ tokens */
:root {
    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-2: #f1f3fa;
    --text: #141a2e;
    --muted: #5a6178;
    --border: #e3e6f0;
    --border-strong: #cfd4e3;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef0ff;
    --ring: rgba(79, 70, 229, .28);

    --indigo: #4f46e5;  --indigo-soft: #eef0ff;
    --violet: #7c3aed;  --violet-soft: #f3edff;
    --teal:   #0d9488;  --teal-soft:   #e3f7f4;
    --amber:  #c2620a;  --amber-soft:  #fff3e3;
    --rose:   #e11d48;  --rose-soft:   #ffe9ee;

    --ok: #0f8a5f;    --ok-soft: #e4f6ee;
    --info: #2563eb;  --info-soft: #e8f0ff;
    --warn: #b45309;  --warn-soft: #fff4e0;
    --bad: #d42a3c;   --bad-soft: #ffebee;

    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0891b2 100%);
    --button-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    --text-gradient: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
    --glow-1: rgba(99, 102, 241, .16);
    --glow-2: rgba(6, 182, 212, .12);
    --glow-3: rgba(168, 85, 247, .10);

    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(20, 26, 46, .06);
    --shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 8px 24px -6px rgba(20, 26, 46, .10);
    --shadow-lg: 0 2px 4px rgba(20, 26, 46, .05), 0 24px 48px -12px rgba(49, 46, 129, .22);
    --header-bg: rgba(255, 255, 255, .72);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0e18;
        --surface: #141a2a;
        --surface-2: #1a2134;
        --text: #e8eaf4;
        --muted: #9ba2ba;
        --border: #252d44;
        --border-strong: #343d58;

        --primary: #8b93ff;
        --primary-hover: #a5acff;
        --primary-soft: #1f2450;
        --ring: rgba(139, 147, 255, .35);

        --indigo: #8b93ff;  --indigo-soft: #1f2450;
        --violet: #b692ff;  --violet-soft: #2a1f4d;
        --teal:   #3fd1bf;  --teal-soft:   #11302e;
        --amber:  #fbb454;  --amber-soft:  #37260f;
        --rose:   #ff7b93;  --rose-soft:   #3b1622;

        --ok: #4fd69c;    --ok-soft: #10301f;
        --info: #7fa9ff;  --info-soft: #172646;
        --warn: #f6b44f;  --warn-soft: #36260e;
        --bad: #ff8190;   --bad-soft: #3a1820;

        --glow-1: rgba(99, 102, 241, .20);
        --glow-2: rgba(6, 182, 212, .10);
        --glow-3: rgba(168, 85, 247, .12);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -12px rgba(0, 0, 0, .6);
        --header-bg: rgba(20, 26, 42, .72);
        /* Lighter stops keep gradient text readable on the dark background. */
        --text-gradient: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 45%, #67e8f9 100%);
    }
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    color: var(--text); background: var(--bg);
    background-image:
        radial-gradient(900px 520px at 8% -8%, var(--glow-1), transparent 70%),
        radial-gradient(760px 480px at 100% 0%, var(--glow-2), transparent 70%),
        radial-gradient(700px 500px at 50% 110%, var(--glow-3), transparent 70%);
    background-attachment: fixed;
    font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2 { letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.icon { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ------------------------------------------------------------ header */
header.top {
    position: sticky; top: 0; z-index: 10;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.top-inner {
    max-width: 1120px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
    background: var(--brand-gradient); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand-name span {
    margin-left: -.03em;
    background: var(--text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px;
    color: var(--muted); font-weight: 550; font-size: 14px;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.avatar {
    display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; border-radius: 50%;
    background: var(--brand-gradient); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.avatar:hover { text-decoration: none; box-shadow: 0 0 0 3px var(--ring); }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; margin: 0; box-shadow: var(--shadow); }
.icon-button {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; min-height: 0;
    border: 1px solid transparent; border-radius: 9px; background: none; color: var(--muted); box-shadow: none;
}
.icon-button:hover { color: var(--rose); background: var(--rose-soft); transform: none; box-shadow: none; }
form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------ banner, alerts */
.banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--border); }
.banner-inner {
    max-width: 1120px; margin: 0 auto; padding: 9px 16px; font-size: 14px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
}
.banner-action {
    display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 4px 10px; font-size: 13px;
    background: none; color: inherit; border: 1px solid currentColor; border-radius: 999px; box-shadow: none;
}
.banner-action:hover { background: rgba(0, 0, 0, .05); transform: none; box-shadow: none; }
.banner-action .icon { width: 14px; height: 14px; }

.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 18px;
    border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14px;
}
.alert > .icon { margin-top: 1px; }
.alert > span { flex: 1; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-warning { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.main > .alert { max-width: 720px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-sm); }
.alert-action { flex: none; }

/* ------------------------------------------------------------ layout */
.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.foot {
    display: flex; justify-content: center; gap: 10px; padding: 20px 16px 28px;
    color: var(--muted); font-size: 13px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.foot-brand .icon { width: 15px; height: 15px; color: var(--primary); }

/* Colored icon tiles and badges */
.tile, .icon-badge { display: inline-grid; place-items: center; flex: none; }
.tile { width: 42px; height: 42px; border-radius: 12px; }
.tile .icon { width: 21px; height: 21px; }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; }
.icon-badge .icon { width: 26px; height: 26px; }
.indigo { background: var(--indigo-soft); color: var(--indigo); }
.violet { background: var(--violet-soft); color: var(--violet); }
.teal   { background: var(--teal-soft);   color: var(--teal); }
.amber  { background: var(--amber-soft);  color: var(--amber); }
.rose   { background: var(--rose-soft);   color: var(--rose); }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.pill {
    display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--amber-soft); color: var(--amber);
}

/* ------------------------------------------------------------ buttons */
button, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 14px; font-weight: 650; color: #fff; cursor: pointer;
    background: var(--button-gradient); border: 0; border-radius: 10px;
    padding: 10px 18px; min-height: 42px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px -6px rgba(79, 70, 229, .6);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button:hover, .button:hover {
    text-decoration: none; filter: brightness(1.07); transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 22px -8px rgba(79, 70, 229, .7);
}
button:active, .button:active { transform: translateY(0); }
button .icon, .button .icon { width: 17px; height: 17px; }
.button.small { min-height: 34px; padding: 6px 12px; font-size: 13px; margin-left: 6px; }
.button.large { min-height: 50px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.button.ghost {
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.button.ghost:hover { filter: none; border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
button.block { width: 100%; }
button.link {
    display: inline-flex; gap: 4px; min-height: 0; padding: 0; background: none; box-shadow: none;
    color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
button.link:hover { transform: none; box-shadow: none; filter: none; }
button.link .icon { width: 14px; height: 14px; align-self: center; }

/* ------------------------------------------------------------ forms */
form.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.small-link { font-size: 13px; font-weight: 550; }
.input-wrap { position: relative; display: block; }
.input-wrap > .icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--muted); pointer-events: none; transition: color .12s;
}
.input-wrap input {
    width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 10px 40px; min-height: 44px;
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.input-wrap input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input-wrap input:hover { border-color: var(--border-strong); }
.input-wrap input:focus {
    outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring);
}
.input-wrap:focus-within > .icon { color: var(--primary); }
.input-wrap input[aria-invalid="true"] { border-color: var(--bad); }
.input-wrap input[aria-invalid="true"] + .icon, .input-wrap:has(input[aria-invalid="true"]) > .icon { color: var(--bad); }
.field-error { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--bad); }
.field-error .icon { width: 14px; height: 14px; }
.narrow-form { max-width: 420px; }

/* ------------------------------------------------------------ home */
.hero { text-align: center; max-width: 760px; margin: 24px auto 48px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; margin-bottom: 20px;
    border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--primary);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.eyebrow .icon { width: 15px; height: 15px; }
.hero-title { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 18px; }
.gradient-text {
    background: var(--text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature h2 { margin: 16px 0 6px; }
.feature p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ auth pages */
.auth { display: flex; justify-content: center; padding: 8px 0 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card.center { text-align: center; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head p { margin: 0; }
.auth-foot { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.with-icon { display: inline-flex; align-items: center; gap: 6px; }
.with-icon .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------ dashboard */
.welcome { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; }
.welcome h1 { font-size: 30px; margin: 0 0 2px; }
.welcome p { margin: 0; }
.eyebrow-text { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--text); min-width: 0; }
a.stat { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.stat .tile { margin-bottom: 8px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 17px; font-weight: 700; max-width: 100%; margin-bottom: 4px; }
.empty-state { text-align: center; padding: 40px 24px; border-style: dashed; box-shadow: none; }
.empty-art {
    display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 50%;
    background: var(--brand-gradient); color: #fff; box-shadow: 0 12px 30px -10px rgba(79, 70, 229, .7);
}
.empty-art .icon { width: 36px; height: 36px; }
.empty-state p { max-width: 460px; margin: 6px auto 20px; }

/* ------------------------------------------------------------ settings */
.page-head { margin-bottom: 22px; }
.page-head p { margin: 0; }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
    color: var(--muted); font-weight: 600; font-size: 14px;
}
.settings-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.settings-body { display: flex; flex-direction: column; gap: 20px; }
.section { scroll-margin-top: 80px; }
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.section-head p { margin: 0; font-size: 14px; }
.current-email {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px;
    background: var(--surface-2); border-radius: 10px; font-weight: 600; max-width: 420px;
}

/* ------------------------------------------------------------ CVs */
.button.small, button.small { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
button.ghost {
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
button.ghost:hover { filter: none; border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.button.ghost.danger:hover, button.ghost.danger:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-soft); }
.danger-solid { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px -6px rgba(225, 29, 72, .6); }
.confirm-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.push-right { margin-left: auto; }
.badge.primary { background: var(--amber-soft); color: var(--amber); }
.badge.indigo { background: var(--indigo-soft); color: var(--indigo); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.rose { background: var(--rose-soft); color: var(--rose); }

.upload-card { margin-bottom: 20px; }
.upload-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.file-field input[type=file] {
    width: 100%; font: inherit; font-size: 14px; color: var(--muted); padding: 6px; min-height: 44px;
    background: var(--surface-2); border: 1.5px dashed var(--border-strong); border-radius: 10px; cursor: pointer;
}
.file-field input[type=file]:hover { border-color: var(--primary); }
.file-field input[type=file]::file-selector-button {
    font: inherit; font-weight: 650; font-size: 13px; color: var(--primary); background: var(--primary-soft);
    border: 0; border-radius: 7px; padding: 7px 12px; margin-right: 10px; cursor: pointer;
}
.upload-actions { padding-bottom: 1px; }

.cv-list { display: flex; flex-direction: column; gap: 14px; }
.cv-card { padding: 20px 22px; }
.cv-head { display: flex; align-items: flex-start; gap: 14px; }
.cv-title { flex: 1; min-width: 0; }
.cv-title h2 { margin: 0 0 2px; font-size: 17px; }
.cv-title h2 a { color: var(--text); }
.cv-title h2 a:hover { color: var(--primary); }
.cv-meta { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.cv-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cv-preview { margin: 14px 0 0 56px; }
.cv-headline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 0 10px; }
.cv-headline .icon { color: var(--violet); }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); }
.skill.more { background: var(--surface-2); color: var(--muted); }
.cv-card > .alert, .cv-card > .progress-note { margin: 14px 0 0 56px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 56px; }
.progress-note {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center;
    padding: 12px 14px; border-radius: var(--radius-sm); background: var(--indigo-soft); color: var(--indigo); font-size: 14px;
}
.progress-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--indigo) 18%, transparent); overflow: hidden; }
.progress-bar span { display: block; width: 35%; height: 100%; border-radius: 99px; background: var(--button-gradient);
    animation: progress 1.6s ease-in-out infinite; }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.back-link .icon { width: 16px; height: 16px; }
.cv-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cv-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cv-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cv-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-title { font-size: 15px; margin-bottom: 12px; }
.cv-summary { font-size: 15.5px; line-height: 1.65; margin: 0 0 6px; }
.sub-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.sub-head .icon { width: 16px; height: 16px; color: var(--primary); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 14px 6px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--primary); }
.timeline li:last-child { padding-bottom: 0; }
.timeline-period { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.timeline-period .icon { width: 13px; height: 13px; }
.cv-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 4px; }
details.extracted summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; list-style: none; }
details.extracted summary::-webkit-details-marker { display: none; }
details.extracted summary .icon { color: var(--primary); }
details.extracted pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace;
    background: var(--surface-2); border-radius: 10px; padding: 14px; margin: 14px 0 0; max-height: 480px; overflow: auto; }
.block-link { width: 100%; margin-top: 16px; }
.compact-stack { gap: 10px; }
.compact-stack button { align-self: flex-start; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.manage-actions form { margin: 0; }
.cv-highlight { margin-bottom: 20px; }
.cv-highlight .section-head { align-items: center; }
.cv-highlight .eyebrow-text { margin: 0; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 720px) {
    .nav-link span { display: none; }
    .nav-link { padding: 8px; }
    .settings { grid-template-columns: 1fr; }
    .upload-form, .cv-detail { grid-template-columns: 1fr; }
    .cv-preview, .cv-actions, .cv-card > .alert, .cv-card > .progress-note { margin-left: 0; }
    .cv-head { flex-wrap: wrap; }
    .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .card, .auth-card { padding: 20px; }
    .main { padding-top: 20px; }
    .welcome { flex-direction: column; text-align: center; }
    .welcome h1 { font-size: 26px; }
}
@media (max-width: 420px) {
    .button.small { padding: 6px 10px; }
    .brand-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .progress-bar span { animation: none; width: 100%; opacity: .5; }
}
