/* ============================================================
   ApplyPilot skin — a flowing gradient taken from the logo
   The logo's navy tile, a brighter blue, violet and cyan around it, and the
   plane's yellow, blended into a slowly moving gradient (drawn by motion.js)
   behind the sign-in page and every page header. Everything else sits on light
   paper with soft shadows, so the colour reads as the brand, not as noise.
   Type: Plus Jakarta Sans, with Instrument Serif italic for accent words.
   Loaded after styles.css; it changes how things look and move, nothing else.
   ============================================================ */

:root {
  --navy: #1e3a8a;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --plane: #fbbf24;
  --plane-fold: #d97706;

  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --surface-3: #e9edf6;
  --ink: #0b1736;
  --ink-2: #39446a;
  --muted: #687394;
  --line: #e4e8f2;
  --line-strong: #d0d6e6;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;
  --accent-line: #c7cdfb;
  --bar: #4f46e5;
  --pilot: #fbbf24;
  --focus: 0 0 0 3px rgba(79, 70, 229, .25);
  --shadow-sm: 0 1px 2px rgba(11, 23, 54, .05);
  --shadow: 0 2px 4px rgba(11, 23, 54, .04), 0 12px 32px -12px rgba(50, 50, 93, .18);
  --shadow-hover: 0 4px 8px rgba(11, 23, 54, .04), 0 30px 60px -20px rgba(50, 50, 93, .3);
  --shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, .35), 0 30px 60px -30px rgba(0, 0, 0, .3);
  --radius: 18px;
  --radius-sm: 12px;
  --brand-ink: #0b1736; --brand-pilot: #b45309;
  --flow: linear-gradient(120deg, var(--blue), var(--indigo) 45%, var(--violet));
  --grad: var(--flow);
  --grad-deep: linear-gradient(135deg, var(--navy), var(--indigo));
  --grad-soft: transparent;
  --f-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --glide: cubic-bezier(0.22, 1, 0.36, 1);
  --dots: color-mix(in srgb, var(--ink) 10%, transparent);
}
:root[data-theme="dark"] {
  --bg: #080d1f; --surface: #0f1630; --surface-2: #141c3a; --surface-3: #1b2548;
  --ink: #eef1fb; --ink-2: #bcc5df; --muted: #8b95b4; --line: #1d2749; --line-strong: #2b3763;
  --accent: #a5b4fc; --accent-hover: #c7d2fe; --accent-ink: #ffffff; --accent-soft: #1b2154; --accent-line: #343f8a; --bar: #818cf8;
  --focus: 0 0 0 3px rgba(165, 180, 252, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6); --shadow-hover: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-strong);
  --brand-ink: #eef1fb; --brand-pilot: #fbbf24;
  --dots: rgba(255, 255, 255, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d1f; --surface: #0f1630; --surface-2: #141c3a; --surface-3: #1b2548;
    --ink: #eef1fb; --ink-2: #bcc5df; --muted: #8b95b4; --line: #1d2749; --line-strong: #2b3763;
    --accent: #a5b4fc; --accent-hover: #c7d2fe; --accent-ink: #ffffff; --accent-soft: #1b2154; --accent-line: #343f8a; --bar: #818cf8;
    --focus: 0 0 0 3px rgba(165, 180, 252, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6); --shadow-hover: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-strong);
    --brand-ink: #eef1fb; --brand-pilot: #fbbf24;
      --dots: rgba(255, 255, 255, .07);
  }
}

/* ---------- Type ---------- */
body { font-family: var(--f-sans); background: var(--bg); word-spacing: .05em; }
.topbar h1, .hero h2, .find-hero h2, .auth-art h2, .auth-form h1, .dlg-head h2, .ob-hero h2, .empty-title, .empty-state h3, .kpi .value, .pipe-row .num {
  font-family: var(--f-sans); font-variation-settings: normal; font-weight: 800; letter-spacing: -0.025em;
}
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
em, .w-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Headlines reveal word by word (motion.js wraps the words) */
.w { display: inline-block; animation: word-in 700ms var(--glide) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }
.w-serif { font-size: 1.12em; line-height: 1; padding-right: .06em; color: var(--accent); }

/* ---------- The logo ----------
   Same page and plane; the tile now carries the gradient, with a cyan glint,
   and "Pilot" is set in the serif italic. */
