/* Red accent on near-black / near-white neutrals. Desktop: timeline + side panel.
   Phones: one column. No external fonts or scripts. */
:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --ink: #0c0d10;
  --ink-2: #5a5f68;
  --ink-3: #8a8f98;
  --line: #e4e5e8;
  --line-strong: #cfd1d6;
  --accent: #e11d2e;          /* button fill */
  --accent-hover: #c2121f;
  --accent-text: #d0182a;     /* accent used as text on the page background */
  --accent-soft: #fdecee;
  --accent-glow: rgba(225, 29, 46, 0.16);
  --on-accent: #ffffff;
  --ok: #0f7a52;
  --ok-soft: #e4f4ec;
  --warn: #8a5300;
  --warn-soft: #fdf1d8;
  --dot: rgba(12, 13, 16, 0.07);
  --shadow: 0 1px 2px rgba(12, 13, 16, 0.04), 0 8px 24px rgba(12, 13, 16, 0.06);
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b;
    --surface: #111317;
    --surface-2: #181b20;
    --ink: #f3f4f6;
    --ink-2: #a2a8b2;
    --ink-3: #6f7580;
    --line: #23262c;
    --line-strong: #353941;
    --accent: #e5283a;
    --accent-hover: #f0404f;
    --accent-text: #ff6672;
    --accent-soft: #2a1114;
    --accent-glow: rgba(255, 59, 71, 0.22);
    --ok: #4fd39b;
    --ok-soft: #10261d;
    --warn: #f3c56f;
    --warn-soft: #2b2110;
    --dot: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; height: 60px;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-mark .icon { width: 16px; height: 16px; }
.brand-name { font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px;
}
.who-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700;
}
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.lang {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.lang:hover { border-color: var(--line-strong); }
a.who { color: var(--ink); text-decoration: none; }
a.who:hover { border-color: var(--line-strong); }
.signout { display: flex; }
button.lang { font-family: inherit; cursor: pointer; }

/* ---- page ---- */
.page {
  max-width: 1160px; margin: 0 auto;
  padding: 20px max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left));
}

