/* 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; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 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;
}
/* Longer labels (German, admins' extra links) move the menu under the brand instead of overflowing. */
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; margin-left: auto; }
.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; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; padding: 20px 16px 28px;
    color: var(--muted); font-size: 13px;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--primary); }
.foot-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.foot-brand .icon { width: 15px; height: 15px; color: var(--primary); }
.lang-switch { display: inline-flex; gap: 10px; margin: 0 0 0 8px; padding-left: 18px; border-left: 1px solid var(--border); }
.lang-switch button.link { color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.lang-switch button.link:hover { color: var(--primary); text-decoration: underline; }
.lang-switch button.link[aria-current] { color: var(--text); font-weight: 650; opacity: 1; cursor: default; text-decoration: none; }

/* 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); }
/* Login and registration: larger text in the fields. */
.large-fields .input-wrap input { font-size: 18px; min-height: 52px; padding-left: 42px; }
.large-fields .input-wrap > .icon { width: 19px; height: 19px; }
.large-fields #captcha { letter-spacing: .12em; }
/* Eye button at the right end of a password field (app.js). */
.input-wrap:has(.reveal) input { padding-right: 46px; }
button.reveal {
    position: absolute; top: 0; right: 0; bottom: 0; width: 44px; min-height: 0; padding: 0;
    justify-content: center; background: none; box-shadow: none; color: var(--muted); border-radius: 0 10px 10px 0;
}
button.reveal[hidden] { display: none; }
button.reveal:hover { transform: none; box-shadow: none; filter: none; color: var(--primary); }
button.reveal:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
button.reveal .icon { width: 19px; height: 19px; }
button.reveal[aria-pressed="true"] .when-hidden, button.reveal[aria-pressed="false"] .when-shown { display: none; }
.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; }
/* Registration: captcha image, and fields only bots see (rendered, but off-screen). */
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.captcha img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.captcha button.link { color: var(--primary); font-size: 13px; text-decoration: none; }
.captcha button.link:hover { text-decoration: underline; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ 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;
}
/* The rotating headline: the lines share one grid cell (so the height is the tallest one's, nothing
   jumps) and take turns, 5 s each, in a 30 s cycle; keep the delays in step with the number of lines. */
.rotator { display: grid; font-size: clamp(30px, 5.2vw, 50px); min-height: 3.3em; align-items: center; }
.rotator > span { grid-area: 1 / 1; opacity: 0; animation: hero-rotate 30s infinite both; }
.rotator > span:nth-child(2) { animation-delay: 5s; }
.rotator > span:nth-child(3) { animation-delay: 10s; }
.rotator > span:nth-child(4) { animation-delay: 15s; }
.rotator > span:nth-child(5) { animation-delay: 20s; }
.rotator > span:nth-child(6) { animation-delay: 25s; }
@keyframes hero-rotate {
    0% { opacity: 0; transform: translateY(.25em); }
    2%, 15% { opacity: 1; transform: none; }
    17%, 100% { opacity: 0; transform: translateY(-.25em); }
}
@media (prefers-reduced-motion: reduce) {
    .rotator > span { animation: none; }
    .rotator > span:first-child { opacity: 1; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.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); }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ CV builder */