.bm-tile { fill: url(#bm-grad); }
.bm-glow { fill: url(#bm-glow); pointer-events: none; }
.bm-wing { stroke: #1e1b4b; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; }
.brand-pilot { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: 0; padding-left: 1px; }
.brand-mark { border-radius: 12px; transition: transform 400ms var(--glide), filter 400ms var(--glide); }
.sidebar .brand-mark { filter: drop-shadow(0 4px 8px rgba(11, 23, 54, .22)); }
@media (hover: hover) and (pointer: fine) {
  .sidebar .brand:hover .brand-mark, .sidebar .brand-mark:hover { transform: rotate(-6deg) scale(1.06); }
  .sidebar .brand:hover .bm-plane, .sidebar .brand-mark:hover .bm-plane { animation: bm-fly 900ms var(--glide); }
}

/* ---------- Shell ---------- */
.sidebar { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(12px); border-right: 1px solid var(--line); }
:root .nav-item { border-radius: var(--radius-sm); font-weight: 600; transition: color .2s ease, background-color .2s ease; }
:root .nav-item svg.i { transition: transform 300ms var(--glide); }
@media (hover: hover) and (pointer: fine) { :root .nav-item:hover svg.i { transform: translateX(2px) rotate(-6deg); } }
:root .sidebar .nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
:root .sidebar .nav.has-pill .nav-item[aria-current="page"] { background: none; }
:root .nav > .tab-pill { background: var(--accent-soft); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--accent-line); }
:root .nav-item .count { background: transparent; color: var(--muted); font-variant-numeric: tabular-nums; }
:root .nav-item[aria-current="page"] .count { background: var(--surface); color: var(--accent); }
.avatar { background: var(--flow); color: #fff; }

/* A faint dot grid on the paper, fading out down the page */
.main { position: relative; isolation: isolate; }
.main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--dots) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 820px); mask-image: linear-gradient(to bottom, #000 0, transparent 820px); }

/* ---------- Page header: the moving gradient, cut on a slant ---------- */
.mesh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; filter: saturate(1.1); }
:root[data-theme="dark"] .mesh-canvas { filter: saturate(1.15) brightness(.62); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mesh-canvas { filter: saturate(1.15) brightness(.62); } }
:root .topbar { background: var(--navy); border-bottom: 0; color: #fff; backdrop-filter: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%); }
/* a darker wash on the left keeps the white title readable wherever the colours drift */
:root .topbar::after { content: ""; position: absolute; inset: 0; z-index: -1; height: auto; bottom: 0;
  background: linear-gradient(90deg, rgba(11, 18, 52, .55), rgba(11, 18, 52, .15) 55%, rgba(11, 18, 52, 0)); transition: none; }
.page-icon { display: none; }
.topbar-inner { padding: 24px 32px 44px; }
.topbar h1 { font-size: 2.15rem; color: #fff; }
.topbar .sub { color: rgba(255, 255, 255, .84); }
:root .page-date, :root[data-theme="dark"] .page-date { color: rgba(255, 255, 255, .78); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-date { color: rgba(255, 255, 255, .78); } }
.topbar .theme-toggle { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); }
.topbar .theme-toggle .tt-track { background: rgba(255, 255, 255, .3); }
.topbar .theme-toggle[aria-checked="true"] .tt-track { background: var(--plane); }
.topbar-art { color: #fff; opacity: 1; right: 190px; width: min(440px, 42%); z-index: 0; }
.ta-glow, .ta-dot, .ta-star { display: none; }
:root .ta-path { stroke: rgba(255, 255, 255, .55); opacity: 1; stroke-dasharray: 2 8; animation: route 1.2s linear infinite; }
.ta-plane-body { fill: var(--plane); stroke: #1e1b4b; stroke-width: 1.4; }
.ta-plane-fold { stroke: var(--plane-fold); }
.topbar.enter .ta-plane { animation: ta-glide 900ms 120ms var(--glide) both; }
.ta-plane { animation: drift 6s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, 4px); } }
@keyframes route { to { stroke-dashoffset: -10; } }

/* ---------- Buttons: pills; the main one carries the gradient and shines on hover ---------- */
.btn { border-radius: 999px; font-weight: 700; height: 40px; padding: 0 18px; }
:root .btn:not(.secondary):not(.ghost):not(.danger) { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--indigo) 45%, var(--violet)); box-shadow: 0 6px 16px -8px rgba(11, 23, 54, .45); }
:root .btn:not(.secondary):not(.ghost):not(.danger)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-110%); }
:root .btn.secondary { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
:root .btn.ghost { box-shadow: none; color: var(--accent); }
.btn svg.i { transition: transform 300ms var(--glide); }
.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform 300ms var(--glide), box-shadow 300ms var(--glide); }
@media (hover: hover) and (pointer: fine) {
  :root .btn:not(.secondary):not(.ghost):not(.danger):not(:disabled):hover { filter: none; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(11, 23, 54, .5); }
  :root .btn:not(.secondary):not(.ghost):not(.danger):not(:disabled):hover::after { transform: translateX(110%); transition: transform 700ms var(--glide); }
  :root .btn.secondary:not(:disabled):hover { border-color: var(--accent-line); background: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow); }
  .btn:not(:disabled):hover svg.i { transform: translateX(2px) rotate(-8deg); }
}
.btn:not(:disabled):active { transform: scale(.97); }
:root .btn:focus-visible { box-shadow: var(--focus); }

