/* Course Lab : a tinted frame around a white sheet. The colours mean what they mean on the slides :
   amber is your input, teal is the model's answer, navy is the model and its weights, green fits, red does not.
   Everything else is ink, grey and the frame's stone. */

@font-face { font-family: "Plex"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* surfaces : the frame, the sheet, a well one step down, three steps of line */
  --frame: #f2f2ef;    --page: #f2f2ef;    --card: #ffffff;    --well: #f7f7f5;    --active: #e5e5e1;
  --border: #e2e2dd;   --rule: #ebebe7;    --line: #d4d4ce;    --sand: #f2f2ef;
  /* text */
  --ink: #14181f;      --quiet: #5b6270;   --accent: #14181f;  --primary: #14181f;
  /* the colour code */
  --weights: #1b3a5c;  --weights-soft: #eaf0f6;                                     /* navy : the model, the weights */
  --data: #b7770f;     --data-mid: #eba53e;  --data-soft: #fcf1dc;  --data-ink: #8a5207;   /* amber : your input */
  --answer: #1f7f99;   --answer-soft: #e3f2f6; --answer-ink: #155f74;                    /* teal : the model's answer */
  --stays: #23794a;    --stays-soft: #e3f3e8;  --stays-line: #b9dcc4;                    /* green : fits, passes */
  --crosses: #b5361f;  --crosses-soft: #fbe7e2; --crosses-line: #efc3b8;                 /* red : does not */
  --font: "Plex", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", Consolas, monospace;
  --radius: 12px;      --radius-sheet: 16px;  --radius-control: 8px;
  --shadow: none;
  --bar: 52px;
  --gap: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--frame); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--weights); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.label { font: 600 13px/1.3 var(--font); color: var(--quiet); }
h1, h2, h3, h4 { text-wrap: balance; }

/* ---------- the top bar, on the frame ---------- */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 18px; background: var(--frame); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 28px; height: 28px; display: block; }
.brand b { font-weight: 600; font-size: 15px; }
.brand span { color: var(--quiet); font-size: 13px; }
.crumb { color: var(--quiet); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  padding-left: 16px; border-left: 1px solid var(--line); }
.crumb b { color: var(--ink); font-weight: 600; }
.bar .grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: var(--radius-control);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 13px; white-space: nowrap;
  transition: border-color .15s; }
.pill:hover { border-color: var(--quiet); }
.pill .knob svg { width: 14px; height: 14px; display: block; color: var(--quiet); }
.pill .knob circle { fill: var(--card); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #a3a8b1; flex: none; }
.dot.up { background: var(--stays); }
.dot.down { background: var(--crosses); }
.who { display: flex; align-items: center; gap: 14px; color: var(--quiet); font-size: 13px; white-space: nowrap; }
.who > span { color: var(--ink); font-weight: 600; }
.who a { color: var(--quiet); text-decoration: none; }
.who a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--quiet); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #2b313b; border-color: #2b313b; }
.btn.run { height: 40px; padding: 0 22px; font-size: 15px; min-width: 112px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); padding: 0 8px; text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 3px; }
.btn.ghost:hover { text-decoration-color: currentColor; }
.btn.small { height: 30px; font-size: 13px; padding: 0 10px; }
.field { display: grid; gap: 6px; margin: 0 0 18px; }
.field > label { font-weight: 600; font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.field > label .value { margin-left: auto; font: 600 14px var(--font); font-variant-numeric: tabular-nums; color: var(--data-ink);
  padding: 0 8px; border-radius: 6px; background: var(--data-soft); }
.field .help { color: var(--quiet); font-size: 13px; margin: -1px 0 0; }
.field > * { min-width: 0; }
/* every box you type in carries the amber edge : your input */
.field textarea, .field input[type=text], .field input[type=number], .field input[type=password], .field select {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-left: 3px solid var(--data-mid); border-radius: var(--radius-control);
  background: var(--card); transition: border-color .15s, box-shadow .15s; }
.field select, .field input[type=text], .field input[type=number], .field input[type=password] { height: 38px; }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field textarea.json { font: 13px/1.55 var(--mono); tab-size: 2; }
.field textarea:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--data); box-shadow: 0 0 0 3px var(--data-soft); }
.field input[type=range] { width: 100%; accent-color: var(--data); height: 24px; margin: 0; }
.field .bad { color: var(--crosses); font-size: 13px; }

/* ---------- the sheet : one white surface inset from the frame ---------- */
.sheet-pane { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sheet); min-width: 0; }

/* ---------- home ---------- */
.home { margin: 0 8px 8px; min-height: calc(100vh - var(--bar) - 8px); }
.home-in { max-width: 1200px; margin: 0 auto; padding: 32px 40px 48px; }
.home-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-bottom: 28px;
  border-bottom: 1px solid var(--rule); }
