/* Peregrine design v3 (25 Sep 2026). Feel: "serious kit for people who run crews: calm, exact, quietly expensive".
   Light canvas, white panels with hairlines, one dark brushed-metal rail, Barlow type set with restraint.
   Blue is the working colour, orange is only the one next action and "needs attention", green only for done.
   HARD RULE (flicker on Paul's Mac, 24-25 Sep): no box-shadow, no CSS gradients, no backdrop-filter. Depth comes from
   hairlines and tone; any sheen is a baked image in /app/sheen (scripts/make_sheen.py). */

:root {
  --ink: #0E1A2B; --ink-2: #2B3A50; --muted: #5B6B82; --faint: #8C9AAE;
  --line: #E2E6EC; --line-2: #CFD6E0; --canvas: #F4F6F9; --panel: #FFFFFF; --sunk: #F7F8FA;
  --blue: #1F5FBF; --blue-d: #184D9C; --blue-50: #EEF4FC; --blue-100: #D9E6F8;
  --orange: #E8680C; --orange-d: #B9530A; --orange-50: #FEF3EA; --orange-100: #FCDFC6;
  --green: #15804E; --green-50: #E9F6EF; --red: #C0262D; --red-50: #FDEEEE;
  --rail: #0B1424;
  --r: 12px; --r-sm: 8px; --tap: 48px;
  --display: "Barlow Semi Condensed", "Barlow", -apple-system, sans-serif;
  --text: "Barlow", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
html { scrollbar-gutter: stable; overflow-y: scroll; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 400 16px/1.5 var(--text); font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.15; font-family: var(--display); color: var(--ink); }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 10px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.overline, .tile-name, .simlabel, .wn-count, .mhead, .lane-h, .dow, .mf span, label.caps {
  font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.overline { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- the header: a light toolbar on desktop, a dark metal bar on phones ---------- */
.top { position: sticky; top: 0; z-index: 20; background: url(sheen/rail-h.png) 0 0 / 100% 100% no-repeat, var(--rail); border-bottom: 1px solid #1D2B42; }
.top .in { max-width: 1240px; margin: auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; min-width: 0; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.brand-t small, .side-brand small { font-family: var(--text); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: #93A3BB;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.badge { width: 32px; height: 32px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.badge img { width: 22px; height: 22px; }
.badge.logo { width: auto; min-width: 32px; padding: 0 5px; } .badge.logo img { width: auto; max-width: 120px; object-fit: contain; }
body.branded .btn.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.branded .btn.go:hover { background: var(--accent); opacity: .92; }
.firm, .pma { display: none; }
.pending { background: var(--orange); color: #1A0E04; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 500; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #E6ECF5; }
.hbtn:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.hbtn .ic { width: 16px; height: 16px; opacity: .85; }
.hbtn.hot { border-color: var(--orange); background: var(--orange); color: #1A0E04; }
.hbtn.hot .ic { opacity: 1; }
.wn-dot { background: #1A0E04; color: #fff; border-radius: 99px; padding: 0 6px; font-size: 11px; font-weight: 600; line-height: 18px; }
.who { margin-left: 2px; }
.whob { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 99px; color: #E6ECF5; font-size: 14px; font-weight: 500; }
.whob .av { width: 32px; height: 32px; border-radius: 50%; background: #2A4A7C; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.whob .ic { width: 14px; height: 14px; opacity: .7; }
#falcon-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
#falcon-btn img { width: 100%; height: 100%; display: block; border-radius: 50%; }
#falcon-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
#falcon-btn::after { content: "Suggest"; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: #9FB0C8; white-space: nowrap; letter-spacing: .02em; }
#falcon-btn .fb-dot { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--orange); color: #1A0E04; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--rail); }
body.out .top { display: none; }
.va-strip { background: var(--orange); color: #1A0E04; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 12px; font-size: 14px; }
.va-strip .btn { min-height: 32px; height: 32px; background: #fff !important; color: var(--ink); border-color: #fff; }
.samples-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.samples-note .ic { color: var(--blue); }
/* trial sessions: one quiet switch between the office, a supervisor and the gang */
.tsw { display: inline-flex; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.tsw button { border: 0; background: none; color: #B7C3D6; font-size: 13px; font-weight: 600; padding: 0 10px; cursor: pointer; white-space: nowrap; }
.tsw button + button { border-left: 1px solid rgba(255,255,255,.18); }
.tsw button.on { background: #fff; color: var(--ink); cursor: default; }
.tsw .tsw-n { font-weight: 500; opacity: .8; }
.sandbox-strip { background: url(sheen/sandbox-stripe.png) 0 0 / 28px 28px repeat, var(--orange); color: #1A0E04; font-size: 13px; padding: 5px 16px; text-align: center; font-weight: 500; }
.sandbox-strip b { margin-right: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.sandbox-strip a { color: #1A0E04; font-weight: 600; text-decoration: underline; }

/* ---------- desktop: the dark rail with your modules; the header turns into a light toolbar ---------- */
#side { display: none; }
@media (min-width: 1000px) {
  body.has-side { padding-left: 248px; }
  body.has-side #side { display: flex; flex-direction: column; gap: 2px; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 30; padding: 18px 12px 14px;
    background: url(sheen/rail.png) 0 0 / 100% 100% no-repeat, var(--rail); border-right: 1px solid #1D2B42; overflow-y: auto; }
  #side .side-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; padding: 2px 8px 20px; letter-spacing: .01em; }
  #side .side-brand span:last-child { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
  #side .side-sect { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6F819B; padding: 8px 10px 6px; }
  #side a { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: 14.5px; color: #B7C3D6; }
  #side a .ic { width: 18px; height: 18px; color: #7E90AA; }
  #side a:hover { color: #fff; background: rgba(255,255,255,.05); }
  #side a:hover .ic { color: #C9D4E4; }
  #side a.on { color: #fff; background: rgba(111,162,238,.14); }
  #side a.on .ic { color: #8DB6F2; }
  #side a.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
  #side .spacer { flex: 1; }
  #side .side-maker { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff; margin-top: 12px; }
  #side .side-maker span { font-size: 11px; color: var(--muted); } #side .side-maker img { width: 118px; }
  body.has-side .top { background: var(--panel); border-bottom: 1px solid var(--line); }
  body.has-side .top .in { max-width: none; padding: 0 28px; min-height: 60px; }
  body.has-side .top .brand { display: none; }
  body.has-side .hbtn { border-color: var(--line-2); background: var(--panel); color: var(--ink-2); }
  body.has-side .hbtn:hover { border-color: var(--faint); background: var(--sunk); }
  body.has-side .hbtn.hot { border-color: var(--orange); background: var(--orange-50); color: var(--orange-d); }
  body.has-side .hbtn.hot .wn-dot { background: var(--orange); color: #1A0E04; }
  body.has-side .tsw { border-color: var(--line-2); }
  body.has-side .tsw button { color: var(--muted); } body.has-side .tsw button + button { border-left-color: var(--line-2); }
  body.has-side .tsw button.on { background: var(--ink); color: #fff; }
  body.has-side .whob { color: var(--ink); } body.has-side .whob .av { background: var(--blue-100); color: var(--blue-d); }
  body.has-side #falcon-btn::after { color: var(--muted); }
  body.has-side #falcon-btn .fb-dot { border-color: #fff; }
  body.has-side main .tabs { display: none; }
  body.has-side #maker-foot { display: none; }
  body.has-side main h1 a[href="#/home"] { display: none; }
}

/* ---------- page ---------- */
main { max-width: 1240px; margin: auto; padding: 28px 28px 40px; }
body:not(.has-side) main { max-width: 760px; padding: 20px 16px 32px; }
body:not(.has-side).wide main { max-width: 1240px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }
.daycount { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); }

/* ---------- surfaces: white panels, hairlines, no boxes inside boxes ---------- */
.card, .tile, .req, .lane, .mrow2 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card { padding: 20px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
h2.sect { font-size: 13px; font-family: var(--text); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap;
  font-family: var(--text); font-size: 14.5px; font-weight: 600; letter-spacing: .005em; text-decoration: none !important;
  color: #fff; background: url(sheen/btn-blue.png) 0 0 / 100% 100% no-repeat, var(--blue); border: 1px solid var(--blue-d); border-top-color: #3A77D2; }
.btn:hover { background: var(--blue-d); }
.btn .ic { width: 17px; height: 17px; }
.btn.go { color: #1A0E04; background: url(sheen/btn-orange.png) 0 0 / 100% 100% no-repeat, var(--orange); border-color: var(--orange-d); border-top-color: #F58C3E; }
.btn.go:hover { background: #DA5F08; }
.btn.ghost { color: var(--ink-2); background: var(--panel); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--sunk); border-color: var(--faint); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; }
.btn.small .ic { width: 15px; height: 15px; }
.btn.icon { padding: 0; width: 34px; }
.btn.block { width: 100%; }
.btn.block.go { min-height: 54px; font-size: 17px; border-radius: 10px; }
.btn.link { background: none; border: 0; color: var(--blue); padding: 0 6px; min-height: 30px; font-weight: 600; }
.btn.link:hover { background: var(--blue-50); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:focus-visible, .field:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: var(--ink-2); }
.field { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px; background: #fff; }
.field:hover { border-color: var(--faint); }
.field:focus { outline: none; border-color: var(--blue); outline: 3px solid rgba(31,95,191,.16); outline-offset: 0; }
textarea.field { line-height: 1.4; }
.form .f { margin-bottom: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input[type=checkbox], .modrow input { accent-color: var(--blue); }
.form input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.err { background: var(--red-50); color: var(--red); border: 1px solid #F5CFD1; border-radius: var(--r-sm); padding: 10px 14px; margin: 12px 0; font-weight: 500; font-size: 15px; }

/* ---------- login: a photograph of the work on one side, your name on the other ---------- */
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: var(--panel); }
body.out { background: var(--panel); }
body.out main, body.out:not(.has-side) main { max-width: none; padding: 0; }
.login-hero { position: relative; background: #0B1424 url(login-hero.jpg) center / cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px; }
.login-hero::before { content: ""; position: absolute; inset: 0; background: url(sheen/hero-scrim.png) 0 0 / 100% 100% no-repeat; }
.login-hero > * { position: relative; }
.login-hero .lh-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.login-hero .lh-line { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; max-width: 460px; margin: 0; }
.login-hero .lh-sub { color: #C3CEDF; font-size: 15px; margin: 12px 0 0; max-width: 420px; }
.login-side { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.login { max-width: 380px; width: 100%; margin: 0 auto; }
.login .mark { margin-bottom: 26px; }
.login .mark b { display: block; font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.login .mark .overline { margin-bottom: 8px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--blue); }
.login .field { min-height: 50px; font-size: 17px; }
.maker { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 34px 0 0; color: var(--muted); font-size: 12px; }
.maker img { height: 26px; width: auto; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; min-height: 0; }
  .login-hero { min-height: 230px; padding: 20px; }
  .login-hero .lh-line { font-size: 28px; } .login-hero .lh-sub { display: none; }
  .login-side { padding: 26px 20px 30px; justify-content: flex-start; }
}

/* ---------- PIN pad ---------- */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pad button { height: 60px; font-family: var(--display); font-size: 26px; font-weight: 500; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; cursor: pointer; color: var(--ink); }
.pad button:hover { background: var(--sunk); }
.pad button:active { background: var(--blue-50); border-color: var(--blue); }
.pad button[data-k="ok"] { background: url(sheen/btn-orange.png) 0 0 / 100% 100% no-repeat, var(--orange) !important; border-color: var(--orange-d) !important; color: #1A0E04; font-weight: 600; font-size: 20px; }
.pad button[data-k="del"] { color: var(--muted); font-size: 22px; }
.dots { display: flex; justify-content: center; gap: 12px; margin: 12px 0 4px; min-height: 16px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); }
.dots i.on { background: var(--ink); border-color: var(--ink); }
.pinbox { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- chips ---------- */
.chip, .rel { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 9px 2px 8px; font-size: 12.5px; font-weight: 600; line-height: 20px; white-space: nowrap;
  background: var(--blue-50); color: var(--blue-d); }
.chip::before, .rel::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.attention, .rel.ok { background: var(--orange-50); color: var(--orange-d); }
.chip.done { background: var(--green-50); color: var(--green); }
.chip.pre, .rel.poor { background: #EEF1F5; color: var(--muted); }
.chip.urgent { background: var(--red-50); color: var(--red); }
.chip.pref { background: var(--blue); color: #fff; }
.chip.plain::before, .sup .stock .chip::before, .mats .chip::before { display: none; }
.sup .stock .chip, .mats .chip { background: var(--sunk); color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; padding: 1px 9px; }
.sup .stock .chip.pref { background: var(--blue-50); color: var(--blue-d); border-color: var(--blue-100); }
.rel.good { background: var(--green-50); color: var(--green); }

/* ---------- operative: your day ---------- */
.job { position: relative; display: block; padding: 20px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.job .no { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.job h2 { font-size: 23px; margin: 6px 0 4px; }
.job .muted { font-size: 15px; }
.job p { margin: 12px 0 16px; font-size: 16px; color: var(--ink-2); }
.job.current { border: 1.5px solid var(--orange); }
.job.current::before { content: "Now"; position: absolute; right: 16px; top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d);
  background: var(--orange-50); border-radius: 99px; padding: 2px 9px; }
.job.locked { background: var(--sunk); }
.job.locked h2, .job.locked .muted, .job.locked p { color: var(--faint); }
a.job:hover { border-color: var(--line-2); text-decoration: none; }
.notes { background: var(--red-50); color: var(--red); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 600; margin: 12px 0; font-size: 15px; border-left: 3px solid var(--red); }

/* the run: a stepper */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 16px 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); overflow: hidden; }
.strip a { text-align: center; font-size: 13px; font-weight: 600; padding: 10px 2px; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); }
.strip a:last-child { border-right: 0; }
.strip a.done { color: var(--green); background: var(--green-50); }
.strip a.now { color: #1A0E04; background: var(--orange); }

/* photos */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot { position: relative; aspect-ratio: 3/4; border: 1.5px dashed #9DB6DC; border-radius: 10px; background: var(--blue-50); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; color: var(--blue-d); font-weight: 600; font-size: 14px; cursor: pointer; overflow: hidden; }
.slot:hover { border-color: var(--blue); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled { border: 0; }
.slot.queued { border: 2px solid var(--orange); }
.slot .tag { position: absolute; left: 6px; top: 6px; background: rgba(11,20,36,.78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; z-index: 1; }
.slot .big { font-size: 30px; line-height: 1; font-weight: 400; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pair .slot.before { border: 1px solid var(--line); background: var(--sunk); cursor: default; color: var(--muted); }

/* risk questions */
.q { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.q:last-of-type { border-bottom: 0; }
.q span { flex: 1; }
.yn { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.yn button { min-width: 64px; min-height: 44px; border: 0; background: #fff; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.yn button + button { border-left: 1px solid var(--line-2); }
.yn button.yes.on { background: var(--green); color: #fff; }
.yn button.no.on { background: var(--red); color: #fff; }

/* measurements */
.mrow2 { padding: 14px; margin-bottom: 10px; background: var(--sunk); border-color: var(--line); }
.mrow2-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mrow2-h b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.mgrid { display: grid; grid-template-columns: 2fr 2fr repeat(3, minmax(0, 1fr)) minmax(0, 1fr); gap: 10px; }
.mf { display: flex; flex-direction: column; gap: 5px; font-weight: 400; margin: 0; }
.mf input { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); width: 100%; min-width: 0; font-size: 16px; background: #fff; }
.mf input:focus { outline: 3px solid rgba(31,95,191,.16); border-color: var(--blue); }
.mf .m2 { min-height: 44px; display: flex; align-items: center; font-family: var(--display); font-size: 20px; font-weight: 600; }
.total { text-align: right; font-family: var(--display); font-weight: 600; font-size: 22px; margin-top: 8px; }
.mrow { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr auto; gap: 6px; margin-bottom: 8px; align-items: center; }

/* ---------- plan: calendar + the day ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.calhead h2 { margin: 0; font-size: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.cal .dow { text-align: left; padding: 8px 8px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sunk); font-size: 11px; }
.day { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 92px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day:hover { background: var(--sunk); }
.day.out { background: #FAFBFC; } .day.out .d { color: #B9C3D1; }
.day.sel { background: var(--blue-50); outline: 1.5px solid var(--blue); outline-offset: -1.5px; }
.day .d { font-size: 13px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.day.today .d { background: var(--blue); color: #fff; }
.day .c { font-size: 11.5px; line-height: 18px; border-radius: 4px; padding: 0 6px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
  background: var(--blue-50); color: var(--blue-d); border-left: 3px solid var(--blue); }
.day .c.attention { background: var(--orange-50); color: var(--orange-d); border-left-color: var(--orange); }
.day .c.done { background: var(--green-50); color: var(--green); border-left-color: var(--green); }
.day .c.pre { background: #EEF1F5; color: var(--muted); border-left-color: var(--faint); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; margin-right: 6px; }
.dayhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dayhead h2 { margin: 0; }
.pj { position: relative; padding: 14px 0 14px 14px; border-top: 1px solid var(--line); }
.pj::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--blue); }
.pj.attention::before { background: var(--orange); } .pj.done::before { background: var(--green); } .pj.pre::before { background: var(--line-2); }
.tablist .pj, .card .pj { margin: 0; }
.pj .t { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.pj .t b { font-family: var(--display); font-size: 17px; font-weight: 600; width: 100%; }
.pj .t .muted { font-size: 14px; margin-right: 4px; }
.pj .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tablist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.tablist .pj:first-child { border-top: 0; }
.crew { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.crew label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; margin: 0; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 12px 4px 8px; cursor: pointer; background: #fff; color: var(--ink-2); }
.crew label:hover { border-color: var(--faint); }
.crew label.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue-d); }
.crew input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }

/* tabs (phones only; desktop uses the rail) */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.tabs .n { background: var(--orange); color: #1A0E04; border-radius: 99px; padding: 0 6px; margin-left: 6px; font-size: 11px; line-height: 18px; display: inline-block; }

/* ---------- modal, menus, toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(11,20,36,.55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal .box { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; padding: 26px 26px 22px; position: relative; border: 1px solid var(--line-2); }
.modal .box.wide { max-width: 980px; }
.modal .box > h2:first-of-type { font-size: 22px; padding-right: 36px; }
.modal .x { position: absolute; right: 12px; top: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); width: 38px; height: 38px; border-radius: 8px; }
.modal .x:hover { background: var(--sunk); color: var(--ink); }
.modal-foot { position: sticky; bottom: -22px; background: #fff; padding: 14px 0 6px; margin-top: 10px; border-top: 1px solid var(--line); gap: 8px; }
.modal .form { padding-bottom: 8px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--sunk); }
table.list td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.row { justify-content: flex-end; }
.card > table.list { margin: 0 -20px; width: calc(100% + 40px); }
.card > table.list th:first-child, .card > table.list td:first-child { padding-left: 20px; }
.card > table.list th:last-child, .card > table.list td:last-child { padding-right: 20px; }
.matchgrid { display: grid; grid-template-columns: 32px 1fr 1fr; gap: 10px; align-items: center; }
.matchgrid > b { font-family: var(--display); font-size: 18px; color: var(--muted); text-align: center; }
.matchgrid img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px; display: block; background: var(--sunk); }
.matchgrid .miss { height: 300px; border: 1.5px dashed var(--orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--orange-d); font-weight: 600; background: var(--orange-50); }
.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; z-index: 60; max-width: min(520px, 92vw); font-size: 14.5px; font-weight: 500; }
#who-menu { position: fixed; top: 60px; right: 16px; z-index: 42; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; min-width: 200px; }
#who-menu .muted { padding: 8px 10px 6px; font-size: 13px; }
#who-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-weight: 500; color: var(--ink); border-radius: 7px; font-size: 14.5px; }
#who-menu a:hover { background: var(--sunk); text-decoration: none; }
.lookonly { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }

/* ---------- home: your own dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; padding: 20px; min-height: 164px; grid-column: span 2; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--line-2); }
.tile.small { grid-column: span 1; } .tile.wide { grid-column: span 4; }
.tile.off { opacity: .5; border-style: dashed; }
.tile-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.tile-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-50); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tile-ic .ic { width: 18px; height: 18px; }
.tile-name { font-size: 12px; flex: 1; }
.tile-go { color: var(--faint); } .tile:hover .tile-go { color: var(--blue); }
.tile-n { margin: 16px 0 4px; min-height: 42px; font-size: 15px; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tile-n b { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.tile.hot .tile-n b { color: var(--orange-d); } .tile.hot .tile-ic { background: var(--orange-50); color: var(--orange-d); }
.tile-b { font-size: 14px; margin-top: auto; }
.tile-acts { margin-top: 12px; position: relative; z-index: 2; }
.modrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; cursor: pointer; margin: 0; }
.modrow input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

/* ---------- suggestions ---------- */
.req { padding: 20px; margin-bottom: 12px; }
.ask { display: flex; gap: 14px; align-items: flex-start; }
.ask img { width: 56px; height: 96px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); display: block; }
.ask p { margin: 0 0 4px; font-size: 16.5px; color: var(--ink); line-height: 1.4; }
.req > .row:first-child .ask p { font-family: var(--display); font-size: 19px; font-weight: 500; }
.ask .muted { font-size: 13.5px; }
.ask .btn { margin-top: 6px; }
.simlabel { display: block; font-size: 11px; margin-bottom: 3px; }
.sims { margin-top: 16px; }
.sims .simhead { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.simcard { background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.simcard .ask p { font-size: 15.5px; }
.simacts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.simacts .btn { min-height: 30px; font-size: 13px; background: #fff; }
details.sims > summary { font-size: 13.5px; }
.reqacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.track { list-style: none; display: flex; gap: 0; padding: 0; margin: 16px 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.track li { flex: 1; min-width: 70px; text-align: center; font-size: 12.5px; font-weight: 600; padding: 8px 4px; color: var(--faint); border-right: 1px solid var(--line); background: #fff; }
.track li:last-child { border-right: 0; }
.track li.done { color: var(--blue-d); background: var(--blue-50); }
.track li.now { color: #1A0E04; background: var(--orange); }
.nextstep { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
details.donelist { margin-top: 20px; } details.donelist > summary { font-size: 15px; padding: 6px 0; }

/* the updates pipeline */
.card.updates { padding: 20px; }
.updhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.updhead h2 { margin: 0; }
.updhead .muted { font-size: 14px; }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-items: stretch; }
.lane { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 14px 16px; background: #fff; }
.lane:last-child { border-right: 0; }
.lane.hot { background: var(--orange-50); }
.lane.hot .lane-h { color: var(--orange-d); }
.lane.quiet { background: #fff; }
.lane-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; }
.lane-h .step { width: 20px; height: 20px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0; }
.lane.hot .lane-h .step { background: var(--orange); border-color: var(--orange); color: #1A0E04; }
.lane-list { margin: 0; padding-left: 16px; font-size: 14px; }
.lane-list li { margin: 3px 0; }
.lane-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.queue .qn { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.queue .qt { flex: 1; min-width: 0; }
.queue .qa { display: flex; gap: 2px; } .queue .qa .btn { min-height: 26px; width: 26px; padding: 0; font-size: 12px; }
.queue li.cut { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px dashed var(--line-2); padding-top: 10px; }
.card.try { border: 1.5px solid var(--orange); background: var(--panel); }
.card.try ul { margin: 10px 0 16px; padding-left: 18px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.bar i { display: block; height: 8px; background: var(--blue); border-radius: 4px; }
.bar b { text-align: right; font-weight: 600; }

/* ---------- firm ---------- */
.firmgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.winrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* ---------- suppliers ---------- */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; padding: 0 14px; min-height: 36px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chipbtn { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 0 12px; font-weight: 500; font-size: 13.5px; cursor: pointer; height: 32px; color: var(--ink-2); }
.chipbtn:hover { border-color: var(--faint); }
.chipbtn.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue-d); font-weight: 600; }
.supgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.supgrid.nomap { grid-template-columns: minmax(0, 1fr); }
.suplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.suplist .card { margin: 0; display: flex; flex-direction: column; }
.sup h3 { font-size: 19px; }
.sup .kind { font-size: 13.5px; }
.sup .stock { margin: 14px 0 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.sup .row:last-child { margin-top: auto; }
.cheap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 3px 0; font-size: 14px; }
.addmat { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 8px; margin-bottom: 16px; }
.stockrow { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.stockrow.newmat { border-bottom: 0; padding-top: 10px; }
.nopin { color: var(--orange-d); font-size: 13px; font-weight: 500; margin: 8px 0 0; }
.supmap { height: 520px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sunk); }

/* ---------- the suggestion bubble, what's new, pointers, updating ---------- */
#falcon-bubble { position: fixed; right: 16px; top: 66px; width: min(360px, calc(100vw - 24px)); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; z-index: 41; animation: fbb-in .14s ease-out; }
@keyframes fbb-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fbb-row { display: flex; gap: 8px; align-items: flex-start; }
.fbb-row textarea { flex: 1; min-width: 0; resize: none; overflow-y: hidden; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 16px; line-height: 1.35; height: 44px; max-height: 140px; }
.fbb-row textarea:focus { outline: 3px solid rgba(31,95,191,.16); border-color: var(--blue); }
.fbb-send { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 0; background: var(--orange); color: #1A0E04; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fbb-send:disabled { background: var(--sunk); color: var(--faint); cursor: default; }
.fbb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.fbb-link { border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.fbb-link.hot { color: var(--orange-d); }
#fp-extra { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 4px; max-height: 40vh; overflow-y: auto; }
.fbb-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fbb-item:last-child { border-bottom: 0; }
.fbb-item .muted { font-size: 12px; text-align: right; max-width: 45%; }
.fbb-item.stack { flex-direction: column; gap: 2px; } .fbb-item.stack .muted { text-align: left; max-width: none; }
.fbb-vote { display: flex; gap: 6px; flex: none; font-size: 13px; font-weight: 600; color: var(--green); align-items: center; }
.fbb-vote button { border: 1px solid var(--line-2); background: #fff; border-radius: 7px; padding: 4px 10px; font-weight: 600; cursor: pointer; }
.fbb-done { margin: 4px; } .fbb-done p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.va-list { display: grid; gap: 6px; }
.va-list .btn { justify-content: space-between; }
#wn-tour { position: fixed; right: 20px; bottom: 20px; z-index: 46; width: min(380px, calc(100vw - 24px)); }
.wn-card { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; }
.wn-card::before { content: ""; display: block; height: 3px; margin: -16px -18px 14px; border-radius: 14px 14px 0 0; background: var(--orange); }
.wn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; } .wn-head img { width: 24px; height: 24px; border-radius: 50%; } .wn-head b { flex: 1; }
.wn-x { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 7px; }
.wn-x:hover { background: var(--sunk); }
.wn-card h3 { margin: 6px 0; font-size: 20px; } .wn-card p { margin: 4px 0; font-size: 15px; color: var(--ink-2); } .wn-card ul { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.wn-big { color: var(--orange-d); }
.wn-where { color: var(--blue-d); font-weight: 500; font-size: 14px; }
.wn-nav { margin-top: 12px; }
.fn-glow { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.fn-tip { position: absolute; z-index: 45; max-width: min(290px, calc(100vw - 16px)); background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; font-size: 14px; }
.fn-tip img { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.fn-tip p { margin: 3px 0 8px; opacity: .9; }
#falcon-working { position: fixed; inset: 0; z-index: 70; background: var(--canvas); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.fw-card { max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.fw-card h1 { font-size: 24px; margin-top: 10px; }
.fw-icon { width: 48px; height: 48px; animation: fw-bob 1.6s ease-in-out infinite; }
.fw-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.fw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: fw-dot 1.2s infinite; }
.fw-dots i:nth-child(2) { animation-delay: .2s; } .fw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes fw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes fw-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fw-icon, .fw-dots i, #falcon-bubble { animation: none; } }
#maker-foot { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lane:nth-child(2) { border-right: 0; } .lane:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 860px) {
  .plan, .firmgrid { grid-template-columns: minmax(0, 1fr); }
  .winrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addmat { grid-template-columns: 1fr 1fr; } .mats td:nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main, body:not(.has-side) main { padding: 16px 16px 28px; }
  h1 { font-size: 28px; }
  .top .in { gap: 6px; padding: 0 12px; min-height: 56px; }
  .brand-t, .who-out, .hbtn .lbl-long { display: none; }
  .hbtn { padding: 0 10px; font-size: 13px; }
  .tsw button { padding: 0 8px; font-size: 12.5px; } .tsw .tsw-n { display: none; }
  body.trial #wn-btn { font-size: 0; gap: 0; } body.trial #wn-btn .ic { width: 16px; height: 16px; }
  .whob .nm, .whob .ic { display: none; }
  .btn { min-height: 44px; }
  .btn.small { min-height: 38px; }
  .card, .job, .req { padding: 16px; }
  .card > table.list { margin: 0 -16px; width: calc(100% + 32px); }
  .card > table.list th:first-child, .card > table.list td:first-child { padding-left: 16px; }
  .tabs, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .tabs button, .chipbtn { flex: none; white-space: nowrap; }
  #maker-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 12px 0 28px; }
  #maker-foot img { height: 20px; width: auto; }
  #wn-tour { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .matchgrid { grid-template-columns: 22px 1fr 1fr; }
  .matchgrid img, .matchgrid .miss { height: 180px; }
  .day { min-height: 58px; padding: 4px; }
  .day .c { font-size: 0; height: 6px; padding: 0; border-left: 0; }
  .day .c.attention { background: var(--orange); } .day .c.done { background: var(--green); } .day .c { background: var(--blue); } .day .c.pre { background: var(--faint); }
  .cal .dow { padding: 6px 4px; text-align: center; }
  .form .two { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mf.location, .mf.material { grid-column: span 3; }
  .mrow { grid-template-columns: 1fr 1fr 1fr; } .mrow .loc, .mrow .mat { grid-column: span 3; }
  .mhead { display: none; }
  .modal { padding: 0; }
  .modal .box { border-radius: 0; min-height: 100vh; border: 0; padding: 20px 16px; }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile, .tile.small { grid-column: span 1; min-height: 140px; padding: 16px; } .tile.wide { grid-column: span 2; }
  .tile-n b { font-size: 34px; } .tile-b { display: none; }
  .suplist { grid-template-columns: minmax(0, 1fr); }
  .lanes { grid-template-columns: minmax(0, 1fr); } .lane { border-right: 0 !important; border-bottom: 1px solid var(--line); } .lane:last-child { border-bottom: 0; }
  .bar { grid-template-columns: 100px 1fr 34px; }
  .job.current::before { top: 14px; right: 14px; }
}
@media (max-width: 640px) {
  .tile-top { gap: 8px; } .tile-ic { width: 30px; height: 30px; }
  .tile-name { font-size: 11px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tile-go { display: none; }
  .tile-n { font-size: 14px; }
}
.simacts .btn { background: transparent; }

/* tester fixes, 25 Sep 2026 */
.toast { top: auto; bottom: 24px; }
td > .btn + .btn { margin-left: 6px; }
.lanes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .hbtn.hot { background: transparent; color: #FFB27A; border-color: var(--orange); }   /* the orange fill is kept for the job's own next step */
  .hbtn.hot .wn-dot { background: var(--orange); color: #1A0E04; }
  .toast { bottom: 16px; }
}
.planseg .ic { width: 16px; height: 16px; margin-right: 4px; }
.slot { aspect-ratio: 4/3; }
.strip.static a { cursor: default; }
@media (hover: none) { .pad button:hover { background: #fff; } }
@media (max-width: 640px) {
  .modal.sheet { align-items: flex-end; padding: 0; }
  .modal.sheet .box { min-height: 0; border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.rel.poor { background: var(--red-50); color: var(--red); }

/* ---------- get the lads on (trial fixes, v0.12.0) ---------- */
.lads { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.lads-addr { text-align: center; }
.addr-big { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; margin: 4px 0 14px; }
.addr-big .muted { font-weight: 500; }
.lads-qr { width: 220px; max-width: 100%; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: #fff; }
.lads-qr svg { display: block; width: 100%; height: auto; }
.lads-list { display: flex; flex-direction: column; }
.lad { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lad:last-child { border-bottom: 0; }
.lad-who { display: flex; flex-direction: column; min-width: 120px; flex: 1; }
.lad-keys { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.lad-keys .muted { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.lad-keys .pin { font-size: 20px; letter-spacing: .12em; }
@media (max-width: 860px) { .lads { grid-template-columns: minmax(0, 1fr); } .addr-big { font-size: 22px; } }
.pin-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 16px; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--r); color: var(--ink-2); font-size: 15px; }
.pin-card .ic { color: var(--blue); }
.pin-card span { flex: 1; min-width: 180px; }
.pin-card b { font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.modal .err + .pinbox, .modal .muted + .pinbox { margin-top: 4px; }

/* ---------- phone layout (trial fixes): people as stacked rows, centred small dialogs, match buttons always in view ---------- */
.plist { display: flex; flex-direction: column; margin-top: 6px; }
.prow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow.off { opacity: .55; }
.p-who { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.p-who .muted { font-size: 14px; }
.p-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.modal.center { align-items: center; }
.modal.center .box { max-width: 420px; }
.modal.matchm { padding-top: 24px; padding-bottom: 24px; }
.modal.matchm .box { padding-bottom: 0; }
.matchgrid img, .matchgrid .miss { height: clamp(96px, calc((100vh - 330px) / var(--rows, 3)), 300px); }
.match-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 14px -26px 0; padding: 12px 26px 16px; display: flex; flex-direction: column; gap: 10px; }
.match-foot .field { min-height: 44px; }
@media (max-width: 640px) {
  .modal.center { padding: 16px; }
  .modal.center .box { min-height: 0; border-radius: 14px; border: 1px solid var(--line-2); }
  .modal.matchm { padding: 0; }
  .matchgrid img, .matchgrid .miss { height: clamp(80px, calc((100vh - 360px) / var(--rows, 3)), 180px); }
  .match-foot { margin: 12px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .match-foot .row .btn { flex: 1 1 auto; }
}

/* ---------- the firm's logo in the header (trial fixes): fixed height, contained, a neutral tile until it loads ---------- */
.badge.logo { height: 32px; width: auto; min-width: 32px; max-width: 120px; padding: 0 5px; background: rgba(255,255,255,.14); overflow: hidden; }
.badge.logo img { height: 26px; width: auto; max-width: 110px; object-fit: contain; opacity: 0; }
.badge.logo.ready { background: #fff; }
.badge.logo.ready img { opacity: 1; }
@media (max-width: 640px) { .badge.logo { max-width: 84px; } .badge.logo img { max-width: 74px; } }

/* ---------- trial firms: seats and price in view, Text Paul beside it ---------- */
.seats { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.seats a { font-weight: 600; white-space: nowrap; }
#side .side-seats { color: #B8C4D6; font-size: 13px; padding: 0 8px 16px; margin-top: -10px; flex-direction: column; gap: 2px; }
#side .side-seats a { color: #FFB27A; }
.sugg-list .ask:last-child { border-bottom: 0; }
#falcon-bubble.sending { opacity: .75; }
.matchgrid img { aspect-ratio: 4 / 3; height: auto; max-height: clamp(96px, calc((100vh - 330px) / var(--rows, 3)), 300px); object-fit: contain; }
@media (max-width: 640px) { .matchgrid img { max-height: clamp(80px, calc((100vh - 360px) / var(--rows, 3)), 180px); } }
.matchgrid img { width: auto; max-width: 100%; justify-self: center; background: none; }
.matchgrid > :nth-child(3n+2) { justify-self: end; } .matchgrid > :nth-child(3n) { justify-self: start; }   /* each pair side by side */
.matchgrid > .miss { justify-self: stretch; width: 100%; }

/* ---------- gangs in the trial switch, whose day it is ---------- */
.tsw button { font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.tsw button .ic { width: 14px; height: 14px; }
.tsw .tsw-n { font-weight: 500; opacity: .85; }
#gang-menu { position: fixed; z-index: 45; width: 220px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; }
#gang-menu button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; font-size: 15px; }
#gang-menu button:hover, #gang-menu button.on { background: var(--sunk); }
#gang-menu button .muted { font-size: 13px; }
.day-gang { font-weight: 500; color: var(--muted); }
@media (max-width: 640px) { .tsw button { padding: 0 8px; font-size: 13px; } }
@media (max-width: 640px) { body.trial #wn-btn { display: none; } .top .brand { flex: none; } }   /* room for the switch: never over the logo */
.draft-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--blue-50); color: var(--ink-2); font-size: 14px; }
@media (max-width: 420px) {
  body.trial .badge.logo { max-width: 64px; } body.trial .badge.logo img { max-width: 54px; }
  body.trial .tsw button { padding: 0 6px; font-size: 12.5px; }
  body.trial .top .in { gap: 5px; }
}
