/* V&M BidRecon. Terminal green on black, one typeface, hard edges. */
:root {
  --bg: #020806;
  --panel: rgba(4, 15, 10, 0.94);
  --panel-2: rgba(8, 28, 18, 0.9);
  --line: rgba(43, 255, 136, 0.17);
  --line-2: rgba(43, 255, 136, 0.38);
  --g: #2bff88;
  --g-soft: #8dfcbf;
  --text: #c2f2d5;
  --muted: #74ab8d;
  /* The dimmest text still has to be readable: 4.9 to 1 on the panel. The
     scrollbar and rule lines use --faint, which is decoration, not text. */
  --dim: #5b8e74;
  --faint: #3f6b55;
  --amber: #ffb627;
  --red: #ff5263;
  --cyan: #4de3ff;
  --glow: 0 0 9px rgba(43, 255, 136, 0.55);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --top: 46px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 var(--mono);
  letter-spacing: 0.01em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--g); color: #001a0c; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--g); outline-offset: 2px; }
[hidden] { display: none !important; }

/* thin green scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--faint); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---- backdrop ------------------------------------------------------------ */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0.16; pointer-events: none; z-index: 0; }
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.16) 3px),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 100%);
}

/* ---- boot ----------------------------------------------------------------- */
.boot {
  position: fixed; inset: 0; z-index: 80; background: rgba(1, 5, 3, 0.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.35s ease;
}
.boot.out { opacity: 0; pointer-events: none; }
.boot-text { color: var(--g); text-shadow: var(--glow); font-size: 14px; line-height: 1.75; min-width: min(560px, 86vw); min-height: 230px; white-space: pre-wrap; }
.boot-text .ok { color: var(--g-soft); }
.boot-text .big { font-size: 20px; letter-spacing: 0.22em; }
.boot-skip { color: var(--dim); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---- top bar ----------------------------------------------------------- */
.top {
  position: relative; z-index: 5; height: var(--top);
  display: flex; align-items: center; gap: 18px; padding: 0 14px;
  border-bottom: 1px solid var(--line-2); background: rgba(2, 10, 6, 0.96);
}
.brand { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand-mark { color: var(--g); text-shadow: var(--glow); font-weight: 700; animation: blink 1.15s steps(2) infinite; }
.brand-name { color: var(--g); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-shadow: var(--glow); }
.brand-name .slash { color: var(--muted); margin: 0 1px; }
.brand-ver { color: var(--dim); font-size: 10px; }
.stats { flex: 1; display: flex; gap: 0; overflow: hidden; min-width: 0; }
.chip { padding: 0 13px; border-left: 1px solid var(--line); white-space: nowrap; line-height: 1.25; }
.chip b { display: block; color: var(--g-soft); font-weight: 600; font-size: 13px; }
.chip span { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.chip.warn b { color: var(--amber); }
.chip.hot b { color: var(--g); text-shadow: var(--glow); }
/* A chip the header has no room for is left out whole (fitChips in app.js),
   never cut through its figure. */
.stats .chip.squeezed { display: none; }
.top-actions { display: flex; gap: 8px; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  background: transparent; border: 1px solid var(--line-2); color: var(--g); cursor: pointer;
  padding: 5px 11px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11.5px; white-space: nowrap;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn:hover:not(:disabled) { background: var(--g); color: #00170b; box-shadow: var(--glow); text-decoration: none; }
.btn:disabled { color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn.ghost { color: var(--muted); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { background: transparent; color: var(--g); border-color: var(--line-2); box-shadow: none; }
.btn.on { color: var(--amber); border-color: rgba(255, 182, 39, 0.5); }
.btn.danger:hover:not(:disabled) { background: var(--red); color: #1a0004; border-color: var(--red); box-shadow: 0 0 9px rgba(255, 82, 99, 0.5); }
.btn.fire {
  font-size: 14px; padding: 13px 22px; letter-spacing: 0.2em; font-weight: 700; color: var(--g);
  border: 1px solid var(--g); box-shadow: inset 0 0 18px rgba(43, 255, 136, 0.12), 0 0 14px rgba(43, 255, 136, 0.2);
}
.btn.fire:hover:not(:disabled) { animation: glitch 0.28s steps(2) 1; }
/* Switched off (no key, or the deadline has passed): it must look it, or it
   reads as ready to press. */
.btn.fire:disabled { color: var(--faint); border-color: var(--line); box-shadow: none; }

/* ---- layout ---------------------------------------------------------------- */
.deck { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(470px, 43%) minmax(0, 1fr); height: calc(100vh - var(--top)); }
.pane { background: var(--panel); min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.list-pane { border-right: 1px solid var(--line-2); }
/* The dossier lays itself out by the width of this pane, not of the window
   (see the container rules at the end): at 1024 px the pane is about 550 px
   wide although the window is not narrow. */
.detail-pane { overflow-y: auto; padding: 0 0 60px; container: pane / inline-size; }

/* ---- list ---------------------------------------------------------------------- */
/* The tabs wrap onto a second row when the list pane is narrower than they
   are (below about 1600 px), so every tab, DISMISSED included, stays in sight.
   Each tab carries its own bottom rule, so a second row reads as a row. */
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); flex: none; }
.tab {
  background: none; border: 0; border-right: 1px solid var(--line); box-shadow: inset 0 -1px 0 var(--line); margin-bottom: -1px;
  color: var(--muted); cursor: pointer;
  padding: 9px 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.tab b { color: var(--dim); font-weight: 400; margin-left: 5px; }
.tab:hover { color: var(--g-soft); }
.tab.on { color: var(--g); background: rgba(43, 255, 136, 0.07); box-shadow: inset 0 -2px 0 var(--g); }
.tab.on b { color: var(--g-soft); }

.filters { display: flex; gap: 8px 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); flex: none; align-items: center; flex-wrap: wrap; }
/* The search box keeps a usable width. When the two menus no longer fit
   beside it they drop to a second line rather than squeezing it to nothing. */
.prompt { flex: 1 1 210px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 0 9px; min-width: 0; }
.prompt span { color: var(--g); white-space: nowrap; }
.prompt input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 6px 0; color: var(--text); }
.prompt input::placeholder { color: var(--dim); }
.prompt:focus-within { border-color: var(--line-2); box-shadow: inset 0 0 10px rgba(43, 255, 136, 0.07); }
.sel { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.sel select { background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 5px 6px; max-width: 150px; text-transform: none; letter-spacing: 0; }

.list-head, .row { display: grid; grid-template-columns: 54px 58px minmax(0, 1fr) 104px; gap: 10px; align-items: center; }
.list-head { padding: 6px 12px 6px 14px; color: var(--dim); font-size: 9.5px; letter-spacing: 0.16em; border-bottom: 1px solid var(--line); flex: none; }
.list-head span:nth-child(4) { text-align: right; }
.list { flex: 1; overflow-y: auto; outline: 0; }
/* Keyboard focus on the list shows as a line inside its top edge, where the
   scrolling rows cannot cover it. */
.list:focus-visible { box-shadow: inset 0 2px 0 var(--g), inset 2px 0 0 var(--g); }
.list:focus-visible .row.cur { border-left-color: #fff; }
.row { padding: 9px 12px 9px 11px; border-bottom: 1px solid rgba(43, 255, 136, 0.08); border-left: 3px solid transparent; cursor: pointer; }
.row:hover { background: rgba(43, 255, 136, 0.045); }
.row.cur { background: rgba(43, 255, 136, 0.1); border-left-color: var(--g); }
.row.dismissed { opacity: 0.7; }
.row.dismissed .r-title { text-decoration: line-through; text-decoration-color: var(--dim); }

.score { font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.score small { display: block; font-size: 9px; font-weight: 400; color: var(--dim); letter-spacing: 0.1em; margin-top: 3px; }
.t4 { color: var(--g); text-shadow: var(--glow); }
.t3 { color: var(--g-soft); }
.t2 { color: var(--amber); }
.t1 { color: var(--muted); }
.t0 { color: var(--dim); }
.win b { font-size: 14px; font-weight: 600; }
.meter { display: block; height: 4px; margin-top: 5px; background: rgba(43, 255, 136, 0.12); position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; }
.r-main { min-width: 0; }
.r-title { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.cur .r-title { color: #fff; }
.r-sub { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.r-what { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line); color: var(--muted); font-size: 9.5px; padding: 0 5px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 15px; }
.tag.g { color: var(--g); border-color: var(--line-2); }
.tag.a { color: var(--amber); border-color: rgba(255, 182, 39, 0.4); }
.tag.c { color: var(--cyan); border-color: rgba(77, 227, 255, 0.4); }
.tag.r { color: var(--red); border-color: rgba(255, 82, 99, 0.45); }
.due { text-align: right; font-size: 12px; color: var(--g-soft); }
.due.soon { color: var(--amber); }
.due.now { color: var(--red); }
.due small { display: block; color: var(--dim); font-size: 10px; }
.r-side { align-self: start; padding-top: 2px; }
.val { text-align: right; font-size: 11.5px; color: var(--text); white-space: nowrap; margin-top: 7px; }
.val small { display: block; color: var(--dim); font-size: 10px; }
.list-foot { flex: none; padding: 7px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 10px; }
.empty { padding: 34px 22px; color: var(--muted); line-height: 1.7; }
.empty b { color: var(--g); font-weight: 600; }
.empty .btn { margin-top: 14px; }

/* ---- detail ---------------------------------------------------------------- */
.idle { padding: 34px 30px; max-width: 760px; }
.idle pre { color: var(--g); text-shadow: var(--glow); font: 11px/1.18 Menlo, Monaco, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; margin-bottom: 22px; overflow: hidden; }
.idle h2 { color: var(--g); font-size: 13px; letter-spacing: 0.18em; margin: 22px 0 10px; }
.idle p { color: var(--muted); margin-bottom: 9px; max-width: 68ch; }
.funnel { display: grid; grid-template-columns: auto 1fr auto; gap: 5px 12px; align-items: center; max-width: 620px; }
.funnel .f-k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.funnel .f-bar { height: 9px; background: rgba(43, 255, 136, 0.1); position: relative; }
.funnel .f-bar i { position: absolute; inset: 0 auto 0 0; background: var(--g); box-shadow: var(--glow); min-width: 2px; }
.funnel .f-v { color: var(--g-soft); text-align: right; font-variant-numeric: tabular-nums; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; color: var(--muted); }
kbd { border: 1px solid var(--line-2); color: var(--g-soft); padding: 0 6px; font: inherit; font-size: 11px; }

.d-head { padding: 18px 24px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(3, 12, 8, 0.97); z-index: 3; }
/* A head taller than a third of the pane (pinHead in app.js) scrolls away
   with the rest instead of covering it. */
.d-head.loose { position: static; }
.d-kicker { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.d-title { color: #eafff3; font-size: 18px; font-weight: 600; line-height: 1.3; margin: 6px 0 4px; text-shadow: 0 0 12px rgba(43, 255, 136, 0.25); }
.d-agency { color: var(--muted); font-size: 12px; }
.d-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.back { display: none; }

.d-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 13px 16px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat-k { color: var(--muted); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; }
/* A long value (a wide dollar range) wraps inside its cell rather than
   running under the next one. */
.stat-v { font-size: clamp(16px, 1.55vw, 22px); font-weight: 700; line-height: 1.2; margin-top: 3px; overflow-wrap: anywhere; }
.stat-v small { font-size: 11px; font-weight: 400; color: var(--dim); }
.stat-s { color: var(--dim); font-size: 10.5px; margin-top: 2px; line-height: 1.35; overflow-wrap: anywhere; }
/* How the server read the deadline, under the date. */
.due-note { display: block; margin-top: 2px; color: var(--muted); }

.box { margin: 18px 24px 0; border: 1px solid var(--line); background: var(--panel-2); position: relative; }
.box::before, .box::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--g); pointer-events: none; }
.box::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.box::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.box > h2, .box > summary { color: var(--g); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; padding: 9px 14px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.box > summary { cursor: pointer; list-style: none; border-bottom: 0; color: var(--muted); }
.box > summary::-webkit-details-marker { display: none; }
.box > summary::before { content: "[+] "; color: var(--g); }
.box[open] > summary { border-bottom: 1px solid var(--line); color: var(--g); }
.box[open] > summary::before { content: "[-] "; }
.box-body { padding: 13px 14px; }
.note { color: var(--muted); font-size: 11.5px; }
.warnline { color: var(--amber); font-size: 12px; margin-top: 8px; }
.warnline::before { content: "! "; font-weight: 700; }

.parts { display: grid; grid-template-columns: 150px 1fr 44px; gap: 7px 12px; align-items: center; }
.parts .p-k { color: var(--muted); font-size: 11.5px; }
.parts .p-k small { color: var(--dim); }
.parts .p-bar { height: 8px; background: rgba(43, 255, 136, 0.1); position: relative; }
.parts .p-bar i { position: absolute; inset: 0 auto 0 0; background: var(--g); }
.parts .p-v { text-align: right; color: var(--g-soft); font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 5px 14px; }
.kv dt { color: var(--muted); font-size: 11.5px; }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.lead { color: #eafff3; font-size: 13.5px; }
.bul li { padding-left: 16px; position: relative; margin-top: 5px; }
.bul li::before { content: ">"; position: absolute; left: 0; color: var(--g); }
.bul.warn li::before { content: "!"; color: var(--amber); }
.desc { white-space: pre-wrap; color: var(--text); max-height: 230px; overflow: hidden; position: relative; overflow-wrap: anywhere; }
.desc.open { max-height: none; }
.desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(8, 28, 18, 0), rgba(8, 28, 18, 1)); }
.linkbtn { background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 6px 0 0; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:disabled { color: var(--faint); cursor: not-allowed; text-decoration: none; }
.note .linkbtn { padding: 0; }

/* ---- deep search ----------------------------------------------------------------- */
.launch { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.launch-copy { color: var(--muted); font-size: 12px; max-width: 54ch; }
.launch-copy b { color: var(--g-soft); font-weight: 600; }

.term { background: #010503; border: 1px solid var(--line); padding: 10px 12px; height: 320px; overflow-y: auto; font-size: 12px; line-height: 1.55; }
.term .ln { display: grid; grid-template-columns: 62px 60px 1fr; gap: 8px; }
.term .ts { color: var(--dim); }
.term .tg { color: var(--g); }
.term .ms { color: var(--text); overflow-wrap: anywhere; }
.term .ln.dim .ms { color: var(--dim); }
.term .ln.warn .ms, .term .ln.warn .tg { color: var(--amber); }
.term .ln.error .ms, .term .ln.error .tg { color: var(--red); }
.term .ln.ok .ms, .term .ln.ok .tg { color: var(--g); text-shadow: var(--glow); }
.term .tg.net { color: var(--cyan); }
.term .tg.ai { color: #d9a8ff; }
.term .cursor { display: inline-block; width: 8px; height: 14px; background: var(--g); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.term-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 8px; gap: 10px; }
.term.short { height: auto; max-height: 190px; margin-top: 8px; }
/* A deep search that did not finish. Shown above an older dossier too, so a
   failed re-run is never mistaken for a fresh result. */
.failed { border: 1px solid rgba(255, 82, 99, 0.5); background: rgba(255, 82, 99, 0.06); padding: 11px 13px; }
.failed .warnline { color: #ff8a96; margin-top: 0; overflow-wrap: anywhere; }
.failed .note { margin-top: 8px; }
.failed .retry { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.failed details { margin-top: 8px; }
.failed summary { cursor: pointer; }
.failed summary:hover { color: var(--g-soft); }

.verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); background: rgba(43, 255, 136, 0.06); }
.verdict-call { font-size: 22px; font-weight: 700; letter-spacing: 0.16em; color: var(--g); text-shadow: var(--glow); white-space: nowrap; }
.verdict.v-bid_if { border-color: rgba(255, 182, 39, 0.5); background: rgba(255, 182, 39, 0.06); }
.verdict.v-bid_if .verdict-call { color: var(--amber); text-shadow: 0 0 9px rgba(255, 182, 39, 0.5); }
.verdict.v-pass { border-color: rgba(255, 82, 99, 0.5); background: rgba(255, 82, 99, 0.06); }
.verdict.v-pass .verdict-call { color: var(--red); text-shadow: 0 0 9px rgba(255, 82, 99, 0.5); }
.verdict-why { color: var(--text); }
.verdict-meta { text-align: right; color: var(--muted); font-size: 11px; white-space: nowrap; }
.verdict-meta b { display: block; color: var(--g-soft); font-size: 18px; }

.dos h3 { color: var(--g); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
/* A long note beside a heading takes the room that is left and wraps inside
   it, or drops under the heading. It never squeezes the heading itself. */
.dos h3 { flex-wrap: wrap; }
.dos h3 small { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 400; flex: 1 1 240px; text-align: right; min-width: 0; }
.dos p { margin-top: 8px; }
.dos .headline { color: #eafff3; font-size: 14.5px; font-weight: 600; margin-top: 16px; }
.dos .summary { color: var(--text); max-width: 86ch; }

.bids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bid { border: 1px solid var(--line-2); padding: 13px 14px; background: rgba(2, 10, 6, 0.75); position: relative; min-width: 0; }
.bid.best { border-color: var(--g); box-shadow: 0 0 16px rgba(43, 255, 136, 0.18); }
.bid-name { font-size: 11px; letter-spacing: 0.2em; color: var(--g); display: flex; justify-content: space-between; gap: 6px; }
.bid.b1 .bid-name { color: var(--cyan); }
.bid.b2 .bid-name { color: var(--amber); }
.bid-tag { color: var(--muted); letter-spacing: 0.06em; font-size: 10px; text-transform: uppercase; }
.bid-sub { color: var(--muted); font-size: 11px; margin-top: 1px; }
.bid-price { font-size: 25px; font-weight: 700; color: #eafff3; margin: 9px 0 2px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.bid dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; margin: 10px 0; font-size: 12px; }
.bid dt { color: var(--muted); }
.bid dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bid dd.pos { color: var(--g); }
.bid dd.neg { color: var(--red); }
.bid .meter { height: 6px; margin: 4px 0 10px; }
.bid-why { color: var(--muted); font-size: 11.5px; border-top: 1px solid var(--line); padding-top: 9px; }
.best-flag { position: absolute; top: -9px; right: 10px; background: var(--g); color: #00170b; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; padding: 1px 7px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .sub { color: var(--muted); font-size: 11px; }
.scroll-x { overflow-x: auto; }
.tbl.sup { min-width: 520px; }
.tbl.sup th:nth-child(1), .tbl.sup td:nth-child(1) { width: 26%; }
.tbl.sup th:nth-child(2), .tbl.sup td:nth-child(2) { width: 110px; white-space: nowrap; overflow-wrap: normal; }
.tbl.sup th:nth-child(3), .tbl.sup td:nth-child(3) { width: 100px; }
.tbl td .tag { display: inline-block; margin-top: 3px; }

.item { border: 1px solid var(--line); margin-top: 10px; background: rgba(2, 10, 6, 0.6); }
.item-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.item-name { color: #eafff3; }
.item-name small { color: var(--muted); display: block; margin-top: 2px; }
.item-cost { text-align: right; white-space: nowrap; color: var(--g-soft); }
.item-cost small { display: block; color: var(--muted); }
.item-body { padding: 4px 12px 9px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { border: 1px solid var(--line); padding: 10px 12px; background: rgba(2, 10, 6, 0.6); min-width: 0; }
/* The model's text holds email addresses, links and part numbers with no
   place to break. They wrap inside their box instead of running out of it and
   pushing the whole dossier sideways. */
.mini, .bul li, .note, .verdict-why, .item-name, .dos p, .steps li, .d-title, .lead, .warnline { overflow-wrap: anywhere; }
.mini h4 { margin: 0 0 6px; color: var(--muted); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; }
.mini .big { color: #eafff3; font-size: 14px; }
.sev { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 5px; border: 1px solid; white-space: nowrap; }
.sev.high { color: var(--red); } .sev.medium { color: var(--amber); } .sev.low { color: var(--muted); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; padding: 6px 0 6px 34px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; color: var(--g); }
.steps li small { color: var(--amber); margin-left: 8px; }
/* One line per source, cut with an ellipsis when it is long. A caveat on a
   source goes on its own line under it, where the ellipsis cannot hide it. */
.srcs li { margin-top: 4px; min-width: 0; }
.srcs li > a, .srcs li > span:not(.note) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srcs li > .note { display: block; }
.runmeta { color: var(--dim); font-size: 11px; margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---- modals ------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.72); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; }
.modal-box { width: min(760px, 100%); border: 1px solid var(--g); background: #030d08; box-shadow: 0 0 40px rgba(43, 255, 136, 0.18); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); color: var(--g); letter-spacing: 0.18em; font-size: 12px; }
/* The dialog itself takes the focus on opening (app.js, openModal). Its own
   green border already marks it, so no outline is drawn around it. */
.modal-box:focus { outline: 0; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; letter-spacing: 0.1em; }
.x:hover { color: var(--red); }
.term-box .term { height: min(52vh, 440px); border: 0; border-top: 1px solid var(--line); }
.scan-actions { padding: 12px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.scan-actions .note { flex-basis: 100%; }

.settings { padding: 4px 16px 16px; }
.settings fieldset { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.settings legend { color: var(--g); letter-spacing: 0.18em; font-size: 11px; padding: 0 8px 0 0; text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.fld { display: block; }
.fld > span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.fld small { display: block; color: var(--dim); font-size: 10.5px; margin-top: 2px; }
.fld input[type="number"], .fld input[type="text"], .fld input[type="password"], .fld select, .fld textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 6px 8px; outline: 0;
}
.fld textarea { min-height: 170px; resize: vertical; line-height: 1.45; font-size: 12px; color: var(--text); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--g); }
.checks { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.checks label { display: flex; gap: 6px; align-items: center; color: var(--text); cursor: pointer; }
.checks input { accent-color: var(--g); }
.settings-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70; background: #031109; border: 1px solid var(--g); color: var(--g-soft); padding: 8px 16px; box-shadow: var(--glow); max-width: min(720px, 86vw); }
.toast.bad { border-color: var(--red); color: var(--red); box-shadow: 0 0 9px rgba(255, 82, 99, 0.5); }

/* ---- the team (js/team.js) ------------------------------------------------------ */
.top-actions { align-items: center; }
.btn.badge { color: var(--amber); border-color: rgba(255, 182, 39, 0.55); }
.btn.badge:hover:not(:disabled) { background: var(--amber); color: #1a1000; box-shadow: 0 0 9px rgba(255, 182, 39, 0.5); }
.btn.badge b { font-weight: 700; }
.menu-list .nm { text-transform: none; letter-spacing: 0.04em; }
/* A long name is cut, never the buttons beside it. */
.btn.me { max-width: 200px; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0.04em; }
.top-actions .narrow { display: none; }
/* Set by fitActions in js/team.js when the buttons would not fit the header. */
body.squeeze-actions .top-actions .wide { display: none; }
body.squeeze-actions .top-actions .narrow { display: inline-block; }
.tab b.hot { color: var(--amber); font-weight: 700; }
.tag.u { color: #d9a8ff; border-color: rgba(217, 168, 255, 0.45); text-transform: none; letter-spacing: 0.02em; }

/* The open and closed switch of ASSIGNED, where the search box is on the other tabs. */
.assign-filters { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; gap: 6px; }
.mini-tab { background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer; padding: 3px 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.mini-tab:hover { color: var(--g-soft); }
.mini-tab.on { color: var(--g); border-color: var(--line-2); background: rgba(43, 255, 136, 0.07); }

/* Rows of ASSIGNED and MY CONTRACTS: progress, the contract, the deadline. */
.list-head.alist, .row.arow { grid-template-columns: 64px minmax(0, 1fr) 104px; }
.list-head.alist span:nth-child(4) { display: none; }
.list-head.alist span:nth-child(3) { text-align: right; }
.prog b { display: block; font-size: 14px; font-weight: 600; color: var(--g-soft); }
.prog .meter { color: var(--g); }
.prog small { display: block; color: var(--dim); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.row.arow.needs { border-left-color: var(--amber); }
.row.arow.needs.cur { border-left-color: var(--g); }
/* Who has it, on the owner's rows: the name gives way before the email. */
.r-sub.r-who { display: flex; min-width: 0; }
.r-who .nm { flex: 0 1000 auto; min-width: 4ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-who .sep { flex: none; white-space: pre; }
.r-who .em { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Who has the contract, under its title. */
.d-assigned { margin-top: 8px; font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.d-assigned .k { color: #d9a8ff; letter-spacing: 0.1em; }
.d-assigned b { color: #eafff3; font-weight: 600; }
.d-assigned .off { color: var(--red); }
.d-assigned .st { color: var(--g-soft); }
.d-assigned .st.o-won { color: var(--g); }
.d-assigned .st.o-lost { color: var(--red); }
.d-assigned .seen { color: var(--muted); }
.d-assigned .seen.not { color: var(--amber); }
/* Whose closed assignment is open below, when it is not the one above. */
.d-closed { margin-top: 6px; font-size: 12px; color: var(--amber); overflow-wrap: anywhere; }

/* The assignment panel. One column, two once the pane is wide (end of file). */
.apanel > h2 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.apanel .h-aside { color: var(--g-soft); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
.a-head { display: grid; gap: 5px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); overflow-wrap: anywhere; }
.a-head .k { color: var(--muted); }
.a-head b { color: #eafff3; font-weight: 600; }
.a-note { color: var(--text); white-space: pre-wrap; border-left: 2px solid var(--line-2); padding-left: 10px; }
.a-seen { color: var(--muted); font-size: 12px; }
.a-seen.not { color: var(--amber); }
.a-wait { font-size: 12px; color: var(--amber); }
.a-wait .k { color: var(--amber); letter-spacing: 0.06em; }
.a-wait .linkbtn { padding: 0; font-size: 11.5px; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; }
.a-col { min-width: 0; }
.a-part { margin-top: 14px; }
.a-part h3 { color: var(--g); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.a-part h3 small { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.a-part h3 .linkbtn { margin-left: auto; padding: 0; }
.chk li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: start; }
.chk li:last-child { border-bottom: 0; }
.chk input[type="checkbox"] { accent-color: var(--g); margin: 3px 0 0; width: 15px; height: 15px; cursor: pointer; }
/* Unticked boxes and file pickers drawn dark, not as white squares on the black page. */
.chk input, .switch input, .chk-own input, .team .checks input, .upload input[type="file"] { color-scheme: dark; }
.chk input[type="checkbox"]:disabled { cursor: not-allowed; }
.chk-label { cursor: pointer; overflow-wrap: anywhere; }
.chk li.done .chk-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.chk-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 2px; }
.chk-meta small { color: var(--dim); font-size: 10.5px; }
.chk-meta .linkbtn { padding: 0; font-size: 10.5px; }
.chk-meta .linkbtn.danger { color: var(--red); }
.chk-meta .sep { color: var(--dim); }
.chk-label-edit, .chk-add input[type="text"] { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 4px 7px; outline: 0; }
.chk-label-edit:focus, .chk-add input[type="text"]:focus { border-color: var(--g); }
.chk-add { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.chk-add input[type="text"] { flex: 1 1 180px; width: auto; min-width: 0; }
.chk-own { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 11px; }
.a-outcome { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.a-outcome label { color: var(--g); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.a-outcome select { background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 4px 6px; }
.props { display: grid; gap: 8px; }
.prop { border: 1px solid var(--line); padding: 9px 11px; background: rgba(2, 10, 6, 0.6); min-width: 0; }
.prop.s-waiting { border-color: rgba(255, 182, 39, 0.45); }
/* A version a newer upload replaced: kept to read and download, set back. */
.prop.s-replaced { opacity: 0.72; border-style: dashed; }
.prop-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.prop-v { color: var(--g); }
.prop-name { color: #eafff3; overflow-wrap: anywhere; min-width: 0; flex: 1 1 120px; }
.prop-note { color: var(--text); white-space: pre-wrap; margin-top: 4px; overflow-wrap: anywhere; }
.prop .warnline { margin-top: 4px; overflow-wrap: anywhere; }
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.changes { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
.changes textarea, .chat-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 6px 8px; outline: 0; resize: vertical; line-height: 1.45; }
.changes textarea:focus, .chat-input:focus { border-color: var(--g); }
.upload { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.upload input[type="file"] { width: 100%; color: var(--muted); font-size: 11.5px; }
.upload input[type="file"]::file-selector-button { font: inherit; background: transparent; color: var(--g); border: 1px solid var(--line-2); padding: 4px 10px; margin-right: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; }
.chat-log { border: 1px solid var(--line); background: #010503; padding: 8px 10px; max-height: 340px; min-height: 120px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.msg { min-width: 0; overflow-wrap: anywhere; }
.msg .m-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg .m-head b { color: var(--g-soft); font-weight: 600; }
.msg.mine .m-head b { color: var(--cyan); }
.msg .m-at { color: var(--dim); font-size: 10.5px; }
.msg .m-body { white-space: pre-wrap; color: var(--text); }
.msg .m-seen { color: var(--muted); font-size: 10.5px; text-align: right; }
.msg.ev { color: var(--dim); font-size: 11.5px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg.ev .m-body { color: var(--dim); font-style: italic; white-space: normal; }
.composer { margin-top: 8px; display: grid; gap: 6px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Forms in the small dialogs. */
.modal-box.small-box { width: min(560px, 100%); }
.modal-box.wide-box { width: min(860px, 100%); }
.modal-pad { padding: 14px 16px 16px; }
.form { display: grid; gap: 10px; }
.form p { overflow-wrap: anywhere; }
.form-h { color: var(--g); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.err { color: var(--red); font-size: 12px; min-height: 1.5em; overflow-wrap: anywhere; }
.err:empty { min-height: 0; }
.fld input[type="email"] { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 6px 8px; outline: 0; }
.form .fld textarea { min-height: 70px; }
.fld input[type="email"]:focus { border-color: var(--g); }
.menu-list { display: grid; gap: 8px; padding: 14px 16px 16px; }
.menu-list .btn { text-align: left; padding: 10px 12px; }

/* The sign in screen: a terminal box over the page. */
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(1, 5, 3, 0.94); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; overflow-y: auto; }
.gate-box { width: min(440px, 100%); border: 1px solid var(--g); background: #030d08; box-shadow: 0 0 40px rgba(43, 255, 136, 0.18); }
.gate-brand { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 4px; }
.gate-form { padding: 16px; display: grid; gap: 12px; }
.gate-form h1 { color: var(--g); font-size: 14px; letter-spacing: 0.22em; text-shadow: var(--glow); }
.gate-form .fld input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--g-soft); padding: 8px 9px; outline: 0; }
.gate-form .fld input:focus { border-color: var(--g); }
.gate-form .btn.fire { justify-self: start; padding: 10px 20px; }
.gate-form .linkbtn { justify-self: start; }

/* The TEAM panel. */
.team { padding: 4px 16px 16px; }
.team fieldset { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; min-width: 0; }
.team legend { color: var(--g); letter-spacing: 0.18em; font-size: 11px; padding: 0 8px 0 0; text-transform: uppercase; }
.people { display: grid; gap: 8px; }
.person { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; border: 1px solid var(--line); padding: 9px 11px; background: rgba(2, 10, 6, 0.6); }
.person.off { opacity: 0.75; }
.person b { color: #eafff3; font-weight: 600; }
/* A tag is one box, moved whole to the next line, never broken in two. */
.person .tag { display: inline-block; white-space: nowrap; }
.p-main, .p-perms, .p-actions { min-width: 0; overflow-wrap: anywhere; }
.p-perms { display: grid; gap: 4px; }
.p-actions { display: grid; gap: 2px; justify-items: start; }
.p-actions .linkbtn { padding: 0; }
.p-edit { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 9px; }
.switch { display: flex; gap: 7px; align-items: center; color: var(--text); cursor: pointer; }
.switch input { accent-color: var(--g); margin: 0; }
.switch.big { font-size: 13px; margin-bottom: 6px; }
.add { display: grid; gap: 10px; }
.temp { border: 1px solid var(--amber); background: rgba(255, 182, 39, 0.07); padding: 11px 13px; margin-top: 12px; display: grid; gap: 7px; overflow-wrap: anywhere; }
.temp-k { color: var(--amber); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.temp-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.temp-pass { font-size: 18px; color: #eafff3; letter-spacing: 0.12em; user-select: all; }
/* Each address with its label in brackets after it, as one item, so on a
   phone a label that wraps never reads as the heading of the next address. */
.addrs { display: grid; gap: 6px; margin: 6px 0; }
.addrs li { display: block; overflow-wrap: anywhere; }
.addrs li .note { display: inline-block; max-width: 100%; }
.addrs code { color: var(--cyan); overflow-wrap: anywhere; }
.hosts { margin-top: 10px; display: grid; gap: 6px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch {
  0% { transform: translate(0, 0); text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
  50% { transform: translate(-1px, 1px); text-shadow: 2px 0 var(--cyan), -2px 0 var(--red); }
  100% { transform: translate(0, 0); text-shadow: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade { animation: rise 0.22s ease both; }

@media (max-width: 1280px) {
  .d-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .stats .chip.opt { display: none; }
}
@media (max-width: 1020px) {
  .deck { grid-template-columns: minmax(0, 1fr); }
  .detail-pane { display: none; }
  .deck.has-detail .list-pane { display: none; }
  .deck.has-detail .detail-pane { display: block; }
  .back { display: inline-block; }
  .stats .chip:not(.keep) { display: none; }
  .stat-v { font-size: 19px; }
  .btn.me { max-width: 150px; }
}
@media (max-width: 640px) {
  .list-head, .row { grid-template-columns: 46px 50px minmax(0, 1fr) 62px; }
  .row .val { display: none; }
  .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-top: 1px solid var(--line); }
  .pair, .grid2 { grid-template-columns: 1fr; }
  .box { margin: 14px 12px 0; }
  .d-head { padding: 14px 12px; }
  .kv, .parts { grid-template-columns: 110px 1fr; }
  .parts .p-v { display: none; }
  .prompt { flex-basis: 100%; }
  .brand-ver, .brand-mark, .stats { display: none; }
  .top { gap: 8px; padding: 0 10px; }
  .brand-name { font-size: 13px; letter-spacing: 0.08em; }
  .top-actions { margin-left: auto; gap: 6px; }
  .top-actions .btn { padding: 5px 7px; letter-spacing: 0.04em; }
  .list-foot span:last-child { display: none; }
  .d-actions .btn { padding: 5px 8px; letter-spacing: 0.04em; }
  .verdict { grid-template-columns: 1fr; gap: 8px; }
  .verdict-meta { text-align: left; }
  .term .ln { grid-template-columns: 52px 1fr; }
  .term .ln .ts { display: none; }
  .modal { padding: 8px; }
  /* More than two header buttons go into [ MENU ]; the badge stays. */
  body.many-actions .top-actions .wide { display: none; }
  body.many-actions .top-actions .narrow { display: inline-block; }
  .btn.badge .badge-word { display: none; }
  .btn.me { max-width: 130px; }
  .list-head.alist, .row.arow { grid-template-columns: 50px minmax(0, 1fr) 62px; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .gate { padding-top: 6vh; }
  /* On a phone the contract's head, with who it is assigned to, would hold
     half the screen if it stayed pinned. It scrolls away with the rest. */
  .d-head { position: static; }
}
/* The dossier by the width of its pane. The bid cards need about 180 px each
   for their figures. The three text boxes (who can bid, how it is judged, how
   to submit) hold paragraphs, which read badly in columns narrower than about
   260 px, so they stack on a laptop and stand side by side on a wide screen.
   The cost and competition figures need less. On a phone the cost of a line
   item drops under its name rather than pushing the line wider than the screen. */
@container pane (max-width: 860px) {
  .trio.text { grid-template-columns: 1fr; }
}
@container pane (max-width: 640px) {
  .bids { grid-template-columns: 1fr; }
}
@container pane (max-width: 480px) {
  .trio { grid-template-columns: 1fr; }
  .item-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .item-cost { white-space: normal; text-align: left; }
}
/* The assignment panel puts the chat beside the checklist once the pane has
   room: from 700 px of pane, which a 1280 px window and an 800 px one both
   give it, each column has about 320 px, as much as a phone's single one.
   Below that the chat would sit a screen or more under the checklist. */
@container pane (min-width: 700px) {
  .a-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #rain { display: none; }
}