/* ---- hero: title on a dot grid, progress meter on the right ---- */
.hero {
  position: relative; overflow: hidden;
  display: grid; gap: 20px;
  padding: 26px 22px;
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(520px 260px at 100% 0%, var(--accent-glow), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-top: 12px; font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.lede { margin-top: 8px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }

.progress { display: grid; gap: 4px; align-content: center; min-width: 220px; }
.progress-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.progress-num { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.progress-of { font-size: 18px; color: var(--ink-3); }
.progress-label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.progress-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.seg { height: 6px; border-radius: 999px; background: var(--line-strong); }
.seg-on { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* ---- layout ---- */
.layout { display: grid; gap: 20px; margin-top: 20px; }

/* ---- timeline of steps ---- */
.timeline { display: grid; gap: 14px; }
.node { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; position: relative; }
.node-rail { position: relative; display: flex; justify-content: center; }
.node:not(:last-child) .node-rail::after {            /* the line joining steps */
  content: ""; position: absolute; top: 46px; bottom: -14px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--line-strong), var(--line));
  border-radius: 2px;
}
.node-index {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font: 600 13px/1 var(--mono); letter-spacing: 0.02em;
  background: var(--surface); color: var(--ink-3); border: 1px solid var(--line);
}
.node-current .node-index {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.node-done .node-index { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 14px; min-width: 0;
}
.node-current .card {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}
.node-done .card { box-shadow: var(--shadow); }
.node-locked .card { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.card-slim { gap: 6px; padding: 16px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.node-locked h2 { color: var(--ink-2); font-size: 16px; }
.body { color: var(--ink-2); }
.node-current .body { color: var(--ink); }
.node-locked .body { font-size: 15px; color: var(--ink-3); }
.meta { font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-3); }

/* ---- chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font: 600 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip .icon { width: 12px; height: 12px; }
.chip-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-action { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip-live { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- callouts ---- */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; font-size: 15px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
.callout .icon { margin-top: 2px; color: var(--ink-2); }
.callout-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.callout-warn .icon { color: inherit; }

/* ---- connected mailbox ---- */
.mailbox {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.mailbox-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text);
}
.mailbox-text { display: grid; min-width: 0; }
.mailbox-label { font: 600 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.mailbox-email { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* ---- buttons ---- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--accent-text); }
.btn:disabled { background: var(--surface-2); color: var(--ink-3); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn:focus-visible, .lang:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon-trail { margin-left: 2px; }
.actions { display: grid; gap: 8px; }

/* ---- access scope panel ---- */
.scope {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow);
}
.scope-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.scope-eyebrow { font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.scope-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.scope h2 { font-size: 16px; letter-spacing: -0.01em; font-weight: 650; }
.scope h3 {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.scope-list { display: grid; gap: 10px; font-size: 15px; }
.scope-list li { display: flex; gap: 10px; align-items: flex-start; }
.scope-list .icon { margin-top: 3px; }
.scope-can .icon { color: var(--ok); }
.scope-cannot .icon { color: var(--ink-3); }
.scope-foot {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 6px; padding: 12px; border-radius: 10px; background: var(--surface-2);
  font-size: 14px; color: var(--ink-2);
}
.scope-foot .icon { margin-top: 2px; }

/* ---- messages ---- */
.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 15px;
  border: 1px solid transparent;
}
.flash .icon { margin-top: 2px; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.notice {
  max-width: 520px; margin: 48px auto; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.notice h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.notice p { color: var(--ink-2); }

/* ---- step 2: sub-pages, panels and forms ---- */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
}
.back:hover { color: var(--accent-text); }
.back .icon { width: 16px; height: 16px; }
.pagehead { display: grid; gap: 10px; margin-bottom: 22px; }
.pagehead h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.pagehead .lede { margin-top: 0; max-width: 62ch; }
.stack { display: grid; gap: 16px; max-width: 880px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 16px; min-width: 0; box-shadow: var(--shadow);
}
.panel-current { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.panel-num { font: 600 13px/1 var(--mono); color: var(--accent-text); letter-spacing: 0.02em; }
.panel > .btn { justify-self: start; }
.subs { display: grid; gap: 8px; font-size: 15px; color: var(--ink-3); }
.subs li { display: flex; align-items: center; gap: 10px; }
.subs .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; border: 1px solid var(--line-strong); color: transparent; }
.subs .sub-done { color: var(--ink); }
.subs .sub-done .icon { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > .label, .detail > label { font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 16px/1.4 var(--sans);
}
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: auto; }
.input:focus { outline: 3px solid var(--accent-glow); border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--accent); background: var(--accent-soft); }
.input-file { padding: 8px; }
.upload { display: grid; gap: 14px; }
.more summary { cursor: pointer; color: var(--ink-2); font-size: 15px; width: fit-content; }
.more summary:hover { color: var(--accent-text); }
.more[open] summary { margin-bottom: 14px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 15px;
}
.choice input:hover + span { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.detail { display: grid; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rowline + .rowline { margin-top: 2px; }

.entry { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.entry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.check { display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.btn-add { justify-self: start; min-height: 40px; padding: 0 12px; border: 1px dashed var(--line-strong); font-size: 15px; }
.savebar {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
a.btn { text-decoration: none; }

/* ---- job check ---- */
.textlink { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.textlink .icon { width: 16px; height: 16px; }
.callout a, .hint a { color: inherit; font-weight: 600; }
.jobform { display: grid; gap: 16px; }
.jobform > .btn { justify-self: start; }
.jobq .label { line-height: 1.45; overflow-wrap: anywhere; }
.req { color: var(--accent-text); margin-left: 4px; }
.hint-strong { color: var(--warn); }
.checks { display: grid; gap: 8px; }
.demobar { margin: 0; padding: 8px 16px; background: #0c0d10; color: #fff; font-size: 14px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; }
.joblist { display: grid; }
.jobrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.jobrow:first-child { border-top: 0; padding-top: 0; }
.jobpick { display: flex; padding-top: 3px; }
.jobpick input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.jobpick input:disabled { cursor: not-allowed; }
.jobmain { display: grid; gap: 4px; min-width: 0; }
.jobtitle { font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.jobside { display: grid; gap: 6px; justify-items: end; }
.btn-small { min-height: 32px; padding: 0 8px; font-size: 14px; }
.todorow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.todorow:first-child { border-top: 0; padding-top: 0; }
.todo-link { gap: 8px; }
.pager { display: flex; align-items: center; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick .btn { width: auto; flex: 0 1 auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
.badge-quiet { background: var(--line-strong); color: var(--ink); }
.hint-match { color: var(--ink); }
a.brand { color: inherit; text-decoration: none; }
.jobtitle .chip { margin-left: 6px; vertical-align: middle; }
.points { display: grid; gap: 6px; padding-left: 20px; list-style: disc; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.todorow-wide { grid-template-columns: minmax(0, 1fr); align-items: start; }
.todoacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.todoacts .btn-secondary { padding: 0 12px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 1; }
.todo-call { margin-bottom: 18px; max-width: 880px; }
.group { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.group-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.group-pay { padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; background: var(--accent-soft); }
.group-pay .input { background: var(--surface); }
.known { display: grid; gap: 0; font-size: 14px; }
.known li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.known-q { color: var(--ink-2); overflow-wrap: anywhere; }
.known-a { font-weight: 600; overflow-wrap: anywhere; }

/* ---- small phones ---- */
@media (max-width: 480px) {
  .who-name { display: none; }
  .who { padding: 4px; }
  .lang { min-height: 44px; }
  .node { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .node-index { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
  .node:not(:last-child) .node-rail::after { top: 38px; }
  .card { padding: 16px; }
  .card-head { align-items: flex-start; }
  .jobrow { grid-template-columns: auto minmax(0, 1fr); }
  .jobside { grid-column: 2; display: flex; align-items: center; gap: 10px; }
  .todorow { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner:has(.todo-link) .brand-name { display: none; }   /* signed in: the to-do count needs the room */
  .topbar-inner:has(.nav-settings) .who { display: none; }      /* the account is the first card on the settings page */
  .todorow .btn { justify-self: start; }
}

/* ---- tablets and up ---- */
@media (min-width: 640px) {
  .page { padding-top: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 36px 36px 34px; }
  .hero h1 { font-size: 40px; }
  .btn { width: auto; min-height: 46px; }
  .card > .btn { justify-self: start; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; }
  .card { padding: 24px; }
  .card-slim { padding: 18px 24px; }
  .panel { padding: 24px; }
  .pagehead h1 { font-size: 38px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .known li { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
}

/* ---- desktop: steps left, access panel pinned right ---- */
@media (min-width: 980px) {
  .hero { padding: 44px 44px 40px; }
  .hero h1 { font-size: 46px; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 28px; }
  .scope { position: sticky; top: 84px; padding: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .lang { transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease; }
  .btn-primary:hover:not(:disabled) .icon-trail { transform: translateX(3px); }
  .icon-trail { transition: transform 160ms ease; }
  .btn:active:not(:disabled) { transform: translateY(1px); }
  .pulse { animation: pulse 1.8s ease-out infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
}

/* ---- sign in, create account ---- */
.auth {
  max-width: 440px; margin: 40px auto; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.auth-head { display: grid; gap: 8px; }
.auth-head h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.auth-head .lede { margin-top: 0; font-size: 15px; }
.auth .fields, .stack-narrow .fields { grid-template-columns: 1fr; }
.btn-block { width: 100%; justify-content: center; }
.stack-narrow { max-width: 520px; }
.notice .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 520px) {
  .auth { margin: 16px auto; padding: 22px 18px; }
  .who-name { display: none; }
  .who { padding: 4px; }
  .signout { display: none; }      /* on a phone, sign out from the account page (tap the initial) */
}

/* ---- terms, privacy notice, authorisation ---- */
.foot { max-width: 1160px; margin: 0 auto; padding: 8px 20px 36px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { max-width: 760px; display: grid; gap: 22px; }
.legal section { display: grid; gap: 10px; }
.legal h2 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.legal p { color: var(--ink); line-height: 1.7; }
.legalnav { display: flex; flex-wrap: wrap; gap: 8px; }
.legalnav a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; }
.legalnav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legalsum { padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.legalsum ul { display: grid; gap: 8px; }
.legalsum li { display: flex; gap: 10px; align-items: flex-start; }
.legalsum li .icon { margin-top: 3px; color: var(--ok); }
.agreebox { align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.5; }
.agreebox input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.agreebox a { color: var(--accent-text); }
.known a { color: inherit; }
.picked-why { font-weight: 400; font-size: 13px; color: var(--ink-2); }

/* the last look before sending (review.html), the two-way choice, and "I applied myself" on the job list */
.optlist { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px;
       border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt span { display: grid; gap: 4px; }
.opt small { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stack-tight { display: grid; gap: 14px; justify-items: start; }
.stack-tight .optlist { width: 100%; }
.reviewtext { padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
              font-size: 14px; line-height: 1.5; max-height: 520px; overflow: auto; overflow-wrap: anywhere; }
.reviewtext p + p { margin-top: 4px; }
.reviewshot { display: block; max-width: 100%; height: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.selfdone { margin-top: 4px; font-size: 13px; }
.selfdone > summary { cursor: pointer; color: var(--ink-3); width: fit-content; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.selfdone > summary::-webkit-details-marker { display: none; }
.selfdone > summary:hover { color: var(--accent-text); }
.selfbox { display: grid; gap: 8px; justify-items: start; margin-top: 8px; padding: 12px 14px; border-radius: 12px;
           background: var(--surface-2); border: 1px solid var(--line); max-width: 460px; }
.jobdoc .reviewtext { max-height: 360px; }
.jobdoc .reviewtext p + p { margin-top: 10px; }

/* reading a résumé: three steps and a bar that moves without claiming a percentage */
.reading { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.readsteps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.readstep { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); }
.readstep .icon { width: 16px; height: 16px; opacity: 0.35; }
.readstep.is-done { color: var(--ok); font-weight: 600; }
.readstep.is-done .icon { opacity: 1; }
.readstep.is-now { color: var(--ink); font-weight: 600; }
.readdot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.readstep.is-done .readdot { display: none; }
.readbar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.readbar span { display: block; width: 35%; height: 100%; border-radius: 999px; background: var(--accent); }
.reading.is-finished .readbar span { width: 100%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .readbar span { animation: readbar 1.4s ease-in-out infinite; }
  .reading.is-finished .readbar span { animation: none; }
  .readdot { animation: readdot 1.2s ease-in-out infinite; }
  @keyframes readbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
  @keyframes readdot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}

/* ---- "not for me" on a recommended job: the reasons open under the mark, one tap sends ---- */
.jobrow { position: relative; }
.nofit { display: inline-block; }
.nofit > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); }
.nofit > summary::-webkit-details-marker { display: none; }
.nofit > summary:hover, .nofit[open] > summary { background: var(--surface-2); color: var(--accent-text); }
.nofit > summary .icon { width: 18px; height: 18px; }
.nofit-box { position: absolute; z-index: 30; top: calc(100% - 4px); right: 0; width: max-content; max-width: 100%; display: flex; flex-wrap: wrap; gap: 6px;
             padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
.nofit-ask { flex-basis: 100%; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nofit-why { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
             font: 14px/1 var(--sans); cursor: pointer; }
.nofit-why:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.nofit-why:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gone { margin-top: 14px; }
.gonelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gonelist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.gonelist form { flex: none; }
.gonelist .btn { width: auto; }

/* ---- what the customer is looking for: groups, with the finer choices folded away ---- */
.fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary h2::after { content: " \25B8"; color: var(--ink-3); }
.fold[open] > summary h2::after { content: " \25BE"; }
.fold[open] > summary { margin-bottom: 16px; }
.fold-hint { font-size: 14px; color: var(--ink-3); }
.fold-in > summary { cursor: pointer; width: fit-content; color: var(--ink-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.fold-in > summary:hover { color: var(--accent-text); }
.fold-in[open] > summary { margin-bottom: 12px; }
.choices[data-most] .choice input:disabled + span { opacity: 0.45; }
.recheck { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 3px 10px 3px 8px; border-radius: 999px; width: fit-content;
           background: var(--warn-soft, #fff3d6); color: var(--warn, #8a5a00); font-size: 13.5px; font-weight: 600; }
.recheck .icon { width: 14px; height: 14px; }
.fold-in textarea.input, .targets textarea.input { min-height: 68px; }
.targets .choices { gap: 6px; }
.targets .choice span { min-height: 36px; padding: 0 12px; font-size: 14.5px; }
.targets .fields { gap: 12px; }
.fold > summary h2 { font-size: 18px; }

/* ---- the recommended jobs, a page at a time (the browser turns the pages; without scripts the whole list shows) ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 4px; }
.pager[hidden] { display: none; }
.pager .btn { width: auto; }
.pager .btn:disabled { opacity: 0.4; cursor: default; }
.pager-where { min-width: 7em; text-align: center; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---- a few sentences about the job and the employer, under "About" on a job row ---- */
.about > summary { cursor: pointer; width: fit-content; color: var(--ink-3); font-size: 13px; }
.about p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; max-width: 68ch; }
.about-h { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
           font-size: 12.5px; font-weight: 600; line-height: 1.7; }
.look .why.about > summary { gap: 0; }
.look .jobrow-tight:has(details[open]) { align-items: start; }      /* opened up: the tick box and marks stay by the title */
.look .jobrow-tight:has(details[open]) .jobpick, .look .jobrow-tight:has(details[open]) .jobside { margin-top: 2px; }

/* One employer's recommended jobs together, under its name (recommend.laid_out) */
.jobgroup { border-top: 1px solid var(--line); padding: 14px 0 2px; }
.jobgroup:first-child { border-top: 0; padding-top: 0; }
.jobgroup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.jobgroup-name { font-size: 17px; font-weight: 650; }
.jobgroup-n { font-size: 14.5px; font-weight: 600; color: var(--accent); }
.jobgroup-was { font-size: 13.5px; color: var(--ink-2); }
.jobgroup-tip { margin-left: auto; font-size: 13.5px; color: var(--ink-2); }
.joblist-in { padding-left: 14px; border-left: 3px solid var(--line); }
.joblist-in .jobrow:first-child { padding-top: 4px; }
.jobrow + .jobgroup, .jobgroup + .jobrow { border-top: 1px solid var(--line); }
.joblist > .jobrow[data-page]:first-child { border-top: 0; }
/* The note about several applications at one employer, and the two buttons under a list of jobs */
.crowd { margin: 14px 0 0; }
.crowd[hidden] { display: none; }
.crowd-line { display: block; font-weight: 600; }
.pickbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pickbar .btn { width: auto; flex: 0 1 auto; }
@media (max-width: 560px) {
  .jobgroup-tip { margin-left: 0; flex-basis: 100%; }
  .joblist-in { padding-left: 10px; }
  .pickbar .btn { flex: 1 1 100%; }
}
.page > .crowd { max-width: 880px; }          /* on the confirm page: as wide as the jobs under it */
.pager .btn { white-space: nowrap; }

/* Pasting a link: the two optional boxes for the employer and the job title, under the link */
.pastemore { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pastehint { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .pastemore { grid-template-columns: 1fr; } }

/* Confirm page: a question that an answer brings up, under the question it follows (jobconfirm.html, app.js). */
.jobq-follow { display: grid; gap: 8px; margin-left: 4px; padding-left: 14px; border-left: 2px solid var(--line); }
.jobq-when { margin: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Confirm page: the file that will go into an upload box, or the box to give one (jobconfirm.html, .group-files). */
.filegoes { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.filegoes .icon { flex: none; width: 18px; height: 18px; color: var(--ok, #1a7f4b); }
.jobfile input[type="file"] { max-width: 100%; }
.group-files .group-title .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.filerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filerow form { margin-left: auto; }

/* Confirm page: answers we drafted (jobconfirm.html). Defaults only they can give, agreed to with one tick; prefills to look over. */
.group-defaults { padding: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; background: var(--accent-soft); }
.group-defaults .input, .group-prefill .input { background: var(--surface); }
.group-defaults .group-title .icon, .group-prefill .group-title .icon { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.group-defaults .group-title .tip { display: inline-block; vertical-align: middle; }
.agree-all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); font-weight: 600; cursor: pointer; justify-self: start; }
.agree-all .icon { width: 16px; height: 16px; color: var(--accent); }
.agree-all:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.agree-all:has(input:checked) .icon { color: #fff; }
.agree-all input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree-all:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.agree-all .icon { opacity: .35; }
.agree-all:has(input:checked) .icon { opacity: 1; }

/* the last look before sending (lastlook.html, 2026-12-04) */
.lastlook .samecount { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px;
  border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.lastlook .samecount .icon { width: 18px; height: 18px; }
.lookrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lookrows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; padding: 10px 12px;
  border-radius: 14px; background: var(--surface-2); }
.lookq { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.looka { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; overflow-wrap: anywhere; }
.looka .icon { width: 14px; height: 14px; color: var(--ink-2); flex: none; }
.looktag { justify-self: end; align-self: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.shottabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.shottabs .pill { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface-2);
  font-size: 13px; text-decoration: none; color: inherit; white-space: nowrap; }
.shotbox { position: relative; max-height: min(70vh, 720px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); padding: 10px; scroll-behavior: smooth; }
.shotbox figure { margin: 0 0 14px; }
.shotbox figure:last-child { margin-bottom: 0; }
.shotbox figcaption { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 4px; }
.shotbox img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #fff; }
.lookall > summary { list-style: none; cursor: pointer; }
.lookall > summary::-webkit-details-marker { display: none; }
.lookall > summary h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lookcard { margin-top: 12px; border-radius: 14px; border: 1px solid var(--line); padding: 4px 14px; }
.lookcard > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.lookcard h4 { margin: 10px 0 4px; font-size: 13px; color: var(--ink-2); }
.lookcard dl { margin: 0 0 8px; }
.lookcard dl > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 14px; }
.lookcard dt { color: var(--ink-2); overflow-wrap: anywhere; }
.lookcard dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .lookcard dl > div { grid-template-columns: 1fr; gap: 2px; }
  .shotbox { max-height: 62vh; padding: 6px; }
}
.receipt-head .samecount.is-sent { background: var(--accent-soft); color: var(--accent-text); }
.receipt-facts { margin: 14px 0 0; display: grid; gap: 10px; }
.receipt-facts > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 12px; font-size: 15px; }
.receipt-facts dt { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.receipt-facts dt .icon { width: 15px; height: 15px; }
.receipt-facts dd { margin: 0; overflow-wrap: anywhere; }
.jobfilter { display: flex; gap: 8px; margin: 0 0 12px; }
.jobfilter a { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: inherit; text-decoration: none; font-size: 14px; }
.jobfilter a.is-on { background: var(--ink); color: var(--surface); }
@media (max-width: 560px) { .receipt-facts > div { grid-template-columns: 1fr; gap: 2px; } }
.jobtitle a { color: inherit; text-decoration: none; }
.jobtitle a:hover { text-decoration: underline; }
