/* Look ported from the 11/24 wizard concept (concept.html): same tokens, chips,
   segmented buttons, question rows, panels and step bar. System fonts only:
   the page loads nothing from another site. */
:root {
  --bg: #FAF7F0; --surface: #FFFFFF; --surface-2: #F3EFE6; --ink: #1A1815; --muted: #6B6559; --line: #E5DFD0;
  --chrome: #0F2230; --chrome-ink: #F5F7F8; --chrome-muted: #A9B8C4;
  --accent: #008477; --accent-fill: #008477; --accent-soft: #DCF0EC; --on-accent: #FFFFFF;
  --coral: #D3461C; --coral-soft: #FBE6DC; --ok: #2E7D4F; --warn: #9A5B00; --warn-soft: #FDF0D9; --sheet: #F7FAFA;
  --shadow: 0 1px 2px rgba(15, 34, 48, 0.06), 0 8px 28px rgba(15, 34, 48, 0.08);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1B26; --surface: #13283A; --surface-2: #183247; --ink: #F2F5F7; --muted: #A9B8C4; --line: #2A3D4D;
    --chrome: #07131C; --chrome-ink: #F2F5F7; --chrome-muted: #8FA1AF;
    --accent: #3CCBB7; --accent-fill: #00A090; --accent-soft: #123F44; --on-accent: #04201C;
    --coral: #F4825C; --coral-soft: #3B2219; --ok: #63C893; --warn: #E8B45A; --warn-soft: #3A2D14; --sheet: #0F2231;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
.topbar { background: var(--chrome); color: var(--chrome-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; }
.topbar .brand { font-weight: 600; flex: 1; min-width: 0; }
.topbar .brand a { color: inherit; text-decoration: none; }
.topbar .who { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--chrome-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar button { font: inherit; font-size: 0.8125rem; color: var(--chrome-ink); background: transparent; border: 1px solid var(--chrome-muted); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; line-height: 1.15; }
h2 { font-size: 1.25rem; line-height: 1.2; }
h3 { font-size: 1.0625rem; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; border-radius: 4px; }

.steps-scroll { overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.steps { display: flex; gap: 2px; padding: 8px; margin: 0; list-style: none; min-width: max-content; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); border-radius: 6px; padding: 6px 10px; }
.steps .n { font-family: var(--font-mono); font-size: 0.75rem; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.steps li.done .n { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.steps li[aria-current="step"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.steps li[aria-current="step"] .n { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }

.screen { padding: 28px; display: grid; gap: 20px; }
.screen-head { display: grid; gap: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.cols > * { min-width: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { font: inherit; font-weight: 600; font-size: 0.9375rem; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { font-size: 0.8125rem; padding: 6px 12px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; filter: none; }
.field { display: grid; gap: 5px; }
.field label, .label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="email"] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.check input { margin-top: 3px; accent-color: var(--accent-fill); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.875rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-fill); }
.chip[aria-pressed="true"]::before { content: "\2713  "; color: var(--accent); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 0.8125rem; padding: 7px 12px; background: var(--surface); color: var(--muted); border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.qrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.qrow:first-child { border-top: 0; }
.qrow > div:first-child { min-width: 0; flex: 1 1 260px; }
.panel { background: var(--surface-2); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; align-content: start; }
.panel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.price-big { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }

.colors { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.color-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.color-row:first-child { border-top: 0; }
.color-row .name { flex: 1; min-width: 0; }
.color-row input[type="color"] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); flex: none; display: inline-block; vertical-align: -3px; }

.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; justify-items: start; background: var(--sheet); }
.drop.over { border-color: var(--accent-fill); }
.filechip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; width: 100%; }
.filechip .ico { width: 34px; height: 42px; border-radius: 4px; background: var(--coral-soft); color: var(--coral); font-family: var(--font-mono); font-size: 0.6875rem; display: grid; place-items: center; flex: none; }
.filechip > div { min-width: 0; }
.filechip .fname { font-weight: 600; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; width: 100%; }
.meter > span { display: block; height: 100%; width: 0; background: var(--accent-fill); transition: width 0.2s ease; }

.rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.875rem; }
.row:first-child { border-top: 0; }
.row .code { font-family: var(--font-mono); font-size: 0.8125rem; }
.status { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.status.ok { color: var(--ok); background: var(--accent-soft); }
.status.warn { color: var(--warn); background: var(--warn-soft); }
.notice { border-radius: var(--r); padding: 12px 14px; background: var(--warn-soft); color: var(--ink); font-size: 0.875rem; }
.notice.error { background: var(--coral-soft); }
.notice.good { background: var(--accent-soft); }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.order-line.total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; }
.order-line.discount { color: var(--ok); }
.stack-tight { display: grid; gap: 8px; }
.code-field { display: grid; gap: 6px; max-width: 360px; }
.code-field label { font-size: 0.8125rem; font-weight: 600; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-mono); text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.topbar a#adminlink, .topbar a#accountlink, .topbar a#wslink { color: var(--chrome-ink); font-size: 0.8125rem; }
.group { display: grid; gap: 8px; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.job { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .screen { padding: 18px; }
  .row { grid-template-columns: 70px minmax(0, 1fr); }
  .row > :nth-child(3) { grid-column: 2; justify-self: start; }
}

/* Waitlist form: the three levels */
.wl-levels { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.wl-levels legend { padding: 0; margin-bottom: 4px; }

/* Phones: the top bar is two rows. The brand keeps the first row to itself;
   "Signed in as ...", the links and Sign out share the second, and a long
   address is cut with an ellipsis instead of pushing anything sideways. */
@media (max-width: 560px) {
  .topbar .brand { flex: 1 0 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .who { flex: 1 1 0; }
  .topbar .who:empty { display: none; }
}

/* One upload area: the list of a job's files */
#files .filechip > div { flex: 1; }
#files .filechip .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The waitlist box on the results page: the level buttons keep their own width */
#waitlist-body .seg { justify-self: start; }