.cvb-head .eyebrow { margin-bottom: 12px; }
.cvb-form { max-width: 860px; }
.cvb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cvb-grid .wide { grid-column: 1 / -1; }
.cvb-form .hint { font-size: 12.5px; color: var(--muted); }
.cvb-entry { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 14px; }
.cvb-entry legend { padding: 0 6px; }
.cvb-lang { margin-bottom: 12px; }
.cvb-after { margin-top: 18px; }
.cvb-check { align-self: end; }
.cvb-finish .application-actions { margin: 16px 0 8px; }
@media (max-width: 720px) { .cvb-grid { grid-template-columns: 1fr; } }
/* The way to the builder: on the start page and the CVs page. */
.cvb-cta {
    display: flex; align-items: center; gap: 14px; max-width: 620px; margin: 22px auto 0; padding: 14px 18px; text-align: left;
    border: 1.5px dashed var(--primary); border-radius: 14px; background: var(--primary-soft); color: var(--text); text-decoration: none;
}
.cvb-cta:hover { border-style: solid; }
.cvb-cta strong { display: block; }
.cvb-cta .muted { font-size: 14px; }
.cvb-cta > .icon:last-child { margin-left: auto; color: var(--primary); }
.cvb-cta-app { max-width: none; margin: 0 0 20px; }
.dash-cvb { margin: 20px 0 0; }
/* Dashboard: the next step (CV, then Robo) as a large card above everything. */
.next-step {
    display: flex; align-items: flex-start; gap: 18px; margin: 0 0 24px; padding: 24px;
    border: 2px solid var(--primary); background: var(--primary-soft); box-shadow: var(--shadow-lg);
}
.next-step > .tile { flex: none; width: 52px; height: 52px; }
.next-step > .tile .icon { width: 26px; height: 26px; }
.next-step h2 { font-size: 21px; margin: 0 0 6px; }
.next-step p { margin: 0 0 8px; font-size: 15.5px; }
.next-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .next-step { flex-direction: column; padding: 20px; } }

/* ------------------------------------------------------------ credits */
.price-note { margin: 16px 0 0; font-size: 14px; }
.credit-balance { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.credit-balance > div { display: flex; flex-direction: column; gap: 2px; }
.credit-balance.is-empty { border-color: var(--rose); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.packs legend { margin-bottom: 8px; }
.pack {
    display: flex; flex-direction: column; gap: 4px; padding: 16px; cursor: pointer;
    border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface-2);
}
.pack:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pack input { accent-color: var(--primary); width: 18px; height: 18px; }
.pack-credits { font-weight: 650; }
.pack-price { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.buy-form .consent { font-weight: 400; font-size: 13.5px; line-height: 1.5; }
.receipt-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 0; }
.credit-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.credit-history th, .credit-history td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.credit-history th { font-size: 12px; color: var(--muted); font-weight: 600; }
.credit-history .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.credit-history .plus { color: var(--teal); }
.credit-history .sub { display: block; font-size: 12.5px; margin-top: 2px; }
@media (max-width: 720px) { .packs { grid-template-columns: 1fr; } }
/* The receipt: printable without the page frame. */
.receipt-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.receipt-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.receipt-table td:last-child { text-align: right; white-space: nowrap; }
@media print {
    .top, .foot, .banner, .no-print { display: none !important; }
    .card { box-shadow: none; border: 0; }
}

/* ------------------------------------------------------------ legal pages (Impressum, Datenschutz) */
.legal { max-width: 760px; margin: 0 auto; padding: 32px; overflow-wrap: anywhere; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 17px; margin: 26px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
/* Phone and email as outlined text (contact_glyph()), sized like the text around them. */
.glyph-img { white-space: nowrap; }
.glyph-text { display: inline-block; height: 1.21em; width: auto; vertical-align: -0.2412em; }
.legal-foot { margin-top: 26px !important; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 600px) { .legal { padding: 20px 16px; } }
.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); }
.delete-list { display: inline-block; text-align: left; margin: 4px 0 12px; padding-left: 20px; line-height: 1.7; }
.confirm-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.push-right, .button.push-right { margin-left: auto; }   /* also over .button.small's margin */
.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; }
/* The consent box under file and name, the button beside it. */
.upload-form .consent { grid-column: 1 / 3; font-weight: 400; font-size: 13.5px; line-height: 1.5; }
.upload-form .upload-actions { grid-column: 3; grid-row: 2; }
.upload-form #consent-error { grid-column: 1 / -1; }

.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-badges { align-items: center; }
.start-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.days-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.days-back .select { width: auto; min-height: 40px; padding: 7px 10px; font-size: 14px; }
.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; }
.prep-bar { grid-column: 1 / -1; width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden;
    appearance: none; background: color-mix(in srgb, var(--indigo) 18%, transparent); }