.home-head h1 { font-size: 28px; line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.015em; }
.home-head .where { margin: 6px 0 0; color: var(--quiet); font-size: 15px; }
.tally { display: flex; align-items: center; gap: 16px; }
.tally svg { width: 44px; height: 76px; overflow: visible; display: block; }
.tally .count { font: 600 28px/1 var(--font); font-variant-numeric: tabular-nums; }
.tally .count small { font-size: 16px; color: var(--quiet); font-weight: 400; }
.tally .of { color: var(--quiet); font-size: 13px; margin-top: 6px; }
.liquid { transition: y 1.2s var(--ease), height 1.2s var(--ease); }

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding-top: 8px; }
.day h2 { margin: 24px 0 6px; font: 600 16px var(--font); display: flex; align-items: baseline; gap: 10px; }
.day h2 small { font: 400 13px var(--font); color: var(--quiet); }
.labcard { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 12px;
  margin: 0 -12px; border-radius: 10px; color: inherit; text-decoration: none; position: relative; transition: background .15s; }
.labcard + .labcard::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--rule); }
a.labcard:hover { background: var(--well); }
a.labcard:hover::before, a.labcard:hover + .labcard::before { opacity: 0; }
.labcard .n { font: 400 15px/1 var(--mono); color: var(--weights); text-align: center; height: 44px; display: grid; place-items: center;
  border-radius: 10px; background: var(--weights-soft); }
.labcard.done .n { background: var(--stays-soft); color: var(--stays); }
.labcard.coming { opacity: .6; }
.labcard.coming .n { background: var(--well); color: var(--quiet); }
.labcard h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.labcard p { margin: 2px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.labcard .side { display: grid; justify-items: end; gap: 7px; min-width: 76px; }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--active); }
.pips i.on { background: var(--stays); }
.state { font-size: 13px; font-weight: 600; color: var(--ink); }
.state.done { color: var(--stays); }
.state.coming { color: var(--quiet); font-weight: 400; }

/* ---------- lab : the rail on the frame, the brief and the results on the sheet ---------- */
.lab { display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100vh - var(--bar)); padding: 0 8px 8px 0; }
.lab .sheet-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 47%); grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.rail { padding: 10px 14px 16px 18px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.rail .labno { font: 400 13px/1.4 var(--font); color: var(--quiet); }
.rail h1 { font-size: 20px; line-height: 1.2; margin: 4px 0 0; font-weight: 600; letter-spacing: -.01em; }
.meter { height: 6px; border-radius: 3px; background: var(--active); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--stays); width: 0; transition: width .8s var(--ease); }
.steps { list-style: none; margin: 0 -6px; padding: 0; display: grid; gap: 2px; }
.steps button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left;
  padding: 6px 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; transition: background .15s; }
.steps button:hover { background: #e9e9e5; }
.steps button[aria-current="step"] { background: var(--card); border-color: var(--border); }
.steps .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.steps .k { display: block; font: 400 12px/1.3 var(--font); color: var(--quiet); }
.steps .sc { font: 13px var(--font); font-variant-numeric: tabular-nums; color: var(--quiet); }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--card); }
.mark.tried { border-color: var(--data-mid); background: var(--data-soft); }
.mark.passed { border-color: var(--stays); background: var(--stays); }
.mark.replayed { border-color: var(--answer); background: var(--answer-soft); }
.mark svg { width: 12px; height: 12px; }
.rail .foot { margin-top: auto; display: grid; gap: 14px; }
.rail .foot .btn { justify-content: flex-start; }
.rail .question { font-size: 13.5px; line-height: 1.5; color: var(--quiet); padding: 12px 14px; border-radius: var(--radius); background: #e9e9e5; }
.rail .question b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }

.brief { overflow: auto; padding: 28px 32px 0; display: flex; flex-direction: column; }
.brief > * { flex: none; }
.brief .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--quiet); }
.brief .eyebrow .label { font-weight: 400; }
.brief .eyebrow .label + .label::before { content: "·"; margin-right: 8px; color: var(--quiet); }
.brief h2 { font-size: 26px; line-height: 1.2; margin: 6px 0 12px; letter-spacing: -.015em; font-weight: 600; }
.goal { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.twist { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 18px; border-radius: var(--radius);
  background: var(--crosses-soft); border: 1px solid var(--crosses-line); animation: arrive .6s var(--ease); }
.twist b { font: 600 13px var(--font); color: var(--crosses); }
.twist p { margin: 2px 0 0; }
.bar-to-clear { padding: 12px 16px; margin: 0 0 18px; border-radius: var(--radius); background: var(--well); border: 1px solid var(--border); }
.bar-to-clear .label { color: var(--ink) !important; }
.bar-to-clear p { margin: 3px 0 0; }
.knobs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; padding: 0; list-style: none; }
.knobs li { font-size: 13px; padding: 3px 10px; border-radius: 14px; background: var(--data-soft); color: var(--data-ink); }
.intro { color: var(--quiet); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.form { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 4px; }
.actions { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.actions .note { color: var(--quiet); font-size: 13px; }
/* the Run row stays in view at the foot of the brief while the knobs scroll */
.brief > .actions { position: sticky; bottom: 0; z-index: 2; margin: auto -32px 0; padding: 12px 32px 14px;
  background: var(--card); border-top: 1px solid var(--rule); }
details.hints { margin: 0 0 18px; }
details.hints summary { cursor: pointer; font-weight: 600; font-size: 14px; width: max-content; }
details.hints ol { margin: 8px 0 0; padding-left: 20px; color: var(--ink); font-size: 14px; }
details.hints li { margin-bottom: 4px; }
.brief > :last-child:not(.actions) { margin-bottom: 28px; }
.form { margin-bottom: 8px; }

/* ---------- results : a well beside the brief ---------- */
.results { border-left: 1px solid var(--border); background: var(--well); overflow: auto; padding: 20px 22px 32px; display: flex; flex-direction: column; gap: 12px; }
.results > * { flex: none; }
.verdict { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--border); background: var(--card); animation: arrive .45s var(--ease); }
.verdict.pass { background: var(--stays-soft); border-color: var(--stays-line); }
.verdict.fail { background: var(--crosses-soft); border-color: var(--crosses-line); }
.verdict.wait { background: var(--answer-soft); border-color: #bcdde6; }
.verdict .head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.verdict.pass .head { color: var(--stays); }
.verdict.fail .head { color: var(--crosses); }
.verdict.wait .head { color: var(--answer-ink); }
.verdict.wait .head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--answer); animation: pulse 1.2s ease-in-out infinite; flex: none; }
.verdict .head .score { margin-left: auto; font: 600 22px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.verdict .head .score small { font-size: 14px; font-weight: 400; color: var(--quiet); }
.verdict p { margin: 6px 0 0; }
.cases-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding: 0; list-style: none; }
.cases-strip li { width: 18px; height: 8px; border-radius: 4px; background: var(--crosses); }
.cases-strip li.ok { background: var(--stays); }
.verdict .discovery { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--stays-line); }
.verdict .discovery > b { font: 600 14px var(--font); color: var(--ink); display: block; }
.notice { font-size: 14px; padding: 9px 12px; border-radius: 10px; background: var(--answer-soft); color: var(--answer-ink); }
.call { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.call > header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--rule); min-height: 44px; }
.call > header .title { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call > header .tag { flex: none; white-space: nowrap; font: 400 12px var(--font); padding: 1px 7px; border-radius: 6px; background: var(--well); color: var(--quiet); border: 1px solid var(--border); }
.call > header .tag.must { background: var(--data-soft); color: var(--data-ink); border-color: #f1d9ad; }
.call > header .grow { flex: 1; }
.ok, .no { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ok { color: var(--stays); } .no { color: var(--crosses); }
.ok svg, .no svg { width: 14px; height: 14px; flex: none; display: block; }
.call .why { padding: 8px 14px; font-size: 13.5px; background: var(--crosses-soft); border-bottom: 1px solid var(--crosses-line); }
.call details.mail summary { cursor: pointer; padding: 8px 14px; color: var(--quiet); font-size: 13px; }
.call details.mail pre { margin: 0; padding: 2px 16px 12px; white-space: pre-wrap; font: 13.5px/1.55 var(--font); color: #343b47; }
.answer { margin: 0; padding: 12px 16px; min-height: 44px; white-space: pre-wrap; word-break: break-word; font: 14.5px/1.55 var(--font);
  border-left: 3px solid var(--answer); background: #fbfdfd; }
.answer.json { font: 13px/1.6 var(--mono); }
.answer.waiting::after { content: "▍"; color: var(--answer); animation: blink 1s steps(2) infinite; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--rule);
  font: 12.5px var(--font); font-variant-numeric: tabular-nums; color: var(--quiet); }
.stats b { color: var(--weights); font: 400 12.5px var(--mono); }
.stats .speed { color: var(--answer-ink); }
.stats .speed b { color: var(--answer-ink); font: 600 14px var(--font); }
.stats .i { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  font: 600 13px/1 var(--font); color: var(--ink); display: grid; place-items: center; padding: 0; }
.stats .i:hover { border-color: var(--quiet); }
.empty { color: var(--quiet); text-align: center; padding: 28px 10px; font-size: 14px; margin: 0; }
.empty svg { width: 112px; height: 84px; display: block; margin: 0 auto 10px; }
.empty + .empty { padding-top: 0; }

/* ---------- drawers and dialogs : the only things that float ---------- */
dialog { border: 0; border-radius: var(--radius-sheet); padding: 0; max-width: min(760px, 94vw); width: 100%;
  box-shadow: 0 24px 64px rgba(20, 24, 31, .22); color: var(--ink); }
dialog::backdrop { background: rgba(20, 24, 31, .38); }
dialog.drawer { margin: 8px 8px 8px auto; height: calc(100vh - 16px); max-height: calc(100vh - 16px); max-width: min(640px, 96vw); }
dialog[open] { animation: slide .3s var(--ease); }
dialog > header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 2; background: var(--card); }
dialog > header h2 { margin: 0; font-size: 18px; font-weight: 600; }
dialog > header .grow { flex: 1; }
dialog .body { padding: 20px 24px 28px; }
dialog .body > .label { margin: 18px 0 6px; }
dialog .body > .label:first-child { margin-top: 0; }
dialog pre.code { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #171b22; color: #e3e7ee; font: 12.5px/1.6 var(--mono);
  white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto; }
.endpoints { display: grid; gap: 8px; margin-bottom: 18px; }
.endpoint { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s; }
.endpoint:hover { border-color: var(--line); }
.endpoint:has(input:checked) { border-color: var(--weights); background: var(--weights-soft); }
.endpoint input { accent-color: var(--weights); }
.endpoint.off { opacity: .55; cursor: not-allowed; }
.endpoint b { display: block; }
.endpoint small { color: var(--quiet); font-size: 13px; }
.endpoint .label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.models { margin: 0; padding: 0; list-style: none; display: grid; font-size: 14px; }
.models li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.models .mono { color: var(--weights); font-size: 13px; }
.models .q { color: var(--quiet); font-size: 13px; }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th, .board td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.board th { font: 400 13px var(--font); color: var(--quiet); border-bottom-color: var(--border); }
.board .you td:first-child { font-weight: 600; }
.board .shared { margin-top: 4px; color: var(--quiet); font-size: 13px; white-space: pre-wrap; max-width: 260px; }
.board .shared b { color: var(--ink); font-weight: 600; }
.board .status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.board .status.passed { color: var(--stays); }
.board .status.replayed { color: var(--answer-ink); }
.board .status.tried { color: var(--data-ink); }

/* ---------- log in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); padding: 8px; gap: 8px; }
.login .scene { position: relative; background: var(--weights); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 44px 44px; overflow: hidden; border-radius: var(--radius-sheet); }
.login .scene .label { color: var(--data-mid); }
.login .scene svg.art { width: 100%; max-width: 640px; height: auto; align-self: center; }
.login .scene h1 { font-size: 30px; margin: 0; line-height: 1.12; letter-spacing: -.015em; font-weight: 600; }
.login .scene p { color: #cfdae7; max-width: 520px; margin: 10px 0 0; font-size: 16px; }
.login main { display: grid; place-items: center; padding: 40px; }
.login form { width: 100%; max-width: 360px; }
.login form .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; font-weight: 600; }
.login form .brandline svg { width: 32px; height: 32px; }
.login form h2 { margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.login form .sub { color: var(--quiet); margin: 0 0 24px; }
.login .field input { background: var(--card); }
.login .msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; background: var(--crosses-soft); color: #8e2a17; font-size: 14px; }
.login .small { color: var(--quiet); font-size: 13px; margin-top: 18px; }
.login .btn.primary { width: 100%; height: 44px; margin-top: 4px; font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-size: 14px; z-index: 50; animation: arrive .3s var(--ease); box-shadow: 0 8px 24px rgba(20, 24, 31, .2); }

@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* a projector at 1280 or a laptop at 1366 : the rail narrows before anything stacks */
@media (max-width: 1400px) {
  .lab { grid-template-columns: 228px minmax(0, 1fr); }
  .brief { padding: 24px 26px 0; }
  .brief > .actions { margin: auto -26px 0; padding: 12px 26px 14px; }
  .brief h2 { font-size: 24px; }
  .goal { font-size: 16px; }
}
@media (max-width: 1100px) {
  .brand span, .crumb { display: none; }
  .lab { grid-template-columns: 1fr; height: auto; padding: 0 8px 8px; }
  .rail { padding: 8px 10px 16px; }
  .rail .steps { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .lab .sheet-pane { grid-template-columns: 1fr; grid-template-rows: auto; }
  .lab { grid-template-rows: auto; }
  .results { border-left: 0; border-top: 1px solid var(--border); }
  .brief > .actions { position: static; }
  .days { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .scene svg.art { display: none; }
}
@media (max-width: 700px) {
  .bar { gap: 10px; padding: 0 16px; }
  .brand span, .brand b, .crumb, .pill #pill-text, .who a:not(:last-child) { display: none; }
  .who { gap: 10px; }
  .home-in { padding: 24px 18px 32px; }
  .home-head { grid-template-columns: 1fr; }
  .brief { padding: 20px 18px 0; }
  .results { padding: 16px; }
}