/* ---------- Inputs ---------- */
.input, .select, .textarea, .tag-input { border-radius: var(--radius-sm); border-color: var(--line-strong); background: var(--surface); transition: border-color .2s ease, box-shadow .25s var(--glide); }
.input:focus, .select:focus, .textarea:focus, .tag-input:focus-within { border-color: var(--indigo); box-shadow: var(--focus); }
.field > span { font-weight: 700; color: var(--ink-2); }

/* ---------- Cards: white, soft shadow, a light that follows the pointer ---------- */
.card { border-radius: var(--radius); box-shadow: var(--shadow); border-color: var(--line); background-color: var(--surface);
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--indigo) 7%, transparent), transparent 60%);
  transition: box-shadow 400ms var(--glide), transform 400ms var(--glide), border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: var(--shadow-hover); } }
.card-head { border-bottom-color: var(--line); }
.inline-note, .notice.info { background: var(--accent-soft); border: 0; }
.notice { border-radius: var(--radius-sm); }

/* Status pills keep their colours; Interview pulses */
.badge, .status-select, .st { border-radius: 999px; }
.badge.s-Interview::before { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.chip { border-radius: 999px; }
.tag { border-radius: 8px; }
.logo-sq { border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.step-n { background: var(--flow); color: #fff; }

/* ---------- Dashboard ---------- */
.hero, .find-hero { display: block; background: none; border: 0; border-radius: 0; padding: 6px 0 0; margin-bottom: 26px; overflow: visible; isolation: isolate; box-shadow: none; }
.hero-art, .find-hero .hero-art { display: none; }
/* a blurred, slowly turning glow behind the greeting */
.hero::after, .find-hero::after { content: ""; display: block; position: absolute; z-index: -1; right: 4%; left: auto; top: -70px; width: 460px; height: 240px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--indigo), var(--violet), var(--plane), var(--cyan)); filter: blur(70px); opacity: .28;
  animation: turn 22s linear infinite; pointer-events: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.hero h2 { font-size: 2.1rem; }
.hero-text p, .find-hero p { color: var(--ink-2); max-width: 60ch; }
.hero-actions { margin-top: 18px; }

/* KPIs: separate cards; figures in the gradient and counting up */
.kpis { gap: 14px; margin-bottom: 26px; }
.kpis .kpi { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .kpis .kpi:hover { transform: translateY(-3px); border-color: var(--accent-line); } }
.kpi .label svg.i { color: var(--indigo); }
.kpi .value { font-size: 2.3rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpis .kpi:nth-child(6) .value { color: var(--s-interview-fg); }

/* Pipeline: gradient bars that grow in, the interview stage in the plane's yellow */
.pipe-track { height: 8px; border-radius: 999px; background: var(--surface-3); }
.pipe-fill { border-radius: 999px; background: var(--flow); transform-origin: left; }
.pipe-row:nth-child(5) .pipe-fill { background: linear-gradient(90deg, #f59e0b, var(--plane)); }
.pipe-row .name { color: var(--ink-2); }

.mini-item { transition: background-color .2s ease, padding-left 300ms var(--glide); }
@media (hover: hover) and (pointer: fine) { .mini-item:hover { padding-left: 26px; background: var(--surface-2); } }
.card:has(> #followList) .card-head svg.i { color: var(--plane-fold) !important; }

/* ---------- Applications & results ---------- */
.thead { background: transparent; border-bottom: 1px solid var(--line); }
.trow, .rrow { transition: background-color .2s ease; }
.trow:hover:not(.thead), .rrow:hover { background: var(--surface-2); }
.seg { border-radius: 999px; background: var(--surface-2); border-color: var(--line); }
.seg button { border-radius: 999px; }
.seg > .tab-pill { border-radius: 999px; box-shadow: var(--shadow-sm); }
.col { border-radius: var(--radius); background: var(--surface-2); border-color: transparent; }
.kcard { border-radius: 14px; transition: transform 300ms var(--glide), box-shadow 300ms var(--glide), border-color .2s; }
@media (hover: hover) and (pointer: fine) { .kcard:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-hover); } }
/* rows rise in as they scroll into view, where the browser supports it */
@supports (animation-timeline: view()) {
  #listWrap .trow:not(.thead), #resultList .rrow { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
}

/* Find & Apply */
.find-tabs { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; }
.find-tabs button { border-radius: 999px; }
:root .find-tabs button[aria-selected="true"] { background: var(--flow); color: #fff; box-shadow: none; }
.find-tabs > .tab-pill { background: var(--flow); border-radius: 999px; }
.find-hero h2 { font-size: 1.7rem; }
.hero-chips span { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.pchip { border-radius: 999px; }
.mini-item[aria-current="true"] { background: var(--accent-soft); box-shadow: none; }

/* ---------- Dialogs rise from below over a blurred veil ---------- */
dialog { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(11, 18, 52, .4); backdrop-filter: blur(6px); }
.dlg-foot { border-top-color: var(--line); }
@starting-style { dialog[open] { opacity: 0; transform: translateY(20px) scale(.97); } }
.choice { border-radius: var(--radius); background-image: radial-gradient(300px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--indigo) 9%, transparent), transparent 60%); }
.choice .ill, .dropzone .ill { background: var(--flow); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 23, 54, .4); }
.dropzone { border-radius: var(--radius); background: var(--surface-2); }
.toast { border-radius: 999px; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-lg); }

/* ---------- Dark mode switch ---------- */
.theme-toggle { border-color: var(--line); background: var(--surface); }
.theme-toggle[aria-checked="true"] .tt-track { background: var(--flow); }

/* ---------- Sign in: the full gradient, slanted into the form ---------- */
.auth { background: var(--bg); }
.auth-art { background: var(--navy); padding: 56px 110px 56px 56px; clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%); }
:root .auth-art { border-right: 0; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(11, 18, 52, .3), rgba(11, 18, 52, 0) 55%, rgba(11, 18, 52, .25)); }
.auth-art .blob { display: none; }
.auth-art-inner { position: relative; max-width: 470px; }
.auth-art-brand { font-size: 1.2rem; }
.auth-art h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); line-height: 1.04; margin: 8px 0 26px; }
.auth-art h2 em, .auth-art h2 .w-serif { font-size: 1.12em; color: #fde68a; font-weight: 400; letter-spacing: 0; }
.auth-points { gap: 12px; }
.auth-points li { animation: rise .7s var(--glide) both; font-size: .98rem; color: rgba(255, 255, 255, .92); padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.auth-points li:nth-child(1) { animation-delay: .5s; } .auth-points li:nth-child(2) { animation-delay: .62s; } .auth-points li:nth-child(3) { animation-delay: .74s; }
.auth-points svg.i { background: rgba(255, 255, 255, .16); border-radius: 8px; }
:root .auth > .auth-card { background: transparent; border: 0; box-shadow: none; animation: rise .6s .1s var(--glide) both; }
.auth::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(var(--dots) 1px, transparent 1.5px) 0 0 / 22px 22px; }
.auth-form h1 { font-size: 2.2rem; }
.auth-or::before, .auth-or::after { background: var(--line); }
.auth-theme { box-shadow: var(--shadow); }

/* The flight: a dashed route that keeps moving, and the logo's plane flying it */
.flight { position: relative; width: 420px; height: 200px; margin: 26px 0 14px; }
.fl-svg { position: absolute; inset: 0; overflow: visible; }
.fl-path { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; animation: route-l 1.2s linear infinite; }
.fl-dot { fill: var(--plane); }
.fl-plane { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  offset-path: path("M6 186C96 186 120 70 214 82S352 40 414 14"); offset-rotate: auto 45deg; offset-anchor: center;
  animation: fly-route 7s cubic-bezier(.45, 0, .25, 1) infinite; }
.fl-plane svg { display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.fl-wing { fill: var(--plane); stroke: #fff; stroke-width: .8; stroke-linejoin: round; }
.fl-fold { fill: none; stroke: var(--plane-fold); stroke-width: 1.2; stroke-linecap: round; }
@keyframes route-l { to { stroke-dashoffset: -11; } }
@keyframes fly-route {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  80% { offset-distance: 100%; opacity: 1; }
  88%, 100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- Entrances: every page glides in, content follows in a short wave ---------- */
.view:not([hidden]) { animation: view-in 480ms var(--glide) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
.view:not([hidden]) .kpis > .kpi, .view:not([hidden]) .dash-grid > * { animation: pop-in 640ms var(--glide) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.view:not([hidden]) .kpis > .kpi:nth-child(2) { animation-delay: 50ms; }
.view:not([hidden]) .kpis > .kpi:nth-child(3) { animation-delay: 100ms; }
.view:not([hidden]) .kpis > .kpi:nth-child(4) { animation-delay: 150ms; }
.view:not([hidden]) .kpis > .kpi:nth-child(5) { animation-delay: 200ms; }
.view:not([hidden]) .kpis > .kpi:nth-child(6) { animation-delay: 250ms; }
.view:not([hidden]) .dash-grid > :nth-child(1) { animation-delay: 200ms; }
.view:not([hidden]) .dash-grid > :nth-child(2) { animation-delay: 300ms; }
.view:not([hidden]) .pipe-fill { animation: grow-x 1100ms 350ms var(--glide) both; }
@keyframes grow-x { from { transform: scaleX(0); } }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .sidebar { border-right: 0; border-top: 1px solid var(--line); }
  .topbar-inner { padding: 16px 16px 34px; }
  :root .topbar { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%); }
  .topbar h1 { font-size: 1.6rem; }
  .topbar-art { display: none; }
  .hero h2 { font-size: 1.7rem; }
  .hero::after { width: 280px; right: -40px; }
  .kpis { gap: 10px; }
  .auth-art { padding: calc(28px + env(safe-area-inset-top)) 20px 52px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .flight { transform: scale(.62); transform-origin: left top; margin: 6px 0 -64px; }
  .auth-art h2 { font-size: 1.9rem; margin-bottom: 0; }
  .auth-points { display: none; }
  :root .auth > .auth-card { margin-top: 0; }
  /* Submit and track: one full-width button per row, main action first, easy to hit with a thumb */
  #awSubmit .btn-row { flex-direction: column; align-items: stretch; gap: 8px; }
  #awSubmit .btn-row .btn { width: 100%; justify-content: center; height: 46px; }
  #awSubmit .btn-row .btn:not(.secondary):not(.ghost) { order: -1; }
  /* Quick fill: the label sits above the value, so long values like emails get the full width */
  .qf { flex-wrap: wrap; row-gap: 2px; padding: 10px 16px; }
  .qf .k { width: 100%; }
  .qf .v { flex: 1 1 0; overflow-wrap: break-word; }
}

/* ---------- Less motion when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  .ta-plane, .ta-path, .fl-path, .badge.s-Interview::before, .hero::after, .find-hero::after { animation: none !important; }
  .fl-plane { animation: none; offset-distance: 62%; }
  .w { animation: none; }
  .view:not([hidden]), .view:not([hidden]) .kpis > .kpi, .view:not([hidden]) .dash-grid > *,
  .auth-points li, :root .auth > .auth-card { animation: fade .2s ease both !important; }
  .view:not([hidden]) .pipe-fill { animation: none; }
  .trow, .rrow, .mini-item { animation: none !important; }
  .mini-item, .kcard, .btn, .btn svg.i, .card, .brand-mark { transition-property: background-color, border-color, color, box-shadow; }
  .mini-item:hover { padding-left: 20px; }
}