.prep-bar::-webkit-progress-bar { background: color-mix(in srgb, var(--indigo) 18%, transparent); }
.prep-bar::-webkit-progress-value { background: var(--button-gradient); border-radius: 99px; }
.prep-bar::-moz-progress-bar { background: var(--button-gradient); border-radius: 99px; }
@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; }

/* ------------------------------------------------------------ Robos */
:root { --s6: #0f8a5f; --s5: #16a34a; --s4: #4f46e5; --s3: #c2620a; --s2: #e11d48; --s1: #6b7280; }
@media (prefers-color-scheme: dark) {
    :root { --s6: #34d399; --s5: #86efac; --s4: #8b93ff; --s3: #fbb454; --s2: #ff7b93; --s1: #9ba2ba; }
}
.robo-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 14px; align-items: end; }
.select {
    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; min-height: 44px;
}
.select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.select:disabled { opacity: .6; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.robo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* One Robo per row: on wide screens the stats and the sending settings sit side by side. */
@media (min-width: 900px) {
    .robo-grid .robo-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 14px 16px; }
    .robo-grid .robo-card > * { grid-column: 1 / -1; }
    .robo-grid .robo-card > .robo-stats { grid-column: 1; }
    .robo-grid .robo-card > .robo-sending { grid-column: 2; }
}
.robos-fields { margin: -12px 0 18px; }
.robos-stopped { margin-top: 16px; }
.robos-stopped h2 { font-size: 16px; margin: 0 0 6px; }
.robos-stopped ul { list-style: none; margin: 0; padding: 0; }
.robos-stopped li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.robos-stopped li:first-child { border-top: 0; }
.robos-stopped-name { min-width: 0; font-weight: 600; }
.robo-card { display: flex; flex-direction: column; gap: 14px; }
.robo-card.is-running { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.robo-head { display: flex; align-items: flex-start; gap: 12px; }
.robo-title { flex: 1; min-width: 0; }
.robo-title h2 { font-size: 17px; margin: 0 0 2px; }
.robo-title h2 a { color: var(--text); }
.robo-title .cv-meta, .robo-page-title .muted { display: flex; align-items: center; gap: 5px; }
.robo-title .cv-meta .icon { width: 14px; height: 14px; }
.robo-avatar {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.robo-avatar .icon { width: 22px; height: 22px; }
.robo-avatar.is-running, .is-running > .robo-head .robo-avatar {
    background: var(--brand-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
/* A running Robo on /robos: two meshing gears turn at its avatar's corner (the small one
   the other way and faster, by the ratio of their sizes). Filled, so they read as solid parts. */
.robo-avatar { position: relative; }
.robo-gears { position: absolute; right: -11px; bottom: -9px; width: 30px; height: 24px; pointer-events: none; }
.robo-avatar .gear { position: absolute; color: var(--ok); fill: var(--surface); stroke-width: 2.2; }
.robo-avatar .gear-big { width: 20px; height: 20px; right: 0; bottom: 0; animation: gear-turn 4s linear infinite; }
.robo-avatar .gear-small { width: 13px; height: 13px; left: 0; top: 0; animation: gear-turn 2.6s linear infinite reverse; }
@keyframes gear-turn { to { transform: rotate(360deg); } }
.robo-avatar.large { width: 56px; height: 56px; border-radius: 16px; }
.robo-avatar.large .icon { width: 28px; height: 28px; }
/* The gears of the large avatar (a Robo's own page), a third bigger. */
.robo-avatar.large .robo-gears { right: -14px; bottom: -12px; width: 40px; height: 32px; }
.robo-avatar.large .gear-big { width: 26px; height: 26px; }
.robo-avatar.large .gear-small { width: 17px; height: 17px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill .icon { width: 12px; height: 12px; }
.status-pill.running { background: var(--ok-soft); color: var(--ok); }
.status-pill.stopped { background: var(--surface-2); color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
                   100% { box-shadow: 0 0 0 8px transparent; } }
.robo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.robo-stats div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.robo-stats strong { font-size: 20px; line-height: 1.2; }
.robo-stats span { font-size: 12px; color: var(--muted); }
.robo-sending { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.robo-sending-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.robo-sending-head span { display: inline-flex; align-items: center; gap: 6px; }
.robo-sending-head .icon { width: 15px; height: 15px; color: var(--primary); }
.robo-sending-head a { font-size: 12.5px; font-weight: 600; }
.robo-sending dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.robo-sending dt { color: var(--muted); }
.robo-sending dd { margin: 0; overflow-wrap: anywhere; }
.robo-sending .badge { vertical-align: middle; }
.robo-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--primary); }
.robo-note .icon { width: 15px; height: 15px; }
.cv-actions.flush { margin: 0; }
.robo-page-title { display: flex; align-items: center; gap: 14px; }
.robo-page-title h1 { margin: 0; }
.robo-page-title p { margin: 2px 0 0; }
.robo-progress { margin-bottom: 18px; }
.robo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.robo-results { min-width: 0; }
.result-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.segmented a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
    color: var(--muted); font-weight: 600; font-size: 13px; }
.segmented a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.segmented a.on { background: var(--button-gradient); color: #fff; }
.count-pill { padding: 0 7px; border-radius: 999px; font-size: 11px; background: var(--surface-2); color: var(--muted); }
.segmented a.on .count-pill { background: rgba(255, 255, 255, .22); color: #fff; }

.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 20px; }
.match-card h2 { font-size: 16px; margin: 0 0 4px; }
.match-card h2 a { color: var(--text); }
.match-card h2 a:hover { color: var(--primary); }
.match-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.match-meta span { display: inline-flex; align-items: center; gap: 5px; }
.match-meta .icon { width: 13px; height: 13px; }
.match-reason { margin: 0 0 8px; font-size: 14px; }
.match-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag .icon { width: 12px; height: 12px; }
.tag.good { background: var(--ok-soft); color: var(--ok); }
.tag.gap { background: var(--warn-soft); color: var(--warn); }
.score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; font-weight: 800;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
    border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); }
.score-label { font-size: 11px; font-weight: 700; text-align: center; color: var(--c); letter-spacing: .02em; }
.score.large { flex-direction: row; gap: 12px; }
.score.large .score-num { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.score.large .score-label { font-size: 16px; }
.score-6 { --c: var(--s6); } .score-5 { --c: var(--s5); } .score-4 { --c: var(--s4); }
.score-3 { --c: var(--s3); } .score-2 { --c: var(--s2); } .score-1 { --c: var(--s1); }
.score-6 .score-num { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); }
.similarity { display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.similarity strong { font-size: 20px; color: var(--text); }
.similarity span { font-size: 11px; font-weight: 600; }
.score-meter { display: inline-flex; gap: 3px; }
.score-meter span { width: 14px; height: 6px; border-radius: 3px; background: var(--border); }
.score-meter span.on { background: var(--c); }
.score-legend .legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

.job-title { font-size: 24px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 550; }
.chip .icon { width: 14px; height: 14px; color: var(--primary); }
.chip.chip-gone { background: var(--rose-soft); color: var(--rose); border-color: transparent; }
.chip.chip-gone .icon { color: var(--rose); }
.job-text { border-top: 1px solid var(--border); padding-top: 16px; font-size: 15px; line-height: 1.65; max-width: 80ch; }
.job-text p { margin: 0 0 .9em; }
.match-panel-score { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.good-list li::marker { color: var(--ok); }
.gap-list li::marker { color: var(--warn); }

.robo-cta .section-head { flex-wrap: wrap; }

/* ------------------------------------------------------------ applications */
.hint { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin: 0; }
.hint.record-ids { margin-top: 14px; }
.text-input, .textarea {
    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;
}
.textarea { line-height: 1.6; resize: vertical; min-height: 90px; }
.text-input:hover, .textarea:hover { border-color: var(--border-strong); }
.text-input:focus, .textarea:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.text-input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.check-top { align-items: flex-start; min-height: 0; }
.check-top input { margin-top: 2px; }
.check-top .hint { margin-top: 2px; }
.robo-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto auto; }
/* Which jobs a Robo rates: a second row of the create form, next to its button. */
.robo-filters { grid-column: 1 / -2; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.robo-filters .check, .check-row .check { font-weight: 500; }
.check-row { display: flex; flex-wrap: wrap; gap: 0 20px; }
/* The first Robo's job fields, a row of their own. */
.robo-fields { grid-column: 1 / -1; }
.robo-fields legend .hint { display: block; font-weight: 400; }
/* The area: "[25 km around] [postal code or town]". */
.area-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.robo-filters .select, .area-row .select { width: auto; min-height: 40px; padding: 7px 10px; font-size: 14px; }
.place-input { flex: 0 1 260px; }
.place-input input { min-height: 40px; }
.robo-filters .field-error { flex-basis: 100%; }

.application-card { scroll-margin-top: 80px; }
.application-card .section-head { align-items: center; }
.application-card .section-head p { margin: 0; }
.application-form { gap: 14px; }
.application-facts { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.application-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.application-card .manage-actions { margin-top: 14px; }
.mail-text { white-space: normal; font-size: 14.5px; line-height: 1.65; padding: 16px 18px; margin-top: 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
/* The report: one compact row per sent application that opens to its details
   and answers; a row whose answer asks the user to react stands out. */
.report-list { display: flex; flex-direction: column; gap: 8px; }
.report-item { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.report-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 150px) minmax(0, 270px) 128px 20px;
    gap: 14px; align-items: center; padding: 11px 16px; cursor: pointer; list-style: none; font-size: 14px; }
.report-row::-webkit-details-marker { display: none; }
.report-row:hover { background: var(--surface-2); }
.report-row > span { min-width: 0; }
.report-date, .report-job { display: flex; flex-direction: column; gap: 2px; }
.report-date .muted, .report-job .muted, .report-answers .muted { font-size: 12.5px; }
.report-date .icon { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; }
.report-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.report-answers .badge { white-space: nowrap; }
.report-flag .badge .icon { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.report-open { display: flex; color: var(--muted); }
.report-open .icon { width: 18px; height: 18px; transition: transform .15s; }
.report-item[open] .report-open .icon { transform: rotate(180deg); }
.report-item[open] .report-row { border-bottom: 1px solid var(--border); }
.report-details { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }
.report-details > p { margin: 0; }
.report-item.needs-action { border-color: color-mix(in srgb, var(--warn) 55%, transparent); box-shadow: inset 4px 0 0 var(--warn); }
.report-item.needs-action .report-row { background: var(--warn-soft); }
.reply.needs-action .reply-asks { color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.reply.needs-action .reply-asks .icon { width: 14px; height: 14px; flex: none; }
@media (max-width: 860px) {
    .report-row { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 6px 12px; }
    .report-date { grid-column: 1; flex-direction: row; gap: 8px; }
    .report-job { grid-column: 1 / 3; }
    .report-robo { display: none; }
    .report-answers { grid-column: 1 / 3; }
    .report-flag { grid-column: 2; grid-row: 1; }
    .report-open { grid-column: 3; grid-row: 1; }
}
.reply-list { display: flex; flex-direction: column; max-width: 860px; padding-left: 14px; border-left: 3px solid var(--teal); }
.reply { padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.reply:first-child { border-top: 0; padding-top: 2px; }
.reply:last-child { padding-bottom: 2px; }
.reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.reply-head .email { font-size: 13px; overflow-wrap: anywhere; }
.reply-date { margin-left: auto; font-size: 13px; white-space: nowrap; }
.reply-subject { margin: 6px 0 4px; font-weight: 650; overflow-wrap: anywhere; }
.reply-text { white-space: pre-wrap; max-height: 480px; overflow: auto; }
.reply-attachments { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; overflow-wrap: anywhere; }
.reply-attachments .icon { width: 14px; height: 14px; flex: none; }
.match-application { display: inline-block; margin: 0 0 6px; }
.match-application:hover { text-decoration: none; filter: brightness(1.1); }
.application-row { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr) auto; gap: 16px; padding: 18px 20px; align-items: start; }
/* The list's tick boxes (discard selected) and its tool bar above and below. */
.row-pick input { width: 18px; height: 18px; margin: 14px 0 0; accent-color: var(--primary); cursor: pointer; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; font-size: 14px; }
.list-tools-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list-tools-actions .button.small { margin-left: 0; }
.application-list > .application-group + .list-tools { margin: 16px 0 0; }
.application-row h2 { font-size: 16px; margin: 0 0 4px; }
.application-row h2 a { color: var(--text); }
.application-row h2 a:hover { color: var(--primary); }
.application-group + .application-group { margin-top: 28px; }
.application-group-head { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.application-group-head .icon { width: 18px; height: 18px; color: var(--muted); }
.application-group-head a { color: var(--text); }
.application-group-head a:hover { color: var(--primary); }
.application-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sent-text summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); }
.sent-text summary .icon { width: 15px; height: 15px; }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px;
    border-radius: 999px; background: var(--button-gradient); color: #fff; font-size: 11px; font-weight: 700; }
.application-settings { max-width: 560px; }
.industry-grid { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 20px; }
.industry-grid legend { padding: 0; margin-bottom: 10px; }
.industry-grid .check { font-weight: 600; }
.recipient-rows { display: flex; flex-direction: column; gap: 10px; }
.recipient-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.recipient-row .recipient-email { grid-column: 1 / -1; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.recipient-row .check { min-height: 0; font-weight: 500; }
.recipient-summary, .address-list { list-style: none; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
.recipient-summary { margin-bottom: 12px; }
.recipient-summary .badge, .recipient-choice .badge { margin-right: 4px; }
.address-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 0; margin: 0; border-bottom: 1px solid var(--border); }
.recipient-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recipient-choice legend { padding: 0; margin-bottom: 4px; }
.recipient-choice .check { font-weight: 500; overflow-wrap: anywhere; }
/* Robo settings page (/robo/settings): one form over several cards, saved from the sticky bar. */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.field-aside { padding-top: 24px; }
.stack-fields { display: flex; flex-direction: column; gap: 18px; }
.save-bar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px;
}
.robo-settings .recipient-rows { gap: 0; }
.robo-settings .recipient-row { grid-template-columns: minmax(0, 1fr) 150px auto; padding: 8px 0; border-bottom: 1px solid var(--border); }
.robo-settings .recipient-row .recipient-email { grid-column: auto; font-size: 14px; }
@media (max-width: 720px) {
    .field-grid { grid-template-columns: 1fr; }
    .field-aside { padding-top: 0; }
    .robo-settings .recipient-row { grid-template-columns: minmax(0, 1fr) auto; }
    .robo-settings .recipient-row .recipient-email { grid-column: 1 / -1; }
    .save-bar span { display: none; }
}
@media (max-width: 720px) {
    .robo-form { grid-template-columns: 1fr; }
    .robo-filters { grid-column: auto; }
    .application-row { grid-template-columns: 20px 64px minmax(0, 1fr); }
    .application-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; word-break: break-word; font-weight: 550; }

/* ------------------------------------------------------------ Jobscanner (admins) */
.main.wide { max-width: 1680px; }
.scanner-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.scanner-head .eyebrow-text { margin: 0 0 2px; }
.scanner-head h1 { margin: 0; }
.scanner-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.scanner-count { display: flex; align-items: baseline; gap: 8px; }
.big-number { font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: var(--text-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.run-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.bad { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }

form.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px;
    align-items: end; padding: 16px; margin-bottom: 16px; }
form.filters .span-2 { grid-column: span 2; }
form.filters .field { gap: 5px; min-width: 0; }
form.filters .field-label { font-size: 12px; color: var(--muted); }
form.filters input, form.filters select {
    width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; min-height: 38px;
}
form.filters .input-wrap input { padding-left: 36px; }
form.filters input:hover, form.filters select:hover { border-color: var(--border-strong); }
form.filters input:focus, form.filters select:focus { outline: none; background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
form.filters button { min-height: 38px; }
.form-actions { display: flex; align-items: center; gap: 10px; }
.reset { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.reset .icon { width: 15px; height: 15px; }
.reset:hover { color: var(--rose); text-decoration: none; }

.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.scanner-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.scanner-table th, .scanner-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.scanner-table tbody tr:last-child td { border-bottom: 0; }
.scanner-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); white-space: nowrap;
    font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.scanner-table th a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.scanner-table th a:hover { color: var(--text); text-decoration: none; }
.scanner-table th a .icon { width: 13px; height: 13px; opacity: .45; }
.scanner-table th a.sorted { color: var(--primary); }
.scanner-table th a.sorted .icon { opacity: 1; }
.scanner-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.scanner-table .icon { width: 13px; height: 13px; }
.scanner-table .badge .icon { width: 12px; height: 12px; }
.scanner-table td.nowrap, .scanner-table td.num { white-space: nowrap; }
.scanner-table td.num { font-variant-numeric: tabular-nums; font-weight: 650; }
.scanner-table td.title { min-width: 220px; max-width: 340px; }
.scanner-table td.title a { font-weight: 700; color: var(--text); }
.scanner-table td.title a:hover { color: var(--primary); }
.scanner-table td.place, .scanner-table td.contact { min-width: 110px; max-width: 170px; }
.scanner-table td.company { min-width: 120px; max-width: 200px; font-weight: 550; }
.scanner-table td.email { overflow-wrap: anywhere; min-width: 140px; max-width: 200px; }
.scanner-table .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cell-link { display: inline-flex; align-items: flex-start; gap: 5px; }
.cell-link .icon { width: 13px; height: 13px; margin-top: 3px; color: var(--muted); }
.links { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; font-size: 12px; font-weight: 600; }
.links a { display: inline-flex; align-items: center; gap: 3px; }
.links .icon { width: 12px; height: 12px; }

nav.pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0 0; }
nav.pages a, nav.pages span { display: inline-flex; align-items: center; gap: 4px; min-width: 36px; height: 36px;
    justify-content: center; padding: 0 10px; border-radius: 10px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
nav.pages .icon { width: 15px; height: 15px; }
nav.pages a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
nav.pages span.current { background: var(--button-gradient); border-color: transparent; color: #fff; }
nav.pages span.gap { background: none; border: none; box-shadow: none; color: var(--muted); }

.scanner-detail { grid-template-columns: minmax(0, 1fr) 360px; }
.scanner-detail .section-head { align-items: center; margin-bottom: 14px; }
.scanner-detail .aside-title { margin: 0; }
@media (max-width: 960px) { .scanner-detail { grid-template-columns: 1fr; } }
@media (max-width: 720px) { form.filters .span-2 { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ Admin */
.admin-tabs .icon { width: 15px; height: 15px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 20px; color: var(--text); }
a.kpi { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kpi-head .tile { width: 36px; height: 36px; border-radius: 10px; }
.kpi-head .tile .icon { width: 18px; height: 18px; }
.kpi-value { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis.compact .kpi-value { font-size: 26px; }
.kpi-sub { font-size: 13px; }
.kpi-sub.muted { font-size: 12.5px; }
/* Dashboard tiles (app/views/dashboard.php): the KPI cards as the way into each part of the app. */
.kpi-head .kpi-go { margin-left: auto; color: var(--muted); }
.kpi-go .icon { width: 16px; height: 16px; }
a.kpi:hover .kpi-go { color: var(--primary); }
.kpi-text { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 4px 0 2px; }
.kpi > .badge { align-self: flex-start; margin-top: 6px; }
/* At the tile's foot (the spacer pushes it down, so the feet of a row line up): an amber banner
   when there is something to do there, or the note why a disabled tile is not available yet. */
.kpi-fill { flex: 1 0 8px; }
.kpi-action, .kpi-note { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.kpi-action .icon, .kpi-note .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.kpi-action { padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.kpi.needs-action { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.kpi.is-disabled { cursor: not-allowed; box-shadow: none; background: var(--surface-2); }
.kpi.is-disabled > :not(.kpi-note) { opacity: .45; }
.kpi-note { color: var(--muted); }

.admin-section { margin-bottom: 20px; min-width: 0; }
.admin-section .section-head { align-items: center; flex-wrap: wrap; }
.admin-section .section-head h2 { margin: 0; }
.admin-section .section-head .push-right { margin-left: auto; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chart figcaption strong { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-chart { display: block; width: 100%; height: auto; overflow: visible; }
.bar-chart .bar { fill: currentColor; }
.bar-chart .hit { fill: transparent; }
.bar-chart g:hover .hit { fill: color-mix(in srgb, currentColor 10%, transparent); }
.bar-chart .axis { stroke: var(--border-strong); stroke-width: 1; }
.bar-chart text { fill: var(--muted); font-size: 11px; }
.tone-violet { color: var(--violet); --bar: var(--violet); }
.tone-indigo { color: var(--indigo); --bar: var(--indigo); }
.tone-amber { color: var(--amber); --bar: var(--amber); }
.tone-teal { color: var(--teal); --bar: var(--teal); }
.tone-ok { --bar: var(--ok); }
.tone-rose { --bar: var(--rose); }
.tone-neutral { --bar: var(--border-strong); }
.tone-score { --bar: var(--c); }
.chart-table { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.chart-table .table-wrap { margin-top: 12px; max-height: 420px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }

.breakdown { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4em; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.breakdown li strong { font-variant-numeric: tabular-nums; }
.breakdown li .muted { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.share-bar { grid-column: 1 / -1; width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden;
    appearance: none; -webkit-appearance: none; background: var(--surface-2); }
.share-bar::-webkit-progress-bar { background: var(--surface-2); }
.share-bar::-webkit-progress-value { background: var(--bar, var(--indigo)); border-radius: 99px; }
.share-bar::-moz-progress-bar { background: var(--bar, var(--indigo)); border-radius: 99px; }
[class^="dot-"] { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--bar); }
.dot-ok { --bar: var(--ok); } .dot-indigo { --bar: var(--indigo); } .dot-teal { --bar: var(--teal); }
.dot-amber { --bar: var(--amber); } .dot-rose { --bar: var(--rose); } .dot-neutral { --bar: var(--border-strong); }
.score-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none;
    font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.admin-section .sub-head { margin: 22px 0 12px; }

.admin-facts { grid-template-columns: max-content minmax(0, 1fr); font-size: 14px; gap: 9px 18px; }
.wide-facts { grid-template-columns: repeat(auto-fill, 140px minmax(200px, 1fr)); }
.admin-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-people a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.admin-people a:hover { text-decoration: none; background: var(--surface-2); }
.admin-people .avatar { margin: 0; flex: none; }
.admin-person { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.admin-person .muted { font-size: 12.5px; }
.admin-person-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; white-space: nowrap; }

.admin-table th.num a { justify-content: flex-end; }
.admin-table th.num, .admin-table td.num { text-align: right; }
.admin-table td.title { min-width: 200px; }
.admin-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.table-section .table-wrap { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.admin-user-head { margin-top: 4px; }
.admin-user-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 960px) { .admin-columns { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
    .chart-grid { grid-template-columns: 1fr; }
    .kpis, .kpis.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kpi { padding: 14px; }
    .kpi-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .kpi-head .kpi-go { display: none; }
    .kpi-value { font-size: 26px; }
    .admin-user-meta { justify-content: center; }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 720px) {
    .settings { grid-template-columns: 1fr; }
    .upload-form, .cv-detail, .robo-form, .robo-layout { grid-template-columns: 1fr; }
    .upload-form .consent, .upload-form .upload-actions { grid-column: auto; grid-row: auto; }
    .match-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .score-num { width: 44px; height: 44px; font-size: 22px; }
    .score-label { display: none; }
    .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) {
    .nav { gap: 2px; }
    .nav-link { padding: 8px 6px; }
    .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; }
    .pulse, .robo-avatar .gear { animation: none; }
}
