:root {
  /* Steel Highway — "Shop Floor / Blackout" theme: one work light over riveted plate, stencil paint, masking tape.
     Darkness lives in these variables: lift --bg/--panel/--panel-2 a few shades to brighten the whole site. */
  --bg: #080807; --panel: #1b1a17; --panel-2: #141311; --line: #2e2c27; --line-2: #3f3c36;
  --text: #ded6c4; --muted: #a0988a; --dim: #c4bba8;
  --accent: #c99a17; --accent-ink: #111; --accent-bg: #2a220c; --accent-text: #f0dc9a; --accent-hi: #e3b521;
  --warn: #ef7a5a; --warn-bg: #1c0d08; --warn-line: #6e2a17;
  --ok: #8cc45c; --ok-bg: #10170b; --ok-line: #3b5a25;
  --grid-1: #191814; --grid-2: #24221d;
  --rust: #b0652f; --tape: #b9ad8e; --tape-ink: #1d1b18; --rivet: #67635a; --edge: #000;
  --head-top: #1e1d1a; --head-bot: #111110; --plate-hi: #252420;
  --lamp: rgba(255, 190, 100, .12);
  --font: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, Menlo, Consolas, monospace;
  --stencil: 'Saira Stencil One', 'Impact', sans-serif;
  --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--accent); }
a:hover { color: #e3b521; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .02em; }
h2 { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- site chrome ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 8px 24px; border-bottom: 1px solid var(--line); background: rgba(8, 8, 7, .78);  position: relative; z-index: 2; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); transition: transform .15s; }
.brand:hover img { transform: scale(1.04); }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.button, .site-nav a.button:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.clock-pill { font-family: var(--mono); font-size: 13px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); white-space: nowrap; }
.cash-pill { font-family: var(--mono); font-size: 14px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text); }
.site-main { max-width: 1000px; margin: 0 auto; padding: 32px 16px 48px; }
.site-main.wide { max-width: 1440px; padding: 20px 16px 40px; }
.site-footer { max-width: 1000px; margin: 0 auto; padding: 24px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- basics ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.lede { font-size: 1.15rem; max-width: 60ch; color: var(--dim); }
.hero { padding: 32px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 20px; margin: 16px 0; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .input, select.input { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: 2px; }
.field.has-error input { border-color: var(--warn-line); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.error { margin: 6px 0 0; font-size: 14px; color: var(--warn); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: inherit;
  font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 2px;
  cursor: pointer; text-decoration: none; }
.button:hover { filter: brightness(1.08); color: var(--accent-ink); }
.button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.button-small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.button-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.button-ghost:hover { color: var(--text); border-color: var(--accent); }
.button-danger { background: transparent; color: var(--warn); border: 1px solid var(--warn-line); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }
.flash { padding: 12px 16px; border-radius: 2px; margin: 0 0 16px; border: 1px solid var(--line-2); background: var(--panel); }
.flash-success { border-color: var(--ok-line); background: var(--ok-bg); }
.flash-error { border-color: var(--warn-line); background: var(--warn-bg); color: #ffd9cc; }
.motto { font-style: italic; color: var(--muted); margin-top: -.25em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.stats div, .tile { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; }
.stats dt, .tile .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.stats dd { margin: 4px 0 0; font: 600 1.5rem/1.2 var(--mono); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 3px; border: 1px solid var(--line-2);
  background: transparent; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.pill[aria-pressed="true"], .pill.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.pill:disabled { opacity: .4; cursor: not-allowed; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.badge-ok { border-color: var(--ok-line); color: var(--ok); }
.badge-warn { border-color: var(--warn-line); color: var(--warn); }
.badge-accent { border-color: var(--accent); color: var(--accent); }
.grid-bg { background-color: #0c0b0a;
  background-image: linear-gradient(var(--grid-1) 1px, transparent 1px), linear-gradient(90deg, var(--grid-1) 1px, transparent 1px),
                    linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; background-position: -1px -1px; }

/* ---------- garage ---------- */
.garage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.car-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.car-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 16px; }
.car-card h3 { margin: 0; text-transform: none; letter-spacing: .02em; font-size: 18px; }
.car-card .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.car-card .specs { color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* ---------- new car picker ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 28px; }
.pick { display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; height: 100%; padding: 16px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.pick:hover { border-color: var(--accent); }
.pick .maker { color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.pick .title { font-weight: 700; font-size: 18px; }
.pick .blurb { color: var(--dim); font-size: 13px; }
.pick .specs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 13px var(--mono); color: var(--muted); }
.pick .price { color: var(--accent); font-weight: 600; }

/* ---------- workbench ---------- */
.wb { display: flex; flex-direction: column; gap: 16px; }
.wb-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.wb-name { font: 700 clamp(1.5rem, 3.5vw, 2.3rem)/1.15 var(--font); letter-spacing: .02em; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px dashed var(--line-2); padding: 0 0 4px; width: min(560px, 100%); }
.wb-name:focus { outline: none; border-bottom-color: var(--accent); }
.wb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile .value { font: 600 24px/1.25 var(--mono); }
.tile .value small { font-size: 13px; color: var(--muted); font-weight: 400; }
.tile.money .value { color: var(--accent); }
.tile.alert { border-color: var(--warn-line); background: var(--warn-bg); }
.tile.alert .label, .tile.alert .value small { color: var(--warn); }
.meter { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; width: 0; transition: width .2s; }
.tile.alert .meter > i { background: var(--warn); }
.wb-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 16px; min-width: 0; }
.wb-parts { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.wb-view { flex: 999 1 560px; padding: 16px; border: 1px solid var(--line); border-radius: 2px; min-width: 0; }
.wb-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.tab { min-height: 38px; border-radius: 2px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.part-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow: auto; padding-right: 2px; }
.part { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--line); }
.part .info { flex: 1; min-width: 0; }
.part .type { font-weight: 600; }
.part .name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.part .meta { color: var(--muted); font: 12px var(--mono); }
.part .buy { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.part .price { font: 600 14px var(--mono); }
.part.current { border-color: var(--accent); }
.part input[type="number"] { width: 64px; }
.target { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.label-caps { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-grid select, .form-grid input { min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
.checks label { display: flex; gap: 6px; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 2px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.stepper button:hover { border-color: var(--accent); }
.stepper input { width: 52px; height: 32px; text-align: center; font: 14px var(--mono); color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 2px; }
.stepper button:disabled, .stepper input:disabled { opacity: .5; cursor: default; }

/* car view: 3 x 3 around the car, then top / under / interior */
.car-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.car-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(0, 1fr); grid-template-areas: ". f ." "l car r" ". b ."; gap: 12px; align-items: center; margin: 12px 0; }
.zone { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; min-width: 0; }
.zone-f { grid-area: f; } .zone-b { grid-area: b; } .zone-l { grid-area: l; align-items: flex-end; } .zone-r { grid-area: r; align-items: flex-start; }
.zone .armor { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--panel); font: 13px var(--mono); }
.zone .mounts, .strip .mounts { display: flex; flex-direction: column; gap: 6px; align-items: inherit; width: 100%; }
.mounted { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 6px 6px 12px; border-radius: 2px; border: 1px solid var(--accent);
  background: var(--accent-bg); color: var(--accent-text); font-size: 13px; text-align: left; }
.mounted.plain { border-color: var(--line-2); background: var(--panel); color: var(--dim); }
.mounted .x { width: 26px; height: 26px; flex: none; border-radius: 2px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.mounted .x:hover { border-color: currentColor; }
.mounted input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.mounted .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-wrap { grid-area: car; position: relative; }
.car-wrap svg { display: block; width: 100%; height: auto; }
.car-inside { position: absolute; inset: 24% 18% 30%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  text-align: center; font-size: 12px; color: var(--dim); line-height: 1.35; pointer-events: none; }
.car-inside strong { color: var(--text); font-weight: 600; }
.strips { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.strip { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: rgba(20, 19, 17, .85); align-items: flex-start; }
.strip .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.strip.strip-wide { grid-column: 1 / -1; }
.strip.strip-wide .row { flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
.issues { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.issues li { padding: 10px 12px; border-radius: 2px; font-size: 13px; }
.issues .error { margin: 0; border: 1px solid var(--warn-line); background: var(--warn-bg); color: #ffd9cc; font-size: 13px; }
.issues .warning { border: 1px solid #5a4a1f; background: #17130a; color: #ffe2a8; }
.issues .ok { border: 1px solid var(--ok-line); background: var(--ok-bg); color: #c6f5dc; }
.quotes { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.quote { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 2px; border: 1px solid var(--line-2); cursor: pointer; }
.quote:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.quote input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.quote .amt { font: 600 15px var(--mono); }
.quote .why { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.quote.off { cursor: not-allowed; opacity: .6; }
.after { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); }
.after .num { color: var(--text); }
.after .num.short { color: var(--warn); }
.status-line { font-size: 13px; color: var(--muted); min-height: 1.5em; }
.workorder { font-size: 13px; }
.workorder summary { cursor: pointer; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.workorder table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.workorder td { padding: 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.workorder td.num { text-align: right; white-space: nowrap; padding-left: 10px; }
.built-banner { padding: 12px 14px; border-radius: 2px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: #c6f5dc; font-size: 14px; }
.wb.readonly .edit-only { display: none !important; }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .car-grid { grid-template-columns: 1fr; grid-template-areas: "f" "car" "b" "l" "r"; }
  .zone-l, .zone-r { align-items: center; }
  .car-wrap { max-width: 220px; margin: 0 auto; width: 100%; }
}

/* ---------- crew ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.crew-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
.crew-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 16px; }
.crew-card:hover { border-color: var(--line-2); }
.crew-card h3 { margin: 0; text-transform: none; letter-spacing: .02em; font-size: 17px; }
.crew-card h3 a { color: var(--text); text-decoration: none; }
.crew-card h3 a:hover { color: var(--accent); }
.crew-card .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.crew-card .specs { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.crew-card .terms { border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }
.crew-card .terms .num { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 3px 10px; border-radius: 3px; border: 1px solid var(--line-2); font-size: 12px; color: var(--dim); }
.chip-main { border-color: var(--accent); color: var(--accent-text); background: var(--accent-bg); }
.clone-line { color: #c6f5dc; }
.clone-line::before { content: "◆ "; color: var(--ok); }
.seat-table { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 24px; }
.seat-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.seat-form { flex: 0 1 380px; min-width: 0; margin: 0; }
.seat-form select { min-height: 40px; }
.profile-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; align-items: start; }
.profile-cols .panel h2 { margin-top: 0; }
.skill-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.skill-list li { display: grid; grid-template-columns: 1fr 110px 56px; gap: 10px; align-items: center; }
.skill-list .pts { font: 12px var(--mono); color: var(--muted); text-align: right; }
.skill-list .main { font-weight: 600; color: var(--accent-text); }
.skill-list .meter { margin: 0; }
.stats.compact { margin: 12px 0 0; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.stats.compact dd { font-size: 1.15rem; }
.kv { display: grid; gap: 6px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.row-form { display: flex; gap: 8px; align-items: center; }
.row-form select { flex: 1; min-width: 0; min-height: 40px; }
.history { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.history .num { display: inline-block; min-width: 52px; }
.eyebrow a { color: inherit; text-decoration: none; }
a.pill { text-decoration: none; }

/* ---------- league ---------- */
.league-table { display: flex; flex-direction: column; margin: 16px 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.league-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 80px 56px 56px; gap: 10px; align-items: center; padding: 12px 16px;
  border-top: 1px solid var(--line); color: var(--text); text-decoration: none; background: var(--panel); }
.league-row:first-child { border-top: 0; }
.league-row.head { background: transparent; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
a.league-row:hover { background: var(--panel-2); color: var(--text); }
.league-row.mine { box-shadow: inset 3px 0 0 var(--accent); }
.league-row > span:nth-child(n+3) { text-align: right; }
.league-row strong { margin-right: 6px; }
.league-row .small { display: block; }
@media (max-width: 560px) { .league-row { grid-template-columns: 28px minmax(0, 1fr) 56px; } .league-row > span:nth-child(n+4) { display: none; } }

/* ---------- admin ---------- */
.admin-tabs { margin: 0 0 12px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0 28px; align-items: start; }
.admin-grid .panel h2 { margin-top: 0; }
.admin-grid .form-grid label .button { min-height: 40px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.admin-item.off { opacity: .75; border-style: dashed; }
.admin-item .who { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.admin-item .who strong { margin-right: 6px; }
.admin-item .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.admin-item .actions form { margin: 0; }
details.suspend { position: relative; }
details.suspend > summary { list-style: none; }
details.suspend > summary::-webkit-details-marker { display: none; }
details.suspend[open] > form { position: absolute; right: 0; z-index: 5; margin-top: 6px; width: min(340px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--panel-2); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
details.suspend label { display: flex; flex-direction: column; gap: 4px; }
details.suspend label.checks { flex-direction: row; align-items: center; }
.admin-item .who .line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- portraits and crests ---------- */
.avatar, .crest { flex: none; display: inline-grid; place-items: center; overflow: hidden; vertical-align: middle; }
.avatar { border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); object-fit: cover; }
.crest { border-radius: 22%; border: 1px solid var(--line-2); background: var(--panel-2); object-fit: contain; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm, .crest-sm { width: 40px; height: 40px; font-size: 14px; }
.avatar-md, .crest-md { width: 64px; height: 64px; font-size: 22px; }
.avatar-lg, .crest-lg { width: 168px; height: 168px; font-size: 56px; }
.avatar-blank, .crest-blank { font-weight: 700; letter-spacing: .04em; color: hsl(var(--hue) 85% 82%); user-select: none; }
.avatar-blank { background: radial-gradient(circle at 50% 120%, hsl(var(--hue) 45% 26%) 0 45%, transparent 46%), linear-gradient(160deg, hsl(var(--hue) 35% 16%), #0e0d0b); }
.avatar-blank span { transform: translateY(-8%); }
.crest-blank { background: linear-gradient(155deg, hsl(var(--hue) 55% 22%), #0e0d0b 70%);
  box-shadow: inset 0 0 0 3px #080807, inset 0 0 0 4px hsl(var(--hue) 60% 45% / .55); }
.crest-blank span { font-size: .78em; letter-spacing: .12em; }
.crew-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crew-id > div { min-width: 0; }
.title-with-badge { display: flex; align-items: center; gap: 18px; min-width: 0; }
.title-with-badge h1 { margin-bottom: .15em; }
.title-with-badge .edit { font-size: 13px; }
.league-row .outfit-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.league-row .outfit-cell > div { min-width: 0; }
.seat-who { display: inline-flex; align-items: center; gap: 8px; }
.profile-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-head > div { flex: 1 1 280px; min-width: 0; }
.picture-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.picture-panel { margin-top: 12px; max-width: 420px; }
.cropper { display: grid; gap: 10px; justify-items: start; }
.cropper canvas { width: 280px; height: 280px; max-width: 100%; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); cursor: grab; touch-action: none; }
.cropper canvas:active { cursor: grabbing; }
.cropper input[type=range] { width: 280px; max-width: 100%; accent-color: var(--accent); }
.logo-previews { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
.logo-previews figure { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 12px; color: var(--muted); }
.logo-previews img.crest { padding: 6%; }
.picture-note { font-size: 13px; color: var(--muted); }
.picture-error { color: var(--warn); font-size: 13px; min-height: 1em; margin: 0; }
@media (max-width: 560px) { .avatar-lg, .crest-lg { width: 120px; height: 120px; font-size: 40px; } }

/* ---------- counters (tokens) ---------- */
svg.token { display: block; width: 100%; height: 100%; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.car-ident { display: flex; gap: 14px; align-items: center; min-width: 0; }
.car-ident > div { flex: 1; min-width: 0; }
.mini-counter { flex: none; width: 44px; height: 88px; display: block; border-radius: 4px; transition: transform .15s; }
a.mini-counter:hover { transform: rotate(-4deg) scale(1.06); }
.car-cover { display: block; margin: -16px -16px 4px; height: 150px; border-radius: 2px 12px 0 0; overflow: hidden;
  background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); }
.car-cover img { width: 100%; height: 100%; object-fit: contain; }
.paint-cols { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.paint-preview { position: sticky; top: 16px; display: grid; gap: 16px; justify-items: center; }
.token-stage { width: 100%; max-width: 260px; aspect-ratio: 1 / 2; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); transition: opacity .15s; }
.token-stage[aria-busy=true] { opacity: .7; }
.token-actual { display: flex; gap: 12px; align-items: center; }
.token-true { width: .5in; height: 1in; flex: none; }
/* a helicopter's counter at true size (EV2-M1): 1" x 1.5", or 1" x 2" for a standard one */
.token-true:has(.token-heli) { width: 1in; height: 1.5in; }
.token-true:has(.token-heli-standard) { height: 2in; }
.paint-form { display: grid; gap: 18px; }
.paint-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 34px; height: 34px; cursor: pointer; }
.swatch input[type=radio] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch > span:not(.sr-only) { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--line-2); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .35), inset 0 4px 8px rgba(255, 255, 255, .25); }
.swatch input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg), inset 0 -6px 10px rgba(0, 0, 0, .35); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-custom { width: auto; display: flex; align-items: center; gap: 6px; }
.swatch-custom input[type=radio] { position: static; opacity: 1; width: 18px; height: 18px; accent-color: var(--accent); }
.swatch-custom input[type=color] { width: 40px; height: 34px; border: 2px solid var(--line-2); border-radius: 2px; background: var(--panel-2); padding: 2px; cursor: pointer; }
.pattern-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option { position: relative; }
.pill-option input { position: absolute; opacity: 0; }
.pill-option span { display: inline-block; padding: 8px 14px; border-radius: 3px; border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; }
.pill-option input:checked + span { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.pill-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.paint-row { display: flex !important; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.paint-row label { display: flex; align-items: center; gap: 8px; }
.checks.off { opacity: .5; }
@media (max-width: 700px) { .paint-cols { grid-template-columns: 1fr; } .paint-preview { position: static; } .token-stage { max-width: 180px; } }

/* ---------- showcase art ---------- */
.showcase { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.showcase-counter { display: grid; gap: 10px; justify-items: center; }
.showcase-counter h2 { justify-self: start; margin: 0; }
.counter-art { width: 110px; height: 220px; }
.showcase-counter .button { width: 100%; }
.art-cover { margin: 0; display: grid; gap: 8px; }
.art-cover img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 2px; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); height: auto; }
.art-cover figcaption { color: var(--muted); font-size: 13px; min-height: 1em; }
.art-strip { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.art-strip > :where(li) { min-width: 0; max-width: 100%; }
.art-strip :where(li > a) { display: block; }
.art-strip :where(li > a > img) { display: block; max-width: 100%; height: auto; }
.art-pick { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line-2); border-radius: 2px; background: var(--panel-2); cursor: pointer; overflow: hidden; }
.art-pick.on { border-color: var(--accent); }
.art-pick img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .showcase { grid-template-columns: 1fr; } .counter-art { width: 80px; height: 160px; } }
.art-car { align-items: flex-start; }
.art-counter { flex: none; width: 50px; height: 100px; }
.art-grid { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.art-grid li { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); position: relative; }
.art-grid li.cover { border-color: var(--accent); }
.art-grid .badge { position: absolute; top: 12px; left: 12px; }
.art-thumb { display: block; height: 140px; border-radius: 2px; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); }
.art-thumb img { width: 100%; height: 100%; object-fit: contain; }
.art-caption { display: flex; gap: 6px; }
.art-caption .input { min-width: 0; flex: 1; padding: 6px 8px; font-size: 13px; }
.art-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.art-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.art-upload .input { flex: 1 1 200px; }
.pick-art { display: block; height: 150px; margin: -16px -16px 4px; border-radius: 2px 12px 0 0; overflow: hidden; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); }
.pick-art img { width: 100%; height: 100%; object-fit: contain; }
.art-carry .button { width: 100%; }

/* ---------- admin editors ---------- */
.admin-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; align-items: start; }
.admin-edit-grid .panel h2 { margin-top: 0; }
.stack-form { display: grid; gap: 10px; }
.stack-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.stack-form .input { color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.field-row label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
textarea.input { resize: vertical; font: inherit; }
.skill-edit { width: 100%; border-collapse: collapse; font-size: 13px; }
.skill-edit th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 6px; }
.skill-edit td { padding: 3px 6px; border-top: 1px solid var(--line); }
.skill-edit .input { width: 5.5em; padding: 4px 6px; }
.inline-rename .input { min-width: 0; flex: 1 1 220px; font-weight: 600; }
.admin-item .actions .row-form { display: flex; gap: 6px; }
.admin-item .actions select.input { padding: 6px 8px; font-size: 13px; max-width: 220px; }
@media (max-width: 560px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }

/* ---------- home ---------- */
.site-main.bleed { max-width: none; padding: 0 0 48px; }
.site-main.bleed .flashes { max-width: 1000px; margin: 16px auto 0; padding: 0 16px; }
.home-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; background-color: #f3e8d6;
  background-image: url('/assets/img/splash-1792.jpg');
  background-image: image-set(url('/assets/img/splash-1792.webp') type('image/webp'), url('/assets/img/splash-1792.jpg') type('image/jpeg'));
  background-position: center 62%; background-size: cover; background-repeat: no-repeat; }
.home-dim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); opacity: 0; }
@media (max-width: 700px) {
  .home-bg { background-image: url('/assets/img/splash-960.jpg');
    background-image: image-set(url('/assets/img/splash-960.webp') type('image/webp'), url('/assets/img/splash-960.jpg') type('image/jpeg'));
    background-position: 42% 60%; }
}
.home-hero { min-height: calc(100svh - 65px); display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 3vh 16px 32px; background: linear-gradient(180deg, transparent 38%, rgba(8, 8, 7, .78) 72%, rgba(8, 8, 7, .96) 100%); }
.home-logo { width: min(560px, 72%); margin: 0; line-height: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.home-logo img { width: 100%; height: auto; }
.home-pitch { max-width: 760px; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.home-tagline { font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 12px; }
.home-pitch .lede { margin-left: auto; margin-right: auto; color: var(--text); }
.home-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 0; text-shadow: none; }
.home-cta .button { min-width: 180px; }
.home-features { max-width: 1000px; margin: 40px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 2px; border: 1px solid var(--line-2); background: rgba(20, 19, 17, .86);  color: var(--muted); text-decoration: none; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--muted); }
.feature strong { color: var(--text); font-size: 18px; }
.feature .label-caps { color: var(--accent); }
.home-build { text-align: center; margin-top: 32px; }
@media (max-width: 700px) {
  .home-logo { width: 84%; }
  .brand img { height: 40px; }
}

/* home: the TV log, the week's fight nights as a listings page */
.tvlog { margin: 8px 24px 0; padding: 18px 20px 20px; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(20, 19, 17, .88);  }
.tvlog-mast { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.tvlog-brand { padding: 4px 10px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); background: var(--accent-bg);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.tvlog-brand b { color: var(--accent-text); }
.tvlog-mast h2 { margin: 0; font-size: 18px; }
.tvlog-issue { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); }
.tvlog-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 20px; margin-top: 14px; }
.tvlog-main { min-width: 0; display: grid; gap: 12px; align-content: start; }
.tvlog-nights { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; align-content: start; }
.tvlog-night { min-width: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.tvlog-night.is-tonight { border-color: var(--accent); }
.tvlog-day { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .1em; flex-wrap: wrap; row-gap: 4px; }
.tvlog-day small { white-space: nowrap; font-size: 12px; color: var(--muted); letter-spacing: .02em; text-transform: none; }
.tvlog-day .badge { margin-left: auto; }
.tvlog-slot { padding: 10px 12px; border-top: 1px solid var(--line); }
/* the Chain Gang undercard in its own band (Nov 22) */
.tvlog-chain { border: 1px solid #5c4a22; border-radius: 2px; background: rgba(232, 185, 35, .04); padding: 10px 12px; }
.tvlog-chain > .eyebrow { margin: 0 0 8px; }
.tvlog-chain-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.tvlog-chain-slot { min-width: 0; border: 1px solid var(--line); background: var(--panel-2); padding: 8px 10px; }
.tvlog-chain-slot.is-tonight { border-color: var(--accent); }
.tvlog-chain-slot p { margin: 0 0 2px; }
.tvlog-quiet { font-style: italic; }
.tvlog-day + .tvlog-slot { border-top: 0; }
.tvlog-slot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 4px; font-size: 12px; }
.tvlog-time { color: var(--text); font-weight: 600; }
.tvlog-ch { color: var(--muted); }
.tvlog-tag { margin-left: auto; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tvlog-tag.tag-live { border-color: var(--accent); color: var(--accent); }
.tvlog-slot h4 { margin: 0 0 2px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.tvlog-slot h4 a { color: var(--text); text-decoration: none; }
.tvlog-slot h4 a:hover { color: var(--accent); }
.tvlog-meta { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.tvlog-result { margin: 6px 0 0; padding-left: 8px; border-left: 2px solid var(--accent); font-size: 13px; line-height: 1.45; color: var(--dim); }
.state-done h4 a, .state-cancelled h4 a { color: var(--dim); }
.state-cancelled .tvlog-meta { text-decoration: line-through; }
.tvlog-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.tvlog-closeup, .tvlog-scores { border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); padding: 12px 14px; }
.tvlog-closeup { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-bg), var(--panel-2) 70%); }
.tvlog-closeup h3 { margin: 0; font-size: 20px; letter-spacing: .04em; }
.tvlog-when { margin: 4px 0 0; font-size: 12px; color: var(--accent); }
.tvlog-quote { margin: 8px 0 6px; font-style: italic; color: var(--dim); font-size: 14px; }
.tvlog-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.tvlog-scores ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; }
.tvlog-scores li { padding: 0 0 0 12px; border-left: 2px solid var(--line-2); min-width: 0; }
.tvlog-score-head { margin: 0; font-size: 13px; font-weight: 600; }
.tvlog-score-head a { color: var(--text); text-decoration: none; }
.tvlog-score-head a:hover { color: var(--accent); }
.tvlog-score-head small { font-weight: 400; font-size: 11px; margin-left: 4px; }
.tvlog-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 0; font-size: 13px; color: var(--dim); }
.tvlog-row .num { flex: none; color: var(--ok); }
.tvlog-empty { margin: 4px 0; grid-column: 1 / -1; }
@media (max-width: 1100px) { .tvlog-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tvlog { margin: 8px 12px 0; padding: 14px 12px; } .tvlog-issue { margin-left: 0; width: 100%; } }

/* bonuses and penalties */
.mods { margin: 10px 0 4px; }
.mods h3 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mod-list li { padding-left: 10px; border-left: 3px solid var(--line); }
.mod-list li.mod-good { border-left-color: var(--ok, #5aa469); }
.mod-list li.mod-bad { border-left-color: var(--warn, #d08b2c); }
.mod-form fieldset { border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; }
.mod-form label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 10px; }
.mod-form label.check input { width: auto; margin: 0; }
.mod-form > label.check { align-self: start; padding-bottom: 0; }
.mod-form .grow { flex: 1; min-width: 260px; }

/* tactics */
.tactics .lede { max-width: 70ch; }
.style-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.style-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.style-card:hover, .style-card:focus-visible { border-color: var(--accent, #c99a17); }
.tactics-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.choice-set { margin: 0; }
.choice-set legend { display: flex; flex-direction: column; gap: 2px; font-weight: 700; padding: 0 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.choice input { margin-top: 4px; width: auto; }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice:has(input:checked) { border-color: var(--accent, #c99a17); background: rgba(201, 154, 23, 0.06); }
.tactics-actions { justify-content: flex-start; }

/* ---------- arena (M7) ---------- */
.rules-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; margin: 16px 0; border: 1px solid var(--line); border-radius: 2px; color: var(--dim); }
.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 28px; align-items: start; }
.heat h2 { margin: 10px 0 2px; font-size: 1.2rem; }
.heat h2 a { color: var(--text); text-decoration: none; }
.heat h2 a:hover { color: var(--accent); }
.heat.mine, .result.mine, .entry-list li.mine { box-shadow: inset 3px 0 0 var(--accent); }
.heat-facts, .result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 12px 0; }
.heat-facts div, .result-facts div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; }
.heat-facts dt, .result-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.heat-facts dd, .result-facts dd { margin: 2px 0 0; font: 600 1rem/1.2 var(--mono); }
.enter-form { display: flex; flex-direction: column; gap: 6px; }
.enter-form .button { align-self: flex-start; margin-top: 4px; }
.enter-form .hint { margin: 0; }
.entered p { margin: 0 0 8px; }
.last-week { padding-left: 18px; }
.last-week li { margin: 6px 0; }
.last-week li .small { display: block; }
.result-table .league-row { grid-template-columns: 40px minmax(0, 1fr) 56px 90px 70px; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 16px 0; }
.event-layout h2 { margin-top: 0; }
@media (max-width: 820px) { .event-layout { grid-template-columns: minmax(0, 1fr); } }
.arena-map { margin: 0 0 10px; }
.arena-map svg { display: block; width: 100%; height: auto; background: var(--bg); border-radius: 2px; }
.arena-block { fill: var(--panel-2); stroke: var(--dim); stroke-width: .18; }
/* the floor art (migration 118): the picture shows the walls, so the shapes go see-through; "Show walls" outlines them */
.arena-map.has-art { position: relative; }
.arena-map.has-art svg { background: #1a1410; }
.has-art .arena-block { fill: transparent; stroke: none; }
.has-art .arena-outline { fill: none; stroke: none; }
.has-art:has(.art-walls input:checked) .arena-block { fill: rgba(255, 64, 48, .28); stroke: #ff5a48; stroke-width: .14; }
.has-art:has(.art-walls input:checked) .arena-outline { stroke: #ff5a48; stroke-width: .2; }
.art-walls { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px;
  background: rgba(10, 10, 10, .7); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); cursor: pointer; }
.floor-art { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.floor-art-view .arena-map { margin: 0; }
.floor-steps { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 12px; }
.floor-steps li > .button, .floor-steps .row-form { margin-top: 6px; }
.floor-steps .row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.floor-align { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
.floor-align .field { width: 96px; margin: 0; }
.floor-stale { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--accent); border-left-width: 4px; background: rgba(201, 154, 23, .08); }
.floor-stale form { display: block; margin-top: 8px; }
@media (max-width: 900px) { .floor-art { grid-template-columns: 1fr; } }
.arena-gate circle { fill: none; stroke: var(--accent); stroke-width: .18; }
.arena-gate line { stroke: var(--accent); stroke-width: .22; }
.track-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.track-key i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.result-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.result-head { display: flex; gap: 12px; align-items: flex-start; }
.result-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result .place { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 700; }
.result .result-facts { margin-bottom: 0; }
.crew-fates { margin: 10px 0 0; padding-left: 18px; color: var(--dim); }
.entry-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.entry-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.highlights { list-style: none; padding: 0; columns: 2 320px; column-gap: 24px; }
.highlights li { break-inside: avoid; margin: 0 0 6px; font-size: 14px; }
.highlights .hl-kill { color: var(--warn); }
.highlights .hl-explosion, .highlights .hl-fire { color: #ffb347; }
.combat-log details { border-top: 1px solid var(--line); }
.combat-log summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.combat-log ol { list-style: none; margin: 0 0 10px; padding: 0 0 0 4px; font-size: 13px; color: var(--dim); }
.combat-log li { margin: 2px 0; }
.combat-log .log-out { color: var(--warn); font-weight: 600; }
.combat-log .log-damage, .combat-log .log-collision { color: var(--text); }
.admin-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.admin-strip form { margin: 0; }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0; }
.venue h2 { margin: 0 0 2px; }
.repair-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; margin: 6px 0;
  border: 1px solid var(--warn-line); border-radius: 2px; background: var(--warn-bg); }
@media (max-width: 560px) { .result-table .league-row { grid-template-columns: 28px minmax(0, 1fr) 80px; } .result-table .league-row > span:nth-child(3) { display: none; } .result-table .league-row > span:nth-child(4) { display: block; } }
details.rename { margin-top: 4px; }
details.rename > summary { cursor: pointer; color: var(--muted); width: max-content; }
details.rename > summary:hover { color: var(--text); }
details.rename[open] > summary { margin-bottom: 6px; }
details.rename .input { padding: 6px 10px; }
.hurt-box { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--warn-line); border-radius: 2px; background: var(--warn-bg); }
.hurt-box h3 { margin: 0 0 4px; color: var(--warn); }
.hurt-box p { margin: 0 0 10px; }
.storage-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.storage-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.storage-item form { margin: 0; }
.refit-order { margin: 8px 0; font-size: 14px; }
.refit-order ul { margin: 4px 0 8px; padding-left: 18px; }
.refit-order .tot { display: flex; justify-content: space-between; font-family: var(--mono); }
.refit-blocked { padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: 2px; background: var(--warn-bg); margin: 0 0 10px; font-size: 14px; }
.mounted.is-linked { border-color: var(--accent); }
.link-tag { font: 600 11px/1 var(--mono); color: var(--accent); padding: 2px 5px; border: 1px solid var(--accent); border-radius: 3px; margin-left: 4px; }
.linkbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 8px 0; padding: 8px 12px;
  border: 1px solid var(--accent); border-radius: 2px; background: var(--accent-bg); color: var(--accent-text); font-size: 14px; }
.renew-box { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent-bg); }
.renew-box h3 { margin: 0 0 4px; }
.renew-box p { margin: 0 0 8px; }
.arena-track { cursor: pointer; transition: opacity .15s; }
.arena-map.focusing .arena-track { opacity: .08; }
.arena-map.focusing .arena-track.on { opacity: 1; }
.arena-map.focusing .arena-track.on polyline { stroke-width: .4; }
.track-btn { display: inline-flex; align-items: center; gap: 0; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px;
  background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.track-btn:hover { border-color: var(--accent); }
.track-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
/* ---------- podium & arena dashboard ---------- */
.podium { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.podium-step { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 2px; border: 1px solid var(--line-2); background: var(--panel); position: relative; }
.podium-step.place-1 { border-color: #ffd36e; background: linear-gradient(160deg, rgba(255, 211, 110, .14), var(--panel) 60%); }
.podium-step.place-2 { border-color: #cfc8b8; background: linear-gradient(160deg, rgba(207, 200, 184, .10), var(--panel) 60%); }
.podium-step.place-3 { border-color: #d39a6a; background: linear-gradient(160deg, rgba(211, 154, 106, .10), var(--panel) 60%); }
.podium-step.mine { box-shadow: inset 0 0 0 2px var(--accent); }
.podium-place { font: 700 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.place-1 .podium-place { color: #ffd36e; } .place-2 .podium-place { color: #cfc8b8; } .place-3 .podium-place { color: #d39a6a; }
.podium-car { font-size: 1.05rem; }
.podium-money { font-weight: 700; margin-top: 4px; }
.podium.compact { margin: 6px 0 0; gap: 6px; grid-template-columns: 1fr; }
.podium.compact .podium-step { padding: 8px 10px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 0; align-items: center; }
.podium.compact .podium-place { grid-row: span 2; }
.podium.compact .podium-car { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium.compact .podium-team { grid-column: 2; }
.podium.compact .podium-line { display: none; }
.podium.compact .podium-money { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.arena-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.arena-dash .panel h2 { margin: 0 0 8px; font-size: 1rem; }
.dash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.latest-heat + .latest-heat { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.latest-heat h3 { margin: 0; font-size: .9rem; }
.winners-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.winners-board .latest-heat + .latest-heat { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.dash-list .good { color: var(--good, #7bd88f); }
.track-btn .muted { margin-left: 6px; }
/* ---------- replay player ---------- */
.arena-map.replaying .arena-track { display: none; }
.replay-car { transition: opacity .2s; cursor: pointer; }
/* a trail shows only for the vehicle picked out, and never more than half strength: a shot in its colour stays readable (Nov 12) */
.replay-trail { stroke-opacity: 0; transition: stroke-opacity .2s; }
.replay-car .replay-x { display: none; }
.replay-car.out .replay-x { display: inline; }

.arena-map.focusing .replay-car:not(.on) { opacity: .18; }
.arena-map.focusing .replay-trail.on { stroke-opacity: .5; stroke-width: .4; }
.replay-shot { stroke-width: .18; stroke-dasharray: .6 .4; opacity: .75; }
.replay-shot.hit { stroke-width: .3; stroke-dasharray: none; opacity: 1; }
.replay-shot.old, .replay-burst.old, .replay-crash.old { opacity: .3; }
.replay-burst { fill: rgba(255, 77, 77, .35); stroke: #ff4d4d; stroke-width: .15; }
.replay-crash { fill: rgba(255, 211, 110, .25); stroke: #ffd36e; stroke-width: .2; }
.replay-bar { margin: 10px 0 16px; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.replay-controls[hidden], .replay-cc[hidden] { display: none; }
.replay-controls input[type=range] { flex: 1 1 220px; min-width: 160px; accent-color: var(--accent); }
.replay-clock { min-width: 9.5em; }
.replay-speeds { display: inline-flex; gap: 4px; }
.replay-speeds .track-btn[aria-pressed=true], .track-btn[aria-pressed=true] { border-color: var(--accent); }
.replay-cc { margin-top: 10px; padding: 10px 12px; min-height: 6.6em; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 13px; line-height: 1.4; }
.replay-cc p { margin: 0 0 4px; opacity: .6; display: flex; gap: 6px; align-items: baseline; }
.replay-cc p:last-child { margin: 0; opacity: 1; }
.replay-cc p.cc-new { color: #fff; }
.replay-cc i { flex: none; width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.replay-cc .cc-turn { font-family: var(--mono); font-size: 11px; color: var(--muted, #8f877a); flex: none; }
.replay-cc .cc-hit, .replay-cc .cc-damage { color: #ffb3b3; }
.replay-cc .cc-out, .replay-cc .cc-crew { color: #ffd36e; font-weight: 600; }
.replay-bar [data-replay-start][hidden] { display: none; }
/* (markers are scaled as a whole in the player now, VE1-M0b) */
.results-title { margin-top: 36px; }
.results-week { margin: 0 0 22px; padding: 14px 16px 4px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 2px;
  background: linear-gradient(180deg, rgba(201, 154, 23, .04), transparent 80px); }
.results-week + .results-week { margin-top: 28px; }
.results-week-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.results-week-head .label-caps { font-size: 13px; color: var(--accent); letter-spacing: .14em; }
/* ---------- crew losses & log ---------- */
.loss-alert { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #ff5a5a; border-left-width: 4px; border-radius: 2px; background: rgba(255, 90, 90, .08); }
.loss-alert[hidden] { display: none; }
.loss-alert-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.loss-alert-head strong { color: #ff8a8a; font-size: 1.05rem; }
.loss-alert ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.loss-alert li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.loss-alert .label-caps { color: #ff8a8a; }
.loss-alert .loss-saved .label-caps { color: #ffd36e; }
.crew-log { list-style: none; margin: 8px 0 24px; padding: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.crew-log li { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1px solid var(--line); }
.crew-log li:first-child { border-top: 0; }
.crew-log-week { background: var(--panel-2); color: var(--accent); font-size: 11px; }
.log-tag { font: 600 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line-2); min-width: 6.5em; text-align: center; }
.log-died { background: rgba(255, 90, 90, .08); }
.log-died .log-tag { color: #ff8a8a; border-color: #ff5a5a; }
.log-wounded .log-tag, .log-saved .log-tag { color: #ffd36e; border-color: #b8913a; }
.log-revived .log-tag, .log-signed .log-tag, .log-renewed .log-tag { color: var(--accent); }
.log-walked .log-tag, .log-contract_expired .log-tag, .log-released .log-tag { color: var(--muted, #8f877a); }
.podium.compact .podium-car { white-space: normal; overflow: visible; }
/* ---------- arena identity ---------- */
.venue-tagline { margin: 2px 0 6px; font-style: italic; color: var(--muted, #a0988a); }
.venue.has-cover { padding-top: 0; overflow: hidden; }
.venue-cover { display: block; margin: 0 -16px 12px; aspect-ratio: 16 / 7; overflow: hidden; background: var(--panel-2); }
.venue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue-head { display: flex; gap: 12px; align-items: flex-start; }
.venue-head h2 a { color: inherit; text-decoration: none; }
.venue-hero { margin: 8px 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.venue-hero.has-cover { background: linear-gradient(180deg, rgba(8, 8, 7, .15), rgba(8, 8, 7, .92) 85%), var(--cover) center / cover no-repeat; min-height: 300px; display: flex; align-items: flex-end; }
.venue-hero-inner { display: flex; gap: 18px; align-items: flex-end; padding: 22px; }
.venue-hero h1 { margin: 0; }
.venue-hero .crest-lg { width: 120px; height: 120px; font-size: 40px; background: rgba(20, 19, 17, .85); }
.venue-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.venue-side { display: grid; gap: 16px; }
.venue-side h2 { margin-top: 0; font-size: 1rem; }
.venue-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.venue-section h2 { margin: 22px 0 8px; }
.venue-section p { line-height: 1.65; max-width: 68ch; }
.venue-section:first-of-type h2 { margin-top: 10px; }
.heat-title { display: flex; gap: 10px; align-items: center; }
.heat-title h2 { margin: 0; }
.event-title { align-items: center; gap: 14px; }
.event-title h1 { margin: 0; }
.arena-admin-row { align-items: center; }
.arena-admin-cover { width: 120px; height: 64px; object-fit: cover; border-radius: 2px; flex: none; }
.arena-edit { display: grid; gap: 4px; max-width: 960px; }
.arena-edit .field { display: grid; gap: 6px; }
.arena-edit .field > span { font-weight: 600; }
.arena-edit textarea { resize: vertical; line-height: 1.5; }
.arena-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
@media (max-width: 800px) {
  .venue-body { grid-template-columns: 1fr; }
  .venue-hero-inner { flex-direction: column; align-items: flex-start; padding: 16px; }
  .venue-hero .crest-lg { width: 84px; height: 84px; font-size: 28px; }
}
.arena-edit > .button { justify-self: start; }
/* ---------- M8 workshop & shop ---------- */
.workshop-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.workshop-top h2 { margin-top: 0; font-size: 1rem; }
.notice { padding: 12px 14px; border: 1px solid var(--warn-line); border-radius: 2px; background: rgba(255, 179, 71, .06); margin: 12px 0; }
.project-grid, .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.project, .shop-item { display: flex; flex-direction: column; gap: 6px; }
.project p, .shop-item p { margin: 0; }
.project.off, .shop-item.off { opacity: .6; }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.project-head h3 { margin: 0; font-size: 1rem; }
.project-effect { font-weight: 700; color: var(--accent); }
.project-form { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.project-form label { display: grid; gap: 4px; }
.warn-text { color: var(--warn); }
.upgrade-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upgrade-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.upgrade-list li.is-botch strong { color: #ff8a8a; }
.project-history .league-row { grid-template-columns: minmax(0, 1fr) 110px 110px 120px; }
.badge.project-masterwork { border-color: #ffd36e; color: #ffd36e; }
.badge.project-botched { border-color: #ff5a5a; color: #ff8a8a; }
.badge.project-working { border-color: var(--accent); color: var(--accent); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.shop-price { font-size: 1.15rem; font-weight: 700; }
.shop-story p { line-height: 1.6; }
.shop-story h2 { margin-top: 0; }
.hub-note { display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--accent); margin-bottom: 16px; }
.hub-note p { margin: 0; }
.office-head .badge { display: inline-block; margin: 4px 0 10px; }
.deal-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: 14px 0; }
.deal-terms div { border-left: 2px solid var(--line-2); padding-left: 10px; }
.deal-terms dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.deal-terms dd { margin: 2px 0 0; font-size: 17px; color: var(--text, inherit); }
.venue-grid.offers { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.sponsor-main { display: grid; gap: 16px; align-content: start; }
.sponsor-deal { margin-bottom: 18px; }
.shop-side { display: grid; gap: 16px; align-content: start; }
.shop-owner { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); margin: 0 0 12px; }
.venue-portrait { float: right; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); margin: 0 0 10px 16px; }
.admin-logo-preview, .admin-portrait-preview { border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2, #1a1917); }
.admin-portrait-preview { border-radius: 50%; }
.found-botch { color: #ff8a8a; }
.workshop-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.workshop-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
@media (max-width: 800px) { .shop-layout { grid-template-columns: 1fr; } .project-history .league-row { grid-template-columns: 1fr; } .project-history .league-row > span { text-align: left; } }
.workshop-edit { align-items: flex-start; }
.workshop-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.workshop-fields label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.workshop-fields label.wide { grid-column: span 3; }
.workshop-fields .input { padding: 6px 8px; font-size: 13px; }
@media (max-width: 560px) { .workshop-fields label.wide { grid-column: 1 / -1; } }
.project-head .badge { flex: none; white-space: nowrap; }
.shop-price .small { font-family: var(--sans, inherit); font-weight: 400; letter-spacing: 0; }
.skip-row { display: flex; flex-wrap: wrap; gap: 6px; }
/* ---------- M9 world map & travel ---------- */
.world-layout, .travel-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.travel-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.world-map { height: 640px; border-radius: 2px; border: 1px solid var(--line-2); background: #0d0c0b; }
.travel-map { height: 560px; border-radius: 2px; border: 1px solid var(--line-2); background: #0d0c0b; position: sticky; top: 12px; }
.world-side { display: grid; gap: 16px; }
.world-side h2 { margin-top: 0; font-size: 1rem; }
.leaflet-container { font: inherit; background: #0d0c0b; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); }
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-tooltip { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.leaflet-control-layers, .leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.leaflet-control-attribution { background: rgba(8, 8, 7, .7) !important; color: var(--muted, #8f877a); }
.leaflet-control-attribution a { color: var(--accent); }
.map-pop { display: grid; gap: 4px; min-width: 200px; }
.map-arena-icon img { width: 30px; height: 30px; border-radius: 2px; border: 2px solid #ffd36e; background: #111; object-fit: contain; }
.map-arena-icon.has-mine img { border-color: #c99a17; }
.map-car span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #8f877a; color: #080807; font-size: 10px; border: 2px solid #080807; }
.map-car.mine span { background: #c99a17; box-shadow: 0 0 0 3px rgba(201, 154, 23, .35); }
.map-car.camped span { opacity: .7; }
.key-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #cfc8b8; vertical-align: middle; }
.key-dot.arena { border-color: #ffd36e; border-width: 3px; }
.key-dot.stop { width: 7px; height: 7px; background: #3f3c36; }
.key-car { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #8f877a; color: #080807; font-size: 9px; }
.key-car.mine { background: #c99a17; }
.danger-scale { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.danger-scale i { flex: 1; height: 8px; border-radius: 4px; }
.car-where { margin-top: 4px; }
.trip-list li { align-items: center; }
.trip-list.panel { margin: 0 0 20px; }
.trip-list li > span:first-child { display: grid; gap: 2px; }
.travel-form { display: grid; gap: 12px; }
.travel-form .field { margin: 0; display: grid; gap: 6px; }
.travel-form .field > span, .travel-form legend { font-weight: 600; }
.travel-form fieldset { border: 0; padding: 0; display: grid; gap: 4px; }
.quote-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.quote-facts div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; padding: 8px; }
.quote-facts dt { font-size: 11px; color: var(--muted, #8f877a); text-transform: uppercase; letter-spacing: .08em; }
.quote-facts dd { margin: 2px 0 0; font-weight: 700; }
.danger-pill { display: inline-block; min-width: 2.6em; text-align: center; border-radius: 3px; color: #080807; padding: 0 6px; }
.road-mix { display: flex; height: 10px; border-radius: 2px; overflow: hidden; margin: 6px 0; }
.road-mix-key { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.road-mix-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.mix-motorway { background: rgb(255, 50, 70); } .mix-trunk { background: rgb(240, 100, 70); } .mix-primary { background: rgb(220, 160, 70); }
.mix-secondary { background: rgb(180, 200, 70); } .mix-tertiary, .mix-local { background: rgb(120, 220, 70); }
.timetable { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.timetable li { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); }
.trip-progress { height: 10px; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin: 8px 0; }
.trip-progress i { display: block; height: 100%; background: var(--accent); }
.fight-night { margin: 4px 0 8px; }
/* the destination finder (Nov 15): a drawer over the left of the travel map */
.travel-mapcol { position: sticky; top: 12px; min-width: 0; }
.travel-mapcol .travel-map { position: relative; top: 0; }
.travel-mapcol.df-on .travel-map { height: min(calc(100vh - 24px), 860px); }
.finder-open { justify-self: start; }
.dest-finder { position: absolute; top: 0; bottom: 0; right: calc(100% + 16px); width: calc(100% / 1.4); z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 2px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
  animation: df-in .16s ease-out; }
.dest-finder[hidden] { display: none; }
@keyframes df-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dest-finder { animation: none; } }
.df-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.df-head strong { font-size: 1.05rem; }
.df-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.df-tools label { display: grid; gap: 2px; }
.df-tools .input { padding: 6px 8px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chips { gap: 4px; }
.df-chips .pill { min-height: 28px; padding: 3px 8px; font-size: .8rem; gap: 4px; }
.df-chips .pill .icon { width: 14px; height: 14px; }
.df-count { margin: 0; }
.df-list { list-style: none; margin: 0; padding: 0 2px 0 0; overflow-y: auto; flex: 1; display: grid; gap: 6px; align-content: start; }
.df-row { padding: 8px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); cursor: pointer; display: grid; gap: 2px; }
.df-row:hover, .df-row:focus { border-color: var(--accent); outline: none; background: var(--panel-2); }
.df-row.is-off { cursor: default; opacity: .55; background: transparent; }
.df-row.is-off:hover { border-color: var(--line-2); }
.df-row.df-generator { opacity: .8; cursor: pointer; }
.df-row.df-generator .df-why { color: #e8b04a; }
.df-name { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.df-has { display: inline-flex; gap: 6px; align-items: center; color: var(--muted, #8f877a); }
.df-has .icon { width: 15px; height: 15px; }
.df-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.df-danger { display: inline-flex; align-items: center; gap: 5px; }
.df-danger::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--d); }
.df-boards { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
.df-board { font-size: 11px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); }
.df-juice { color: #9cc7ff; }
.df-why { color: var(--muted, #8f877a); font-style: italic; }
.stop-row [data-finder-stop] { padding: 4px 9px; }
@media (max-width: 900px) {
  .travel-mapcol { position: static; }
  .travel-mapcol.df-on .travel-map { height: 380px; }
  .dest-finder { position: fixed; inset: 0; width: auto; border-radius: 0; z-index: 2000; }
  body.df-open { overflow: hidden; }
}
.world-table .league-row { grid-template-columns: minmax(0, 1.4fr) 140px 150px 110px; }
@media (max-width: 900px) {
  .world-layout, .travel-layout { grid-template-columns: 1fr; }
  .world-map { height: 460px; } .travel-map { height: 380px; position: static; }
  .quote-facts { grid-template-columns: repeat(2, 1fr); }
  .world-table .league-row { grid-template-columns: 1fr; } .world-table .league-row > span { text-align: left; }
}
.world-map.leaflet-container, .travel-map.leaflet-container { background: #0d0c0b; }
.travel-form input[type=radio], .travel-form input[type=checkbox] { width: auto; display: inline-block; margin: 0 6px 0 0; vertical-align: middle; }
.travel-form fieldset label { display: block; }

/* ---------- M10a: courier jobs ---------- */
.town-pick { margin: 0 0 20px; align-items: center; gap: 10px; flex-wrap: wrap; }
.town-pick select { max-width: 420px; }
.my-jobs { margin: 0 0 24px; }
.my-jobs h3 { margin: 16px 0 8px; }
.job-list li { align-items: center; flex-wrap: wrap; }
.job-list li > span:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 280px; }
.job-list.panel { margin: 0 0 20px; }
.job-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.job-actions form { margin: 0; }
.badge.job-delivered { border-color: var(--ok-line); color: var(--ok); }
.badge.job-late { border-color: #6b5a1f; color: #ffd36e; }
.badge.job-failed { border-color: var(--warn-line); color: var(--warn); }
.office { margin: 0 0 20px; border-top: 3px solid var(--faction, var(--line-2)); }
.office-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.office-head h2 { margin: 2px 0 6px; }
.faction-name { color: var(--faction, var(--muted)); margin: 0; }
.standing { border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 10px; white-space: nowrap; }
.office-blurb { margin: 0 0 14px; max-width: 72ch; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.job-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.job-card.off { opacity: .6; }
.job-card h3 { margin: 4px 0 0; font-size: 14px; }
.job-card p { margin: 0; }
.job-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier { color: #ffd36e; letter-spacing: .1em; }
.contraband { color: #d79bff; border: 1px solid #5a2f73; border-radius: 3px; padding: 0 6px; text-transform: lowercase; letter-spacing: .05em; font-weight: 400; }
.job-route { font-size: 15px; }
.job-money { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.job-pay { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ok); }
.take-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.take-form select { flex: 1 1 140px; min-width: 0; }
.faction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .faction-grid { grid-template-columns: 1fr; } }
.faction-card { border-top: 3px solid var(--faction, var(--line-2)); }
.faction-card h2 { margin: 4px 0 8px; }
.rep-bar { position: relative; height: 8px; border-radius: 3px; margin: 14px 0 6px;
  background: linear-gradient(90deg, #ff5a6e 0%, #3f3c36 35%, #3f3c36 57%, #5fe0a0 70%, #ffd36e 100%); }
.rep-bar i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px #080807; }
.faction-facts { display: grid; gap: 6px; margin: 12px 0 0; }
.faction-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.faction-facts dt { color: var(--muted); }
.faction-facts dd { margin: 0; }
.deliveries { margin: 0 0 16px; }

/* ---------- M10b: trouble on the road ---------- */
.orders-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.orders-form select { flex: 0 1 200px; }
.road-head { margin: 16px 0 8px; }
.road-reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.road-report { border-left: 3px solid var(--line-2); padding: 2px 0 2px 12px; }
.road-report.good { border-left-color: var(--ok); }
.road-report.bad { border-left-color: #ff5a6e; }
.road-report.neutral { border-left-color: #ffd36e; }
.road-report p { margin: 2px 0 0; }
.road-report-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.road-panel { margin: 0 0 20px; }
.orders-pick label { display: block; margin: 2px 0; }
.map-incident span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 700 11px/1 var(--font); color: #080807; background: #ffd36e; box-shadow: 0 0 0 2px #080807; }
.map-incident.bad span { background: #ff5a6e; }
.map-incident.good span { background: #5fe0a0; }
.see-route { margin-top: auto; align-self: flex-start; }
.job-view .faction-name { color: var(--faction); }
.job-facts { margin: 0 0 18px; }
.deadline-check, .pace-check { margin: 0 0 10px; padding: 8px 10px; border-radius: 2px; font-size: 14px; }
.deadline-check.ok, .pace-check.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.deadline-check.late, .pace-check.late { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }

/* M11b: road fights */
.road-map svg { background: #0b0d0a; }
.road-verge { fill: #11140f; }
.road-asphalt { fill: #1a1917; }
.road-edge { stroke: #cfc8b8; stroke-width: .08; opacity: .55; }
.road-centre { stroke: #ffd36e; stroke-width: .1; stroke-dasharray: 1.4 1; opacity: .8; }
.road-lane { stroke: #e3dccb; stroke-width: .08; stroke-dasharray: 1.4 1.4; opacity: .55; }
.road-sign { fill: var(--muted); font-size: 2px; font-family: var(--font); }
.road-map .arena-block { fill: #2b2925; stroke: #8f877a; }
.road-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; }
.road-facts .badge.road-good { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.road-facts .badge.road-bad { background: var(--warn-bg); color: #ff8fa6; border-color: var(--warn-line); }
.road-cast .dash-list li { align-items: baseline; }
.road-report .watch { white-space: nowrap; }
.road-hints { margin: 6px 0 0; padding-left: 18px; color: #ffd36e; }
.road-hints li { margin: 2px 0; }
.road-report.highlight { background: var(--accent-bg); border-radius: 2px; padding-top: 6px; padding-bottom: 6px; }
.road-cars { margin: 2px 0 0; }
.road-job { margin: 2px 0 0; color: var(--dim); }
.road-filter { margin-bottom: 14px; align-items: center; gap: 10px; }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }
.road-filter select { max-width: 320px; }
.road-odds-box { margin-top: 10px; }

/* Garage: the outfit at a glance */
.stats-compact { margin: 10px 0 18px; }
.stats-compact > div { padding: 10px 14px; }
.stats-compact dd { font-size: 20px; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-bottom: 26px; }
.fleet-town { padding: 14px 16px; }
.fleet-road { border-left: 3px solid var(--accent); }
.fleet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fleet-head h3 { margin: 0; font-size: 16px; }
.fleet-pos { margin: 4px 0 0; }
.fleet-cars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.fleet-cars li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.fleet-cars li:first-child { border-top: 0; padding-top: 0; }
.fleet-car { flex: 1 1 100%; }
.fleet-crew { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.fleet-who { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 2px 8px 2px 2px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text); text-decoration: none; }
.fleet-who.hurt { border-color: var(--warn-line); color: var(--warn); }
.fleet-go { margin-left: auto; white-space: nowrap; }
.fleet-cargo { flex: 1 1 100%; color: var(--dim); }
.fleet-bench { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.garage-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; margin-bottom: 26px; }
.garage-news .section-head { margin-top: 0; }
@media (max-width: 600px) { .fleet, .garage-news { grid-template-columns: 1fr; } }
.garage-news .job-list { padding: 12px 16px; }
.bays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 4px; }
.bay-dots { display: inline-flex; gap: 4px; }
.bay-dots i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--panel); }
.bay-dots i.on { background: var(--accent); border-color: var(--accent); }
.bays.full .bay-dots i.on { background: #ffd36e; border-color: #ffd36e; }

/* ---------- world history (/history) ---------- */
.history-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, .30) 0%, rgba(8, 8, 7, .62) 38%, rgba(8, 8, 7, .86) 100%),
    url('/assets/img/history-1920.jpg') center 40% / cover no-repeat,
    var(--bg);
  background:
    linear-gradient(180deg, rgba(8, 8, 7, .30) 0%, rgba(8, 8, 7, .62) 38%, rgba(8, 8, 7, .86) 100%),
    image-set(url('/assets/img/history-1920.webp') type('image/webp'), url('/assets/img/history-1920.jpg') type('image/jpeg')) center 40% / cover no-repeat,
    var(--bg); }
.world-history { --ember: #ff9a4d; --ember-line: rgba(255, 154, 77, .45); max-width: 820px; margin: 0 auto; }
.history-hero { min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 0 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85); }
.history-hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2em; }
.history-hero .eyebrow { color: var(--ember); }
.history-hero .lede { color: var(--text); }
.history-eras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; text-shadow: none; }
.history-eras .pill { background: rgba(20, 19, 17, .72);  }
.history-era { scroll-margin-top: 16px; padding-top: 24px; }
.history-era-head { padding: 8px 0 4px; }
.history-era-head .label-caps { color: var(--ember); margin: 0 0 4px; }
.history-era-head h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); letter-spacing: .1em; margin-bottom: 6px; }
.history-era-intro { color: var(--dim); max-width: 60ch; margin: 0 0 8px; font-style: italic; }
.history-line { list-style: none; margin: 8px 0 0; padding: 0 0 0 0; position: relative; }
.history-line::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 104px; width: 2px;
  background: linear-gradient(180deg, var(--ember-line), rgba(201, 154, 23, .35)); }
.history-event { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 30px; padding: 8px 0; }
.history-event::before { content: ''; position: absolute; left: 99px; top: 20px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ember); box-shadow: 0 0 10px rgba(255, 154, 77, .55); }
.history-event.is-arena::before { background: var(--ember); }
.history-when { text-align: right; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--ember); white-space: nowrap; }
.history-card { background: rgba(20, 19, 17, .80); border: 1px solid var(--line-2); border-radius: 2px; padding: 12px 16px;  }
.history-card h3 { margin: 0 0 4px; color: var(--text); }
.history-card p { margin: 0; line-height: 1.6; color: var(--dim); }
.history-event.is-arena .history-card { border-color: var(--ember-line); }
.history-arena { display: inline-block; margin-top: 8px; color: var(--ember); text-decoration: none; letter-spacing: .04em; }
.history-arena:hover { color: #ffc28f; text-decoration: underline; }
.history-end { text-align: center; padding: 40px 0 8px; }
.history-end .home-tagline { margin-bottom: 16px; }
@media (max-width: 560px) {
  .history-hero { min-height: 44vh; }
  .history-line::before { left: 5px; }
  .history-event { grid-template-columns: minmax(0, 1fr); padding: 6px 0 6px 26px; }
  .history-event::before { left: 0; top: 6px; }
  .history-when { text-align: left; padding: 0 0 4px; }
}

/* ---------- admin: crew list and new person ---------- */
.admin-crew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; margin-top: 12px; }
.admin-crew-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.admin-crew-filter .input:first-child { flex: 1 1 240px; }
.admin-crew-filter select { flex: 0 1 160px; }
.admin-crew-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.admin-crew-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 6px 14px; align-items: center;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.admin-crew-row:hover { border-color: var(--line-2); }
.admin-crew-row.off { opacity: .7; border-style: dashed; }
.admin-crew-row > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.admin-crew-who { display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.admin-crew-who > span { display: flex; flex-direction: column; min-width: 0; }
.admin-crew-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-crew-who:hover strong { color: var(--accent); }
.admin-crew-new { position: sticky; top: 12px; }
.admin-crew-new h2 { margin-top: 0; }
@media (max-width: 980px) {
  .admin-crew { grid-template-columns: minmax(0, 1fr); }
  .admin-crew-new { position: static; }
}
@media (max-width: 640px) {
  .admin-crew-row { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-crew-row > span:last-child { grid-column: 1 / -1; justify-content: flex-start; }
}

/* =====================================================================
   SHOP FLOOR (Blackout) — the gritty layer. Everything above keeps the
   page layouts; this block gives them steel plate, rivets, stencil paint,
   masking tape and hard shop shadows. Colors come from :root.
   ===================================================================== */

/* ---------- the room ---------- */
body {
  font-size: 16px; letter-spacing: .01em;
  background:
    radial-gradient(ellipse 1100px 520px at 50% -120px, var(--lamp), transparent 70%),
    radial-gradient(ellipse 520px 220px at 14% 78%, rgba(0, 0, 0, .55), transparent 70%),
    radial-gradient(ellipse 380px 160px at 86% 46%, rgba(50, 32, 14, .30), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px dashed var(--accent-hi); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1 { font-family: var(--stencil); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; }
h2 { font-family: var(--stencil); font-weight: 400; font-size: 22px; letter-spacing: .1em; color: var(--accent); }
h3 { font-weight: 600; letter-spacing: .1em; }
.eyebrow { color: var(--rust); letter-spacing: .24em; font-weight: 500; }
.lede { color: var(--dim); }
.motto { font-family: var(--marker); font-style: normal; color: var(--tape); }

/* ---------- header: plate, rivets, hazard stripe ---------- */
.site-header {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    linear-gradient(var(--head-top), var(--head-bot));
  border-bottom: 3px solid var(--edge); margin-bottom: 14px;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 14px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--bg) 18px 36px);
  border-bottom: 2px solid var(--edge); opacity: .75;
}
.brand img { filter: drop-shadow(0 2px 0 #000); } /* the stamped-plate logo (Nov 7) keeps its own colours */
.site-nav { gap: 6px; font-size: 14px; }
.site-nav > a:not(.button) {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px;
  color: var(--text); background: var(--plate-hi); border: 2px solid var(--edge);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 2px 0 var(--edge);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.site-nav > a:not(.button):hover { color: var(--accent-hi); }
.site-nav > a[aria-current="page"] {
  color: var(--accent-ink); background: var(--accent); border-bottom: 2px solid var(--edge); padding-bottom: 6px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 2px 0 var(--edge); font-weight: 600;
}
.site-nav > a[aria-current="page"]:hover { color: var(--accent-ink); }
.site-nav .muted { padding: 0 4px; font-family: var(--marker); color: var(--tape); }
.clock-pill, .cash-pill {
  border: 2px solid var(--edge); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 6px 10px;
}
.cash-pill { color: var(--ok); font-size: 16px; }
.site-main { padding-top: 40px; }
.site-footer { border-top: 2px dashed var(--line-2); }

/* ---------- steel plate (the one surface everything sits on) ---------- */
.card, .panel, .car-card, .stats div, .tile, .pick, .crew-card, .flash, .wb-view {
  background:
    radial-gradient(ellipse 160px 70px at 74% 26%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(ellipse 120px 60px at 18% 86%, rgba(0, 0, 0, .40), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    var(--panel);
  border: 2px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 5px 0 var(--edge);
}
/* rivets in the corners of the bigger plates */
.card, .panel, .car-card {
  background:
    radial-gradient(circle at 10px 10px, var(--rivet) 0 2px, #2a2824 3px, #000 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--rivet) 0 2px, #2a2824 3px, #000 4px, transparent 5px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--rivet) 0 2px, #2a2824 3px, #000 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--rivet) 0 2px, #2a2824 3px, #000 4px, transparent 5px),
    radial-gradient(ellipse 160px 70px at 74% 26%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(ellipse 120px 60px at 18% 86%, rgba(0, 0, 0, .40), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    var(--panel);
}
.card, .panel { padding: 20px 22px; }
.part, .pick:hover, .panel .panel { box-shadow: none; }
.part { background: var(--panel-2); border: 1px solid var(--edge); }
.part.current { border: 2px solid var(--accent); }
.pick:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- the cars: bent plates with tape names ---------- */
.car-list { gap: 22px; }
.car-card { padding: 22px 20px 18px; }
.car-card:nth-child(3n+1) { transform: rotate(-.35deg); }
.car-card:nth-child(3n+2) { transform: rotate(.4deg); }
.car-card:nth-child(3n) { transform: rotate(-.2deg); }
.car-card h3 {
  align-self: flex-start; display: inline-block; margin: 2px 0 4px; padding: 3px 12px;
  font-family: var(--marker); font-weight: 400; font-size: 21px; letter-spacing: .02em; text-transform: none;
  color: var(--tape-ink); background: var(--tape); transform: rotate(-1.5deg);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .6);
}
.car-card .specs { color: var(--dim); }
.car-card .row > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-counter { filter: sepia(.2); }

/* ---------- buttons: painted steel with a hard drop ---------- */
.button {
  border: 2px solid var(--edge); border-radius: 2px; box-shadow: 0 3px 0 var(--edge);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .05s, box-shadow .05s;
}
.button:hover { filter: none; background: var(--accent-hi); color: var(--accent-ink); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.button:disabled { box-shadow: none; transform: none; }
.button-ghost { background: var(--plate-hi); color: var(--text); border: 2px solid var(--edge); }
.button-ghost:hover { background: #2f2d28; color: var(--accent-hi); border-color: var(--edge); }
.button-danger { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn-line); }
.button-danger:hover { background: #2a120b; color: #ff9b80; }
.site-nav a.button { box-shadow: 0 2px 0 var(--edge); }

/* ---------- stamps, pills, tabs ---------- */
.badge {
  border: 2px solid currentColor; border-radius: 1px; padding: 1px 7px; font-weight: 600; font-size: 11px;
  letter-spacing: .14em; transform: rotate(-2deg); background: rgba(0, 0, 0, .25);
}
.badge-ok { color: var(--ok); } .badge-warn { color: var(--accent); } .badge-accent { color: var(--accent-hi); }
.pill, .tab { border: 2px solid var(--edge); background: var(--plate-hi); color: var(--dim); box-shadow: 0 2px 0 var(--edge); }
.pill[aria-pressed="true"], .pill.on, .tab[aria-selected="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--edge);
}

/* ---------- gauges ---------- */
.stats dt, .tile .label { color: var(--muted); }
.stats dd, .tile .value { color: var(--text); }
.tile.money .value { color: var(--ok); }
.meter { height: 10px; border-radius: 0; background: var(--bg); border: 1px solid var(--edge); }
.meter > i { border-radius: 0; background: repeating-linear-gradient(90deg, var(--rust) 0 12px, rgba(0, 0, 0, .45) 12px 14px); }
.tile.alert .meter > i { background: repeating-linear-gradient(90deg, var(--warn) 0 12px, rgba(0, 0, 0, .45) 12px 14px); }
.bay-dots i { border-radius: 1px !important; }

/* ---------- forms: stamped-in slots ---------- */
.field input, .input, select.input, textarea {
  background: var(--bg); border: 2px solid var(--edge); border-radius: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 1px 0 var(--line-2);
}
.field input:focus, .input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field label { letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--dim); }

/* ---------- notices ---------- */
.flash-success { border-color: var(--ok-line); }
.flash-error { border-color: var(--warn-line); }
.section-head { border-bottom: 2px dashed var(--line-2); padding-bottom: 4px; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 0; }

/* a taped-on note: add class="tape-note" to any block */
.tape-note {
  position: relative; padding: 18px 20px; color: var(--tape-ink); background: var(--tape);
  transform: rotate(1deg); box-shadow: 0 8px 14px rgba(0, 0, 0, .7);
}
.tape-note a { color: #7a2410; }
.stencil { font-family: var(--stencil); font-weight: 400; letter-spacing: .06em; }
.marker { font-family: var(--marker); }

@media (max-width: 640px) {
  .car-card:nth-child(n) { transform: none; }
  .site-header { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .pick { transition: none; }
}

/* ---------- top drivers and gunners (/league/crew) ---------- */
.top-crew-order { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.top-crew-order .pill { min-height: 32px; text-decoration: none; }
.top-crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.top-crew-list { list-style: none; margin: 0; padding: 0; }
.top-crew-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "rank who skill" "rank who stats";
  align-items: center; gap: 2px 10px; padding: 8px 4px; border-top: 1px solid var(--line); }
.top-crew-row:first-child { border-top: 0; }
.top-crew-row.mine { background: var(--accent-bg); }
.top-rank { grid-area: rank; color: var(--muted); text-align: right; }
.top-crew-row.podium .top-rank { color: var(--accent-hi); font-weight: 600; }
.top-who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.top-who > span { display: flex; flex-direction: column; min-width: 0; }
.top-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-who:hover strong { color: var(--accent-hi); }
.top-skill { grid-area: skill; text-align: right; font-family: var(--mono); white-space: nowrap; }
.top-stats { grid-area: stats; text-align: right; white-space: nowrap; }

/* ---------- Mama Kessel's Full Catalog (/catalog) ---------- */
.catalog-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 10px; }
.catalog-filter .input { width: auto; flex: 1 1 200px; }
.catalog-filter select.input { flex: 0 1 280px; }
.catalog-check { display: inline-flex; align-items: center; gap: 6px; }
.catalog-sections { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.catalog-sections .pill { min-height: 32px; text-decoration: none; }
.catalog-head { margin-top: 26px; }
.catalog-table { border: 1px solid var(--line); border-radius: 2px; }
.catalog-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(170px, 1.6fr) 80px 70px 80px minmax(170px, 1.4fr); gap: 4px 14px;
  align-items: start; padding: 9px 12px; border-top: 1px solid var(--line); }
.catalog-row:first-child { border-top: 0; }
.catalog-row.head { background: var(--panel-2); color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.catalog-row:target { background: var(--accent-bg); }
.catalog-part { display: flex; flex-direction: column; gap: 2px; }
.catalog-row .num { text-align: right; }
.catalog-where { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 860px) {
  .catalog-row { grid-template-columns: 1fr auto; }
  .catalog-row.head { display: none; }
  .catalog-row > :nth-child(2), .catalog-row > :nth-child(6) { grid-column: 1 / -1; }
  .catalog-row > :nth-child(4), .catalog-row > :nth-child(5) { text-align: left; }
}
.pill.on .muted { color: inherit; opacity: .75; }
.catalog-filter .input { min-width: 0; max-width: 100%; }
@media (max-width: 560px) {
  .top-crew-row { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "rank who" "rank skill" "rank stats"; }
  .top-skill, .top-stats { text-align: left; padding-left: 42px; }
}
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- dispatch board (/dispatch) ---------- */
.dispatch-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; }
.dispatch-filter .input { width: auto; min-width: 0; max-width: 100%; flex: 0 1 260px; }
.dispatch-day { margin-top: 24px; }
.dispatch-table { border: 1px solid var(--line); border-radius: 2px; }
.dispatch-row { display: grid; grid-template-columns: 150px minmax(200px, 1.6fr) minmax(160px, 1.2fr) minmax(110px, .9fr) minmax(150px, 1fr);
  gap: 4px 14px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); }
.dispatch-row:first-child { border-top: 0; }
.dispatch-row.head { background: var(--panel-2); color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dispatch-row.warn { box-shadow: inset 3px 0 0 var(--warn, #c9a227); }
.dispatch-when, .dispatch-what, .dispatch-status { display: flex; flex-direction: column; gap: 3px; }
.dispatch-when strong { font-family: var(--mono); font-weight: 600; }
.dispatch-kind { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.dispatch-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dispatch-car { font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.dispatch-pic { width: 64px; height: 40px; flex: none; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); background: #000; display: block; }
.dispatch-pic-counter { display: flex; align-items: center; justify-content: center; padding: 2px; }
.dispatch-pic-counter svg { height: 100%; width: auto; display: block; }
.dispatch-bar { display: block; height: 6px; background: var(--line); border-radius: 1px; overflow: hidden; max-width: 160px; }
.dispatch-bar > span { display: block; height: 100%; background: var(--accent); }
.dispatch-idle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
@media (max-width: 860px) {
  .dispatch-row { grid-template-columns: 1fr; }
  .dispatch-row.head { display: none; }
  .dispatch-when { flex-direction: row; gap: 10px; align-items: baseline; }
}
/* nine plates in the menu bar: tighten them a little so the bar stays on one line on laptop screens */
@media (max-width: 1480px) { .site-nav > a:not(.button) { padding: 6px 9px; letter-spacing: .07em; } }
.dispatch-when strong { white-space: nowrap; }
.dispatch-time { font-family: var(--mono); }
.dispatch-status > .badge { align-self: flex-start; }

/* ---------- inbox and email settings ---------- */
.nav-bell { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 9px; text-decoration: none; color: var(--text);
  border: 2px solid var(--edge); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }
.nav-bell[aria-current="page"] { border-color: var(--accent); }
.nav-bell .bell-count { font-family: var(--mono); font-size: 12px; min-width: 18px; padding: 1px 5px; text-align: center; background: var(--accent); color: var(--accent-ink); border-radius: 2px; }
.inbox-tabs { display: flex; gap: 6px; margin: 10px 0 14px; }
.inbox-tabs .pill { min-height: 32px; text-decoration: none; }
.inbox-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.inbox-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; border-top: 1px solid var(--line); }
.inbox-item:first-child { border-top: 0; }
.inbox-item.unread { background: var(--accent-bg); }
.inbox-item.unread .inbox-title { font-weight: 600; }
.inbox-item.urgent { box-shadow: inset 3px 0 0 var(--warn, #c9a227); }
.inbox-icon { font-size: 18px; line-height: 1.2; text-align: center; }
.inbox-main { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; min-width: 0; }
.inbox-main:hover .inbox-title { color: var(--accent-hi); }
.inbox-when { text-align: right; white-space: nowrap; }
.pager { display: flex; gap: 16px; justify-content: center; margin: 14px 0; }
.notify-form fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.notify-form legend { font-weight: 600; margin-bottom: 6px; }
.notify-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.notify-check input { margin-top: 4px; }
.notify-hour { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.notify-hour .input { width: auto; }
.inline-form { display: inline; }
.watch-check { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .inbox-item { grid-template-columns: 24px minmax(0, 1fr); } .inbox-when { grid-column: 2; text-align: left; } .inbox-when br { display: none; } }
@media (max-width: 1480px) { .site-nav .nav-user { display: none; } }
.site-nav > a.nav-bell:not([aria-current="page"]) { background: var(--bg); }

/* ---- stamped icons (App\Http\Icons): one sprite in the layout, <use> everywhere, the text colour ---- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; stroke-linejoin: miter; }
.nav-bell .icon { width: 18px; height: 18px; vertical-align: middle; }
.clock-pill .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--accent); }
.inbox-icon .icon { width: 22px; height: 22px; color: var(--accent); }
.inbox-item:not(.unread) .inbox-icon .icon { color: var(--muted); }
.inbox-item.urgent .inbox-icon .icon { color: var(--warn); }
.dispatch-kind .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--accent); }
.car-where .icon, .fleet-cargo .icon, .road-job .icon, .fight-night .icon { color: var(--accent); }
.icon-hurt { color: var(--warn); width: 1em; height: 1em; }
.link-tag .icon { width: 11px; height: 11px; vertical-align: -1px; stroke-width: 2.75; }
h3 > .icon { color: var(--accent); vertical-align: -.15em; }

/* ---- jobs: where it's picked up, which car carries it ---- */
.jobs-howto { margin: 0 0 16px; color: var(--muted); max-width: 80ch; }
.jobs-howto summary { cursor: pointer; color: var(--accent); }
.pickup-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px 28px; margin: 0 0 18px; border-left: 4px solid var(--accent); }
.pickup-bar .label-caps { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--accent); }
.pickup-town select { width: 100%; max-width: none; font-size: 17px; font-weight: 600; padding: 10px 12px; }
.pickup-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.car-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg);
  color: var(--text); text-decoration: none; font-weight: 600; }
.car-chip:hover { border-color: var(--accent); }
.car-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.car-chip .chip-note { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.car-chip.on .chip-note { color: var(--accent-ink); }
.pickup-none { margin: 0; }
.pickup-cars p { margin: 0; }
.jobs-tabs { margin: 0 0 18px; }
.job-card .fits { color: var(--ok, #7bc47f); margin: 0; }
.pickup-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; background: var(--bg); border-left: 4px solid var(--accent); }
.car-pick > span { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.car-pick select { font-size: 16px; font-weight: 600; }
.take-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.dispatch-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.car-where .head-out { font-weight: 600; margin-left: 4px; }
@media (max-width: 760px) { .pickup-bar { grid-template-columns: 1fr; } }

/* ---- booked fight nights (M12): which division each arena runs, two weeks ahead ---- */
.arena-nights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.arena-nights li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arena-nights .night-when { font-family: var(--mono); font-size: 13px; min-width: 9.5em; color: var(--text); }
.arena-nights li:not(.next) .night-when { color: var(--muted); }
.arena-nights.compact { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
.arena-nights.compact .night-when { min-width: 0; }
.night-note { color: var(--accent); }
.div-pill { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border: 1px solid; border-radius: 2px; white-space: nowrap; }
.div-pill.div-d10 { color: #8cc45c; border-color: #3b5a25; background: #10170b; }
.div-pill.div-d25 { color: #6fc3ff; border-color: #24506e; background: #0b1620; }
.div-pill.div-open { color: #ff7a59; border-color: #6e2f20; background: #1d0f0b; }
.venue-nights { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.booked-title { margin-top: 32px; }
.booked-ahead { display: flex; flex-direction: column; gap: 0; padding: 4px 16px; }
.booked-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.booked-row:last-child { border-bottom: 0; }
.booked-arena { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.booked-arena > span { display: flex; flex-direction: column; }
.arena-check { margin: 0 0 10px; padding: 8px 10px; border-left: 3px solid var(--ok); background: var(--bg); }
.arena-check.late { border-left-color: var(--warn); }
.arena-check .icon { color: var(--accent); }
.map-nights { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.booking-rows { display: flex; flex-direction: column; gap: 10px; }
.booking-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.booking-when { min-width: 260px; }
@media (max-width: 760px) { .booked-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---- Garage rework (sh74): bay tabs, the More menu, arena nights, circuit tiles, the garage map, Atlanta's star ---- */
.bay-tabs { border-top: 1px solid var(--line); padding-top: 6px; }
.bay-tablist { display: none; gap: 4px; margin-bottom: 6px; }
.bay-tabs.tabs-on .bay-tablist { display: flex; }
.bay-tablist [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted, #8f877a); font: inherit; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px 5px; cursor: pointer; }
.bay-tablist [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.bay-tablist [role="tab"]:focus-visible { outline: 1px solid var(--accent); }
.tab-count, .tab-flag { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; font-size: 11px; text-align: center;
  background: var(--panel-2, #24221e); color: var(--text); }
.tab-flag { background: var(--warn, #d08b2c); color: #080807; }
.bay-pane { display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.bay-pane .mods { margin: 0; }
.bay-pane:has(.mods) { max-height: 168px; overflow-y: auto; padding-right: 4px; } /* a long list of quirks still scrolls; the crew grows to fit (Nov 22) */
.bay-pane .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bay-tabs:not(.tabs-on) .bay-pane + .bay-pane { margin-top: 10px; }
.bay-pane[hidden] { display: none; }
.bay-foot { margin-top: auto; padding-top: 4px; display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.bay-foot > .button, .bay-more > summary.button { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.bay-more { margin-left: auto; }
.bay-more { position: relative; display: inline-block; }
.bay-more > summary { list-style: none; cursor: pointer; }
.bay-more > summary::-webkit-details-marker { display: none; }
.bay-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 210px; display: flex; flex-direction: column;
  background: var(--panel-2, #24221e); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); padding: 6px; }
.bay-menu a { padding: 6px 8px; font-size: 14px; text-decoration: none; color: var(--text); }
.bay-menu a:hover { background: var(--panel); color: var(--accent); }
.bay-menu a.danger { color: var(--warn, #d08b2c); border-top: 1px solid var(--line); margin-top: 4px; }
.bay-rename { display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.bay-rename .input { min-width: 0; flex: 1; padding: 4px 6px; font-size: 13px; }
.car-card { position: relative; }
.car-card:has(.bay-more[open]) { z-index: 5; }

.outfit-mods { margin-bottom: 18px; }

.night-strip { list-style: none; margin: 8px 0 12px; padding: 0 0 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.night { flex: 0 0 190px; scroll-snap-align: start; }
.night a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--line-2); color: var(--text); text-decoration: none; }
.night a:hover { border-color: var(--accent); }
.night.won a { border-top-color: #ffd36e; }
.night.podium a { border-top-color: #c99a17; }
.night.lost a { border-top-color: var(--warn, #d08b2c); }
.night.next a { border-style: dashed; border-top-style: solid; border-top-color: var(--accent); }
.night-when { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8f877a); }
.night-event { font-size: 14px; line-height: 1.25; }
.night-car { font-size: 13px; color: var(--dim, #b8b0a2); }
.night-place { font-family: var(--mono); font-size: 18px; margin-top: auto; }
.night.next .night-place { font-size: 13px; color: var(--accent); }
.night-note .good { color: var(--good, #7bd88f); }

.garage-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 8px 0 26px; }
.garage-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 150px; padding: 16px;
  color: var(--text); text-decoration: none; border: 1px solid var(--line-2); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(201, 154, 23, .16), transparent 60%), linear-gradient(160deg, #26231e, #141311); }
.garage-tile.has-cover { background: var(--cover) center / cover no-repeat; }
.garage-tile.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 7, .15), rgba(8, 8, 7, .88) 70%); }
.garage-tile:hover { border-color: var(--accent); transform: translateY(-2px); transition: transform .15s, border-color .15s; }
.garage-tile strong { font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.garage-tile .small { color: var(--dim, #b8b0a2); }
.tile-icon { position: absolute; top: 12px; left: 14px; opacity: .85; }
.tile-icon .icon { width: 30px; height: 30px; color: var(--accent); }
.garage-tile:not(.has-cover) .tile-icon { top: auto; left: auto; right: -8px; bottom: -14px; opacity: .12; }
.garage-tile:not(.has-cover) .tile-icon .icon { width: 110px; height: 110px; color: var(--text); }
.tile-hub { position: absolute; top: 12px; right: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ffd36e;
  border: 1px solid rgba(255, 211, 110, .5); padding: 2px 6px; background: rgba(8, 8, 7, .6); }
.hub-star { color: #ffd36e; }

.garage-map { height: 420px; margin: 8px 0 22px; }
@media (max-width: 600px) { .garage-map { height: 320px; } }
.map-car.parked span { border-radius: 2px; }
.map-hub { overflow: visible; }
/* hub towns (T-26): a small round badge with the hub's icon, smaller than the square arena tokens and with no glow */
.map-hub-badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #080807; background: #ffd36e; border: 2px solid #080807; }
.map-hub-badge .icon { width: 14px; height: 14px; }
.map-hub.has-mine .map-hub-badge { box-shadow: 0 0 0 2px #c99a17; }

.garage-log { margin: 0 0 24px; }
.garage-log > summary { cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.garage-log[open] > summary { margin-bottom: 8px; }

/* ---- Admin render lab (test page) ---- */
.lab-diag { margin: 12px 0 16px; }
.lab-pick { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 16px; }
.lab-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lab-pick select { min-width: 220px; max-width: 100%; }
.lab-bg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lab-bg .pill { cursor: pointer; font: inherit; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding: 18px; border: 1px solid var(--line-2); }
.lab-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lab-img { display: grid; place-items: center; height: 460px; }
.lab-img img, .lab-img svg { max-height: 100%; max-width: 100%; width: auto; height: 100%; object-fit: contain; }
.lab-svg svg { width: auto; height: 88%; }
.lab-grid figcaption { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.lab-grid.bg-checker { background: repeating-conic-gradient(#3a3834 0% 25%, #2a2825 0% 50%) 0 0 / 22px 22px; }
.lab-grid.bg-dark { background: #0d0c0b; }
.lab-grid.bg-light { background: #e9e5dc; }
.lab-grid.bg-light figcaption, .lab-grid.bg-light figcaption a { color: #1a1917; }
.lab-grid.bg-road { background: radial-gradient(circle at 50% 40%, #4a4640, #1c1a17 70%); }

/* ---- Saved car pictures (sh76): the road-worn picture as the card's top banner, the car lying nose-right ---- */
.car-cover.car-picture { background: radial-gradient(ellipse at 50% 55%, #3a362f, #121110 78%); }
.car-cover.car-picture img { padding: 4px 6px; }
.lab-saved { margin: 0 0 18px; }
.lab-saved h2 { margin: 0 0 6px; font-size: 1rem; }
.lab-saved .row-form { display: flex; gap: 8px; flex-wrap: wrap; }
/* the tuning list inside a bay: same layout, scaled down to fit the small pane */
.bay-pane .mods { zoom: .65; }
.bay-pane .mods .mod-list { gap: 8px; }

/* ---- The outfit office (sh77) ---- */
.office-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.office-grid > .panel { scroll-margin-top: 16px; }
.office-grid h2 { margin: 0 0 10px; font-size: 1.05rem; }
.office-wide { grid-column: 1 / -1; }
.office-form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.office-form:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.office-form > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.office-form > label.checks { flex-direction: row; align-items: center; gap: 8px; }
.office-form .button { align-self: flex-start; }
.office-form fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.office-form textarea { resize: vertical; font: inherit; }
.office-pics { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 22px; }
@media (max-width: 700px) { .office-pics { grid-template-columns: 1fr; } }
.office-boss img, .office-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); margin-bottom: 10px; }
.office-empty { display: grid; place-items: center; color: var(--muted, #8f877a); background: var(--panel-2, #24221e); font-size: 13px; }
.office-art { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.office-art li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.office-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-2); display: block; }
.office-art .badge { position: absolute; top: 6px; left: 6px; background: rgba(8, 8, 7, .75); }
.office-art .row-form { display: flex; gap: 6px; flex-wrap: wrap; }
.office-art .row-form .input { flex: 1; min-width: 0; padding: 4px 6px; font-size: 13px; }
.office-retire { border-color: rgba(208, 139, 44, .45); }
.office-retire summary { cursor: pointer; color: var(--warn, #d08b2c); font-weight: 600; }
.retire-body { margin-top: 12px; }
.retire-body ul { margin: 0 0 10px; padding-left: 20px; }
.outfit-profile { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 20px; }
.outfit-story { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 18px; align-items: start; }
.outfit-story:not(:has(.outfit-boss)) { grid-template-columns: 1fr; }
.outfit-story h2 { margin: 0 0 8px; }
.outfit-boss { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); }
@media (max-width: 600px) { .outfit-story { grid-template-columns: 1fr; } .outfit-boss { max-width: 220px; } }
.outfit-art li { display: flex; flex-direction: column; gap: 4px; width: 280px; max-width: 100%; }
.outfit-art li img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.office-art-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 10px 0; }
.office-art-admin figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.office-art-admin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-2); }
/* admin: the outfit's story and pictures */
.outfit-story-grid { margin-top: 18px; }
.outfit-story-grid textarea { width: 100%; resize: vertical; }
.outfit-pics-admin { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .outfit-pics-admin { grid-template-columns: 1fr; } }
.outfit-pics-admin h3 { margin: 0 0 10px; }
.outfit-pics-boss { display: flex; flex-direction: column; gap: 10px; }
.outfit-pics-portrait { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); }
.outfit-pics-empty { display: flex; align-items: center; justify-content: center; background: var(--panel-2); border-style: dashed; }
.outfit-pics-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.outfit-pics-upload .input { flex: 1 1 200px; width: auto; }
/* admin: AI pictures for an outfit */
.ai-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; margin: 10px 0 16px; }
.ai-facts div { display: flex; flex-direction: column; }
.ai-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8f877a); }
.ai-facts dd { margin: 0; }
.ai-facts .ai-bio { grid-column: 1 / -1; }
.ai-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.ai-forms h3 { margin: 0 0 4px; font-size: .95rem; }
.ai-forms textarea { font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.ai-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-forms .button { align-self: flex-start; }

/* ---- Faction pictures (sh79) ---- */
.faction-cover { display: block; margin: -16px -16px 12px; height: 150px; overflow: hidden; }
.faction-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faction-head { display: flex; gap: 12px; align-items: center; }
.faction-head h2 { margin: 2px 0 0; }
.faction-contact { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.faction-contact img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line-2); }
.faction-contact p { margin: 0; }
.faction-history { margin: 6px 0 10px; }
.faction-history summary { cursor: pointer; }
/* the jobs page: the factions strip and each office's banner */
.jobs-factions-head { margin-top: 18px; }
.faction-strip { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.faction-tile a { position: relative; isolation: isolate; display: flex; gap: 10px; align-items: center; min-height: 74px; padding: 12px 14px; overflow: hidden;
  color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-left: 4px solid var(--faction, var(--line-2));
  background: linear-gradient(120deg, #24221e, #141311); }
.faction-tile.has-cover a { background: var(--cover) center / cover no-repeat; }
.faction-tile.has-cover a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 7, .92) 30%, rgba(8, 8, 7, .45)); }
.faction-tile a:hover { border-color: var(--faction, var(--accent)); }
.faction-tile.here a { box-shadow: inset 0 0 0 1px var(--faction, var(--accent)); }
.faction-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.faction-tile-text strong { color: var(--faction, var(--text)); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.office.has-cover { padding-top: 0; }
.office-cover { display: block; margin: 0 -16px 12px; height: 110px; overflow: hidden; border-bottom: 3px solid var(--faction, var(--line-2)); }
.office-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-name { display: flex; gap: 12px; align-items: center; }
.office-side { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.office-contact { display: flex; gap: 8px; align-items: center; line-height: 1.25; }
.office-contact img { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line-2); }

.faction-art { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.faction-art img { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--line-2); display: block; }
.faction-art a:hover img { border-color: var(--faction, var(--accent)); }

/* ---- The broadcast booth (sh81) ---- */
.booth-recap { margin: 0 0 18px; border-left: 4px solid var(--accent); }
.booth-recap .label-caps { margin: 0 0 8px; }
.booth-body { display: flex; gap: 14px; align-items: flex-start; }
.booth-face { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.booth-text { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.6; }
.booth-byline { margin: 0; }
.booth-admin { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.territory-booth { margin: 0 0 18px; border-top: 3px solid var(--faction, var(--line-2)); }
.booth-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.booth-head h2 { margin: 0; }
.booth-head .row-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.booth-head label { display: flex; flex-direction: column; gap: 3px; }
.booth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin: 14px 0; }
.talent-card { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; padding: 12px; border: 1px solid var(--line); }
.talent-card.off { opacity: .6; }
.talent-face { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; grid-row: span 2; }
.talent-face img, .talent-empty { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line-2); }
.talent-empty { display: grid; place-items: center; font-size: 11px; color: var(--muted, #8f877a); text-align: center; }
.talent-upload input[type=file] { width: 100px; font-size: 11px; }
.talent-form { display: flex; flex-direction: column; gap: 8px; }
.talent-form > label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.talent-form > label.checks { flex-direction: row; gap: 6px; align-items: center; }
.talent-form textarea { font: inherit; font-size: 13px; resize: vertical; }
.talent-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.talent-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.talent-delete { grid-column: 2; }
.talent-add summary { cursor: pointer; }
.talent-add .talent-form { margin-top: 10px; max-width: 640px; }
.recap-table td { vertical-align: top; }
.recap-actions { white-space: nowrap; display: flex; gap: 6px; }

/* ---- The main menu (sh82): groups with dropdowns, an account menu, a "Menu" button on narrow screens ---- */
.site-nav { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.nav-menu, .nav-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-toggle { display: none; }
.nav-group { position: relative; display: inline-flex; align-items: stretch; }
.nav-top, .nav-caret {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--plate-hi); border: 2px solid var(--edge); font: inherit; font-size: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 2px 0 var(--edge); font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.nav-group > .nav-top { border-right: 0; padding-right: 8px; }
.nav-group > .nav-caret { padding: 6px 7px; border-left: 1px solid rgba(255, 255, 255, .08); color: var(--muted); }
.nav-top:hover, .nav-caret:hover { color: var(--accent-hi); }
.nav-top[aria-current="page"], .nav-group.on > .nav-top, .nav-group.on > .nav-caret {
  color: var(--accent-ink); background: var(--accent); font-weight: 600; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 2px 0 var(--edge);
}
.nav-group.on > .nav-caret { border-left-color: rgba(0, 0, 0, .25); }
.nav-group.open > .nav-caret span[aria-hidden] { display: inline-block; transform: rotate(180deg); }
.nav-drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 230px; display: flex; flex-direction: column; padding: 6px;
  background: var(--head-top); border: 2px solid var(--edge); box-shadow: 0 10px 28px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line-2); }
.nav-drop[hidden] { display: none; }
.nav-drop a, .nav-drop .link-button { display: block; padding: 9px 12px; color: var(--text); text-decoration: none; font-size: 14px; text-align: left;
  text-transform: none; letter-spacing: .02em; border-left: 3px solid transparent; }
.nav-drop a:hover, .nav-drop .link-button:hover { background: var(--plate-hi); color: var(--accent-hi); border-left-color: var(--accent); }
.nav-drop form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.nav-drop .link-button { width: 100%; background: none; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; font: inherit; }
.nav-drop-head { margin: 2px 0 6px; padding: 4px 12px 8px; border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: .04em; }
.nav-drop-head span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.nav-account .nav-drop { left: auto; right: 0; }
.nav-account > .nav-me { gap: 6px; padding: 4px 8px; border-left: 2px solid var(--edge); color: var(--text); }
.nav-me .crest { width: 28px; height: 28px; font-size: 11px; }
.nav-me-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .02em; }
.nav-login { color: var(--text); text-decoration: none; padding: 6px 8px; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.nav-login:hover { color: var(--accent-hi); }
.visitor-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 0 20px; border-left: 4px solid var(--accent); }
.visitor-cta p { margin: 0; flex: 1; min-width: 240px; }
@media (max-width: 1480px) { .nav-top, .nav-caret { letter-spacing: .06em; } .nav-top { padding: 6px 9px; } }
@media (max-width: 1100px) {
  .site-nav { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px;
    color: var(--text); background: var(--plate-hi); border: 2px solid var(--edge); text-transform: uppercase; letter-spacing: .1em; }
  .site-header { position: relative; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 17px); z-index: 70; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px 12px 14px; background: var(--head-bot); border-bottom: 3px solid var(--edge); box-shadow: 0 14px 30px rgba(0, 0, 0, .65); }
  .site-nav.menu-open .nav-menu { display: flex; }
  .nav-side { gap: 6px; }
  .nav-side .clock-pill { display: none; }
  .nav-side { margin-left: auto; }
  .nav-menu .nav-group { display: grid; grid-template-columns: 1fr auto; }
  .nav-menu .nav-drop { position: static; grid-column: 1 / -1; min-width: 0; margin-top: 2px; box-shadow: none; }
  .nav-menu > .nav-top { justify-content: flex-start; }
}
/* the old one-row menu styled every link in .site-nav: keep those rules off the new plates */
.site-nav .nav-top[aria-current="page"] { border-bottom: 2px solid var(--edge); padding-bottom: 6px; }
.site-nav .nav-top, .site-nav .nav-drop a { color: var(--text); }
.site-nav .nav-group.on > .nav-top { color: var(--accent-ink); }

/* ---- The weekly column (sh83): a sheet of newsprint on the shop floor ---- */
.column-page { max-width: 760px; margin: 0 auto; }
.newsprint { --paper: #e6dec8; --ink: #1d1b18; background: var(--paper); color: var(--ink); padding: clamp(18px, 4vw, 38px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55); transform: rotate(-.25deg); margin: 0 0 24px;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .35), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(120, 90, 40, .18), transparent 55%); }
.newsprint a { color: #7a3b12; }
.newsprint-flag { font: 700 13px/1 var(--stencil); letter-spacing: .2em; text-transform: uppercase; border-bottom: 3px double var(--ink); padding-bottom: 8px;
  margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; }
.newsprint-flag span { font-family: var(--mono); letter-spacing: .08em; }
.newsprint h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 0; line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
.newsprint-byline { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font: 13px/1.3 var(--mono); }
.newsprint-byline img { width: 52px; height: 52px; object-fit: cover; filter: grayscale(1) contrast(1.15); border: 1px solid var(--ink); }
.newsprint-byline p { margin: 0; }
.newsprint-byline span { opacity: .75; }
.newsprint-body { font: 17px/1.62 Georgia, 'Times New Roman', serif; }
.newsprint-body p { margin: 0 0 1em; }
.newsprint-body p:first-child::first-letter { float: left; font-size: 3.3em; line-height: .85; padding: 4px 6px 0 0; font-weight: 700; }
.newsprint-bio { border-top: 1px solid rgba(0, 0, 0, .35); padding-top: 10px; margin: 18px 0 0; font: italic 13px/1.5 Georgia, serif; opacity: .85; }
.column-archive { list-style: none; padding: 0; margin: 0; }
.column-archive li { border-bottom: 1px solid var(--line); }
.column-archive a { display: block; padding: 8px 4px; text-decoration: none; color: var(--text); }
.column-archive a:hover { color: var(--accent); }
.column-archive .mono { color: var(--muted); margin-right: 10px; }
.column-archive li.current a { color: var(--accent); }

/* ---- The front page (sh83) ---- */
.home-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transition: opacity 1.6s ease; }
.home-slide.on { opacity: 1; }
/* the home reel (Nov 11): a muted video behind the splash, and the player that plays it with sound */
.home-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; z-index: 1; }
.home-reel.on { opacity: 1; }
.home-watch { position: absolute; left: 16px; bottom: 10px; z-index: 2; padding: 4px 12px; border: 1px solid var(--line, #3a3a33); background: rgba(8, 8, 7, .7);
  color: var(--text); font-family: var(--mono); letter-spacing: .04em; font-size: .85rem; cursor: pointer; }
.home-watch:hover, .home-watch:focus-visible { color: var(--accent); border-color: var(--accent); }
.reel-dialog { padding: 0; border: 1px solid var(--line, #3a3a33); background: #000; max-width: min(1100px, 94vw); width: 100%; }
.reel-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.reel-dialog video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; }
.reel-dialog form { position: absolute; top: 8px; right: 8px; margin: 0; }
.reel-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: start; margin: 0 0 10px; }
.reel-row video { width: 180px; height: auto; background: #000; }
@media (max-width: 560px) { .reel-row { grid-template-columns: 1fr; } .reel-row video { width: 100%; } }
.home-hero { position: relative; }
.home-onscreen { position: absolute; right: 16px; bottom: 10px; margin: 0; padding: 2px 8px; color: var(--dim); background: rgba(8, 8, 7, .6);
  font-family: var(--mono); letter-spacing: .04em; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-onscreen::before { content: 'On screen: '; color: var(--muted); }
.home-body { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; gap: 22px; }
.home-body > .tvlog { margin: 0; }
@media (max-width: 560px) { .home-body { padding: 0 12px; } }

/* the wire: a ticker under the hero */
.wire { display: flex; align-items: stretch; margin: 0 0 22px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: rgba(8, 8, 7, .92);
  font: 13px/1 var(--mono); overflow: hidden; }
.wire-flag { flex: none; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); font-family: var(--stencil); letter-spacing: .14em; text-transform: uppercase; }
.wire-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wire-run { display: inline-flex; white-space: nowrap; animation: wire-roll 70s linear infinite; padding: 10px 0; }
.wire:hover .wire-run, .wire:focus-within .wire-run { animation-play-state: paused; }
.wire-item { padding: 0 22px; border-right: 1px solid var(--line-2); color: var(--dim); }
.wire-item b { color: var(--accent); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; margin-right: 8px; }
.wire-item a { color: var(--text); text-decoration: none; }
.wire-item a:hover { color: var(--accent); }
@keyframes wire-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wire-run { animation: none; } .wire-track { overflow-x: auto; } }

/* your outfit this week */
.mine-strip { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); border: 1px solid var(--line-2); background: rgba(20, 19, 17, .92); }
.mine-strip > a { display: grid; gap: 3px; align-content: center; padding: 12px 14px; text-decoration: none; color: var(--muted); border-left: 1px solid var(--line); font-size: 13px; }
.mine-strip > a:first-child { border-left: 0; }
.mine-strip > a:hover { background: var(--panel); }
.mine-strip strong { color: var(--text); font-size: 17px; }
.mine-crest { grid-template-columns: auto 1fr; gap: 10px !important; align-items: center; border-top: 3px solid var(--accent); }
.mine-crest > span { display: grid; gap: 2px; }
@media (max-width: 900px) { .mine-strip { grid-template-columns: 1fr 1fr; } .mine-crest { grid-column: 1 / -1; } .mine-strip > a { border-top: 1px solid var(--line); } }

/* the column on the front page */
.home-column .newsprint { margin: 0; transform: rotate(-.15deg); }
.home-column-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px 32px; }
.home-column h2 { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: 0; text-transform: none; margin: 0 0 14px; }
.home-column h2 a { color: var(--ink); text-decoration: none; }
.home-column h2 a:hover { text-decoration: underline; }
.home-column .newsprint-body { font-size: 16px; column-gap: 28px; }
.newsprint-more { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.newsprint-more::first-letter { float: none !important; font-size: inherit !important; padding: 0 !important; }
@media (max-width: 760px) { .home-column-grid { grid-template-columns: 1fr; } }

/* section frames */
.home-sec { padding: 18px 20px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(20, 19, 17, .9); }
.home-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.home-sec-head h2 { margin: 0; }
@media (max-width: 560px) { .home-sec { padding: 14px 12px; } }
.no-art { background: radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--faction, var(--accent)) 38%, transparent), transparent 65%),
  repeating-linear-gradient(135deg, var(--grid-1) 0 12px, var(--grid-2) 12px 24px) !important; }

/* last night on the circuit */
.recap-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.recap-card { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-top: 3px solid var(--faction); background: var(--panel-2); }
.recap-art { position: relative; display: block; aspect-ratio: 16 / 8; background-size: cover; background-position: center; text-decoration: none; }
.recap-where { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff; font: 700 17px/1.1 var(--font); letter-spacing: .04em; text-transform: uppercase; display: grid; gap: 3px; }
.recap-where small { font: 12px/1 var(--mono); text-transform: none; letter-spacing: .04em; color: var(--accent-text); }
.recap-text { padding: 10px 12px 12px; display: grid; gap: 8px; flex: 1; align-content: start; }
.recap-result { margin: 0; font-size: 14px; }
.recap-teaser { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; font-style: italic; }
.recap-by { margin: auto 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.recap-by img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); }
.recap-by a { margin-left: auto; white-space: nowrap; }

/* the territories */
.terr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .terr-grid { grid-template-columns: 1fr; } }
.terr-tile { border: 1px solid var(--line-2); border-left: 4px solid var(--faction); background: var(--panel-2); }
.terr-art { position: relative; display: grid; align-content: end; gap: 2px; aspect-ratio: 16 / 7; padding: 10px 12px; text-decoration: none;
  background-size: cover; background-position: center; box-shadow: inset 0 -70px 50px -20px rgba(0, 0, 0, .85); }
.terr-name { font: 22px/1 var(--stencil); color: #fff; letter-spacing: .04em; text-shadow: 0 2px 8px #000; }
.terr-arena { font: 12px/1.2 var(--mono); color: var(--accent-text); }
.terr-body { padding: 10px 12px 12px; }
.terr-quote { margin: 0 0 8px; font-style: italic; color: var(--dim); font-size: 14px; }
.terr-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.terr-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-top: 2px; }
.terr-facts dd { margin: 0; }

/* the league and the Roll */
.league-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .league-grid { grid-template-columns: 1fr; } }
.league-top, .league-kills { list-style: none; margin: 8px 0 0; padding: 0; }
.league-top li { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.league-rank { color: var(--accent); font-size: 18px; }
.league-name { display: grid; gap: 1px; }
.league-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.league-name a:hover { color: var(--accent); }
.league-pts { font-size: 18px; color: var(--accent-text); }
.league-kills li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.league-kills li > strong { font-size: 26px; color: var(--warn); text-align: center; }
.league-kills span { display: grid; gap: 1px; }
.the-roll { background: #0d0c0b; border: 1px solid var(--line-2); padding: 12px 14px; text-align: center; }
.the-roll .label-caps { color: var(--warn); letter-spacing: .3em; }
.the-roll ul { list-style: none; margin: 8px 0 0; padding: 0; }
.the-roll li { padding: 6px 0; border-bottom: 1px dotted var(--line-2); display: grid; gap: 1px; }
.roll-name { font: 16px/1.2 var(--stencil); letter-spacing: .06em; color: var(--text); }
.the-roll small { color: var(--muted); }
.roll-foot { margin: 10px 0 0; color: var(--muted); font-style: italic; }

/* life on the road */
.road-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.road-stats > div { display: grid; gap: 3px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-2); }
.road-stats strong { font-size: 20px; }
.road-boards { display: flex; flex-wrap: wrap; gap: 6px; }
.road-boards a { padding: 3px 8px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; color: var(--text); }
.road-boards a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .road-stats { grid-template-columns: 1fr; } }
.road-factions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.road-faction { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none; border: 1px solid var(--line-2); border-bottom: 3px solid var(--faction); }
.road-faction-art { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; }
.road-faction:hover .road-faction-art { transform: scale(1.04); }
.road-faction-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); color: #fff; }
.road-faction-text .crest { grid-row: 1 / 3; }
.road-faction-text strong { font-size: 15px; letter-spacing: .03em; }
.road-faction-text small { color: var(--accent-text); font-family: var(--mono); font-size: 12px; }

/* the circuit */
.circuit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .circuit-grid { grid-template-columns: 1fr; } }
.deal-list { list-style: none; padding: 0; margin: 8px 0 0; }
.deal-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.shelf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.shelf-tile { display: grid; align-content: end; gap: 2px; min-height: 96px; padding: 10px; text-decoration: none; color: #fff; border: 1px solid var(--line-2);
  background-size: cover; background-position: center; box-shadow: inset 0 -60px 40px -16px rgba(0, 0, 0, .85); }
.shelf-tile small { color: var(--accent-text); font-family: var(--mono); }

/* how it works */
.how-it-works .home-features { list-style: none; margin: 0; padding: 0; max-width: none; }
.how-it-works .home-features li { display: grid; }
.how-it-works .label-caps .num { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.how-foot { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }

/* the guide (placeholder) */
.guide-page { max-width: 1100px; margin: 0 auto; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.guide-links, .guide-steps { padding-left: 18px; display: grid; gap: 6px; }

/* word from below: the underground's cards, for insiders only, kept small and off the TV log (sh83b) */
.below { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 8px 14px; border: 1px dashed var(--line-2); background: rgba(8, 8, 7, .9);
  font: 12px/1.4 var(--mono); color: var(--muted); }
.below-flag { margin: 0; color: var(--warn); text-transform: uppercase; letter-spacing: .18em; }
.below-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1; }
.below-list a { color: var(--dim); }
.below-list span { margin-left: 6px; }
.below-foot { margin: 0; font-style: italic; }

/* admin: travel speeds and pace (migration 045) */
.travel-tuning { margin-bottom: 18px; }
.tuning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 10px 0; }
.tuning-grid label { display: grid; gap: 4px; }

/* the TV Log's print ads (Nov 7): one workshop item at a time, like the ads beside an old TV listings magazine */
.tv-ads { position: sticky; top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.tv-ad-flag { margin: 0; font: 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-align: center; }
.tv-ad { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; text-decoration: none; color: var(--text); border: 2px dashed var(--line-2); background: #0d0c0b; outline-offset: 2px; }
.tv-ad[hidden] { display: none; }
.tv-ad.on { animation: tv-ad-in .5s ease; }
@keyframes tv-ad-in { from { opacity: 0; } to { opacity: 1; } }
.tv-ad:hover { border-color: var(--accent); }
.tv-ad-art { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 16 / 9; background-size: cover; background-position: center; filter: saturate(.9); }
.tv-ad-art .crest { position: absolute; left: 8px; bottom: -18px; box-shadow: 0 0 0 3px #0d0c0b; }
.tv-ad-body { display: grid; gap: 5px; padding: 24px 12px 12px; }
.tv-ad-item { overflow-wrap: anywhere; font: 400 21px/1.05 var(--stencil); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tv-ad-effect { font: 700 13px/1.2 var(--mono); color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.tv-ad-blurb { font-style: italic; color: var(--dim); font-size: 13px; line-height: 1.4; }
.tv-ad-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.tv-ad-price b { font-size: 22px; color: var(--text); }
.tv-ad-price small { color: var(--warn); font-size: 12px; }
.tv-ad-shop { font: 12px/1.3 var(--mono); color: var(--muted); border-top: 1px dotted var(--line-2); padding-top: 6px; }
.tv-ad-dots { display: flex; justify-content: center; gap: 6px; }
.tv-ad-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.tv-ad-dots button.on { background: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .tv-ads { position: static; } }

/* broadcast branding (migration 046): station bugs, the TV Log masthead, CST */
.tvlog-logo { height: 44px; width: auto; display: block; }
.tvlog-ch { display: inline-flex; align-items: center; gap: 5px; }
.tvlog-ch img, .closeup-bug { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.closeup-bug { width: 20px; height: 20px; margin-right: 4px; }
.tvlog-cst { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.tvlog-cst p { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.tvlog-cst img { height: 34px; width: auto; flex: none; }
.cst-mark { flex: none; padding: 4px 8px; border: 2px solid var(--accent); color: var(--accent); font: 400 16px/1 var(--stencil); letter-spacing: .1em; }
.cst-credit { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-left: auto; margin-right: 14px; }
.cst-credit img { height: 22px; width: auto; }
.cst-credit b { color: var(--accent); letter-spacing: .1em; }
.recap-art .station-bug { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; object-fit: contain; opacity: .85; filter: drop-shadow(0 1px 3px #000); }
.arena-map { position: relative; }
.tv-bug { position: absolute; top: 10px; right: 10px; display: grid; justify-items: center; gap: 2px; pointer-events: none; opacity: .82; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .9)); }
.tv-bug img { width: 52px; height: 52px; object-fit: contain; }
.tv-bug b { padding: 3px 6px; border: 2px solid #fff; color: #fff; font: 700 13px/1 var(--mono); letter-spacing: .08em; background: rgba(0, 0, 0, .45); }
.tv-bug small { font: 700 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: #b3261e; padding: 2px 4px; }
.booth-head-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.booth-station { width: 26px; height: 26px; object-fit: contain; }
.station-logo-admin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.station-logo-admin img { width: auto; max-width: 140px; }

/* ---- personal gear (M18) ---- */
.gear-jump { margin: 0 0 18px; color: var(--dim); }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.gear-crew { width: 100%; border-collapse: collapse; font-size: 14px; }
.gear-crew th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.gear-crew td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gear-crew td a { display: inline-flex; align-items: center; gap: 6px; }
.gear-crew td .chip { display: inline-block; margin: 2px 4px 2px 0; }
.gear-crew .num { text-align: right; white-space: nowrap; }
.chip-warn { border-color: var(--warn); color: var(--warn); }
.gear-locker, .kit-list, .gear-shelf { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 6px; }
.gear-locker li, .kit-list li, .gear-shelf li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; }
.kit-list li { padding: 6px 8px; }
.gear-shelf li > div { flex: 1 1 280px; min-width: 0; }
.gear-shelf li p { margin: 2px 0 0; }
.gear-shelf li.locked { opacity: .6; }
.gear-shelf .row-form { flex: 0 0 auto; margin: 0; }
.gear-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.gear-acts form { margin: 0; }
.input-qty, .field input.input-qty { width: 4.2em; padding: 6px 8px; }
.kit-sum { margin: 6px 0 10px; }
.loadout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 10px 0 16px; }
.loadout-card h3 { margin: 0 0 6px; font-size: 16px; }
.loadout-card ul { margin: 0 0 6px; padding-left: 18px; }
.loadout-card p { margin: 4px 0 0; }
.loadout-editor { margin: 0 0 24px; }
.loadout-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 14px; margin: 8px 0; }
.loadout-pick label { display: flex; align-items: center; gap: 8px; }
.loadout-pick .input-qty { width: 3.6em; flex: 0 0 auto; }
.gear-rules li { margin-bottom: 6px; }
.kit-plan { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.kit-plan li { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; }
.kit-plan h3 { margin: 0 0 4px; font-size: 16px; }
.kit-plan p { margin: 2px 0; }
.kit-bill { font-size: 18px; margin: 12px 0; }

/* ---- the book (M19) ---- */
.book-board { margin: 0 0 18px; }
.book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.book-head h2 { margin: 0; }
.book-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.book-table th { text-align: left; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.book-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.book-table .num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.book-table tr.mine td { background: var(--accent-bg); }
.book-table tr.book-draw td { color: var(--dim); }
.book-slip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.book-slip select.input { flex: 1 1 220px; width: auto; min-width: 0; }
.book-stake { width: 7.5em; flex: 0 0 auto; }
.slip-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.slip-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-left: 3px solid var(--line-2); background: var(--panel-2); }
.slip-list li.slip-won { border-left-color: var(--ok, #6c6); }
.slip-list li.slip-lost { border-left-color: var(--warn); color: var(--dim); }
.slip-list li.slip-void { color: var(--dim); }
.book-heats { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 8px; }
.book-heats li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.book-heats li > div:first-child { flex: 1 1 260px; min-width: 0; }
.book-heats li.under { border-color: #6b3b8a; }
.event-layout > * { min-width: 0; }

/* ---- invitationals (M20) ---- */
.main-events { margin: 18px 0; }
.main-events-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.main-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.main-event { display: grid; gap: 4px; text-decoration: none; color: var(--muted); border-top: 3px solid var(--accent); min-width: 0; }
.main-event:hover { background: var(--panel-2); }
.main-event.mine { border-top-color: var(--ok); }
.main-event-name { color: var(--text); font-size: 20px; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; }
.main-event-money { color: var(--ok); font: 700 22px/1 var(--mono); }
.main-event-hype { color: var(--text); font-style: italic; }
.main-event .badge { justify-self: start; }
.inv-billing { margin: 0 0 18px; border-top: 3px solid var(--accent); }
.inv-tape { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 10px 0; }
.inv-tape > div { display: grid; gap: 2px; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line); }
.inv-tape strong { color: var(--text); font-size: 18px; }
.inv-angle { font-size: 17px; margin: 8px 0 12px; }
.inv-guests { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 6px; }
.inv-guests li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-guests li.mine a { color: var(--accent-text); font-weight: 600; }
.inv-guests li.inv-declined, .inv-guests li.inv-withdrawn, .inv-guests li.inv-no_show { opacity: .6; }
.inv-mine { padding: 12px; background: var(--accent-bg); border: 1px solid var(--accent); margin-top: 10px; }
.inv-mine form { margin: 8px 0; }
.inv-mine select.input { width: auto; flex: 1 1 220px; min-width: 0; }
.promo-piece { margin: 0 0 18px; }
.promo-piece h2 { margin: 4px 0 10px; }
.promo-admin { margin: 10px 0; }
.inv-admin-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 6px; }
.inv-admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-form .inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 10px; }
.inv-form label { display: grid; gap: 4px; font-size: 13px; }
.inv-form label.checks { display: flex; align-items: center; gap: 8px; }
.crest-xs, .avatar-xs { width: 24px; height: 24px; font-size: 9px; }
.tape-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 8px 0 14px; }
.tape-grid.tape-3, .tape-grid.tape-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tape-grid.tape-3 .tape-vs, .tape-grid.tape-4 .tape-vs { display: none; }
.tape-vs { align-self: center; font: 700 26px/1 var(--mono); text-transform: uppercase; color: var(--accent); letter-spacing: .1em; }
.tape-card { display: grid; gap: 10px; align-content: start; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.tape-card.mine { border-color: var(--accent); }
.tape-open { place-content: center; text-align: center; min-height: 180px; }
.tape-open strong { font-size: 42px; color: var(--dim); }
.tape-pic { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #0d0c0b; border: 1px solid var(--line); overflow: hidden; }
.tape-pic img { width: 100%; height: 100%; object-fit: contain; }
.tape-outfit { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tape-outfit > div { display: grid; min-width: 0; }
.tape-facts { margin: 0; display: grid; gap: 6px; }
.tape-facts > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; align-items: center; }
.tape-facts dt { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tape-facts dd { margin: 0; color: var(--text); }
.tape-driver { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
@media (max-width: 640px) { .tape-grid { grid-template-columns: minmax(0, 1fr); } .tape-vs { justify-self: center; } }
.tape-pic.car-picture { background: radial-gradient(ellipse at 50% 55%, #3a362f, #121110 78%); } .tape-pic.car-picture img { padding: 6px 10px; }

/* ---- the world and the player's guide ---- */
.doc-page { max-width: 1180px; margin: 0 auto; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.doc-toc { position: sticky; top: 16px; }
.doc-toc ol { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.doc-body { min-width: 0; max-width: 78ch; }
.doc-body section { margin: 0 0 34px; scroll-margin-top: 16px; }
.doc-body h2 { border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.doc-body p, .doc-body li, .doc-body dd { line-height: 1.6; }
.doc-points { padding-left: 20px; display: grid; gap: 8px; }
.doc-steps { padding-left: 22px; display: grid; gap: 10px; }
.doc-glossary { display: grid; gap: 8px; margin: 10px 0 16px; }
.doc-glossary > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 8px 10px; background: var(--panel-2); border-left: 3px solid var(--line-2); }
.doc-glossary dt { color: var(--text); font-weight: 600; }
.doc-glossary dd { margin: 0; }
.doc-faq dt { color: var(--text); font-weight: 600; margin-top: 12px; }
.doc-faq dd { margin: 4px 0 0; }
.doc-fig { margin: 12px 0 18px; }
.doc-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); background: #0d0c0b; }
.doc-fig figcaption { font-size: 13px; color: var(--dim); margin-top: 6px; }
.doc-fig-narrow { float: right; width: min(42%, 320px); margin: 4px 0 14px 20px; }
.doc-body section::after { content: ''; display: table; clear: both; }
.doc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.doc-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.world-terr { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 12px 0; }
.world-terr-card { display: grid; gap: 4px; text-decoration: none; color: var(--muted); border-top: 3px solid var(--terr, var(--accent)); align-content: start; min-width: 0; }
.world-terr-card strong { color: var(--text); font-size: 18px; }
.world-terr-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: -4px -4px 6px; background: #0d0c0b; }
.world-terr-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .doc-fig-narrow { float: none; width: 100%; max-width: 360px; margin: 12px 0; }
  .doc-glossary > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- the ledger (/outfit/ledger) ---------- */
.ledger { display: flex; flex-direction: column; gap: 20px; }
.ledger h1 { margin: 0; }
.ledger .lede { margin: 0; }
.ledger .up { color: var(--ok); }
.ledger .down { color: var(--warn); }
.ledger .flat { color: var(--muted); }
.ledger-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ledger-tile { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 12px 16px; }
.ledger-tile strong { font: 600 26px/1.2 var(--mono); }
.ledger-panel h2 { margin: 0 0 2px; }
.ledger-panel > .small.muted { margin: 0 0 12px; }
.ledger-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.ledger-table th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.ledger-table td { padding: 7px 10px; border-bottom: 1px solid var(--grid-2); vertical-align: top; }
.ledger-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-table a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--rivet); }
.ledger-table a:hover { color: var(--accent-hi); border-bottom-color: var(--accent); }
.ledger-side td { padding-top: 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 0; }
.ledger-side-in td { color: var(--ok); }
.ledger-side-out td { color: var(--warn); }
.ledger-total td { font-weight: 600; border-top: 1px solid var(--line-2); }
.ledger-net td { font-weight: 600; font-size: 17px; border-top: 2px solid var(--accent); padding-top: 10px; }
.ledger .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: baseline; }
.ledger-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ledger-chart-head .small.muted { margin: 0; }
.ledger-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-toggles .pills { display: flex; gap: 0; }
.ledger-toggles .pills[hidden] { display: none; }
.ledger-chart { display: flex; align-items: flex-end; gap: 12px; min-width: 480px; height: 290px; padding: 0 4px; border-bottom: 1px solid var(--line-2);
  background: repeating-linear-gradient(to top, transparent 0 52px, var(--grid-2) 52px 53px); }
.ledger-week { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 34px; position: relative; }
.ledger-week[hidden] { display: none; }
.ledger-net-label { font: 12px var(--mono); margin-bottom: 4px; white-space: nowrap; }
.ledger-bars { display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; }
.ledger-bar { display: flex; flex-direction: column-reverse; width: 42%; max-width: 30px; }
.ledger-bar .seg { display: block; min-height: 0; transition: height .2s; }
.ledger-bar-in .seg-total { background: var(--ok); }
.ledger-bar-out .seg-total { background: var(--warn); }
.ledger-bar .seg-cat { border-top: 1px solid var(--panel); }
.ledger-chart[data-view="totals"] .seg-cat, .ledger-chart[data-view="cats"] .seg-total { display: none; }
.ledger-week-label { position: absolute; top: 100%; margin-top: 6px; text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.ledger-week-label .mono { color: var(--dim); }
#ledger-chart .table-wrap { padding-bottom: 42px; }
.ledger-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); margin-top: 6px; }
.ledger-legend[hidden] { display: none; }
.ledger-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ledger-share { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ledger-share-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ledger-share-row a { color: var(--text); text-decoration: none; }
.ledger-share-row a:hover { color: var(--accent-hi); }
.ledger-share-bar { display: block; height: 8px; background: var(--grid-2); margin-top: 3px; }
.ledger-share-bar i { display: block; height: 8px; }
.ledger-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-filter label { display: flex; flex-direction: column; gap: 3px; }
.ledger-filter .input { width: auto; min-width: 150px; }
.ledger-cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ledger-entries .nowrap { white-space: nowrap; }
.ledger-pages { display: flex; justify-content: space-between; margin: 12px 0 0; }
.ledger-pages:empty { display: none; }
.ledger-table .narrow { display: none; }
@media (max-width: 600px) {
  .ledger-tile strong { font-size: 20px; }
  .ledger-table .wide { display: none; }
  .ledger-table .narrow { display: inline; }
  .ledger-weeks, .ledger-cars { min-width: 0; font-size: 14px; }
  .ledger-weeks .num, .ledger-cars .num { font-size: 13px; }
  .ledger-weeks th:nth-child(4), .ledger-weeks td:nth-child(4) { display: none; }
  .ledger-weeks th, .ledger-weeks td, .ledger-cars th, .ledger-cars td { padding-left: 4px; padding-right: 4px; }
  .ledger-table th { letter-spacing: .06em; }
  /* the entries become cards: when and amount, what, car and balance */
  .ledger-entries { min-width: 0; }
  .ledger-entries thead { display: none; }
  .ledger-entries tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--grid-2); }
  .ledger-entries td { border: 0; padding: 1px 4px; }
  .ledger-entries td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 13px; }
  .ledger-entries td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .ledger-entries td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ledger-entries td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 13px; }
  .ledger-entries td:nth-child(5) { grid-column: 2; grid-row: 3; font-size: 13px; }
  .ledger-entries td:nth-child(3) .muted { display: none; }
  .ledger-filter label { flex: 1 1 140px; }
  .ledger-filter .input { width: 100%; min-width: 0; }
}
/* admin: AI scenic shots of one car (/admin/teams/{id}/cars) */
.car-ai { margin: 12px 0; border: 1px solid var(--line-2); border-radius: 2px; padding: 0 12px; background: var(--panel-2); }
.car-ai[open] { padding-bottom: 12px; }
.car-ai summary { cursor: pointer; padding: 10px 0; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--accent-hi); }
.car-ai textarea { width: 100%; resize: vertical; }
.car-ai-engines { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.car-ai-engines legend { padding: 0; margin-bottom: 4px; color: var(--muted); }
.car-ai .car-ai-engines label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.car-ai .car-ai-engines input[type="radio"] { width: auto; margin: 0; flex: none; }
/* a car's pictures: the garage bay's Pics tab, the lot's "N pictures", and the viewer they open in */
.bay-pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bay-pics a { display: block; border: 1px solid var(--line-2); background: var(--panel-2); }
.bay-pics a:hover, .bay-pics a:focus-visible { border-color: var(--accent); }
.bay-pics img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick-wrap { position: relative; }
.pick-pics { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); background: rgba(8, 8, 7, .78);
  border: 1px solid var(--line-2); border-radius: 2px; }
.pick-pics:hover, .pick-pics:focus-visible { color: var(--accent-hi); border-color: var(--accent); }
.pick-pics .icon { width: 16px; height: 16px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(4, 4, 3, .95); }
.lightbox-fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 64px; box-sizing: border-box; }
.lightbox-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border: 1px solid var(--line-2); background: var(--panel-2); }
.lightbox-fig figcaption { display: flex; gap: 14px; align-items: baseline; color: var(--dim); font-size: 14px; }
.lightbox-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lightbox-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-size: 32px; line-height: 1;
  color: var(--text); background: rgba(27, 26, 23, .85); border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { color: var(--accent-hi); border-color: var(--accent); }
.lightbox-btn[hidden] { display: none; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 10px; top: 10px; }
@media (max-width: 600px) {
  .lightbox-fig { padding: 60px 8px 70px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 10px; transform: none; }
}

/* ---------- the showroom (/showroom, /showroom/{id}) ---------- */
.showroom { display: flex; flex-direction: column; gap: 18px; }
.showroom h1 { margin: 0; }
.showroom .lede { margin: 0; }
.sr-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sr-filter label { display: flex; flex-direction: column; gap: 3px; }
.sr-filter .input { width: auto; min-width: 170px; }
.sr-count { margin-left: auto; }
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.sr-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.sr-art { position: relative; height: 200px; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); }
.sr-art > a:first-child { display: block; height: 100%; overflow: hidden; }
.sr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-crest { position: absolute; left: 12px; bottom: -22px; }
.sr-crest .crest { width: 48px; height: 48px; border: 2px solid var(--bg); border-radius: 10px; background: var(--panel-2); }
.sr-body { display: flex; flex-direction: column; gap: 6px; padding: 30px 16px 16px; flex: 1; }
.sr-body h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.sr-body h2 a { color: var(--text); text-decoration: none; }
.sr-body h2 a:hover { color: var(--accent-hi); }
.sr-kicker { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.sr-kicker a { color: inherit; text-decoration: none; }
.sr-specs { margin: 0; font: 13px var(--mono); color: var(--muted); }
.sr-crew { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sr-crew li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.sr-crew .avatar { width: 26px; height: 26px; }
.sr-more { margin-top: auto; padding-top: 10px; font-size: 14px; }
.sr-gone .sr-art img, .sr-gone .sr-hero img { filter: grayscale(1) contrast(1.1); }
.sr-grid-gone { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sr-grid-gone .sr-art { height: 130px; }
.sr-lot { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; }
.sr-lot a { display: flex; flex-direction: column; gap: 2px; width: 150px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding-bottom: 8px; }
.sr-lot a:hover { border-color: var(--accent); }
.sr-lot .sr-lot-art { display: block; height: 90px; margin-bottom: 6px; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); }
.sr-lot img { width: 100%; height: 100%; object-fit: contain; }
.sr-lot .sr-kicker, .sr-lot-name, .sr-lot .small { padding: 0 10px; }
.sr-lot-name { font-size: 15px; }
/* one car */
.sr-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sr-gallery { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sr-hero { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(ellipse at center, #24221d, #0c0b0a 75%); border: 1px solid var(--line); }
.sr-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-brand { color: #6b6355; font-size: 13px; }
.sr-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.sr-thumbs a { display: block; border: 1px solid var(--line-2); }
.sr-thumbs a:hover { border-color: var(--accent); }
.sr-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sr-facts { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sr-facts h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; }
.sr-facts h2 { margin: 6px 0 0; font-size: 16px; }
.sr-sub { margin: 0; color: var(--dim); }
.sr-record { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sr-record div { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.sr-record dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sr-record dd { margin: 0; font: 600 24px var(--mono); }
.sr-person { display: flex; gap: 12px; align-items: center; padding: 10px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); }
.sr-person:hover { border-color: var(--accent); }
.sr-person > span { display: flex; flex-direction: column; }
.sr-role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
/* the spec card: a pocket card in ink on cream, like the printed counters */
.spec-card { --ink: #1d1b18; --card: #efe6cf; --cell: #fff8e6; background: var(--card); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 0 0 0 6px #b9ad8e, 0 0 0 9px var(--ink); margin: 14px 9px; padding: 20px; display: flex; flex-direction: column; gap: 16px; font-family: var(--mono); }
.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; font-size: 14px; }
.sc-title { font: 30px var(--stencil); letter-spacing: .04em; text-transform: uppercase; }
.sc-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.sc-armor-box { flex: 1 1 280px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sc-label { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.sc-armor-box > .sc-label { align-self: stretch; text-align: center; }
.sc-armor-grid { display: grid; grid-template-columns: 64px 120px 64px; grid-template-areas: ". f ." "l c r" ". b ."; gap: 8px; align-items: center; justify-items: center; }
.sc-armor { display: inline-block; padding: 4px 10px; border: 2px solid var(--ink); background: var(--cell); font-size: 18px; white-space: nowrap; }
.sc-armor b { font-weight: 400; color: #6b6355; }
.sc-metal { font-size: 13px; color: #6b6355; } /* the metal plating over a side (Nov 22) */
.sc-armor-f { grid-area: f; } .sc-armor-l { grid-area: l; } .sc-armor-r { grid-area: r; } .sc-armor-b { grid-area: b; }
.sc-counter { grid-area: c; width: 110px; }
.sc-counter svg { display: block; width: 100%; height: auto; }
.sc-tu { margin: 0; display: flex; gap: 8px; }
.sc-main { flex: 2 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sc-main > div > .sc-label { border-bottom: 2px solid var(--ink); }
.sc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sc-table td { padding: 5px 0; border-bottom: 1px dashed #8f8a7c; }
.sc-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.sc-none { margin: 0; }
.sc-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sc-big { margin: 0 0 4px; font: 26px var(--stencil); }
.sc-bar { display: block; height: 12px; border: 2px solid var(--ink); background: var(--cell); }
.sc-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 8px); }
.sc-pips { display: flex; gap: 4px; }
.sc-pips i { flex: 1; height: 12px; border: 2px solid var(--ink); background: var(--cell); }
.sc-pips i.on { background: var(--ink); }
.sc-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 18px; font-size: 14px; }
.sc-facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #8f8a7c; }
.sc-facts dt { text-transform: uppercase; }
.sc-facts dd { margin: 0; text-align: right; }
.sc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 3px solid var(--ink); padding-top: 8px; font-size: 12px; }
.sc-print { font: inherit; font-size: 13px; padding: 6px 12px; min-height: 36px; color: var(--ink); background: var(--cell); border: 2px solid var(--ink); cursor: pointer; }
.sc-print:hover { background: var(--ink); color: var(--card); }
@media (max-width: 600px) {
  .sc-gauges { grid-template-columns: 1fr 1fr; }
  .sr-filter .input { min-width: 0; width: 100%; }
  .sr-filter label { flex: 1 1 140px; }
}
/* sh239: a weapon's ammunition under its name; the card's buttons */
.sc-ammo { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .04em; color: #5a5346; }
.sc-buttons { display: inline-flex; flex-wrap: wrap; gap: 8px; }
a.sc-print { display: inline-flex; align-items: center; text-decoration: none; }
/* sh239: the spec card in a window on the garage page (spec-card.js) */
dialog.card-modal { padding: 0; border: 0; background: transparent; width: min(1040px, 96vw); max-width: 96vw; max-height: 94vh; overflow: auto; }
dialog.card-modal::backdrop { background: rgba(4, 4, 3, .82); }
dialog.card-modal .spec-card { margin: 12px; }
.card-modal-wait { margin: 0; padding: 24px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); }
.bay-menu button[data-spec-card] { padding: 6px 8px; font: inherit; font-size: 14px; text-align: left; color: var(--text); background: none; border: 0; cursor: pointer; }
.bay-menu button[data-spec-card]:hover { background: var(--panel); color: var(--accent); }
@media print {
  /* with the card's window open, only the window prints (the garage page behind it takes no paper) */
  body.card-open > :not(dialog.card-modal) { display: none !important; }
  body.card-open dialog.card-modal { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; max-height: none; margin: 0; overflow: visible; }
  body.card-open .sc-buttons { display: none; }
  body * { visibility: hidden; }
  .spec-card, .spec-card * { visibility: visible; }
  .spec-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sc-print { display: none; }
}
/* the printable crew card (Nov 22): the spec card's look */
.crew-card-page { max-width: 980px; margin: 0 auto; }
.cc-left { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cc-who { display: flex; gap: 14px; align-items: flex-start; }
.cc-photo { flex: none; border: 2px solid var(--ink); background: var(--cell); line-height: 0; }
.cc-photo .avatar { border-radius: 0; }
.cc-facts { grid-template-columns: 1fr; flex: 1; }
.cc-rule { border-bottom: 2px solid var(--ink); }
.cc-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.cc-dots i { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cell); }
.cc-dots i.on { background: var(--ink); }
.cc-why { display: block; font-size: 12px; color: #6b6355; }
.cc-empty { color: #8f8a7c; }
.kit-card-link { margin-left: 8px; vertical-align: middle; }
@media print { .no-print { display: none; } }
/* admin: the control tower (/admin/dispatch) */
.tower { display: flex; flex-direction: column; gap: 18px; }
.tower h1 { margin: 0; }
.tower .lede { margin: 0; }
.tower-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tower-tiles .panel { display: flex; flex-direction: column; gap: 2px; }
.tower-tiles strong { font: 600 18px var(--mono); }
.tower-alert { border-color: var(--warn-line); background: var(--warn-bg); }
.tower-alert .label-caps { color: var(--warn); }
.tower-ok { color: var(--ok); margin: 0; }
.tower-panel h2 { margin: 0 0 6px; }
.tower-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tower-head .input { width: auto; min-width: 200px; }
.tower-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tower-table th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); }
.tower-table td { padding: 8px; border-bottom: 1px solid var(--grid-2); vertical-align: top; }
.tower-table .nowrap { white-space: nowrap; }
.tower-table tr.tower-locked td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tower-table tr.tower-late td { background: var(--warn-bg); }

/* ---------------------------------------------------------------- VE1-M0: multi-stop trips, Channel 19, expansion switches */
.trip-stops .stop-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.stop-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding-bottom: 6px; border-bottom: 1px dashed var(--grid-2); }
.stop-row select[name="stop_action[]"] { grid-column: 2 / -1; grid-row: 2; }
.stop-row .input { min-width: 0; }
.stop-num { font: 600 13px var(--mono); color: var(--accent); text-align: center; border: 1px solid var(--line-2); border-radius: 2px; line-height: 22px; }
.stop-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stop-tools .icon { width: 14px; height: 14px; }
.stop-times { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.stop-times li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-bg); }
.stop-times li.done { border-left-color: var(--ok-line); background: var(--panel-2); opacity: .8; }
.stop-times .icon { width: 14px; height: 14px; vertical-align: -2px; }
.drop-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.drop-list li { padding: 6px 10px; border: 1px solid var(--ok-line); background: var(--ok-bg); border-radius: 2px; }
.drop-list li.late { border-color: var(--warn-line); background: var(--warn-bg); }

.cb-log { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 0; font: 14px/1.45 var(--mono); }
.cb-log li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--grid-2); }
.cb-panel .cb-log li, .exp-panel .cb-log li { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.cb-log li:last-child { border-bottom: 0; }
.cb-when { color: var(--muted); font-size: 12px; }
.cb-handle { color: var(--accent-text); font-weight: 400; }
.cb-log li.cb-mine { box-shadow: inset 3px 0 0 var(--warn); padding-left: 8px; }
.cb-log li.cb-tip .cb-say { color: var(--dim); font-style: italic; }
.cb-log li.cb-league .cb-handle { color: var(--ok); }
.cb-head { display: flex; gap: 18px; align-items: flex-start; }
.cb-dial { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 28px var(--stencil); color: var(--accent-ink);
  background: radial-gradient(circle at 35% 30%, var(--accent-hi), var(--accent) 60%, var(--rust)); border: 3px solid var(--edge); box-shadow: 0 0 0 2px var(--rivet); }
.cb-panel { padding: 6px 16px; }
.cb-route { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.cb-route .icon, .cb-strip .label-caps .icon { width: 14px; height: 14px; vertical-align: -2px; }
.cb-strip { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; }
.cb-strip .cb-dial { width: 44px; height: 44px; font-size: 19px; }
.cb-strip-body { min-width: 0; flex: 1; }
.cb-strip .label-caps { margin: 0; display: flex; gap: 10px; align-items: baseline; }
@media (max-width: 600px) {
  .cb-panel .cb-log li, .exp-panel .cb-log li { grid-template-columns: 1fr; gap: 2px; }
  .cb-head { flex-direction: column; gap: 8px; }
}

.exp-panel h2 { margin: 0 0 8px; }
.exp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.exp-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 2px; }
.exp-row p { margin: 4px 0 0; }
.exp-row.exp-on { border-color: var(--ok-line); box-shadow: inset 3px 0 0 var(--ok); }
.exp-row.exp-later { opacity: .6; }
@media (max-width: 600px) { .exp-row { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------- VE1-M0b: cycles and trikes in the workbench */
.body-group { display: block; width: 100%; margin: 6px 0 2px; }
.body-group:first-child { margin-top: 0; }
.zone-none { display: grid; place-items: center; opacity: .55; border-style: dashed; }

/* VE1-M0b: the Chain Gang, the riders' undercard, set apart from the car fights in rust and a chain-link edge */
.badge-chain { border-color: var(--rust); color: #e6a271; background: rgba(176, 101, 47, .12); }
.chain-head { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 4px; padding-top: 18px; border-top: 1px dashed var(--rust); }
.chain-head h2 { margin: 0 0 4px; color: #e6a271; }
.chain-head .eyebrow { margin: 0; }
.chain-head p.small { margin: 0; max-width: 72ch; }
.chain-mark { flex: 0 0 auto; width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--rust);
  background: radial-gradient(circle at 50% 50%, transparent 7px, var(--rust) 7px 10px, transparent 10px),
              repeating-conic-gradient(var(--rust) 0 12deg, transparent 12deg 30deg); }
.heat.heat-chain { border-color: rgba(176, 101, 47, .55);
  background-image: repeating-linear-gradient(90deg, var(--rust) 0 10px, transparent 10px 14px); background-size: 100% 3px; background-repeat: no-repeat; }
.heat.heat-chain h2 a:hover { color: #e6a271; }
.heat.heat-chain.mine { box-shadow: inset 3px 0 0 var(--rust); }
.chain-before { margin: 6px 0 0; color: #d9b495; }
.chain-before a { color: inherit; }
.chain-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 0; }

/* VE1-M0b: the replay's vehicle shapes, their legend, and pointing at them */
.replay-car.out .rs-body { fill: #4d4942; }
.replay-car .replay-marker:hover .rs-body, .replay-car.lit .rs-body { stroke: #fff; stroke-width: .2; }
.arena-map.shape-lit .replay-car:not(.lit) { opacity: .18; }
.arena-map.shape-lit .replay-car.lit, .arena-map.focusing.shape-lit .replay-car.lit:not(.on) { opacity: 1; }
.rs-icon, .arena-map .rs-icon { width: 18px; height: 18px; vertical-align: -4px; overflow: visible; }
.track-key .track-btn .rs-icon { margin-right: 4px; }
.replay-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.replay-legend[hidden] { display: none; }
.replay-legend-item { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 2px; cursor: default; }
.replay-legend-item:hover, .replay-legend-item:focus { border-color: var(--accent); outline: none; color: var(--text); }
/* the counters in the replay: the fight colour shows as an outline round the car's own paint */
.replay-car.out:not(.has-wreck) .rs-token { filter: grayscale(1) brightness(.55); }
.replay-car.out .rs-ol feFlood { flood-color: #4d4942; }
.replay-car .replay-marker:hover .rs-ol feFlood, .replay-car.lit .rs-ol feFlood { flood-color: #fff; }
/* EV2-M2: helicopters in the replay (AIR tag and shadow in the air; a crash ring once down) */
.replay-car .rs-crash { display: none; }
.replay-car.down .rs-crash { display: inline; }
.replay-car.down .rs-air, .replay-car.down .rs-rotor, .replay-car.down .replay-x { display: none; }
.replay-car.out:not(.down) .rs-air { opacity: .45; }

/* Admin road trouble (/admin/road) */
.road-trip { margin-bottom: 16px; }
.road-trip h2 { margin: 0 0 4px; }
.road-trip p { margin: 2px 0; }
.road-trip-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.road-stage { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.road-stage label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.road-trip .tower-table { min-width: 0; margin-top: 12px; }

/* Hauling and the Blue Papers in the trip planner (VE1-M1 drop 3) */
.convoy-pick .convoy-car { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 4px 0; }
.convoy-pick .input-small { padding: 4px 8px; font-size: 13px; max-width: 100%; }
.blue-papers { border-left: 3px solid #3d7bd9; padding-left: 12px; }
.blue-papers .ok-text { color: var(--ok, #8cf07a); }
.blue-check { border-color: #3d7bd9; }
.black-tickets { border-left: 3px solid #e8892b; padding-left: 12px; } /* the LRA's Black Tickets (E2-M4 drop 3): oil orange */
.black-tickets .ok-text { color: var(--ok, #8cf07a); }
.black-check { border-color: #e8892b; }
.trip-blue { color: #8fb6ff; }
.trip-black { color: #f0a85a; }

/* Haulers' Hall, Memphis (VE1-M2) */
.panel-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.hall-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr); gap: 14px; margin: 10px 0 24px; }
@media (max-width: 720px) { .hall-grid { grid-template-columns: 1fr; } }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 11em 1fr; gap: 2px 12px; padding: 6px 10px; border-left: 3px solid var(--line-2); background: var(--panel-2); }
.ladder li .small { grid-column: 2; }
.ladder li.reached { border-left-color: var(--ok); }
.ladder-need { font-family: var(--mono); color: var(--dim); }
.ladder li.reached .ladder-need { color: var(--ok); }
@media (max-width: 520px) { .ladder li { grid-template-columns: 1fr; } .ladder li .small { grid-column: 1; } }
.hall-lot { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 12px; }
.hall-truck { display: flex; flex-direction: column; gap: 6px; }
.hall-truck p { margin: 0; }
.hall-truck-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: #000; }
.hall-lease { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.hall-sign { display: flex; gap: 8px; align-items: center; }
.hall-sign .input { flex: 1; min-width: 0; }
.hall-sign .button { flex: none; white-space: nowrap; }
.hall-actions { min-width: 15em; }
.hall-actions .inline-form { margin: 0 4px 4px 0; }
/* the board's truck-load filter (VE1-M2 drop 3) */
.jobs-loads { margin: 0 0 12px; }

/* Million Mile (VE1-M3): the Exchange's gold mile marker beside an outfit's name */
.badge-gold.million-mile { color: #111; background: linear-gradient(180deg, #f2cf55, #c99a17); border-color: #8a6a0e; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.badge-gold.million-mile .icon { width: 13px; height: 13px; }
h1 .million-mile { font-size: 12px; letter-spacing: .1em; }
.job-needs { color: var(--accent-hi); }

/* Channel 19 handles (VE1-M4) */
.handle { font-weight: 700; letter-spacing: .04em; }
.handle-good_buddy { color: #8cc45c; } .handle-known { color: #b9d27a; } .handle-clean { color: var(--muted); }
.handle-marked { color: #e0a050; } .handle-blacklisted { color: #e0607a; }
.handle-log { list-style: none; padding: 0; margin: .5rem 0 0; } .handle-log li { padding: 2px 0; }

/* Convoys (VE1-M5) */
.convoy-role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 0 0 10px; }
.convoy-role-list dt { font-weight: 600; }
.convoy-role-list dd { margin: 2px 0 0; }
.convoys > .panel { margin-top: 16px; }
.convoy-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.convoy-name { font-weight: 600; font-size: 1.1rem; max-width: 22rem; }
.convoy-members .league-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; }
.convoy-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.convoy-foot form { margin: 0; }
.convoy-badge { display: inline-block; font-size: .75rem; padding: 1px 6px; border-radius: 9px; background: var(--accent-soft, rgba(200,120,40,.15)); color: var(--accent); margin-left: 6px; }
@media (max-width: 640px) { .convoy-members .league-row { grid-template-columns: 1fr 1fr; } .convoy-members .league-row > :first-child { grid-column: 1 / -1; } .convoy-members .league-row > .num { grid-column: 1 / -1; text-align: left; } .convoy-members .league-row > span { display: block; } .convoy-members .league-row > span:nth-child(n+3) { text-align: left; } }

.convoy-who { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
.convoy-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.convoy-sub { text-transform: none; letter-spacing: 0; }
.convoy-token { flex: none; width: 24px; height: 48px; display: block; }
.convoy-token svg { width: 100%; height: 100%; display: block; }
.convoy-pick-list { display: grid; gap: 0; padding: 4px 12px 10px; }
.convoy-pick-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.convoy-pick-row:last-of-type { border-bottom: 0; }
.convoy-pick-row .convoy-yes { width: 6.5rem; flex: none; }
.convoy-pick-row.on .convoy-yes { border-color: var(--accent); color: var(--accent); }
.convoy-pick-row.on strong { color: var(--accent); }

.convoy-deter { margin: 4px 0 8px; }
.convoy-deter .icon { color: var(--accent); }
.convoy-orders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.convoy-orders select { width: auto; }
.convoy-orders .muted, .convoy-orders .warn-text { flex-basis: 100%; }

/* Hired escorts (VE1-M5 drop 3) */
.hire-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hire-row:last-of-type { border-bottom: 0; }
.hire-who { display: flex; flex-direction: column; min-width: 0; }
.hire-row .hire-yes { width: 6.5rem; flex: none; }
.hire-row.on .hire-yes { border-color: var(--accent); color: var(--accent); }
.hire-row.on strong { color: var(--accent); }
.hire-row.off { opacity: .55; }
.convoy-car[hidden] { display: none; }
.cb-answer.cb-buddy { border-left: 3px solid var(--accent); padding-left: 8px; }
.cb-answer.cb-buddy .cb-handle { color: var(--accent); }

/* Town pages (EV2-M0) */
.town-state { font-weight: 400; opacity: .8; }
.town-facts { margin: 4px 0 8px; }
.town-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 8px; }
.town-tags li { font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); }
.town-markers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.town-marker { display: inline-flex; align-items: center; gap: 5px; }
.town-marker img { width: 22px; height: 22px; border-radius: 50%; }
.town-danger { font-weight: 600; }
.town-danger.danger-low { color: #8fbf6a; }
.town-danger.danger-mid { color: #e2b04a; }
.town-danger.danger-high { color: #e0664a; }
.town-hero.town-stock { background-position: center bottom; }
.town-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 18px; align-items: start; }
.town-main { display: grid; gap: 16px; min-width: 0; }
.town-side { display: grid; gap: 16px; position: sticky; top: 12px; }
.town-section h2 { display: flex; align-items: center; gap: 8px; }
.town-sub { font-size: .95rem; margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; }
.town-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.town-list .badge { margin-right: 4px; }
.town-boards { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.town-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.town-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 18px; }
.town-services li { display: flex; gap: 10px; align-items: flex-start; }
.town-services .icon { flex: none; margin-top: 3px; color: var(--accent); }
.town-roads .league-row { grid-template-columns: minmax(0, 1.4fr) 80px minmax(0, 1fr) 100px; align-items: center; }
.town-story { font-family: var(--font-serif, Georgia, serif); line-height: 1.6; padding: 4px 2px; }
.town-story h2, .town-story .town-sub { font-family: inherit; }
.town-story .venue-portrait { float: right; width: 140px; height: 140px; margin: 0 0 10px 14px; border-radius: 6px; }
.town-toc { display: flex; flex-direction: column; gap: 6px; }
.town-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; }
.town-cards li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
#gap-report .league-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 90px; }
.panel-span { grid-column: 1 / -1; }
.admin-map { height: 460px; border-radius: 6px; margin: 10px 0; border: 1px solid var(--line); }
@media (max-width: 860px) {
  .town-grid { grid-template-columns: 1fr; }
  .town-side { position: static; order: -1; }
  .town-toc { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
  .town-roads .league-row { grid-template-columns: minmax(0, 1fr) 64px 92px; }
  .town-roads .league-row > span:nth-child(3) { display: none; }
}
.gap-key { margin-left: 8px; white-space: nowrap; }
.key-ring { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 3px solid #e2873a; vertical-align: middle; }
.map-town-link { margin: 2px 0 4px; }

/* the Hangar (EV2-M1) */
#helipads { margin-bottom: 22px; }
.hangar-drafts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.hangar-drafts li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.02); }

/* EV2-M1: the helicopter makers' pages */
.aviation .plain-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.aviation .plain-list .ok { color: var(--ok, #6fcf97); }
.aviation .plain-list .no { color: var(--muted); }
.aviation .school-list, .aviation .shop-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.aviation .school-list li, .aviation .shop-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aviation .shop-list li { display: block; }
.aviation .shop-list .row-form { display: inline-block; margin: 6px 6px 0 0; }
.aviation .panel, #makers.panel, #helipads.panel { margin-bottom: 22px; }

/* EV2-M1 drop 3: Night Freight's landing strips on the map (a purple diamond, no roads) and their pages */
.map-strip span { display: block; width: 12px; height: 12px; margin: 2px; transform: rotate(45deg); background: #1c1530; border: 2px solid #b48cff; box-shadow: 0 0 0 2px #0b0b0a; }
.map-strip-pop table { border-collapse: collapse; width: 100%; }
.map-strip-pop td { padding: 1px 0; }
.map-strip-pop td + td { text-align: right; padding-left: 10px; }
.strip-tag { display: inline-block; background: #1c1530; color: #d8c4ff; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }
.strip-page .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.strip-page .fact { background: var(--panel, #1b1b1a); border: 1px solid var(--line, #2c2c2c); border-radius: 6px; padding: 10px 12px; }
.strip-page .fact .k { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.strip-page .fact .v { font-size: 17px; margin-top: 2px; }
.strip-page .fact .s { font-size: 12px; color: var(--muted); }
.strip-page .story { font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; max-width: 70ch; }
.strip-diamond { display: inline-block; width: 10px; height: 10px; transform: rotate(45deg); background: #1c1530; border: 2px solid #b48cff; margin-right: 6px; vertical-align: 1px; }
h1 .strip-diamond, h2 .strip-diamond { width: .42em; height: .42em; vertical-align: .18em; margin-right: .35em; }

/* EV2-M2 drop 2: Air cover in the convoy screen and the trip planner */
.badge-air { background: rgba(123, 79, 214, .18); color: #c9b6ff; border-color: rgba(123, 79, 214, .55); }
.air-cover .ok-text { color: var(--ok, #8cf07a); }
.air-row [data-air-legs] { display: block; }
/* the garage's "Where everyone is": each vehicle's picture (or counter) beside its name, as on the Dispatch board */
.fleet-car { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fleet-pic { width: 48px; height: 30px; flex: none; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-2); background: #000; display: block; }
.fleet-pic-counter { display: flex; align-items: center; justify-content: center; padding: 2px; }
.fleet-pic-counter svg { height: 100%; width: auto; display: block; }
/* the replay's step buttons: a phase back or forward */
.replay-step { min-width: 44px; padding-left: 10px; padding-right: 10px; }

.air-rig { margin-top: 8px; }
/* ferry flights (EV2-M3): the planner on a helicopter's card, and its states */
.badge-down { border-color: var(--warn-line); color: var(--warn); background: var(--warn-bg); }
.ferry { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ferry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ferry-head label { display: flex; align-items: center; gap: 8px; }
.ferry-head select { min-width: 240px; }
.ferry-plan { margin-top: 10px; }
.ferry-line { width: 100%; height: auto; display: block; margin: 6px 0; }
.ferry-line .ferry-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
.ferry-line .ferry-town { fill: var(--panel); stroke: var(--dim); stroke-width: 1.5; }
.ferry-line .ferry-strip { fill: var(--rust); stroke: var(--accent); stroke-width: 1; }
.ferry-line text { fill: var(--muted); font: 9px var(--font); }
.ferry-hops td:nth-child(2), .ferry-hops td:nth-child(4), .ferry-hops td:nth-child(5) { white-space: nowrap; }
.ferry-go { align-items: center; gap: 12px; }
.ferry .stats.compact { margin: 10px 0; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.ferry .stats.compact div { padding: 8px 10px; }
.ferry .stats.compact dd { font-size: .95rem; }
.ferry-hops th, .ferry-hops td { padding: 4px 6px; vertical-align: top; }
.map-heli span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2a1f45; border: 2px solid #9b7ce0; color: #e4d9ff; font-size: 11px; line-height: 1; }
.map-heli.mine span { border-color: #e3b521; }
.map-heli.down span { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
/* Steel Pier's pier (EV2-M3 drop 2) */
.pier-heli { border-top: 1px solid var(--line); padding: 10px 0; }
.pier-heli h3 { margin: 0 0 6px; }
.pier-actions { gap: 10px; align-items: center; flex-wrap: wrap; }
.pier-work { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pier-work li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Dispatch: a shipper's trailer on a power-only load, pulled but not the outfit's */
.dispatch-car.dispatch-theirs { opacity: .6; }
.dispatch-car.dispatch-theirs:hover { opacity: .9; }
/* a trailer with no picture yet: its counter turned on its side, front to the right like the pictures */
.dispatch-pic-turn { overflow: hidden; }
.dispatch-pic-turn svg { height: 60px; transform: rotate(90deg); }
/* a button or menu item that can't be used right now (the car's on the road) */
.button.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.bay-menu .is-disabled { display: block; padding: 6px 8px; font-size: 14px; opacity: .45; cursor: not-allowed; }
/* ---- the crew board (Nov 12): the crew page as a trucking dispatch whiteboard ---- */
.crew-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 18px 0 14px; }
.crew-tabs a { padding: 8px 16px; font: 500 14px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-bottom: none; }
.crew-tabs a.on { color: var(--accent); border-color: var(--line-2); background: var(--panel); margin-bottom: -1px; }
.crb-frame { background: linear-gradient(180deg, #a3a8b0, #7c8189); border-radius: 10px; padding: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.crb-board { position: relative; background: #f3f3ee; border-radius: 5px; padding: 18px 20px 14px; color: #1d2a44; font-family: 'Kalam', 'Comic Sans MS', cursive;
  background-image: radial-gradient(rgba(26, 58, 143, .05) 1px, transparent 1px); background-size: 22px 22px; box-shadow: inset 0 0 40px rgba(0, 0, 0, .08); }
.crb-board a { color: #1d2a44; text-decoration: none; }
.crb-title { font-family: var(--marker); font-size: 1.7rem; color: #1a3a8f; line-height: 1.1; }
.crb-title span { color: #1d2a44; font-size: 1.2rem; }
.crb-sub { font-size: 15px; color: #555; }
.crb-hint { position: absolute; right: 20px; top: 18px; font-size: 13px; color: #6a6a6a; text-align: right; transform: rotate(-2deg); }
.crb-cols, .crb-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.crb-head { display: grid; grid-template-columns: 130px minmax(0, 1fr); margin-top: 14px; border-bottom: 2.5px solid #1d2a44; }
.crb-head span { font-family: var(--marker); font-size: 14px; padding: 4px 8px; }
.crb-head > span { padding-left: 2px; }
.crb-group { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-bottom: 2px solid #1d2a44; }
.crb-town { font-family: var(--marker); font-size: 17px; color: #b3261e; padding: 8px 8px 8px 2px; border-right: 1.5px solid #9aa3b5; line-height: 1.15; }
.crb-town small { display: block; font-family: 'Kalam', cursive; font-size: 13px; color: #666; }
.crb-row > div { padding: 7px 8px; border-right: 1.5px solid #9aa3b5; border-bottom: 1.5px solid #c2c8d4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; }
.crb-row > div:last-child { border-right: none; }
.crb-rows .crb-row:last-child > div { border-bottom: none; }
.crb-rig { flex-direction: column; align-items: flex-start !important; }
.crb-rig-main, .crb-rig-tow { display: flex; align-items: center; gap: 8px; }
.crb-rig-main b { font-size: 16px; display: block; line-height: 1.1; }
.crb-rig small, .crb-rig-tow small { display: block; font-size: 12px; color: #666; }
.crb-rig-tow { font-size: 14px; padding-left: 10px; border-left: 2px dashed #9aa3b5; }
.crb-theirs { opacity: .6; }
.crb-stowed { font-size: 13px; color: #4b3a8f; padding-left: 10px; }
.crb-pic { width: 64px; height: 40px; flex: none; object-fit: cover; border-radius: 3px; border: 1px solid #9aa3b5; background: #1a1a1a; display: block; box-shadow: 1px 1px 0 rgba(0, 0, 0, .15); }
.crb-pic-counter { display: flex; align-items: center; justify-content: center; padding: 2px; background: #fff; }
.crb-pic-counter svg { height: 100%; width: auto; }
.crb-rig-tow .crb-pic { width: 52px; height: 32px; }
.crb-seat-label { display: block; width: 100%; font-size: 12px; color: #6a6f7c; line-height: 1; }
.crb-others { gap: 4px 10px !important; }
.crb-slot { display: inline-flex; flex-direction: column; gap: 2px; }
.crb-mag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 5px; border-radius: 5px; background: #fff; border: 1px solid #c3c7cf; font-size: 15px; color: #1d2a44;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, .18); transform: rotate(-1deg); cursor: pointer; white-space: nowrap; }
.crb-mag[draggable="true"] { cursor: grab; }
.crb-mag i, .crb-legend i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .3); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .15); }
.crb-d i, i.crb-d { background: #e0b020; } .crb-t i, i.crb-t { background: #27ae60; } .crb-p i, i.crb-p { background: #2e86de; } .crb-c i, i.crb-c { background: #e67e22; }
.crb-g i, i.crb-g { background: #c0392b; } .crb-m i, i.crb-m { background: #8e44ad; } .crb-x i, i.crb-x { background: #ecf0f1; }
.crb-hurt { opacity: .55; }
.crb-open { font-size: 15px; color: #9aa1ae; font-style: italic; cursor: pointer; }
.crb-pick { position: relative; }
.crb-pick summary { list-style: none; }
.crb-pick summary::-webkit-details-marker { display: none; }
.crb-pick.crb-over summary > *, .crb-tray.crb-over { outline: 2px dashed #1a3a8f; outline-offset: 2px; }
.crb-dragging .crb-pick summary .crb-open { color: #1a3a8f; }
.crb-menu { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 260px; max-height: 320px; overflow: auto; margin-top: 4px; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5); padding: 6px; display: flex; flex-direction: column; font-family: var(--font); }
.crb-menu-head { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 4px 6px; }
.crb-menu-sub { font-size: 11px; color: var(--muted); padding: 6px 6px 2px; border-top: 1px solid var(--line); }
.crb-menu button { text-align: left; background: none; border: 0; color: var(--text); padding: 5px 6px; font: 14px var(--font); cursor: pointer; }
.crb-menu button:hover { background: var(--panel-2); color: var(--accent); }
.crb-menu .crb-menu-off { color: var(--warn); border-top: 1px solid var(--line); margin-top: 4px; }
.crb-note { font-size: 15px; color: #1a3a8f; }
.crb-note .icon { width: 14px; height: 14px; }
.crb-warn { color: #b3261e; font-weight: 700; }
.crb-road .crb-row > div, .crb-road .crb-town { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(26, 58, 143, .06) 10px 20px); }
.crb-locked .crb-mag { cursor: default; transform: none; }
.crb-tray { margin-top: 16px; background: linear-gradient(180deg, #d4d7dd, #bfc3ca); border-radius: 4px; padding: 10px 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15); }
.crb-tray b { font-family: var(--marker); font-size: 15px; margin-right: 6px; }
.crb-dragging .crb-tray { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 -4px 14px rgba(0,0,0,.25); }
.crb-bench-link { display: inline-flex; flex-direction: column; gap: 1px; }
.crb-bench-link small { font-size: 12px; color: #555; padding-left: 4px; }
.crb-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #555; margin-top: 10px; }
.crb-legend span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 860px) {
  .crb-head { display: none; }
  .crb-group { grid-template-columns: 1fr; }
  .crb-town { border-right: none; border-bottom: 1.5px solid #9aa3b5; }
  .crb-row { grid-template-columns: 1fr 1fr; }
  .crb-hint { display: none; }
}
/* the roster tab */
.roster-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.roster-filters .chip { cursor: pointer; background: var(--panel); border: 1px solid var(--line-2); color: var(--dim); padding: 3px 10px; font: 13px var(--font); }
.roster-filters .chip.on { border-color: var(--accent); color: var(--accent); }
.roster-table th[data-sort] { cursor: pointer; }
.roster-table th[data-dir="asc"]::after { content: ' ▴'; } .roster-table th[data-dir="desc"]::after { content: ' ▾'; }
.roster-table .seat-form select { min-width: 220px; }
.roster-who { display: inline-flex; align-items: center; gap: 8px; }
.roster-who small { display: block; font-size: 12px; }
.roster-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; background: var(--panel-2); border: 1px solid var(--line); }
.roster-table th { text-align: left; font: 500 12px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.roster-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.roster-table tbody tr:hover { background: var(--panel); }
.roster-who small { color: var(--muted); text-decoration: none; }
.roster-who span { line-height: 1.2; }
.crb-note { display: block !important; }
/* the crew board in the dark (owner, Nov 15: option C): a gunmetal shop board in a hazard-stripe frame, yellow paint marker */
.crb-frame { background: repeating-linear-gradient(135deg,#c99a17 0 14px,#16140f 14px 28px); box-shadow: 0 6px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.crb-frame .crb-board { background-color: #22211e; background-image: linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%), repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px); background-size: 100% 100%, auto; color: #ece5d6; box-shadow: inset 0 0 50px rgba(0,0,0,.45); }
.crb-frame .crb-board a { color: #ece5d6; }
.crb-frame .crb-title { color: #f0c23b; }
.crb-frame .crb-title span { color: #ece5d6; }
.crb-frame .crb-sub, .crb-frame .crb-hint, .crb-frame .crb-town small, .crb-frame .crb-rig small, .crb-frame .crb-rig-tow small, .crb-frame .crb-bench-link small, .crb-frame .crb-legend { color: #9a9182; }
.crb-frame .crb-seat-label { color: #9a9182; }
.crb-frame .crb-head { border-bottom-color: #c99a17; }
.crb-frame .crb-group { border-bottom-color: #c99a17; }
.crb-frame .crb-town { color: #f0c23b; border-right-color: rgba(236,229,214,.22); }
.crb-frame .crb-row > div { border-right-color: rgba(236,229,214,.22); border-bottom-color: rgba(236,229,214,.10); }
.crb-frame .crb-rig-tow { border-left-color: rgba(236,229,214,.22); }
.crb-frame .crb-pic { border-color: rgba(236,229,214,.22); }
.crb-frame .crb-pic-counter { background: #ece5d6; }
.crb-frame .crb-mag { background: #2f2d29; border-color: #5a554b; color: #f4eee2; box-shadow: 1px 2px 0 rgba(0,0,0,.5); }
.crb-frame .crb-open { color: #6f685c; }
.crb-frame .crb-note { color: #9ccbe8; }
.crb-frame .crb-warn { color: #ff7a5c; }
.crb-frame .crb-stowed { color: #9ccbe8; }
.crb-frame .crb-road .crb-row > div, .crb-frame .crb-road .crb-town { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(240,194,59,.05) 10px 20px); }
.crb-frame .crb-pick.crb-over summary > *, .crb-frame .crb-tray.crb-over { outline-color: #f0c23b; }
.crb-frame .crb-tray { background: linear-gradient(180deg,#1a1916,#121110); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); color: #ece5d6; }
@media (max-width: 860px) { .crb-frame .crb-town { border-bottom-color: rgba(236, 229, 214, .22); } }
.crb-frame { margin-bottom: 20px; } /* room before the Crew log (owner, Nov 15) */

/* ---- air freight (EV2-M5): Meridian's helipads on the map, the air desk, a helicopter flying a manifest ---- */
.map-pad span { display: block; width: 13px; height: 13px; border-radius: 3px; background: #1f3b5c; border: 1px solid #8fb8e8; color: #dbeaff;
  font: 700 9px/11px var(--mono, monospace); text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.map-pad-tag { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #1f3b5c; border: 1px solid #8fb8e8; color: #dbeaff;
  font: 700 9px/12px var(--mono, monospace); text-align: center; vertical-align: 1px; }
.air-desk .office-name { align-items: center; }
.air-desk-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: #1f3b5c; color: #dbeaff; border: 1px solid #8fb8e8; }
.air-desk-mark .icon { width: 22px; height: 22px; }
.air-desk-helis { margin: 4px 0 10px; }
.air-desk-helis .icon { vertical-align: -3px; }
.badge-air { background: #1f3b5c; color: #dbeaff; border-color: #8fb8e8; }
.badge-air .icon { width: 12px; height: 12px; vertical-align: -2px; }
.air-take { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.air-take select { max-width: 160px; }
.air-manifest-line { color: #9cc4f0; }
.air-manifest-line.late { color: var(--warn, #e0a03d); }
.air-manifest-line .icon { width: 14px; height: 14px; vertical-align: -2px; }
/* EV2-M5 drop 2: Night Freight's night desk and its contraband air runs */
.air-desk.night .air-desk-mark { background: #2a1d47; color: #e2d6ff; border-color: #9b7fe0; }
.badge-air.night { background: #2a1d47; color: #e2d6ff; border-color: #9b7fe0; white-space: nowrap; }
.air-patrol { margin: 4px 0 0; color: var(--muted, #9aa3ad); }
.air-patrol.risky { color: var(--warn, #e0a03d); }
.air-patrol .icon { width: 13px; height: 13px; vertical-align: -2px; }
.air-manifest-line.night { color: #c9b6ff; }
.air-manifest-line.seized { color: #ff7b72; }

/* The helicopter makers' pages (Admin → Aviation): hero, the owner's card beside the story, the gallery */
.maker-hero.has-cover { min-height: 240px; }
.maker-intro { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; align-items: start; margin-bottom: 8px; }
.maker-owner { text-align: center; padding: 12px; }
.maker-owner img, .maker-owner-blank { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); display: block; }
.maker-owner-blank { display: flex; align-items: center; justify-content: center; font-size: 42px; color: var(--muted, #a0988a); background: var(--panel-2, rgba(255,255,255,.04)); }
.maker-owner-name { margin: 8px 0 0; font-weight: 600; }
.maker-owner .small { margin: 2px 0 0; }
.maker-gallery { margin-top: 18px; }
@media (max-width: 720px) { .maker-intro { grid-template-columns: 1fr; } .maker-owner { max-width: 220px; } }

/* Frame pictures (Admin → Frames): a bare body's picture on a blueprint panel */
.pick-art.frame-bp, .frame-bp { position: relative; background-color: #173a66; background-image: linear-gradient(rgba(214, 232, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 232, 255, .13) 1px, transparent 1px), linear-gradient(rgba(214, 232, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 232, 255, .06) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; box-shadow: inset 0 0 0 1px rgba(214, 232, 255, .25); }
.pick-art.frame-bp img { padding: 8px 8px 18px; box-sizing: border-box; }
.frame-stencil { position: absolute; right: 8px; bottom: 4px; font: 600 10px/1 var(--mono, ui-monospace, monospace); letter-spacing: .08em; color: #cfe2fb; opacity: .85; }
.frame-bp-sm { display: block; width: 72px; height: 48px; border-radius: 6px; overflow: hidden; flex: none; }
.frame-bp-sm img { width: 100%; height: 100%; object-fit: contain; }
.frame-bp-sm.empty { background: none; box-shadow: none; border: 1px dashed var(--line-2); }
.frame-admin-row { display: flex; align-items: center; gap: 14px; }
.frame-admin-row .who { flex: 1; min-width: 0; }
.frame-admin-row .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-upload { display: flex; gap: 6px; align-items: center; }
.inline-upload input[type=file] { max-width: 220px; font-size: 12px; }

/* The garage's jump row: its parts (cars, trailers, copters) and its other rooms (storage, convoys, the counter sheet) */
.garage-jump { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jump-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 6px 6px 4px; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text, #e8e1d4); text-decoration: none; background: rgba(255, 255, 255, .02); }
.jump-icon .icon { width: 22px; height: 22px; }
.jump-icon span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #a0988a); }
.jump-icon:hover, .jump-icon:focus-visible { border-color: var(--accent, #e0a93d); color: var(--accent, #e0a93d); }
.jump-icon:hover span { color: inherit; }
.jump-gap { width: 1px; align-self: stretch; margin: 4px 6px; background: var(--line-2); }
#cars, #yard, #helipads-garage { scroll-margin-top: 12px; }

/* Ferry flights in a dialog: room for the flight line and the hops table */
.ferry-modal { width: min(880px, 94vw); max-height: 90vh; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel, #1b1a17); color: inherit; }
.ferry-modal::backdrop { background: rgba(5, 5, 4, .72); }
.ferry-modal .ferry { margin: 0; padding: 0; border: 0; background: none; }
.ferry-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ferry-modal-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.ferry-close { background: none; border: 0; color: var(--muted, #a0988a); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ferry-close:hover { color: var(--text, #e8e1d4); }
.ferry-pick { display: block; margin: 8px 0 12px; }
.ferry-pick select { display: block; width: 100%; max-width: 520px; margin-top: 4px; }
.ferry-modal .ferry-line { width: 100%; max-width: 760px; height: auto; }
.ferry-modal .ferry-hops { width: 100%; }

/* The garage's view (migration 091): the Pictures / Compact switch; compact hides each card's top picture */
.garage-view-toggle { display: inline-flex; gap: 6px; margin: 0; }
button.jump-icon { font: inherit; cursor: pointer; }
.jump-icon.on { border-color: var(--accent, #e0a93d); color: var(--accent, #e0a93d); background: rgba(224, 169, 61, .08); }
.jump-icon.on span { color: inherit; }
.garage-compact .car-cover { display: none; }

/* The garage's order (migration 092): the strip at the top of each card is its handle, numbered by its place */
.bay-grip { display: flex; align-items: center; gap: 8px; margin: -16px -16px 0; padding: 5px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); color: var(--muted, #a0988a); font: 600 10px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .12em;
  text-transform: uppercase; cursor: grab; touch-action: none; text-align: left; }
.bay-grip b { color: var(--text, #e8e1d4); font-weight: 700; }
.bay-grip .grip-dots { width: 10px; height: 12px; flex: none; background-image: radial-gradient(currentColor 1.1px, transparent 1.3px); background-size: 5px 4px; opacity: .8; }
.bay-grip:hover, .bay-grip:focus-visible { color: var(--accent, #e0a93d); background: rgba(224, 169, 61, .07); }
.bay-grip:disabled { cursor: default; color: var(--muted, #a0988a); background: rgba(255, 255, 255, .025); }
.bay-grip:disabled .grip-dots { display: none; }
.bay-grip + .car-cover { margin-top: 0; border-radius: 0; }
.car-list > li.dragging { opacity: .45; outline: 2px dashed var(--accent, #e0a93d); outline-offset: 2px; }
.car-list.order-saving .bay-grip { cursor: progress; }

/* A link with its icon (the garage's section links: a new car, Kessel's, Kingpin's lot, the Hangar, the map, the job boards) */
.link-icon { display: inline-flex; align-items: center; gap: 5px; }
.link-icon .icon { width: 15px; height: 15px; flex: none; }

/* The take-off dialog for air freight (air-take.js) */
.air-take-modal { width: min(760px, 94vw); }
.air-take-modal .ok-text { color: var(--ok, #8cf07a); }
.air-take-modal .ferry-go { gap: 10px; justify-content: flex-start; }


/* the garage's state tags: a vehicle out on the road, or out on a job the outfit took */
.badge-road, .badge-mission, .badge-booked, .badge-fight { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.badge-fight { border-color: #ff8a3d; color: #ff8a3d; } /* booked into a fight (Nov 22) */
.badge-road .icon, .badge-mission .icon, .badge-booked .icon, .badge-fight .icon { width: 12px; height: 12px; }
.badge-road { background: #1f3b5c; color: #dbeaff; border-color: #8fb8e8; }
.badge-mission { background: rgba(232, 176, 32, .16); color: #ffd36e; border-color: #e8b020; }
.badge-booked { background: transparent; color: #ffd36e; border: 1px dashed #e8b020; }

/* IC-M1: the gas engine's tank and accessories beside the Power tab */
.gas-panel { display: grid; gap: 6px; }
.gas-panel .target { flex-wrap: wrap; gap: 8px; align-items: center; }
/* extra power cells: one tick box a line, wrapping inside the panel (EV-R) */
.cell-boxes { flex-direction: column; align-items: flex-start; gap: 6px; }
.cell-boxes label { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.cell-boxes input { margin-top: 3px; flex: none; }
.gas-panel select.input { width: auto; max-width: 100%; }
.gas-gallons { width: 5.5em; display: inline-block; }
.gas-mod { display: inline-flex; align-items: center; gap: 4px; }
.gas-range { margin: 2px 0 0; }

/* IC-M1: the gas pump marks internal combustion — red in the designer, gasoline orange everywhere else */
.gas-mark { color: #e8812a; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.gas-mark .icon { width: .9em; height: .9em; }
.gas-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 1px 7px; border: 1px solid #e0352b; border-radius: 3px;
  color: #ff5a4a; background: rgba(224, 53, 43, .12); letter-spacing: .1em; }
.gas-badge .icon { width: 13px; height: 13px; }
.gas-ink { color: #ff5a4a; }
.gas-only { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #ff5a4a; font-weight: 600; }
.gas-only .icon { width: 11px; height: 11px; }

.car-wrap .gas-ink svg.icon { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }
/* IC-M2 drop 2: a fuel run on the job board, a dry still under the gauge */
.fuel-run { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 7px; border: 1px solid #e8812a; border-radius: 3px;
  color: #e8812a; background: rgba(232, 129, 42, .12); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.fuel-run .icon { width: 12px; height: 12px; }
/* a safe job on the boards (WX-M5) */
.safe-job { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--accent); border-radius: 3px;
  color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.safe-job .icon { width: 12px; height: 12px; }
.car-fuel-note { display: block; width: 100%; }
.admin-fuel { margin-top: 8px; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-fuel input.input { width: 5em; }
/* IC-M2 drop 3: the outfit's own gas */
.tank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 28px; }
.tank-card h3 { margin: 0 0 8px; }
.tank-card .tank-gauge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tank-card .inline-form { display: inline-block; margin: 0 6px 6px 0; }
.tank-sizes { margin-top: 6px; }
.hot-gas { font-size: 10px; }
/* E2-M3: the Tyler refinery on the map, the Black Giant's gate */
.map-landmark { color: #e8812a; background: #1a1917; border: 1px solid #e8812a; border-radius: 3px; box-sizing: border-box; }
.map-landmark > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.map-landmark .icon { display: block; width: 11px; height: 11px; margin: 0; vertical-align: 0; }
.map-gate { color: #ff8a7a; }
.map-gate.open { color: #9be37f; }

/* IC-M2 drop 1: the gas gauge (style C): the pump, ten blocks, the percentage, the gallons; and the trip beside it */
.fuel-gauge, .trip-meter { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono, monospace); color: var(--text); white-space: nowrap; }
.fuel-gauge .icon { width: 14px; height: 14px; color: #e8812a; }
.fuel-gauge.fuel-low .icon { color: #ff5a4a; }
.trip-meter .icon { width: 14px; height: 14px; color: var(--accent); }
.fuel-segs { display: flex; gap: 2px; }
.fuel-segs b { width: 6px; height: 10px; background: #24221d; border: 1px solid #2e2c27; }
.fuel-ok .fuel-segs b.on { background: #8cc45c; border-color: #8cc45c; }
.fuel-mid .fuel-segs b.on { background: #e8b020; border-color: #e8b020; }
.fuel-low .fuel-segs b.on { background: #ff5a4a; border-color: #ff5a4a; }
.trip-meter .fuel-segs b.on { background: var(--accent); border-color: var(--accent); }
.fuel-gal { color: var(--muted); font-weight: 400; }
.car-fuel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 2px; }
.dispatch-fuel { display: block; margin: 2px 0 6px; }
.dispatch-meters { display: grid; grid-template-columns: max-content auto; gap: 6px 8px; align-items: center; margin-top: 6px; }
.dispatch-meters .label-caps { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.fuel-plan p { margin: 4px 0; line-height: 1.9; }
.dispatch-meters { grid-template-columns: max-content auto; gap: 5px 6px; }
.dispatch-meters .fuel-segs { gap: 1px; }
.dispatch-meters .fuel-segs b { width: 5px; height: 9px; }
.dispatch-meters .icon { width: 12px; height: 12px; }
.dispatch-meters .fuel-gauge, .dispatch-meters .trip-meter { gap: 4px; }
/* E2-M3 drop 2: the oil country page, the LRA's letters */
.oil .section-head .crest { flex: none; }
.oil-gate { border-left: 4px solid var(--line-2); }
.oil-gate.is-open { border-left-color: #e8812a; }
.oil-gate.is-hunted { border-left-color: var(--warn); background: var(--warn-bg); }
.oil-gate h2 { margin-top: 0; }
.oil-letter { max-width: 760px; }
.oil-letter-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.oil-letter-head h2 { margin: 0; }
.oil-letter-head p { margin: 2px 0 0; }
.oil-letter-pic { border-radius: 50%; object-fit: cover; flex: none; }
.oil-letter-body { padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--panel-2); font-family: var(--mono); line-height: 1.6; }
.oil-letter-body p { margin: 0 0 12px; }
.oil-letter-body p:last-child { margin-bottom: 0; color: var(--dim); }
.oil-letter-warning .oil-letter-body { border-color: var(--warn-line); }
.oil-answer { margin-top: 12px; }
.oil-admin-h { margin: 16px 0 4px; }
.oil-admin-letters td { vertical-align: middle; }
.oil-admin-letters th { text-align: left; }
/* E2-M3 drop 3: the motor pool panel */
.oil-motor { border-left: 4px solid var(--line-2); }
.oil-motor.is-open { border-left-color: #e8812a; }
.oil-motor h2 { margin-top: 0; }
/* admin road: bring a trip's arrival forward */
.road-arrive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.road-arrive input.input { width: 5.5em; }
.road-arrive select.input { width: auto; }
.road-due-cell { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.road-due { display: flex; align-items: center; gap: 6px; }
.road-due input.input { width: 4.5em; }
.road-due select.input { width: auto; }
/* E2-M4 drop 1: the Rose */
.rose { border-left: 4px solid var(--line-2); }
.rose.is-open, .rose-verdict.is-open { border-left: 4px solid #e8812a; }
.rose h2 { margin-top: 0; }
.rose-trial-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.rose-trial-form label { min-width: 260px; }
.rose-trials { margin-top: 12px; }
.rose-laps { max-width: 360px; margin: 8px 0; }
.rose-laps tr.is-best td { color: var(--accent-text); }
.race-finish .chk-a { fill: #e9e4d6; }
.race-finish .chk-b { fill: #1a1915; }
/* E2-M4 drop 2: race night */
.rose-grid { list-style: none; padding: 0; margin: 6px 0; columns: 2; column-gap: 24px; }
.rose-grid li { padding: 2px 0; break-inside: avoid; }
.rose-history { list-style: none; padding: 0; margin: 0; }
.rose-history li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.rose-results tr.is-mine td, .tower-table tr.is-mine td { color: var(--accent-text); }
@media (max-width: 640px) { .rose-grid { columns: 1; } }

/* Nov 14: what lies on the floor in a replay (debris, wreckage, oil, smoke, paint, spikes, mines) */
.replay-token { pointer-events: auto; }
.replay-snag { fill: rgba(255, 170, 60, .2); stroke: #ffaa3c; stroke-width: .18; stroke-dasharray: .35 .2; }
.replay-snag.old { opacity: .3; }
.replay-floor-lead { margin-left: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .rs-flame { animation: rs-flicker .45s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 80%; }
  @keyframes rs-flicker { from { opacity: .75; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
}

/* Nov 14: a trip's (or a flight's) settings at a glance */
.trip-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.trip-settings div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; }
.trip-settings div.wide { grid-column: 1 / -1; }
.trip-settings dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.trip-settings dd { margin: 2px 0 0; }
.flight-hops li.now { border-left: 3px solid #b69cff; padding-left: 8px; }
/* a token for each piece of gear on a garage seat (Nov 22) */
/* each seat one tidy block (Nov 22): label, avatar and name on a line, the gear tokens under the name */
.crew-seat { display: grid; grid-template-columns: 86px 24px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; align-items: center; padding: 5px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.crew-seat:last-of-type { border-bottom: 0; }
.crew-seat-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-seat .avatar { width: 24px; height: 24px; }
.crew-seat-face { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; line-height: 0; } /* opens the crew card (Nov 22) */
.crew-seat-face:hover .avatar, .crew-seat-face:focus-visible .avatar { box-shadow: 0 0 0 2px var(--accent); }
.crew-seat-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-seat-empty { color: var(--muted); font-style: italic; text-decoration: none; }
.crew-seat-empty:hover { color: var(--accent); }
.crew-seat-blank { width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line-2); }
.crew-seat .kit-tokens { grid-column: 3; }
.kit-none { margin-left: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.kit-tokens { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; vertical-align: middle; padding: 1px; }
.kit-token { display: inline-flex; flex: none; box-sizing: border-box; align-items: center; justify-content: center; width: 18px; height: 18px; min-width: 18px;
  overflow: hidden; border-radius: 50%; background: var(--panel-2); /* flex: none, or Firefox squeezes them into ovals (Nov 22) */
  border: 1px solid var(--line-2); color: var(--accent); font-size: 11px; line-height: 1; cursor: help; }
.kit-token.none { border-style: dashed; color: var(--muted); }
.gas-mark:first-child { margin-left: 0; margin-right: 2px; }
.clock-skips { margin-top: 10px; }
.clock-skips summary { cursor: pointer; color: var(--muted, #9aa); }
.clock-skips[open] summary { margin-bottom: 6px; }
.map-car.air span { width: 24px; height: 24px; font-size: 14px; background: #b69cff; color: #120d1c; box-shadow: 0 0 0 4px rgba(182, 156, 255, .35); }
.main-events-side { margin: 22px 0 0; }
.main-events-side .main-events-title { font-size: 15px; letter-spacing: .14em; }
.main-events-side .main-event-grid { grid-template-columns: 1fr; gap: 10px; }
.main-events-side .main-event-name { font-size: 16px; }
.main-events-side .main-event-money { font-size: 18px; }

/* Nov 14: seasons */
.season-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.season-now { display: grid; gap: 2px; margin: 4px 0 10px; }
.season-now strong { font-size: 22px; color: var(--text); letter-spacing: .02em; }
.season-mini { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.season-mini li.mine strong, .season-mini li.mine a { color: var(--accent); }
.season-mini .num { color: var(--ok); margin: 0 6px; }
.season-awards-admin { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.season-awards-admin > li { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.season-awards-admin p { margin: 0 0 4px; }
.season-award-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px 12px; align-items: end; margin: 8px 0; }
.season-award-form label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.season-award-form label.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.season-winners { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 4px; }
.season-winners .icon-trophy, .season-awards-admin .icon-trophy, .trophy-case .icon-trophy, .season-award-list .icon-trophy { width: 18px; height: 18px; color: var(--accent); vertical-align: -3px; }
.season-award-list { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.season-award-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; }
.season-award-list li > div { display: grid; gap: 2px; }
.season-award-list .icon-trophy { width: 26px; height: 26px; flex: none; }
.season-table tr.mine td { color: var(--accent); }
.trophy-case { list-style: none; padding: 0; margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.trophy-case li { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--panel-2); padding: 8px 12px; border-radius: 2px; }
.trophy-case li span { display: grid; }
.trophy-case li.is-trophy { border-color: var(--accent); }
.trophy-case li.is-trophy .icon-trophy { width: 26px; height: 26px; }
.season-top .panel h3 { margin-top: 16px; }

/* Nov 14: back to the top (desktops and laptops) */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--accent); background: rgba(20, 19, 17, .88); color: var(--accent); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: background .15s, color .15s, transform .15s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover, .to-top:focus-visible { background: var(--accent); color: #141311; transform: translateY(-2px); }
.to-top[hidden] { display: none; }

/* The NAAA's page (Nov 14) */
.naaa-does { display: grid; gap: 14px; margin: 0; }
.naaa-does > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.naaa-does > div:first-child { border-top: 0; padding-top: 0; }
.naaa-does dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.naaa-does dd { margin: 0; }
.naaa-classes { width: 100%; margin: 0 0 6px; }
.naaa-page .plain-list { list-style: none; padding-left: 0; }
.naaa-arenas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.naaa-arenas li { display: flex; gap: 10px; align-items: flex-start; }
.naaa-arenas p { margin: 0; }
@media (max-width: 600px) { .naaa-does > div { grid-template-columns: 1fr; gap: 4px; } }

/* The NAAA's seal, a watermark in the bottom left corner of every page (Nov 14) */
.naaa-mark { position: fixed; left: 18px; bottom: 18px; z-index: 50; width: 72px; height: 72px; opacity: .2; transition: opacity .2s; line-height: 0; }
.naaa-mark img { width: 100%; height: 100%; object-fit: contain; }
.naaa-mark:hover, .naaa-mark:focus-visible { opacity: .7; }
@media (max-width: 700px) { .naaa-mark { width: 44px; height: 44px; left: 10px; bottom: 10px; } }
@media print { .naaa-mark { display: none; } }

/* ---------- the road looks on the workbench (RL-M1, sh233): hiding a weapon ---------- */
.mounted .look { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px;
  border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; }
.mounted .look:hover, .mounted .look[aria-expanded="true"] { border-color: currentColor; }
.mounted .look .icon { width: 16px; height: 16px; }
.mounted .look.on { background: var(--accent); color: var(--accent-ink); border-color: var(--edge); }
.mounted .t.two { display: flex; flex-direction: column; gap: 2px; }
.mounted .t.two .n { overflow: hidden; text-overflow: ellipsis; }
.look-tag { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.look-tag.spent { color: var(--warn); }
.lookbar { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent-bg); color: var(--accent-text); font-size: 14px; }
.lookbar .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lookbar .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.lookbar .choice { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 2px solid var(--edge); border-radius: 2px; background: var(--plate-hi);
  color: var(--dim); font: inherit; font-size: 13px; text-align: left; cursor: pointer; box-shadow: 0 2px 0 var(--edge); }
.lookbar .choice strong { color: var(--text); font-weight: 600; font-size: 14px; }
.lookbar .choice .num { font-family: var(--mono); color: var(--accent-text); }
.lookbar .choice[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lookbar .choice[aria-pressed="true"] strong, .lookbar .choice[aria-pressed="true"] .num { color: var(--accent-ink); }
.lookbar .hint { margin: 8px 0 0; color: var(--accent-text); opacity: .85; }
.road-look { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--dim); }
.road-look b { color: var(--accent-text); font-weight: 600; }

/* ---------- metal plating on the workbench (sh234): a second count on each side ---------- */
.zone .armor.metal, .strip .armor.metal { border-color: #6f7780; background: linear-gradient(180deg, #2a2e33, #1c1f23); color: #c9d1d9; }
.strip .armor.metal { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid #6f7780; border-radius: 3px; font: 13px var(--mono); }
.strip .row:has(.armor.metal) { flex-direction: column; align-items: flex-start; }

/* ---------- body modifications on the workbench (sh235): streamlined, sloped ---------- */
.shape-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.shape-checks label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }

/* The parts bin grows with what's in it (owner, Nov 14): the Frame tab's form is never cut off behind a scroll bar, and
   the part lists are as tall as the window allows instead of a fixed 640px. */
.part-list[data-tab="frame"] { max-height: none; overflow: visible; }
.part-list { max-height: max(640px, calc(100vh - 260px)); }

/* ---------- ammunition types on the workbench (AM-M1, sh237): a weapon's load ---------- */
.mounted .ammo { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px;
  border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; }
.mounted .ammo:hover, .mounted .ammo[aria-expanded="true"] { border-color: currentColor; }
.mounted .ammo .icon { width: 16px; height: 16px; }
.mounted .ammo.on { background: var(--accent); color: var(--accent-ink); border-color: var(--edge); }
.ammo-tag { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #9fd0e6; }
.lookbar .choice .fx { color: var(--text); }
.lookbar .choice[aria-pressed="true"] .fx { color: var(--accent-ink); }
/* a chip with two buttons shows its weapon's name in full */
.mounted.roomy { max-width: none; }
/* AM-M1 drop 2: fuses and extra magazines, under the ammunition choices */
.lookbar .ammo-extra { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 2px; background: var(--plate-hi); color: var(--text); }
.lookbar label.ammo-extra { cursor: pointer; }
.lookbar .ammo-extra input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.lookbar .ammo-extra strong { font-weight: 600; }
.lookbar .ammo-extra .num { font-family: var(--mono); color: var(--accent-text); margin-left: 6px; }
.lookbar .ammo-extra .fx { display: block; margin-top: 2px; }
.lookbar .ammo-extra .stepper { flex: none; }
.lookbar .ammo-extra .stepper b { min-width: 24px; text-align: center; font-family: var(--mono); }
.mounted.roomy .t, .mounted.roomy .t .n { overflow: visible; white-space: normal; }
/* Electric range (Nov 15): the charge in the trip planner, and the badlands' charging stations on the map */
.charge-gauge .charge-bolt { font-size: 11px; line-height: 1; margin-right: 2px; }
/* the charge bolt is blue, against the gas pump's orange (EV-R drop 2; owner, Nov 15) */
.charge-bolt, .icon-bolt { color: #4aa8ff; font-variant-emoji: text; }
.dispatch-kind .icon-bolt { color: #4aa8ff; }
.map-charge span { display: block; width: 13px; height: 13px; border-radius: 3px; background: #24401c; border: 1px solid #9fdc7a; color: #e4ffd4;
  font: 700 9px/11px var(--mono, monospace); text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.map-charge-tag { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #24401c; border: 1px solid #9fdc7a; color: #e4ffd4;
  font: 700 9px/12px var(--mono, monospace); text-align: center; vertical-align: 1px; }
.map-charge-tag.off { background: #2a2622; border-color: #6b645a; color: #8f877b; }

/* Admin → Towns: the town's services and switches (Nov 15) */
.town-switches { border: 1px solid var(--line-2); padding: 12px 14px 4px; margin: 0 0 6px; }
.town-switches legend { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 6px; }
.town-switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; margin-bottom: 8px; }
.town-offices { display: grid; gap: 6px; margin-bottom: 8px; }
.town-office { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(200px, 2fr) auto; gap: 6px 12px; align-items: center; }
.town-office label.small { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.town-office .office-size { width: 96px; }
@media (max-width: 700px) { .town-office { grid-template-columns: 1fr; } }
.town-switches label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-bottom: 8px; }
.town-switches label.check input { width: auto; margin: 0; flex: none; }
.town-offices label.check { margin-bottom: 0; }
/* admin (Nov 15): the timers on Road trouble, and posting a job by hand on Admin → World */
.timer-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.timer-row .inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.timer-row input.input { width: 80px; }
.timer-row select.input { width: auto; }
.post-job { margin: 10px 0 14px; }
.post-job summary { cursor: pointer; }
.post-job .form-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.post-job label.check { display: flex; flex-direction: row; align-items: center; gap: 6px; align-self: end; padding-bottom: 10px; font-size: 13px; }

/* ---------- the wanted (admin, BH-M1) ---------- */
.wanted-make { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.wanted-make label { display: grid; gap: 2px; }
.wanted-list { display: grid; gap: 12px; }
.wanted-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.wanted-mug { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; }
.wanted-body { display: grid; gap: 4px; min-width: 0; }
.wanted-body .line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.wanted-cars { margin: 2px 0; padding-left: 18px; }
.wanted-warrant { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 6px; display: grid; gap: 4px; }
.wanted-warrant p { margin: 0; }
.wanted-warrant .actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .wanted-card { grid-template-columns: 1fr; } .wanted-mug { justify-items: start; } }

/* ---------- the Chain's warrants (BH-M1 drop 2) ---------- */
.warrant-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.warrant-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line-2); background: var(--panel-2); }
.warrant-card.warrant-refusal { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.warrant-mug { align-self: start; padding: 6px 6px 0; border: 1px solid #000; background: #2a2823 repeating-linear-gradient(to bottom, transparent 0 14px, rgba(222, 214, 196, .16) 14px 15px); }
.warrant-mug .avatar { width: 100px; height: 100px; border-radius: 0; }
.warrant-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.warrant-stamp { justify-self: start; font-family: var(--stencil); color: var(--warn); border: 2px solid var(--warn); padding: 0 8px; letter-spacing: .06em; font-size: 14px; transform: rotate(-2deg); }
.warrant-name { margin: 4px 0 0; font-size: 20px; letter-spacing: .02em; text-transform: none; color: var(--accent-text); }
.warrant-body p { margin: 0; }
.warrant-charge { font-family: 'Kalam', var(--font); font-size: 16px; }
.warrant-facts { margin: 4px 0; display: grid; gap: 2px; }
.warrant-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.warrant-facts dt { color: var(--muted); }
.warrant-facts dd { margin: 0; }
.warrant-how { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.warrant-cars { margin: 6px 0; padding-left: 18px; }
.warrant-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.warrant-history ol { margin: 4px 0 0; padding-left: 18px; }
.chain-rings { color: var(--accent); letter-spacing: -3px; margin-right: 6px; }
@media (max-width: 560px) { .warrant-card { grid-template-columns: 1fr; } .warrant-facts div { grid-template-columns: 1fr; } }

/* ---------- the Most Wanted and the Top Hunters (BH-M1 drop 3) ---------- */
.mw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mw-row { display: grid; grid-template-columns: 28px 72px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--line-2); background: var(--panel-2); }
.mw-rank { font-family: var(--stencil); font-size: 22px; color: var(--accent); text-align: center; }
.mw-mug { padding: 4px 4px 0; border: 1px solid #000; background: #2a2823 repeating-linear-gradient(to bottom, transparent 0 10px, rgba(222, 214, 196, .16) 10px 11px); line-height: 0; }
.mw-mug .avatar { width: 62px; height: 62px; border-radius: 0; }
.mw-who { display: grid; gap: 2px; min-width: 0; }
.mw-who .warrant-name { margin: 0; font-size: 18px; }
.mw-record { margin: 0; display: grid; gap: 2px; }
.mw-record div { display: flex; justify-content: space-between; gap: 12px; }
.mw-record dt { color: var(--muted); }
.mw-record dd { margin: 0; }
.mw-price { display: grid; gap: 3px; justify-items: end; text-align: right; }
.mw-purse { font-size: 22px; color: var(--accent-text); }
.mw-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.mw-hunters tr.mine td { background: var(--accent-bg); }
.mw-lately { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .mw-row { grid-template-columns: 28px 72px minmax(0, 1fr); }
  .mw-record, .mw-price { grid-column: 2 / -1; justify-items: start; text-align: left; }
}

/* ---------- the Case File (BH-M2 drop 1) ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.case-file { background: var(--panel); border: 1px solid var(--line-2); }
.case-head { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--head-top), var(--head-bot)); }
.case-terms { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.case-terms div { padding: 8px 12px; border-right: 1px solid var(--line); }
.case-terms div:last-child { border-right: 0; }
.case-terms small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.case-terms span { font-family: var(--mono); font-size: 17px; }
.case-terms .case-exp { color: var(--warn); }
.case-body { padding: 12px; display: grid; gap: 10px; }
.case-h { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.case-load { border: 1px dashed var(--line-2); padding: 8px 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; }
.case-load h4 { grid-column: 1 / -1; margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.case-load .k { color: var(--muted); }
.case-load .q { color: var(--muted); font-family: var(--mono); opacity: .7; }
.lead { border: 1px solid var(--line); background: var(--panel-2); padding: 8px 10px; display: grid; gap: 3px; border-left: 3px solid var(--line-2); }
.lead-sighting { border-left-color: var(--warn); }
.lead-gear { border-left-color: var(--accent); }
.lead-habit { border-left-color: #7d8fa8; }
.lead-contact { border-left-color: var(--ok); }
.lead .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead .kind { color: var(--text); }
.lead q { font-family: 'Kalam', var(--font); font-size: 15px; quotes: "“" "”"; }
.lead .src { font: 12px var(--mono); color: var(--muted); }
.lead .rel { font: 11px var(--mono); padding: 0 5px; border: 1px solid var(--line-2); white-space: nowrap; }
.lead .rel-solid { color: var(--ok); border-color: var(--ok-line); }
.lead .rel-rumor { color: var(--accent); }
.lead.stale { opacity: .6; }
.lead.bad q { text-decoration: line-through; text-decoration-color: var(--warn); color: var(--muted); }
.lead.bad .rel { color: var(--warn); border-color: var(--warn-line); }
.lead .why { font: 12px var(--mono); color: var(--warn); }
.case-side { display: grid; gap: 12px; }
.case-side form { margin-top: 8px; }
.case-roads { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.case-roads li { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-left: 4px solid var(--line-2); }
.case-roads li.hot { border-left-color: var(--accent); background: var(--accent-bg); }
.case-roads li.warm { border-left-color: #b08a2a; }
.case-roads li.cold { border-left-style: dashed; color: var(--muted); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-head { grid-template-columns: 1fr; } }

/* the bypass report's actions (Nov 18) */
.bypass-act { white-space: nowrap; }
.bypass-act .inline-form + .inline-form { margin-left: 4px; }

/* ---------- Work the road and the Case File in the planner (BH-M2 drop 2) ---------- */
.trip-kind { display: grid; gap: 8px; border: 1px solid var(--line-2); padding: 10px 12px; background: var(--panel-2); }
.trip-kind legend { padding: 0 4px; }
.trip-kind-pick { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.trip-kind .case-open { justify-self: start; }
.patrol-box { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; }
.patrol-box[hidden] { display: none; }
.patrol-box p { grid-column: 1 / -1; margin: 0; }
.trip-go-fields { display: contents; }
.trip-go-fields[hidden] { display: none; }
.patrol-check { border-left-color: var(--accent); }
.case-drawer { overflow-y: auto; }
.case-drawer h4.cd-h { margin: 6px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.cd-head .warrant-mug .avatar { width: 64px; height: 64px; }
.cd-head > div:last-child { display: grid; gap: 2px; }
.cd-name { font-size: 18px; color: var(--accent-text); }
.cd-terms { border: 1px solid var(--line); }
.cd-terms span { font-size: 15px; }
.cd-roads { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cd-roads li { display: grid; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); border-left: 4px solid var(--heat, #d9d2c3); }
.cd-road { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.cd-swatch { width: 14px; height: 4px; background: var(--heat, #d9d2c3); align-self: center; }
.cd-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.heat-hot { --heat: #e0533a; }
.heat-warm { --heat: #f0a830; }
.heat-none { --heat: #d9d2c3; }
.heat-cold { --heat: #8a8f96; }
.cd-roads li.heat-cold strong { color: var(--muted); }
.cd-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); }
.cd-key span { display: inline-flex; align-items: center; gap: 5px; }
.cd-key i { display: inline-block; width: 16px; height: 4px; background: var(--heat, #d9d2c3); }
.cd-key .heat-cold i { background: repeating-linear-gradient(90deg, #8a8f96 0 4px, transparent 4px 7px); }
.cd-key .cd-pin i { width: 10px; height: 10px; border-radius: 50%; background: #e0533a; border: 2px solid #fff; }
.cd-load { font-size: 13px; }
.case-drawer .lead q { font-size: 14px; }

/* ---------- The diner, the bar and the gas station (BH-M2 drop 3) ---------- */
.diner-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px;
  border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(240, 168, 48, .10), transparent 60%), var(--panel); }
.diner-hero h1 { margin: 0; }
.diner-town { color: var(--muted); font-weight: 400; }
.diner-sign { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); background: #15130f;
  box-shadow: 0 0 18px rgba(240, 168, 48, .25), inset 0 0 12px rgba(240, 168, 48, .15); }
.diner-sign .icon { width: 38px; height: 38px; }
.diner-bar .diner-sign { border-color: #d95db0; color: #f08ad0; box-shadow: 0 0 18px rgba(217, 93, 176, .3), inset 0 0 12px rgba(217, 93, 176, .2); }
.diner-station .diner-sign { border-color: #5fb3d9; color: #8fd0ec; box-shadow: 0 0 18px rgba(95, 179, 217, .3), inset 0 0 12px rgba(95, 179, 217, .2); }
.diner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .diner-grid { grid-template-columns: 1fr; } }
.diner-h { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.diner-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.diner-person { display: grid; gap: 8px; align-content: start; padding: 14px; }
.diner-person:target { outline: 2px solid var(--accent); }
.dp-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.dp-face { width: 48px; height: 48px; display: grid; place-items: center; background: #24221d; border: 1px solid var(--line-2); }
.dp-face svg { width: 40px; height: 40px; fill: #4a463c; }
.person-trucker .dp-face svg { fill: #6f5a3a; }
.person-mechanic .dp-face svg { fill: #4f5d68; }
.person-waitress .dp-face svg, .person-bartender .dp-face svg { fill: #6b4a55; }
.person-old_timer .dp-face svg { fill: #5f5f55; }
.person-drifter .dp-face svg { fill: #3a3a3a; }
.person-clerk .dp-face svg { fill: #3f5c5f; }
.dp-name { font-size: 17px; }
.dp-kind { color: var(--accent-text); }
.dp-mood { color: var(--muted); }
.mood-chatty, .mood-friendly { color: #7fc77f; }
.mood-wary, .mood-sour { color: #e08a6a; }
.mood-drunk { color: #d9a0e0; }
.dp-desc { margin: 0; }
.dp-knows { margin: 0; }
.dp-said { margin: 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: rgba(0, 0, 0, .25); font-style: italic; }
.dp-said footer { font-style: normal; margin-top: 4px; }
.dp-talk { display: grid; gap: 8px; }
.dp-talk label { display: grid; gap: 3px; }
.dp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.diner-side { display: grid; gap: 12px; }
.diner-crew { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.diner-overheard { font-style: italic; margin: 0 0 8px; }
.diner-asking .warrant-mug .avatar { width: 64px; height: 64px; }
.noise-meter { display: grid; gap: 5px; margin: 10px 0; }
.noise-meter .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.noise-meter p { margin: 0; }
.noise-bar { height: 10px; background: #1b1915; border: 1px solid var(--line-2); }
.noise-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7fc77f, #f0a830 55%, #e0533a); }

/* ---------- The ground in replays (BH-M3 drop 1): scrub, a dirt road, rough washes ---------- */
.ground-open { fill: #3a3424; }
.ground-dirt { fill: #6b5636; }
.ground-rough { fill: #2a241b; stroke: #4a3f2c; stroke-width: .08; stroke-dasharray: .4 .3; }
.ground-paved { fill: #1a1917; }
.ground-rut { stroke: #4a3b24; stroke-width: .14; opacity: .7; }
/* the truck stop (BH-M3 drop 3): the diner, rigs, pumps and parked cars, and what becomes of them in the replay */
.road-map .arena-block.prop-building { fill: #3a2f2a; stroke: #c9a46a; stroke-width: .2; }
.road-map .arena-block.prop-pump { fill: transparent; stroke: #fff1c4; stroke-width: .08; }
.road-map .arena-block.prop-car { fill: transparent; stroke: none; }
.road-map .arena-block.prop-hit { stroke: #ff6a3d; stroke-width: .14; stroke-dasharray: .3 .2; }
.road-map .arena-block.prop-wrecked { fill: rgba(20, 16, 13, .78); stroke: #ff6a3d; stroke-width: .16; }
.road-map .arena-block.prop-blown { fill: rgba(14, 11, 9, .88); stroke: #ff8a2a; stroke-width: .22; filter: drop-shadow(0 0 .6px #ff7a1a); }
.replay-fireball { fill: rgba(255, 140, 30, .55); stroke: #ffd36b; stroke-width: .2; }
.replay-fireball.core { fill: rgba(255, 236, 160, .85); stroke: none; }
.replay-fireball.old { opacity: .35; }
.stop-lot { fill: #2f2e2c; }
.stop-island { fill: #4a4640; stroke: #6c665c; stroke-width: .1; }
.stop-stall { stroke: #d8d2c4; stroke-width: .08; opacity: .55; }
/* the fence's yard (BH-M3 drop 4): stacks of wrecks, the crane, the office, and a wreck dropped from the magnet */
.yard-ground { fill: #3b3329; }
.yard-fence { fill: none; stroke: #9c9486; stroke-width: .25; stroke-dasharray: .5 .25; }
.road-map .arena-block.prop-stack { fill: #2b2119; stroke: none; }
.road-map .arena-block.prop-crane { fill: #c9a227; stroke: none; }
.road-map .arena-block.prop-rig { fill: #222; }
.replay-crane { fill: rgba(180, 160, 130, .4); stroke: #e8d6a8; stroke-width: .18; stroke-dasharray: .3 .2; }
.replay-crane.hit { fill: rgba(255, 90, 60, .45); stroke: #ff5a3c; }
.replay-crane.old { opacity: .35; }
/* a helicopter's bomb (WX-M3): the drop, where it came down, a cluster bomb's blast ring */
/* the gun towers' missiles on the base page (WX-M4 drop 4a) */
.hb-missiles { margin: .6rem 0; padding: .6rem .7rem; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(0,0,0,.18); }
.hb-missiles h4 { margin: 0 0 .5rem; font-size: .95rem; }
.hb-tower-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.hb-tower-name { grid-column: 1 / -1; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #c9b98a; }
.hb-missile { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 2rem; padding: 4px 6px; border-radius: 5px; font-size: .8rem; line-height: 1.2;
  border: 1px solid rgba(255,255,255,.15); }
.hb-missile i { font-style: normal; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.hb-missile.hb-m-radar { border-color: #c98a4a; background: rgba(201,138,74,.12); }
.hb-missile.hb-m-radar i { color: #e0a060; }
.hb-missile.hb-m-wire { border-color: #6fa8c9; background: rgba(111,168,201,.12); }
.hb-missile.hb-m-wire i { color: #8cc3e3; }
.hb-missile.empty { border-style: dashed; }
.hb-missile.empty em { color: var(--muted, #9a9a9a); font-style: normal; width: 100%; font-size: .72rem; }
.hb-missile form { margin: 0; }
.hb-mbtn { font: inherit; font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; cursor: pointer; color: #1b1c1f; border: 0; }
.hb-mbtn.hb-m-radar { background: #e0a060; }
.hb-mbtn.hb-m-wire { background: #8cc3e3; }
.exp-setting-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exp-setting-form input { width: 5.5em; }
/* WX-M5's numbers: a label a line */
.exp-kit-form { display: grid; gap: 6px; margin-top: 8px; }
.exp-kit-form label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.exp-kit-form input { width: 6em; flex: none; }
.replay-bomb-drop { stroke: #f2c14e; stroke-width: .16; stroke-dasharray: .35 .25; }
.replay-bomb { fill: rgba(242, 193, 78, .35); stroke: #f2c14e; stroke-width: .2; }
.replay-bomb.hit { fill: rgba(255, 110, 40, .65); stroke: #ff6e28; }
.replay-bomb.cloud { fill: rgba(190, 190, 190, .5); stroke: #d0d0d0; }
.replay-bomb.old { opacity: .4; }
.replay-bomb-ring { fill: rgba(255, 110, 40, .12); stroke: #ff6e28; stroke-width: .18; stroke-dasharray: .5 .3; }
.replay-bomb-ring.old { opacity: .35; }
.wanted-hold-form { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.wanted-hold-form select { width: auto; max-width: 260px; }
.map-hold span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2a1b12; border: 2px solid #c98a4a; color: #f3d9b0; font-size: 13px; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.case-hold.found { border-color: #c98a4a; }
.case-ways { margin: .3rem 0 .6rem 1.1rem; padding: 0; }
.badge-danger { background: #7a1f1f; color: #ffd9d0; border-color: #b33a2e; } /* Most Wanted (BH-M4) */

/* armor and ammo between fights (Dispatch, owner Nov 19): the gauges' blocks in their own colours */
.cond { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.cond-gauge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; white-space: nowrap; }
.cond-label { width: 46px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.cond-icon { display: inline-flex; }
.cond-segs { display: inline-flex; gap: 2px; }
.cond-segs b { display: inline-block; width: 6px; height: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.cond-pct { font-weight: 700; color: var(--text, #e8e2d6); }
.cond-extra { color: var(--muted, #a8a29a); }
.cond-armor .cond-label, .cond-armor .cond-icon { color: #8dbbe6; }
.cond-armor .cond-segs b.on { background: linear-gradient(#9ec9ee, #4f86b8); border-color: #7fb0dd; box-shadow: 0 0 4px rgba(110,170,230,.45); }
.cond-ammo .cond-label, .cond-ammo .cond-icon { color: #e0a55a; }
.cond-ammo .cond-segs b.on { background: linear-gradient(#f0c27a, #b8792c); border-color: #d99b4b; box-shadow: 0 0 4px rgba(230,160,70,.4); }
.cond-low .cond-pct { color: #ff6a4d; }
.cond-low .cond-segs b:not(.on) { border-color: rgba(255,90,70,.55); }
.cond-hits { color: #ff8a6a; font-size: 11px; letter-spacing: .03em; }
.dispatch-who .cond { margin: 2px 0 6px; }

/* hitting a Most Wanted boss's hold (BH-M4 drop 2): the planner's box */
.hold-box { border: 1px solid #6b5a2a; background: rgba(242, 201, 76, .05); padding: 10px 12px; margin-top: 10px; }
.hold-where { margin: 0 0 8px; }
.hold-legs { margin: 0 0 10px; padding-left: 20px; line-height: 1.7; }
.hold-legs select.input { width: auto; display: inline-block; margin-left: 4px; }
.hold-approach { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.hold-lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #a8a29a); }
.hold-odds { margin-bottom: 6px; min-height: 1.4em; }
.hold-pct { font: 700 20px/1 var(--font-mono, ui-monospace, monospace); color: #8bd66b; margin-right: 6px; }
.hold-pct.hard { color: #f2c94c; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.hold-note { color: #c9c0b0; margin: 0; }

/* a Most Wanted boss's hold (BH-M4 drop 2): the art carries the look; the heart's rect carries the replay's state over its art */
.road-map .arena-block.prop-junkwall, .road-map .arena-block.prop-wall, .road-map .arena-block.prop-stockade { fill: rgba(0, 0, 0, .35); stroke: none; }
.road-map .arena-block.prop-tent, .road-map .arena-block.prop-fire, .road-map .arena-block.prop-vat, .road-map .arena-block.prop-barrels,
.road-map .arena-block.prop-sandbags { fill: rgba(0, 0, 0, .18); stroke: none; }
.road-map .arena-block.prop-tanks, .road-map .arena-block.prop-still, .road-map .arena-block.prop-shack { fill: transparent; stroke: #ffcf3f; stroke-width: .12; stroke-dasharray: .5 .3; }

/* held at a Most Wanted boss's hold (BH-M4 drop 3): the bounty page's panel and the garage card's line */
.held-panel { border-color: #b33a2e; }
.held-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.held-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.held-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.held-list form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.car-held { color: #ffb4a6; }

/* a Most Wanted boss brought in (BH-M4 drop 4): front-page news, a wanted poster's colours */
.takedown { margin: 0 0 22px; background: #e9dcc0; color: #2a1d12; border: 2px solid #2a1d12; box-shadow: 0 0 0 4px #e9dcc0, 0 0 0 6px #7a1f1f, 0 10px 28px rgba(0,0,0,.45); }
.takedown-flag { display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px; background: #7a1f1f; color: #f6e6c8; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.takedown-grid { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px 18px 14px; align-items: center; }
.takedown-mug { position: relative; margin: 0; }
.takedown-mug img, .takedown-nomug { display: block; width: 120px; height: 120px; object-fit: cover; border: 3px solid #2a1d12; filter: sepia(.55) contrast(1.05); background: #c9b590; }
.takedown-nomug { display: grid; place-items: center; font-size: 48px; color: #6b5a42; }
.takedown-stamp { position: absolute; left: -6px; bottom: 10px; transform: rotate(-12deg); padding: 3px 8px; border: 3px solid #7a1f1f; color: #7a1f1f; background: rgba(233,220,192,.88);
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.takedown-stamp.dead { border-color: #1a1a1a; color: #1a1a1a; }
.takedown-head { margin: 0 0 6px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.08; color: #2a1d12; text-transform: none; letter-spacing: 0; }
.takedown-deck { margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.45; }
.takedown-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.takedown-links a { color: #7a1f1f; font-weight: 700; }
@media (max-width: 560px) { .takedown-grid { grid-template-columns: 1fr; } .takedown-flag span:nth-child(3) { display: none; } }

/* the home base (HB-M1, the Nov 19 mock-up): the stage ladder, the lot from above, the week and the town */
.hb { max-width: 1180px; margin: 0 auto; }
.hb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hb-head h1 { margin: 0; }
.hb-sub { color: var(--muted); margin: 4px 0 0; }
.hb-ladder { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 20px; }
.hb-step { position: relative; padding: 10px 12px 10px 14px; border: 1px solid var(--line-2); background: var(--panel-2); margin-right: -1px; }
.hb-step .n { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.hb-step strong { display: block; font-size: 15px; margin: 2px 0; }
.hb-step span.small { color: var(--muted); }
.hb-step.done { background: #1d2416; border-color: #4b6b2e; }
.hb-step.done .n { color: #9fd06a; }
.hb-step.building { background: #2a2414; border-color: #8a7440; }
.hb-step.building .n { color: #e9d9a8; }
.hb-step.now { background: var(--accent-bg); border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); z-index: 1; }
.hb-step.now .n { color: var(--accent); }
.hb-step.locked { opacity: .55; }
.hb-step form { margin: 6px 0 0; }
.hb-soon { display: block; margin-top: 6px; }
.hb-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.hb-lot svg { width: 100%; height: auto; display: block; background: #2b2820; border: 1px solid var(--line-2); }
.hb-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hb-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 5px; border: 1px solid #000; }
.hb-legend .lg-built { background: #5b4f3b; }
.hb-legend .lg-plot { background: transparent; border: 1px dashed #c99a17; }
.hb-legend .lg-later { background: #2b2924; }
.hb-week h3 { margin-top: 14px; }
.hb-rivals { list-style: none; margin: 8px 0 0; padding: 0; }
.hb-rivals li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 860px) { .hb-grid { grid-template-columns: 1fr; } .hb-ladder { grid-template-columns: 1fr; } .hb-step { margin: 0 0 -1px; } }
/* the home base's buildings and its week (HB-M1 drop 2) */
.hb-money { width: 100%; border-collapse: collapse; font-size: 14px; }
.hb-money td { padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.hb-money td.num { text-align: right; font-family: var(--font-mono, monospace); white-space: nowrap; padding-left: 10px; }
.hb-money tr.in td.num { color: #9fd06a; }
.hb-money tr.out td.num { color: #e9826f; }
.hb-money tr.net td { border-bottom: 0; font-weight: 700; padding-top: 9px; }
.hb-money tr.net td.num { color: var(--accent); font-size: 16px; }
.hb-perks { margin: 6px 0 0 18px; padding: 0; }
.hb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.hb-card { border: 1px solid var(--line-2); background: var(--panel); padding: 14px 16px; position: relative; }
.hb-card h3 { margin: 0 0 2px; font-size: 16px; }
.hb-card .lv { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hb-card .pips { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.hb-card .pips b { width: 18px; height: 6px; background: var(--line-2); display: inline-block; }
.hb-card .pips b.on { background: var(--accent); }
.hb-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 12px; font-size: 13px; }
.hb-card dt { color: var(--muted); }
.hb-card dd { margin: 0; }
.hb-card .row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hb-card .row-btns form { margin: 0; }
.hb-card.empty { border-style: dashed; background: transparent; }
.hb-card.locked { opacity: .5; border-style: dashed; background: transparent; }
.hb-tag { position: absolute; top: 12px; right: 12px; }
/* the crew page's Skills tab (Nov 20): every crew member, every skill */
.skills-wrap { overflow-x: auto; margin-bottom: 8px; }
.skills-table th.num, .skills-table td.num { text-align: center; }
.skills-table th { white-space: nowrap; letter-spacing: .06em; padding: 10px 8px; }
.skills-table td { padding: 6px 8px; }
.skills-table td.num strong { display: block; font-size: 15px; }
.skills-table td.num small { display: block; font-size: 11px; }
.skills-table td.skill-up strong { color: var(--accent); }
.skills-table td:first-child { position: sticky; left: 0; background: var(--panel-2); z-index: 1; min-width: 190px; }
/* an electric vehicle's charge, lined up under armor and ammo (Dispatch, owner Nov 20) */
.cond-charge .cond-label { color: #8cc45c; }
.cond-charge .cond-icon { width: 12px; justify-content: center; font-size: 11px; line-height: 1; }
.cond-charge .cond-segs b.on { background: #8cc45c; border-color: #8cc45c; box-shadow: 0 0 4px rgba(140,196,92,.35); }
/* guards and raids (HB-M4 drop 8): the crew board's Base guard row, the base page's word of a raid */
.crb-frame .crb-guard { border-top: 2px dashed #c99a17; }
.crb-guard .crb-town { color: #f0c23b; }
.hb-raid-word { border: 1px solid #b33a2e; background: rgba(122,31,31,.35); color: #ffd9d0; padding: 8px 10px; margin: 6px 0 10px; font-size: 14px; }
.hb-raid-word .small { display: block; margin-top: 4px; color: #f3c0b4; }
.raid-notice { display: flex; align-items: center; gap: 10px; border: 1px solid #b33a2e; border-left: 4px solid #e2513c; background: rgba(122,31,31,.35); color: #ffd9d0; padding: 9px 12px; margin: 0 0 16px; font-size: 15px; }
.raid-notice .icon { width: 20px; height: 20px; color: #ff8a6a; flex: none; }
.raid-notice a { color: #ffd9a8; }
/* a raid fought on the lot (HB-M4 drop 9): bays, trailer slots, helipads and guard posts painted on the lot; a building
   carries the fight's state over its art (shot up, burned) */
.raid-bay { fill: none; stroke: #6f6a60; stroke-width: .12; stroke-dasharray: .5 .3; }
.raid-pad circle { fill: none; stroke: #c9c3b6; stroke-width: .15; }
.raid-pad text { fill: #c9c3b6; font-size: 2.4px; font-weight: 700; }
.raid-post { fill: rgba(150, 121, 74, .35); stroke: #c9a46a; stroke-width: .15; }
.raid-label { fill: #e9dcc0; font-size: 1.5px; font-weight: 700; letter-spacing: .05px; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .25px; }
.road-map .arena-block.prop-building[data-prop]:not(.prop-hit):not(.prop-wrecked) { fill: transparent; stroke: none; }
.road-map .arena-block.prop-building[data-prop].prop-hit { fill: rgba(40, 20, 10, .25); }
.hb-raids { list-style: none; padding: 0; margin: 6px 0 12px; }
.hb-raids .badge { white-space: nowrap; flex: none; }
.hb-raids li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line-1, #2a2723); }
.hb-fixing { color: #ff9c86; }
/* the compound (HB-M5 drop 10): its shut gate on the raid map (dark once broken down), its gun towers */
.road-map .arena-block.prop-gate { fill: #b5892a; stroke: #3a2e12; stroke-width: .2; }
.road-map .arena-block.prop-gate.prop-hit { fill: #8d6a20; stroke: #ff6a3d; }
.road-map .arena-block.prop-gate.prop-wrecked { fill: rgba(20, 16, 13, .5); stroke: #ff6a3d; stroke-dasharray: .4 .3; }
.raid-tower { fill: rgba(107, 90, 58, .6); stroke: #f0c23b; stroke-width: .2; }
.map-compound span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2b2a22; border: 2px solid #f0c23b; color: #f0c23b; font-size: 11px; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
/* the map's town icons (owner, Nov 20): arena badges by circuit, the oil country's derrick, the gas pump tag */
.map-arena-badge, .map-oil, .map-gas { overflow: visible; }
.map-arena-badge span, .map-oil span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #080807; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.map-arena-badge span { background: #ffd36e; color: #080807; }
.map-arena-badge.under span { background: #b8323a; color: #ffe2d8; }
.map-arena-badge.has-mine span, .map-oil.has-mine span { box-shadow: 0 0 0 2px #c99a17; }
.map-oil span { background: #1d1a16; border-color: #e08a2e; color: #e08a2e; }
.map-arena-badge .icon, .map-oil .icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-gas span { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 3px; background: #5a2e14; border: 1px solid #f0a35a; color: #ffe2b8; }
.map-gas .icon { width: 10px; height: 10px; }
.map-pop-logo img { display: block; width: 56px; height: 56px; object-fit: contain; margin: 4px 0 6px; border: 1px solid #ffd36e; background: #111; border-radius: 2px; }
.patch-up { border-left: 3px solid #8cc45c; padding-left: 12px; } /* patching up on the way (owner, Nov 20) */

/* crew cards (CREW_PRESENTATION.md, switch crew_cards; mock-up approved Nov 20): the skill grid, the billing, the filters */
.cp-card { gap: 10px; padding: 14px; }
.cp-head { display: flex; gap: 10px; align-items: center; }
.cp-head h3 { font-size: 16px; line-height: 1.15; }
.cp-bill { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cp-billing { color: var(--accent); font-style: italic; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 1px; font-size: 13px; }
.cp-cap { grid-column: 1 / -1; font-family: var(--stencil); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 5px 0 1px; margin-bottom: 1px; }
.cp-slot { display: flex; justify-content: space-between; gap: 6px; padding: 1px 5px; border-radius: 2px; }
.cp-slot b { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.cp-slot.blank { color: var(--muted); opacity: .38; }
.cp-slot.blank b { font-weight: 400; }
.cp-slot.best { background: color-mix(in srgb, var(--accent) 18%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.cp-slot.best b { color: var(--accent); }
.cp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cp-btns { display: flex; gap: 8px; }
.cp-btns form { flex: 1; display: flex; }
.cp-btns form .button { flex: 1; }
.cp-assign { font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; }
.cp-card .terms { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 0; }
.cp-assign + .terms { border-top: none; padding-top: 0; }
.cp-warn { display: block; font-size: 12px; color: var(--warn); line-height: 1.25; margin-top: 2px; }
.cp-rival-card { gap: 0; }
.cp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.cp-filters .cp-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.cp-filters select { width: auto; padding: 4px 8px; font-size: 13px; min-height: 0; }
.cp-filters label { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cp-billing-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.cp-billing-form .input { width: 170px; padding: 4px 8px; font-size: 13px; min-height: 0; }
.cp-edit summary { display: inline; cursor: pointer; font-size: 12px; color: var(--accent); list-style: none; margin-left: 4px; }
.cp-edit summary::-webkit-details-marker { display: none; }

/* crew cards on the crew board (CREW_PRESENTATION.md §5, drop 2): the seat's skill level, the warning, the bench strip, the filters */
.crb-lv { font: 600 12px/1 var(--mono); color: #b8860b; margin-left: 2px; }
.crb-lv-none { color: #c0392b; }
.crb-seat-warn { display: block; width: 100%; font-size: 12px; line-height: 1.25; color: #c0392b; font-family: var(--body, system-ui, sans-serif); }
.crb-seat-warn .icon { width: 12px; height: 12px; vertical-align: -1px; }
.crb-guard-sk { display: block; width: 100%; font-size: 12px; color: #555; padding-left: 4px; }
.crb-menu-short { opacity: .8; }
.crb-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; font-family: system-ui, sans-serif; }
.crb-filter { font: 13px/1 system-ui, sans-serif; padding: 5px 10px; border-radius: 4px; border: 1px solid #c3c7cf; background: #fff; color: #1d2a44; cursor: pointer; }
.crb-filter[aria-pressed="true"] { background: #f0c23b; border-color: #c99a17; color: #111; }
.crb-filter[data-free] { margin-left: 8px; }
.crb-mag.crb-dim { opacity: .25; }
.crb-mag.crb-lit { box-shadow: 0 0 0 2px #f0c23b; }
.crb-bench-card { display: flex; flex-direction: column; gap: 3px; }
.crb-strip { display: inline-flex; flex-wrap: wrap; gap: 1px 6px; font: 600 10px/1.2 var(--mono); }
.crb-strip-g { display: inline-flex; gap: 2px; }
.crb-strip i { font-style: normal; padding: 1px 2px; border-radius: 2px; }
.crb-strip i sup { font-size: 8px; color: #b8860b; margin-left: 1px; }
.crb-strip i.blank { opacity: .3; }
.crb-strip i.best { background: rgba(240, 194, 59, .3); }
.crb-frame .crb-lv { color: #f0c23b; }
.crb-frame .crb-lv-none, .crb-frame .crb-seat-warn { color: #ff7a5c; }
.crb-frame .crb-guard-sk { color: #c9c2b2; }
.crb-frame .crb-filter { background: #2f2d29; border-color: #5a554b; color: #f4eee2; }
.crb-frame .crb-filter[aria-pressed="true"] { background: #f0c23b; border-color: #c99a17; color: #111; }
.crb-frame .crb-strip i { color: #f4eee2; }
.crb-frame .crb-strip i sup { color: #f0c23b; }
.crb-bench-link:has(.crb-bench-card) { align-items: flex-start; }
.crb-guard-sk { white-space: nowrap; }

/* the Admin Vault (ADMIN_VAULT.md, drop 1) */
.vault-list { display: grid; gap: 12px; }
.vault-car { display: flex; flex-direction: column; gap: 10px; }
.vault-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.vault-head h3 { margin: 0 0 4px; }
.vault-breaks { margin: 6px 0 0; padding-left: 18px; color: var(--warn); font-size: 13px; }
.vault-add .input { width: auto; min-width: 0; flex: 1 1 140px; }
.vault-more summary { cursor: pointer; }
.vault-more[open] { display: grid; gap: 8px; }
.vault-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.vault-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.vault-was { font-size: 11px; color: var(--accent); }
.vault-retired { opacity: .6; }

/* Wandering merchants (ADMIN_VAULT.md §4): the town page card and the admin library */
.merchant-card { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-bg), var(--panel) 140px); }
.merchant-card .eyebrow { color: var(--accent-text); margin: 0 0 8px; }
.merchant + .merchant { border-top: 1px dashed var(--line-2); margin-top: 16px; padding-top: 16px; }
.merchant-who { display: flex; gap: 14px; align-items: flex-start; }
.merchant-who h2 { margin: 0 0 2px; font-family: var(--stencil); letter-spacing: .02em; }
.merchant-face { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line-2); }
.merchant-initial { display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--accent); font: 40px var(--stencil); }
.merchant-pitch { margin: 0 0 4px; font-style: italic; color: var(--accent-text); }
.merchant-story summary { cursor: pointer; color: var(--muted); }
.merchant-story p { font-size: 14px; margin: 6px 0; }
.merchant-why { margin: 10px 0 0; padding: 6px 10px; border-left: 3px solid var(--warn); background: var(--warn-bg); color: var(--warn); }
.merchant-goods { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.merchant-item { border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 4px; }
.merchant-item p { margin: 0; }
.merchant-item.sold-out { opacity: .55; }
.merchant-item-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.merchant-price { margin-left: auto; font-family: var(--mono); color: var(--accent-hi); }
.merchant-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 2px 10px; margin: 4px 0 0; }
.merchant-numbers dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.merchant-numbers dd { margin: 0; font-family: var(--mono); }
.merchant-buy { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.merchant-row { flex-direction: row; align-items: flex-start; }
.merchant-row .vault-head { flex: 1; }
.merchant-thumb { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.merchant-admin { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.merchant-portrait { max-width: 100%; border-radius: 4px; }
.merchant-limits { border: 1px solid var(--line); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; }
@media (max-width: 760px) { .merchant-admin { grid-template-columns: 1fr; } .merchant-face { width: 64px; height: 64px; flex-basis: 64px; } }
.merchant-admin label.checks { display: flex; flex-direction: row; align-items: center; gap: 8px; }

/* The AI painter by power plant (ART_LOOKS_BUILD.md) */
.car-ai-looks { margin: 0 0 10px; gap: 10px 16px; }
.car-ai-looks select { min-width: 220px; }
.car-ai-count { margin: 4px 0 0; color: var(--muted); }
.car-ai-check { margin: 6px 0 0; padding: 6px 10px 6px 26px; border-left: 3px solid var(--danger, #d9534f); background: rgba(217, 83, 79, .08); color: var(--danger, #e0705f); }
.car-ai-check li { margin: 2px 0; }
.car-ai-full { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.car-ai-full summary { cursor: pointer; color: var(--accent-hi); }
.car-ai-full textarea { width: 100%; margin: 6px 0; resize: vertical; }
.car-ai-left { margin: 4px 0 0; }

/* ---------- the crew outfitting page (WX-M2): the rig sheet ---------- */
.outfit-page { display: flex; flex-direction: column; gap: 18px; }
.outfit-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.outfit-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.outfit-who h1 { font-family: var(--stencil); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.outfit-skills { margin: 4px 0 0; color: var(--dim); }
.outfit-loadouts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.outfit-warn { list-style: none; margin: 0; padding: 10px 14px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.outfit-warn li + li { margin-top: 4px; }
.outfit-warn li::before { content: '⚠ '; }
.outfit-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.outfit-grid > .panel { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.outfit-page h2 { font-family: var(--stencil); font-weight: 400; color: var(--accent); margin: 0; letter-spacing: .1em; }
.rig-layout { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.rig-col { display: flex; flex-direction: column; gap: 10px; }
.rig-spot { display: flex; gap: 10px; align-items: flex-start; min-height: 84px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
.rig-spot:hover { border-color: var(--line-2); color: var(--text); }
.rig-spot.on { background: var(--accent-bg); border: 2px solid var(--accent); }
.rig-pin { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--mono);
  font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rig-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rig-name { font-weight: 500; }
.rig-meta { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.rig-empty { border: 1px dashed var(--line-2); padding: 6px 8px; color: var(--muted); font-size: 14px; }
.rig-figure { width: 150px; height: 300px; align-self: center; }
.rig-figure circle, .rig-figure rect { fill: #24221d; stroke: var(--rivet); stroke-width: 2; }
.rig-figure rect.belt { fill: var(--line-2); stroke: none; }
.rig-figure .pin circle { fill: var(--accent); stroke: none; }
.rig-figure .pin.on circle { fill: var(--accent-hi); stroke: #fff; stroke-width: 2; }
.rig-figure .pin text { font-family: var(--mono); font-size: 13px; text-anchor: middle; fill: var(--accent-ink); }
.rig-carry-head { display: flex; justify-content: space-between; gap: 12px; }
.rig-carry-head .num { color: var(--accent-text); }
.rig-carry-head .num.over { color: var(--warn); }
.rig-meter { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rig-meter span { width: 40px; height: 18px; background: var(--panel-2); border: 1px solid var(--line-2); }
.rig-meter span.pack { border-style: dashed; }
.rig-meter span.full { background: var(--accent); }
.rig-meter span.over { background: var(--warn); }
.choice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.choice-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 128px 116px; gap: 6px 12px; align-items: center; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--line); }
.choice-row.addon { grid-template-columns: minmax(0, 1fr) 116px; }
.choice-row.on { background: var(--accent-bg); border-color: var(--accent); }
.choice-row.addon { border-style: dashed; border-color: var(--line-2); }
.choice-row .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-left: 6px; }
.choice-what { min-width: 0; }
.choice-bar { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.choice-bar.small.muted { grid-column: span 2; }
.choice-bar .fp { height: 8px; background: #24221d; }
.choice-bar .fp span { display: block; height: 8px; background: var(--accent); }
.choice-odds { color: var(--dim); }
.choice-odds span { display: block; color: var(--accent-hi); }
.choice-act { text-align: right; }
.choice-why { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) { .choice-row { grid-template-columns: 1fr 1fr; } .choice-bar.small.muted { grid-column: 1 / -1; } }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sum { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.sum .big { font-size: 22px; color: var(--accent-hi); }
.sum .small { color: var(--dim); }
.outfit-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.outfit-foot .row-form .input { min-width: 220px; }
@media (max-width: 640px) {
  .rig-layout { grid-template-columns: 1fr; }
  .rig-figure { display: none; }
}

/* Ferry flights at a pace, the stops between hops and the pilots (owner, Nov 22) */
.ferry-pace { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ferry-pace legend { float: left; margin-right: 6px; padding: 0; }
.ferry-pace label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.ferry-hops tr.ferry-ground td { background: rgba(110, 168, 224, .07); }
.ferry-hops tr.ferry-ground td:first-child { color: #6ea8e0; }
.ferry-pilots { margin: 6px 0; }
.admin #flying { margin-top: 28px; }

/* The town's market (Supply Lines, SL-M1; mock-up approved Nov 22) */
.mk-live { font: 500 11px var(--font-head, inherit); letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border: 1px solid #78c86a; color: #78c86a; }
.mk-live.old { border-color: var(--muted, #9b968a); color: var(--muted, #9b968a); }
.mk-scroll { overflow-x: auto; margin: 8px 0; }
.mk-table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 13px; }
.mk-stock { display: block; margin-top: 4px; font-size: 11px; color: var(--muted, #9b968a); white-space: nowrap; }
.mk-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #9b968a); padding: 6px; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.mk-table td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.mk-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-good { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.mk-glyph { width: 20px; text-align: center; opacity: .85; }
.mk-sub { display: block; font-weight: 400; font-size: 11px; color: var(--muted, #9b968a); }
.mk-role { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9b968a); white-space: nowrap; }
.mk-role.src { color: #78c86a; } .mk-role.use { color: #e0a040; }
.mk-step { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; display: inline-block; min-width: 54px; text-align: center; }
.mk-glut { background: #1f3b2a; color: #8fe0a0; } .mk-plenty { background: #253a24; color: #b5dd8c; } .mk-steady { background: #2e2c27; color: #d8d2c2; }
.mk-short { background: #43311a; color: #f0b25c; } .mk-dry { background: #4a1f19; color: #ff8a73; }
.mk-bar { width: 60px; height: 7px; background: #2b2924; display: inline-block; vertical-align: middle; position: relative; }
.mk-bar i { position: absolute; inset: 0 auto 0 0; background: #d4a017; }
.mk-bar b { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; background: #e4e0d4; opacity: .6; }
.mk-yours { color: #b69cff; font-size: 12px; }
.mk-act { min-width: 120px; }
.mk-act .mk-yours { display: block; margin-bottom: 4px; }
.mk-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-btns:empty { display: none; }
.mk-no { font-size: 11px; color: var(--muted, #9b968a); }
.mk-stale td { color: var(--muted, #9b968a); }
.mk-trade[hidden] { display: none; }
.mk-trade { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); padding: 12px; display: grid; gap: 8px; margin-top: 8px; }
.mk-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mk-row select { max-width: 340px; }
.mk-qty { width: 90px; }
.car-goods { margin: 4px 0; }
.car-goods .mk-yours { font-size: inherit; }

/* Supply Lines drop 2 (sh326): trading on the way, wanted notices, events, the radio */
.trip-trades .trade-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.trade-row { display: grid; gap: 6px; padding: 8px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); }
.trade-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trip-trades .trade-line .input { width: auto; min-width: 0; padding: 7px 9px; }
.trip-trades .trade-line [data-trade-at] { flex: 1 1 100%; }
.trip-trades .trade-line [data-trade-side], .trip-trades .trade-line [data-trade-good] { flex: 1 1 0; }
.trip-trades .trade-line .trade-qty { width: 6em; flex: none; }
.trip-trades .trade-line .trade-limit { width: 6.5em; flex: none; }
.trade-money { display: inline-flex; align-items: center; gap: 2px; }
.trade-hint { margin: 0; }
.trade-hint:empty { display: none; }
.trade-hint b { color: var(--fg, #e4e0d4); }
.trade-hint .mk-step { font-size: 10px; min-width: 0; padding: 1px 5px; }
.mk-wanted-tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #e0a040; border: 1px dashed #e0a040; padding: 0 5px; }
.quote-trades { margin: 8px 0; }
.quote-trades ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; }
.trade-results { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.trade-results li { display: flex; gap: 10px; align-items: baseline; }
.trade-results .tr-when { font-variant-numeric: tabular-nums; color: var(--muted, #9b968a); white-space: nowrap; font-size: 12px; }
.trade-results .tr-done { color: #78c86a; } .trade-results .tr-held { color: #e0a040; } .trade-results .tr-skipped { color: var(--muted, #9b968a); }
.trade-results .tr-pending { color: var(--fg, #e4e0d4); }
.mk-banner { padding: 8px 12px; font-size: 13px; margin: 8px 0; }
.mk-banner b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.mk-event { border: 1px solid #6ea8e0; background: rgba(110,168,224,.07); }
.mk-event b { color: #6ea8e0; }
.mk-wanted { border: 1px dashed #e0a040; background: rgba(224,160,64,.07); }
.mk-wanted b { color: #e0a040; }
.mk-live.radio { border-color: #b69cff; color: #b69cff; }
.mk-want-cell { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #e0a040; }
.cb-market .cb-handle { color: #e0a040; }
.sl-admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 18px; }
.sl-admin-row label { display: grid; gap: 4px; }
.sl-admin-row .input { width: auto; max-width: 260px; }
.sl-admin-row input.input { width: 6em; }
.trip-trades [hidden] { display: none !important; }

/* Supply Lines drop 3 (sh327): the back row */
.hb-storage { margin-top: 18px; }
.hb-storage .hb-cards { margin-top: 10px; }
.st-meter { height: 8px; background: #2b2924; position: relative; margin-top: 6px; }
.st-meter i { position: absolute; inset: 0 auto 0 0; background: #d4a017; }
.st-meter.cold i { background: #8fd3e8; }
.st-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: 3px; }
.st-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-row.ice { color: #8fd3e8; }
.good-text { color: #78c86a; }
.store-box { margin-top: 6px; }
.store-box summary { cursor: pointer; color: var(--accent, #d4a017); }
.store-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12px; }
.store-table th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9b968a); padding: 3px 4px; }
.store-table td { padding: 4px; border-top: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.store-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.store-form { display: inline-flex; gap: 4px; align-items: center; margin: 2px 4px 2px 0; }
.store-form .input { width: 5em; padding: 4px 6px; }
.hb-storage .hb-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.st-own { width: 100%; } .st-own th { text-align: left; } .st-own .num { text-align: right; }
.store-rows { display: grid; gap: 6px; margin: 6px 0; }
.store-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.store-good { flex: 1 1 100%; }

/* Outposts (Supply Lines drop 4) */
.op { display: grid; gap: 16px; }
.op-lede { max-width: 78ch; margin: 0; }
.op-h { margin: 4px 0 10px; }
.op-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.op-two > * { min-width: 0; }
.op-svg { overflow-x: auto; }
.op-svg svg { display: block; width: 100%; min-width: 420px; height: auto; border: 1px solid var(--line); }
.op-side { display: grid; gap: 10px; align-content: start; }
.op-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.op-acts form { margin: 0; }
.op-rename { display: flex; gap: 6px; }
.op-rename .input { width: 16em; }
.op-load { margin: 0; }
.op-good { color: var(--ok); }
.op-chip-ok { border-color: var(--ok-line); color: var(--ok); }
.op-table td { vertical-align: top; }
.op-search { margin-top: 10px; }
.op-search ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.op-search li label { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); cursor: pointer; }
.op-search .pct { font-family: ui-monospace, monospace; color: var(--ok); }
.op-search .pct.low { color: var(--warn); }
.map-outpost span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #10170b; border: 2px dashed #8cc45c; color: #8cc45c; font-size: 12px; font-weight: 700; }
.map-outpost-find span { border-color: #e0a040; color: #e0a040; background: #1b1408; }
.op-h { font-size: 1.7rem; }
.op-table th { text-align: left; }
.op-table td.num { white-space: nowrap; }
.op-search li label { text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 14px; color: var(--text, inherit); }
/* Outposts built up (Supply Lines drop 5) */
.op-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.op-stage { border: 1px solid var(--line); padding: 6px 10px; display: grid; gap: 2px; }
.op-stage b { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.op-stage.done { border-color: var(--ok-line, #3d5a34); } .op-stage.done b { color: var(--ok); }
.op-stage.next { border-color: var(--accent, #d4a017); }
.op-sub { font-size: 1.15rem; margin: 14px 0 8px; }
.op-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.op-card { border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.op-card h3 { margin: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.op-card.built { border-color: var(--ok-line, #3d5a34); } .op-card.locked { opacity: .6; }
.op-card form { margin: 0; }
.op-alert { border: 1px solid var(--warn, #e0a040); padding: 8px 12px; margin: 8px 0; }
.op-raids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-raids li { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.chip-bad { color: var(--danger, #e0614a); border-color: currentColor; }
@media (max-width: 560px) { .op-stages { grid-template-columns: 1fr; } }
/* Admin: each build under way, with its time (owner, Nov 23) */
.build-timers { display: grid; gap: 6px; }
.build-timer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.build-timer-what { min-width: 14em; }
.build-timer input[type="datetime-local"] { width: 14.5em; padding-block: 4px; }
.build-timer-what { flex: 1 1 14em; }

/* Roll Your Own Crew (drop 1): the roll page, the portrait pick, the welcome page, the bio on the crew file and card */
.ryo { display: grid; gap: 16px; }
.ryo h1 { margin: 0; }
.ryo-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ryo-slot { border: 1px solid var(--line-2); background: var(--panel-2); padding: 8px 10px; display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.ryo-slot b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ryo-slot.open { border-color: var(--ok-line); } .ryo-slot.open b { color: var(--ok); }
.ryo-slot.wait { border-style: dashed; } .ryo-slot.wait b { color: var(--warn); }
.ryo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ryo-grid > .panel { display: grid; gap: 10px; }
.ryo-grid h2, .ryo-grid h3 { margin: 4px 0 0; }
.ryo-field { display: grid; gap: 4px; min-width: 0; }
.ryo-field .input { width: 100%; }
.ryo-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ryo-looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ryo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ryo-counter { font-family: var(--mono); }
.ryo-counter b { color: var(--accent); font-size: 1.15rem; }
.ryo-sheet { border-top: 2px solid var(--line-2); }
.ryo-sk { display: grid; grid-template-columns: 1fr auto 3.4em auto 4.5em; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ryo-sk.off .nm, .ryo-sk.off .lv { opacity: .45; }
.ryo-sk .nm small { display: block; color: var(--muted); font-size: 12px; }
.ryo-sk .lv { font-family: var(--mono); text-align: center; }
.ryo-sk .cost { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.ryo-pm { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 700 16px var(--mono); cursor: pointer; }
.ryo-pm:disabled { opacity: .3; cursor: not-allowed; }
.ryo-confirm { border: 1px solid var(--line-2); background: var(--panel-2); padding: 10px 12px; display: grid; gap: 6px; }
.ryo-confirm p { margin: 0; }
.ryo-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ryo-pick { border: 2px solid var(--line-2); background: var(--panel-2); padding: 8px; display: grid; gap: 6px; cursor: pointer; justify-items: center; }
.ryo-pick img { width: 100%; height: auto; display: block; }
.ryo-pick input { justify-self: start; }
.ryo-pick:has(input:checked) { border-color: var(--accent); }
.ryo-pick.empty { cursor: default; place-items: center; min-height: 200px; }
.ryo-reveal { border: 1px dashed var(--line-2); padding: 8px 12px; }
.ryo-reveal summary { cursor: pointer; color: var(--accent-text); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.ryo-reveal pre { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: var(--panel-2); padding: 10px; margin: 8px 0; }
.ryo-welcome { max-width: 760px; }
.ryo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ryo-bio { display: grid; gap: 6px; margin: 10px 0; max-width: 60ch; justify-items: start; }
.ryo-bio textarea { width: 100%; }
.ryo-biotext { white-space: normal; }
.cc-bio { border-left: 3px solid currentColor; padding: 4px 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.cc-bio .sc-label { display: block; margin: 0 0 2px; }
.ryo-words { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.ryo-addname { display: grid; grid-template-columns: minmax(8em, 12em) minmax(7em, 10em) 1fr auto; gap: 8px; align-items: center; margin: 8px 0; }
@media (max-width: 640px) { .ryo-addname { grid-template-columns: 1fr 1fr; } }
/* Roll Your Own Crew drop 2: a photo waiting for approval; the admin queue */
.ryo-waiting { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 8px; border: 1px dashed var(--warn-line); max-width: 60ch; }
.ryo-waiting img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.ryo-waiting > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.ryo-queue td { vertical-align: middle; }
.ryo-queue .ryo-face { width: 72px; height: 72px; object-fit: cover; display: block; }
.ryo-queue .ryo-face-new { outline: 2px solid var(--accent); }
.ryo-queue td { padding: 6px 8px; }
.ryo-queue .ryo-decide { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.ryo-queue .ryo-decide .input { width: 16em; min-width: 0; flex: none; }
.ryo-again { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
/* the garage's "Send a picture" window and pictures waiting for approval (Nov 23) */
.vp-send { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.vp-send .button { white-space: nowrap; }
.vp-wait { position: relative; }
.vp-wait img { opacity: .55; }
.vp-wait a > span, .vp-wait > span { position: absolute; left: 4px; top: 4px; font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--warn); color: #111; padding: 3px 5px; }
.vp-modal { width: min(880px, 94vw); max-height: 90vh; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel, #1b1a17); color: inherit; }
.vp-modal::backdrop { background: rgba(5, 5, 4, .72); }
.vp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vp-head h3 { margin: 0; }
.vp-x { background: none; border: 1px solid var(--line-2); color: inherit; width: 34px; height: 34px; font-size: 20px; cursor: pointer; }
.vp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
@media (max-width: 720px) { .vp-cols { grid-template-columns: 1fr; } }
.vp-box { border: 1px solid var(--line-2); background: var(--panel-2); padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.vp-box h4 { margin: 0; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--accent-text); }
.vp-box pre { white-space: pre-wrap; font: 12.5px/1.5 var(--mono); background: var(--bg, #111); padding: 10px; margin: 0; max-height: 230px; overflow: auto; }
.vp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vp-row select { flex: 1 1 10em; min-width: 0; }
.vp-drop { border: 2px dashed var(--line-2); padding: 22px 10px; text-align: center; color: var(--muted); display: grid; gap: 4px; cursor: pointer; position: relative; }
.vp-drop.over { border-color: var(--accent); }
.vp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ryo-queue .vp-thumb { width: 128px; height: auto; max-height: 96px; object-fit: contain; }
.ryo-queue .ryo-decide .button { white-space: nowrap; }

/* Storylines (QS-M1 drop 1): Admin -> Stories, the beat editor, the cast and scene banks, Play it through */
.qs-sub { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0 14px; }
.qs-crumb { color:var(--muted); font-size:13px; letter-spacing:.06em; margin:0 0 4px; }
.qs-crumb b { color:var(--text); }
.qs-head { display:flex; justify-content:space-between; align-items:end; gap:14px; flex-wrap:wrap; }
.qs-head h1 { margin:0; }
.qs-acts { display:flex; gap:8px; flex-wrap:wrap; }
.qs-chapters { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0; }
.qs-ch { border:1px solid var(--line-2); padding:6px 12px; font-size:13px; color:var(--dim); background:var(--panel-2); }
.qs-ch b { display:block; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.qs-ch.on { border-color:var(--accent); color:var(--text); background:var(--accent-bg); }
.qs-ch.on b { color:var(--accent-text); }
.qs-counts { display:grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.qs-count { border:1px solid var(--line-2); background:var(--panel-2); padding:10px 12px; }
.qs-count b { display:block; font:600 22px/1.1 var(--mono); }
.qs-count span { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.qs-count.err b { color:var(--warn); }
.qs-fix { margin:10px 0 0; padding:0; list-style:none; display:grid; gap:4px; font-size:13px; }
.qs-fix li { padding:5px 10px; border-left:3px solid var(--warn-line); background:var(--warn-bg); }
.qs-fix li.note { border-left-color:var(--line-2); background:transparent; color:var(--muted); }
.qs-fix li.wn { border-left-color:#c9a24a; background:rgba(201,162,74,.08); }
.qs-fix li b { font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-right:6px; }
.qs-part { font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-text); margin:22px 0 8px; border-bottom:1px solid var(--line); padding-bottom:6px; }
.qs-beat { border:1px solid var(--line-2); background:var(--panel); margin:0 0 12px; }
.qs-bhead { display:grid; grid-template-columns: 200px 1fr auto; gap:14px; padding:12px; border-bottom:1px solid var(--line); align-items:start; }
.qs-thumb { aspect-ratio:16/9; width:100%; background:repeating-linear-gradient(135deg,#24221d 0 10px,#1d1b17 10px 20px); border:1px solid var(--line-2); display:grid; place-items:center; color:var(--muted); font-size:11px; letter-spacing:.1em; text-transform:uppercase; text-align:center; position:relative; overflow:hidden; }
.qs-thumb.art { background:linear-gradient(180deg,#3b2c1c,#16120d 70%); color:#e9d6a8; }
.qs-thumb.carry { opacity:.55; }
.qs-thumb small { position:absolute; left:4px; bottom:4px; font-size:10px; background:rgba(0,0,0,.6); padding:2px 5px; color:#ddd; letter-spacing:.06em; text-transform:none; }
.qs-who { display:flex; gap:10px; align-items:center; margin:0 0 6px; }
.qs-who img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:1px solid var(--line-2); }
.qs-who b { display:block; }
.qs-who span { font-size:12px; color:var(--muted); }
.qs-n { font:600 11px var(--mono); color:var(--muted); letter-spacing:.08em; }
.qs-line { margin:0; padding:8px 10px; background:var(--panel-2); border:1px solid var(--line); font-size:14.5px; }
.qs-replies { width:100%; border-collapse:collapse; font-size:13px; }
.qs-replies th { text-align:left; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; padding:6px 10px; border-bottom:1px solid var(--line); }
.qs-replies td { padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.qs-replies tr:last-child td { border-bottom:0; }
.qs-slot { font:700 13px var(--mono); width:26px; height:26px; display:inline-grid; place-items:center; border:1px solid var(--line-2); }
.qs-slot.c { border-color:var(--accent); color:var(--accent-text); }
.qs-ans { color:var(--dim); font-style:italic; }
.qs-eff { display:flex; flex-wrap:wrap; gap:4px; }
.qs-e { font:12px var(--mono); padding:1px 6px; border:1px solid var(--line-2); white-space:nowrap; }
.qs-e.cost { color:var(--warn); border-color:var(--warn-line); }
.qs-e.up { color:var(--ok); border-color:var(--ok-line); }
.qs-e.down { color:var(--warn); border-color:var(--warn-line); }
.qs-e.flag { color:#b69cff; border-color:#5e4f8c; }
.qs-gate { font-size:12px; padding:1px 6px; border:1px solid var(--accent); color:var(--accent-text); white-space:nowrap; }
.qs-then { white-space:nowrap; }
.qs-then.end { color:var(--ok); }
.qs-then.jump { color:#7fb7ff; }
.qs-row-warn td { background:rgba(201,162,74,.07); }
.qs-pic { width:64px; aspect-ratio:16/9; background:linear-gradient(180deg,#2d3a44,#101418); border:1px solid var(--line-2); display:inline-block; }
.qs-empty { color:var(--muted); }
.qs-add { display:flex; gap:8px; margin:6px 0 0; }
.qs-small { font-size:12px; color:var(--muted); }
.qs-grid { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:16px; align-items:start; }
.qs-side .panel { margin-bottom:12px; }
.qs-side h3 { font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-text); margin:0 0 8px; }
.qs-side dl { display:grid; grid-template-columns:auto 1fr; gap:4px 10px; margin:0; font-size:13px; }
.qs-side dt { color:var(--muted); }
.qs-side dd { margin:0; }
@media (max-width: 900px) { .qs-grid { grid-template-columns:1fr; } .qs-bhead { grid-template-columns:1fr; } }
.qs-cast { display:grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.qs-cc { border:1px solid var(--line-2); background:var(--panel); padding:10px; display:grid; grid-template-columns:64px 1fr; gap:10px; align-items:start; }
.qs-cc.on { border-color:var(--accent); background:var(--accent-bg); }
.qs-cc img, .qs-cc .ph { width:64px; height:64px; border-radius:50%; object-fit:cover; border:1px solid var(--line-2); background:var(--panel-2); display:grid; place-items:center; color:var(--muted); font-size:22px; }
.qs-cc b { display:block; }
.qs-cc p { margin:2px 0; font-size:12.5px; color:var(--dim); }
.qs-cc .qs-use { font-size:11.5px; color:var(--muted); }
.qs-edit { display:grid; grid-template-columns: 220px minmax(0,1fr); gap:18px; align-items:start; }
.qs-port { display:grid; gap:8px; }
.qs-port img { width:100%; aspect-ratio:1; object-fit:cover; border:1px solid var(--line-2); }
.qs-skills { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:6px; }
.qs-sk { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--line); background:var(--panel-2); padding:5px 8px; font-size:13px; }
.qs-sk input { width:46px; text-align:center; background:var(--bg); color:var(--text); border:1px solid var(--line-2); padding:3px; font:13px var(--mono); }
.qs-sec { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-text); margin:16px 0 8px; }
.qs-gear { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.qs-ta { width:100%; min-height:84px; background:var(--panel-2); color:var(--text); border:1px solid var(--line-2); padding:8px 10px; font:inherit; box-sizing:border-box; }
.qs-uses { margin:0; padding-left:18px; font-size:13px; }
@media (max-width: 760px) { .qs-edit { grid-template-columns:1fr; } }
.qs-edit-box { border-top:1px dashed var(--line-2); padding:10px 12px; }
.qs-edit-box > summary { cursor:pointer; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-text); }
.qs-edit-box[open] > summary { margin-bottom:10px; }
.qs-form { display:grid; gap:10px; }
.qs-form textarea, .qs-form input[type=text], .qs-form input[type=number], .qs-form select { width:100%; box-sizing:border-box; background:var(--panel-2); color:var(--text); border:1px solid var(--line-2); padding:7px 9px; font:inherit; }
.qs-form textarea { min-height:64px; resize:vertical; }
.qs-form label { display:grid; gap:4px; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.qs-form label.qs-check { display:flex; align-items:center; gap:6px; text-transform:none; letter-spacing:0; font-size:13px; color:var(--text); }
.qs-form label.qs-check input { width:auto; }
.qs-row { display:grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
.qs-btns { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.qs-inline { display:inline; }
.qs-conds { display:grid; gap:4px; margin:0 0 8px; padding:0; list-style:none; font-size:13px; }
.qs-conds li { display:flex; justify-content:space-between; gap:8px; align-items:center; border:1px solid var(--line); padding:4px 8px; background:var(--panel-2); }
.qs-conds li.any { border-left:3px solid #7fb7ff; }
.qs-x { background:none; border:1px solid var(--line-2); color:var(--muted); cursor:pointer; padding:0 7px; font:inherit; line-height:1.6; }
.qs-x:hover { color:var(--warn); border-color:var(--warn-line); }
.qs-hint { font-size:12px; color:var(--muted); margin:0; }
.qs-parts { display:flex; gap:6px; margin:18px 0 8px; flex-wrap:wrap; }
.qs-list { width:100%; border-collapse:collapse; font-size:14px; }
.qs-list th { text-align:left; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); padding:6px 8px; border-bottom:1px solid var(--line); }
.qs-list td { padding:8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.qs-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.qs-thumb.port img { object-fit:contain; background:#111; }
.qs-scenes { display:grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.qs-sc { border:1px solid var(--line-2); background:var(--panel); padding:8px; display:grid; gap:6px; color:inherit; text-decoration:none; }
.qs-sc.on { border-color:var(--accent); background:var(--accent-bg); }
.qs-sc b { font-size:14px; }
.qs-prompt { white-space:pre-wrap; font:12.5px/1.5 var(--mono); background:var(--bg); padding:10px; border:1px solid var(--line); max-height:220px; overflow:auto; margin:0; }
.qs-big { aspect-ratio:16/9; width:100%; border:1px solid var(--line-2); overflow:hidden; background:repeating-linear-gradient(135deg,#24221d 0 10px,#1d1b17 10px 20px); display:grid; place-items:center; }
.qs-big img { width:100%; height:100%; object-fit:cover; display:block; }
.qs-big.port img { width:auto; height:100%; object-fit:contain; }
.qs-play { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:16px; align-items:start; }
.qs-say { display:grid; grid-template-columns:64px 1fr; gap:12px; align-items:start; margin:12px 0; }
.qs-say .qs-line { font-size:16px; }
.qs-picks { display:grid; gap:8px; margin:10px 0 0; }
.qs-pick { display:flex; justify-content:space-between; gap:10px; align-items:center; text-align:left; width:100%; background:var(--panel-2); color:var(--text); border:1px solid var(--line-2); padding:10px 12px; font:inherit; cursor:pointer; }
.qs-pick:hover { border-color:var(--accent); }
.qs-pick.hidden { opacity:.45; cursor:not-allowed; border-style:dashed; }
.qs-pick .qs-eff { flex:none; }
.qs-strip { display:grid; gap:10px; }
.qs-panel { display:grid; grid-template-columns:120px 1fr; gap:10px; border:1px solid var(--line); background:var(--panel); padding:8px; font-size:13px; }
.qs-panel .qs-thumb { width:120px; }
.qs-panel p { margin:0 0 4px; }
.qs-panel .you { color:var(--accent-text); }
.qs-end { border:1px solid var(--ok-line); background:var(--ok-bg); padding:12px; }
@media (max-width: 900px) { .qs-play { grid-template-columns:1fr; } .qs-panel { grid-template-columns:1fr; } }
.qs-port { min-width:0; }
.qs-port > *, .qs-port select, .qs-port input[type=file] { max-width:100%; width:100%; box-sizing:border-box; }
.qs-form .qs-sk input[type=number] { width:56px; flex:none; padding:3px 4px; }
.qs-sk { gap:6px; }
.qs-gear .qs-check { font-size:12.5px; }

/* Storylines drop 2: the booth banner, the quest giver at the diner, the dialog page, the offer card, the journal */
.st-banner { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 14px; margin:0 0 16px; border:1px solid var(--accent); background:var(--accent-bg); font-size:14px; }
.st-banner b { color:var(--accent-text); }
.st-giver { display:grid; grid-template-columns:96px 1fr; gap:14px; padding:14px; border:2px solid var(--accent); background:linear-gradient(180deg, rgba(212,160,23,.08), transparent); margin:0 0 18px; }
.st-giver img { width:96px; height:96px; border-radius:50%; object-fit:cover; border:2px solid var(--accent); }
.st-giver h3 { margin:0; font-size:19px; }
.st-tag { font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-text); }
.st-giver p { margin:4px 0; }
.st-giver .row { display:flex; gap:8px; flex-wrap:wrap; align-items:end; margin-top:8px; }
.st-dialog { max-width:980px; margin:0 auto; }
.st-scene { position:relative; aspect-ratio:16/9; border:1px solid var(--line-2); overflow:hidden; box-shadow:0 8px 0 #000; }
.st-scene img { width:100%; height:100%; object-fit:cover; display:block; }
.st-scene .st-cap { position:absolute; left:12px; top:12px; background:rgba(0,0,0,.7); padding:4px 10px; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#e9d6a8; }
.st-say { display:grid; grid-template-columns:72px 1fr; gap:14px; margin:18px 0 10px; }
.st-say img { width:72px; height:72px; border-radius:50%; object-fit:cover; border:1px solid var(--line-2); }
.st-who b { font-size:18px; } .st-who span { color:var(--muted); font-size:13px; }
.st-line { margin:8px 0 0; font-size:19px; line-height:1.45; padding:12px 16px; background:var(--panel); border-left:3px solid var(--accent); }
.st-back { margin:20px 0 6px 86px; font-size:14px; display:grid; gap:4px; }
.st-back .you { color:var(--accent-text); } .st-back .ans { color:var(--dim); font-style:italic; }
.st-talker { margin:6px 0 10px 86px; font-size:13px; color:var(--muted); }
.st-replies { display:grid; gap:8px; margin-left:86px; }
.st-reply { display:flex; justify-content:space-between; gap:10px; align-items:center; text-align:left; width:100%; background:var(--panel-2); color:var(--text); border:1px solid var(--line-2); padding:12px 14px; font:inherit; font-size:16px; cursor:pointer; }
.st-reply:hover { border-color:var(--accent); }
.st-reply .qs-eff { flex:none; }
.st-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 0 86px; font-size:13px; color:var(--muted); }
.st-offer { margin:18px 0 0 86px; border:2px solid var(--accent); background:var(--panel); padding:16px 18px; }
.st-offer h3 { margin:0 0 8px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-text); font-size:15px; }
.st-offer dl { display:grid; grid-template-columns:150px 1fr; gap:5px 12px; margin:0 0 12px; }
.st-offer dt { color:var(--muted); font-size:13px; } .st-offer dd { margin:0; }
.st-journal { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start; }
.st-strip { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
.st-panel { border:1px solid var(--line-2); background:var(--panel); display:grid; }
.st-panel .pic { aspect-ratio:16/9; overflow:hidden; background:#1d1b17; }
.st-panel .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.st-panel .txt { padding:10px 12px; font-size:13.5px; display:grid; gap:5px; }
.st-panel .who { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.st-panel .you { color:var(--accent-text); } .st-panel .ans { color:var(--dim); font-style:italic; }
.st-chapters { list-style:none; margin:0; padding:0; display:grid; gap:6px; font-size:14px; }
.st-chapters li { display:flex; gap:8px; align-items:center; }
.st-chapters .done { color:var(--ok); } .st-chapters .now { color:var(--accent-text); font-weight:600; } .st-chapters .later { color:var(--muted); }
.st-mission { border:1px solid var(--accent); padding:12px; display:grid; gap:6px; }
.st-map { aspect-ratio:4/3; background:repeating-linear-gradient(0deg,#1e1c18 0 22px,#22201b 22px 23px),repeating-linear-gradient(90deg,#1e1c18 0 22px,#22201b 22px 23px); border:1px solid var(--line-2); position:relative; }
.st-map svg { position:absolute; inset:0; width:100%; height:100%; }
.st-indent { margin-left:86px; }
.st-scene .st-port, .st-panel .pic .st-port { object-fit:contain; background:#111; }
.st-blank { display:block; width:100%; height:100%; background:repeating-linear-gradient(135deg,#24221d 0 10px,#1d1b17 10px 20px); }
.st-say .avatar { width:72px; height:72px; }
.st-replies form, .st-foot form, .st-offer form { margin:0; }
@media (max-width: 760px) {
  .st-back, .st-talker, .st-replies, .st-foot, .st-offer, .st-indent { margin-left:0; }
  .st-say { grid-template-columns:48px 1fr; } .st-say .avatar { width:48px; height:48px; }
  .st-journal { grid-template-columns:1fr; } .st-offer dl { grid-template-columns:1fr; } .st-giver { grid-template-columns:64px 1fr; } .st-giver img { width:64px; height:64px; }
}
.raid-notice.st-dispatch { border-color:var(--accent); background:var(--accent-bg); }

/* ---------- Storylines drop 3: story hunts (Nov 24 mock-up) ---------- */
.hunt-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hunt-switch a { display: grid; gap: 1px; padding: 7px 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); text-decoration: none; min-width: 0; }
.hunt-switch a.on { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 -3px 0 var(--accent); }
.hunt-switch b { font-size: 15px; letter-spacing: .02em; }
.hs-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hs-k.story, .st-mark { color: #b69cff; }
.st-mark { display: inline-block; border: 1px solid #5c4a99; padding: 0 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; vertical-align: 3px; }
.case-private { border-left: 3px solid #5c4a99; }
.st-hunt { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.st-hunt .avatar { grid-row: span 3; }
.st-fates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.st-fates li { display: flex; align-items: center; gap: 8px; }
.st-fates .f { margin-left: auto; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.st-fates .f.dead { color: var(--warn); } .st-fates .f.alive { color: var(--ok); } .st-fates .f.away { color: var(--muted); } .st-fates .f.out { color: var(--accent); }
.warrant-pick { display: grid; gap: 4px; margin: 0 0 8px; }

/* ---------- Storylines drop 4: ambushes and what each chapter paid (Nov 24 mock-up) ---------- */
.st-chapters li { flex-wrap: wrap; }
.st-got { flex-basis: 100%; display: block; font-size: 12px; color: var(--muted); margin: 2px 0 0 18px; letter-spacing: 0; text-transform: none; }
.st-when { color: var(--warn); }

/* ---------- Channel 9 (sh342): the report button, the dial, the form, My reports, the Scrutineer (Nov 24 mock-up) ---------- */
.ch9-btn { position: fixed; left: 32px; bottom: 100px; z-index: 50; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--panel-2); color: var(--accent); text-decoration: none; opacity: .6; transition: opacity .2s; }
.ch9-btn .ch9-num { font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.ch9-btn .ch9-tip { position: absolute; left: 52px; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line-2); padding: 3px 8px; color: var(--text);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ch9-btn:hover, .ch9-btn:focus-visible { opacity: 1; }
.ch9-btn:hover .ch9-tip, .ch9-btn:focus-visible .ch9-tip { opacity: 1; }
@media (max-width: 700px) { .ch9-btn { left: 10px; bottom: 62px; width: 40px; height: 40px; } }
@media print { .ch9-btn { display: none; } }
.dial { display: flex; margin: 0 0 18px; border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
.dial a { padding: 8px 18px; color: var(--muted); text-decoration: none; display: grid; gap: 1px; border-right: 1px solid var(--line-2); }
.dial a:last-child { border-right: 0; }
.dial a b { font-size: 22px; color: var(--text); letter-spacing: .04em; line-height: 1; }
.dial a span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.dial a.on { background: var(--accent-bg); box-shadow: inset 0 -3px 0 var(--accent); }
.dial a.on b { color: var(--accent); }
.form9 { max-width: 760px; border: 1px solid var(--line-2); background: var(--panel); padding: 0; }
.form9-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--line-2); background: var(--panel-2); flex-wrap: wrap; }
.form9-head h2 { margin: 0; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.form9-head .no { font-family: var(--mono, monospace); font-size: 12px; color: var(--muted); }
.form9-body { padding: 16px 18px; display: grid; gap: 14px; }
.form9-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; margin: 0; padding: 10px 12px; border: 1px dashed var(--line-2); }
.form9-facts dt { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; padding-top: 2px; }
.form9-facts dd { margin: 0; font-family: var(--mono, monospace); word-break: break-word; min-width: 0; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick label { border: 1px solid var(--line-2); padding: 7px 12px; cursor: pointer; font-size: 14px; }
.cat-pick label { position: relative; }
.cat-pick label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cat-pick label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
.fight-att { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); font-size: 14px; }
.stamp9 { display: inline-block; border: 1px solid; padding: 1px 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.stamp9.st-received, .stamp9.st-not_a_bug, .stamp9.st-duplicate { color: var(--muted); }
.stamp9.st-confirmed { color: var(--ok); }
.stamp9.st-fixed { color: #6fc3ff; }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rep-list li { border: 1px solid var(--line-2); padding: 10px 14px; background: var(--panel); display: grid; gap: 4px; }
.rep-list .row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rep-list li:target { border-color: var(--accent); }
.rep-body { white-space: normal; overflow-wrap: anywhere; }
.rep-reply { border-left: 3px solid var(--line-2); padding: 4px 10px; font-size: 14px; color: var(--text); }
.rep-reply .who { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; }
.scrut { display: inline-flex; align-items: center; gap: 5px; color: #e9c46a; font-size: 13px; }
.scrut .mag { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; margin-right: 4px; }
.scrut .mag::after { content: ""; position: absolute; width: 7px; height: 2px; background: currentColor; right: -6px; bottom: -3px; transform: rotate(45deg); }
.scrut-line { margin: 4px 0 0; }
.ch9-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; max-width: 1000px; }
.ch9-cols > * { min-width: 0; }
.ch9-admin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .ch9-admin { grid-template-columns: 1fr; } }
.ch9-admin tr.row-on td { background: var(--accent-bg); }
.ch9-admin .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.replay-flag { margin-left: 8px; text-decoration: none; }

/* ---------- Channel 21 (sh343): the drivers' channel, its threads, the garage strip, Admin -> Channel 21 (Nov 24 mock-up) ---------- */
.ch21-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.ch21-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.ch21-rules { font-size: 13px; border-left: 3px solid var(--line-2); padding: 6px 12px; color: var(--muted); margin: 0 0 14px; }
.tx-box { border: 1px solid var(--line-2); background: var(--panel); padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 18px; }
.tx-box textarea { width: 100%; min-height: 64px; resize: vertical; }
.tx-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.tx-row .left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tx-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tx-as { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tx-as .crest { width: 24px; height: 24px; }
.tx-list { display: grid; gap: 10px; }
.tx { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; border: 1px solid var(--line-2); background: var(--panel); padding: 10px 14px; }
.tx .crest { grid-row: span 3; }
.tx-who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.tx-who strong { color: var(--text); }
.tx-who .where { color: var(--muted); font-size: 12px; }
.tx-who .when { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tx-body { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.tx-to { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; margin-right: 6px; }
.tx-acts { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.tx-acts a { color: var(--muted); text-decoration: none; }
.tx-acts a:hover { color: var(--text); text-decoration: underline; }
.tx.mine { border-left: 3px solid var(--accent); }
.tx.callout { border-color: var(--accent); }
.tx.held { border-style: dashed; opacity: .85; }
.tx.held .held-tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #e9c46a; }
.tx.pulled .tx-body { color: var(--muted); font-style: italic; }
.tx.naaa { background: var(--panel-2); border-color: #e9c46a55; }
.tx.naaa .naaa-crest { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e9c46a; display: grid; place-items: center; font-size: 10px; letter-spacing: .08em; color: #e9c46a; grid-row: span 3; }
.tx-new { text-align: center; font-size: 13px; border: 1px solid var(--accent); color: var(--accent); padding: 6px; cursor: pointer; }
.side21 { display: grid; gap: 14px; }
.side21 .panel h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.thread-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.thread-list a { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line-2); text-decoration: none; color: var(--text); }
.thread-list a.on { border-color: var(--accent); background: var(--accent-bg); }
.thread-list .t { font-weight: 600; }
.thread-list .s { font-size: 12px; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9534f; margin-right: 6px; box-shadow: 0 0 6px #d9534f; }
.thread-head { border: 1px solid var(--line-2); background: var(--panel-2); padding: 10px 14px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.thread-head h2 { margin: 0; font-size: 18px; }
.offair { border: 1px solid #d9534f; color: var(--text); padding: 10px 14px; background: #d9534f18; margin-bottom: 14px; font-size: 14px; }
.strips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.strips .cb-strip { margin: 0; }
.mini-tx { font-size: 13px; display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.mini-tx b { color: var(--text); }
.adm21 .tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.adm21 .tabs a { padding: 6px 12px; border: 1px solid var(--line-2); text-decoration: none; color: var(--muted); font-size: 13px; }
.adm21 .tabs a.on { border-color: var(--accent); color: var(--accent); }
.adm-card { border: 1px solid var(--line-2); background: var(--panel); padding: 10px 14px; display: grid; gap: 6px; margin-bottom: 10px; }
.adm-card .meta { font-size: 12px; color: var(--muted); }
.adm-card .flags { font-size: 13px; border-left: 3px solid #d9534f; padding-left: 10px; }
.adm-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.wordlist { font-family: var(--mono); min-height: 120px; width: 100%; }
.cb-dial.c21 { background: #2b6f8f; color: #fff; }
.cb-dial.mini { width: 22px; height: 22px; font-size: 11px; display: inline-grid; vertical-align: middle; border-width: 1px; }
.dial a.c21 b { color: #6fc3ff; }
.dial a.c21.on b { color: #6fc3ff; }
.tx-crest { grid-row: span 3; }
.tx-who a { text-decoration: none; }
.tx-acts { align-items: baseline; flex-wrap: wrap; }
.tx-acts .inline-form { display: inline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linkish:hover { color: var(--text); text-decoration: underline; }
.tx-flag summary { cursor: pointer; list-style: none; }
.tx-flag summary::-webkit-details-marker { display: none; }
.tx-flag[open] summary { color: var(--text); }
.tx-flag form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tx-flag .input { width: 260px; max-width: 100%; padding: 4px 8px; font-size: 13px; }
.tx-new[hidden] { display: none; }
.tx-new { background: none; font: inherit; width: 100%; }
.ign-row { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; flex-wrap: wrap; }
.radio21-link { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.mini-tx .tx-to { font-size: 10px; padding: 0 4px; }
@media (max-width: 900px) { .ch21-cols, .adm-grid, .strips { grid-template-columns: 1fr; } }
/* Channel 21's NPC voices panel (sh344) */
.npc-voices { display: grid; gap: 10px; margin-top: 22px; }
.npc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.npc-say { display: flex; gap: 8px; flex-wrap: wrap; }
.npc-say .input { width: auto; max-width: 100%; }
@media (max-width: 900px) { .npc-grid { grid-template-columns: 1fr 1fr; } }
/* the spec card's pictures beside the Showroom page button (Nov 24) */
.sc-thumbs { display: inline-flex; gap: 6px; align-items: center; }
.sc-thumbs img { display: block; width: 54px; height: 36px; object-fit: cover; border: 2px solid var(--ink); }
.sc-thumbs a:hover img { outline: 2px solid var(--ink); outline-offset: 1px; }
.sc-thumbs .sc-more { font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 0 4px; }
.trailer-actions .bay-more { margin-left: auto; }
@media print { .sc-thumbs { display: none; } }

/* ---------- sh347: the crew file, the clone mark, base & outpost defenses, catalog effects, ledger days ---------- */
.cf-hero { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 20px 22px; border: 1px solid var(--line-2); background: var(--panel); position: relative; }
.cf-face { position: relative; width: 168px; }
.cf-face .avatar { width: 168px; height: 168px; }
.clone-mark { position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; background: #10302c; border: 2px solid #5fd0b8; display: grid; place-items: center; color: #5fd0b8; cursor: help; box-shadow: 0 0 10px #5fd0b855; }
.clone-mark svg { width: 24px; height: 24px; }
.cf-name h1 { margin: 0 0 4px; }
.cf-bill { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cf-bill .pen { font-size: 12px; color: var(--accent); text-decoration: none; }
.cf-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; font-size: 14px; }
.cf-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.cf-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); padding: 4px 10px; font-size: 13px; background: var(--panel-2); }
.cf-chip b { color: var(--text); font-weight: 600; }
.cf-chip .lab { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cf-chip.clone { border-color: #5fd0b8; color: #5fd0b8; }
.cf-hp { display: inline-flex; gap: 2px; }
.cf-hp i { width: 12px; height: 10px; background: #6fbf5a; display: inline-block; }
.cf-hp i.x { background: #3a3a3a; }
.cf-bio { font-size: 15px; color: var(--text); max-width: 62ch; margin: 0; }
.cf-tiles { display: grid; grid-template-columns: repeat(2, 104px); gap: 8px; }
.cf-tile .lab { white-space: nowrap; }
.cf-tile { border: 1px solid var(--line-2); padding: 8px 10px; background: var(--panel-2); }
.cf-tile .lab { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cf-tile b { display: block; font-size: 22px; font-family: var(--mono, monospace); }
.cf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.cf-col { border: 1px solid var(--line-2); background: var(--panel); padding: 16px 18px; display: grid; gap: 12px; }
.cf-col h2 { margin: 0; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; align-items: baseline; }
.cf-col h2 small { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.cf-col h3 { margin: 4px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sk { display: grid; grid-template-columns: minmax(0, 1fr) 34px 90px; gap: 4px 8px; align-items: center; font-size: 14px; }
.sk .lv { font-family: var(--mono, monospace); color: var(--accent); text-align: right; }
.sk .lv.none { color: var(--muted); }
.sk .bar { height: 6px; background: #2a2a2a; position: relative; }
.sk .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.sk .nm.dim { color: var(--muted); }
.sk-note { font-size: 12px; color: var(--muted); margin: 0; }
.kit-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kit-slot { border: 1px dashed var(--line-2); padding: 6px 8px; font-size: 13px; min-height: 46px; }
.kit-slot.full { border-style: solid; background: var(--panel-2); }
.kit-slot .lab { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kit-meters { display: grid; gap: 6px; font-size: 13px; }
.kit-meters .row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.kit-meters .num { text-align: right; white-space: nowrap; }
.kit-meters .bar { height: 8px; background: #2a2a2a; position: relative; }
.kit-meters .bar i { position: absolute; inset: 0 auto 0 0; background: #c9a26b; }
.cf-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.kv2 { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; margin: 0; }
.kv2 dt { color: var(--muted); }
.kv2 dd { margin: 0; text-align: right; font-family: var(--mono, monospace); }
.clone-card { border: 1px solid #5fd0b8; background: #0f2624; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; }
.clone-card h3 { color: #5fd0b8; margin: 0; display: flex; gap: 8px; align-items: center; }
.clone-card svg { width: 18px; height: 18px; }
.danger-fold summary { cursor: pointer; color: #e07a5f; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.rec-tabs { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.rec-tabs a { border: 1px solid var(--line-2); padding: 4px 10px; font-size: 12px; text-decoration: none; color: var(--muted); }
.rec-tabs a.on { border-color: var(--accent); color: var(--accent); }
.rec { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); background: var(--panel); }
.rec li { display: grid; grid-template-columns: 60px 92px minmax(0, 1fr); gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rec .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.crew-file .cf-face .avatar-blank { display: grid; place-items: center; }
.cf-bill summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cf-bill summary::-webkit-details-marker { display: none; }
.cf-bill b { color: var(--text); }
.cf-bill[open] summary .pen { display: none; }
.cf-bill .cp-billing-form { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.cf-chip.clone svg { width: 16px; height: 16px; }
.cf-chip.clone b { color: #5fd0b8; }
.cf-tiles .cf-photo { grid-column: span 2; position: relative; margin: 0; max-width: none; }
.cf-tiles .cf-photo > summary { list-style: none; width: 100%; text-align: center; }
.cf-tiles .cf-photo > summary::-webkit-details-marker { display: none; }
.cf-photo-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: min(340px, 86vw); background: var(--panel); border: 1px solid var(--line-2); padding: 12px 14px; box-shadow: 0 8px 24px #000a; }
.cf-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sk .nm.main { color: var(--accent); }
.sk .bar.none { background: transparent; }
.kit-slot { display: grid; gap: 2px; align-content: start; }
.kit-piece { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.kit-piece form { margin: 0; }
.kit-meters .bar i.armor { background: #8fb0c9; }
.clone-card form { margin: 0; }
.clone-card.clone-none { border-color: var(--line-2); background: var(--panel-2); }
.clone-card.clone-none h3 { color: var(--muted); }
.danger-fold form { display: grid; gap: 8px; justify-items: start; margin-top: 6px; }
.cf-rec-title { margin-top: 22px; }
.rec-tabs button { border: 1px solid var(--line-2); padding: 4px 10px; font-size: 12px; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.rec-tabs button.on { border-color: var(--accent); color: var(--accent); }
.rec li:last-child { border-bottom: 0; }
.clone-mark-md { width: 24px; height: 24px; right: -2px; bottom: -2px; border-width: 1.5px; }
.clone-mark-md svg { width: 15px; height: 15px; }
.clone-mark-sm, .clone-mark-xs { width: 18px; height: 18px; right: -4px; bottom: -4px; border-width: 1.5px; box-shadow: none; }
.clone-mark-sm svg, .clone-mark-xs svg { width: 12px; height: 12px; }
.av-wrap { position: relative; display: inline-block; line-height: 0; }
@media (max-width: 900px) {
  .cf-hero { grid-template-columns: 120px minmax(0, 1fr); }
  .cf-face, .cf-face .avatar { width: 120px; height: 120px; }
  .cf-tiles { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cf-tiles .cf-photo { grid-column: 1 / -1; }
  .cf-grid, .cf-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .cf-hero { grid-template-columns: minmax(0, 1fr); padding: 14px; } .rec li { grid-template-columns: 48px minmax(0, 1fr); } .rec .k { display: none; } }
.hb-left { display: grid; gap: 18px; align-content: start; }
.hb-def { display: grid; gap: 12px; }
.hb-def h2 { margin: 0; }
.def-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.def-tile { border: 1px solid var(--line-2); background: var(--panel-2); padding: 8px 10px; font-size: 13px; }
.def-tile .lab { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.def-tile b { font-size: 18px; font-family: var(--mono, monospace); }
.def-tile.warn b { color: #e07a5f; }
.guard-list, .park-list { display: grid; gap: 6px; }
.guard { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) 88px; gap: 10px; align-items: center; border: 1px solid var(--line-2); padding: 6px 10px; font-size: 13px; background: var(--panel); }
.guard.empty { border-style: dashed; color: var(--muted); }
.guard .post { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }
.guard .gsk { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--mono, monospace); font-size: 12px; }
.guard .gsk span { border: 1px solid var(--line-2); padding: 0 5px; }
.hpbar { display: flex; gap: 2px; }
.hpbar i { width: 10px; height: 8px; background: #6fbf5a; }
.hpbar i.x { background: #3a3a3a; }
.park { display: grid; grid-template-columns: minmax(0, 1.4fr) auto 150px auto; gap: 10px; align-items: center; border: 1px solid var(--line-2); padding: 6px 10px; font-size: 13px; background: var(--panel); }
.park .sub { display: block; font-size: 11px; color: var(--muted); }
.g2 { display: grid; gap: 3px; font-size: 11px; }
.g2 .r { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: center; }
.g2 .b { height: 6px; background: #2a2a2a; position: relative; }
.g2 .b i { position: absolute; inset: 0 auto 0 0; }
.hb-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; }
.hb-split .hb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.hb-split > .hb-card { margin: 0; }
.hb-split-solo { grid-template-columns: minmax(0, 1fr); }
.hb-split-solo .hb-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hb-def .def-sub { margin: 4px 0 0; }
.guard .av-wrap .avatar { width: 32px; height: 32px; font-size: 12px; }
.guard .av-empty { width: 32px; height: 32px; border-radius: 50%; border: 1px dashed var(--line-2); display: block; }
.guard .gk { color: var(--muted); }
.guard > a.small { justify-self: end; }
.park .badge { justify-self: start; }
.hb-def .hb-raids { margin: 0; }
.op-def { margin-top: 14px; }
.op-def .guard { grid-template-columns: 32px minmax(0, 1fr) auto; }
.op-def .guard .gsk, .op-def .guard .gk { grid-column: 2 / -1; }
.op-def .guard .hpbar, .op-def .guard.empty > a { grid-column: 3; grid-row: 1; }
.op-def .guard.empty > span:nth-child(3), .op-def .guard.empty > span:nth-child(4) { display: none; }
.op-def .def-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-def .park { grid-template-columns: minmax(0, 1.3fr) 80px 120px; }
.op-def .park > a { display: none; }
@media (max-width: 900px) {
  .hb-split { grid-template-columns: minmax(0, 1fr); }
  .def-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guard, .op-def .guard { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .guard .gsk, .guard .gk { grid-column: 2 / -1; }
  .guard .hpbar, .guard.empty > a { grid-column: 3; grid-row: 1; }
  .park, .op-def .park { grid-template-columns: minmax(0, 1fr) auto; }
  .park .g2 { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .hb-split .hb-cards { grid-template-columns: minmax(0, 1fr); } }
.fx { display: grid; gap: 3px; margin-top: 6px; }
.fx span { display: flex; gap: 6px; align-items: baseline; font-size: 13px; color: var(--text); }
.fx .t { flex: none; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 1px 5px; border: 1px solid; }
.fx .t.on { color: #8fd18a; border-color: #8fd18a66; }
.fx .t.road { color: #8fb0c9; border-color: #8fb0c966; }
.fx .t.off { color: #b5ae9d; border-color: #b5ae9d55; }
.fx-head { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fx .t { margin-top: 2px; }
.dd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dd { display: grid; grid-template-columns: 120px repeat(7, minmax(0, 1fr)) 110px; border-top: 1px solid var(--line-2); margin-top: 10px; font-size: 13px; }
.dd > * { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: right; font-family: var(--mono, monospace); }
.dd .rh { text-align: left; font-family: inherit; color: var(--muted); }
.dd .ch { font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dd .ch a { color: inherit; text-decoration: none; display: block; }
.dd .ch.today { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.dd .in { color: #8fd18a; } .dd .out { color: #e07a5f; } .dd .dim { color: #6c665a; }
.dd .net { font-weight: 700; }
.dd .bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 70px; padding-bottom: 0; }
.dd .bars i { width: 12px; display: block; }
.dd .tot { border-left: 1px solid var(--line-2); }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.day-chips a { border: 1px solid var(--line-2); padding: 4px 10px; font-size: 12px; text-decoration: none; color: var(--muted); }
.day-chips a.on { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.dd .ch.on { background: var(--accent-bg); }
.dd .ch.on a { color: var(--accent); }
#days .table-wrap { overflow-x: auto; }
#days .dd { min-width: 760px; }
.day-chips a.none { opacity: .55; }
.day-note { margin: 6px 0 0; }
.day-chips + .day-note { margin-bottom: 8px; }

/* sh348: wrecked and burning counters in the replay (token-damage.js): the wreck in place of the greyed counter and its X */
.replay-car .rs-art-light, .replay-car .rs-art-heavy, .replay-car .rs-art-fire { display: none; }
.replay-car.has-wreck[data-ruin="light"] .rs-art-light, .replay-car.has-wreck[data-ruin="heavy"] .rs-art-heavy, .replay-car.has-wreck[data-ruin="fire"] .rs-art-fire { display: inline; }
.replay-car.has-wreck[data-ruin="light"] .rs-art-good, .replay-car.has-wreck[data-ruin="heavy"] .rs-art-good, .replay-car.has-wreck[data-ruin="fire"] .rs-art-good { display: none; }
.replay-car.has-wreck.out .replay-x, .replay-car.has-wreck.out .rs-crash { display: none; }
.replay-car .dm-flames { transform-box: fill-box; transform-origin: center; animation: dm-flick .5s ease-in-out infinite alternate; }
@keyframes dm-flick { 0% { opacity: 1; transform: scale(1); } 50% { opacity: .8; transform: scale(1.06); } 100% { opacity: .95; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .replay-car .dm-flames { animation: none; } }
/* Shop tags (sh351, SHOP_TAGS.md; made small, sh352): a grease-pencil notation, not a panel */
.shop-tag { --pencil: #f3efe4; border-left: 3px solid var(--pencil); padding: 2px 4px 2px 8px; display: flex; flex-direction: column; gap: 1px; max-width: 100%; }
.shop-tag.stg-yellow { --pencil: #f2c230; }
.shop-tag.stg-red { --pencil: #ff6b57; }
.shop-tag .stg-top { display: flex; align-items: baseline; gap: 6px; }
.shop-tag .stg-note { margin: 0; font-family: var(--marker); font-size: 14px; line-height: 1.3; color: var(--pencil); overflow-wrap: anywhere; min-width: 0; }
.shop-tag .stg-edit { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: auto; color: var(--muted); border-radius: 2px; }
.shop-tag .stg-edit svg { width: 13px; height: 13px; }
.shop-tag .stg-edit:hover { color: var(--accent); }
.shop-tag .stg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-family: var(--stencil); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.shop-tag .stg-town { color: var(--dim); }
.shop-tag .stg-stand { color: var(--muted); }
.shop-tag .stg-left { color: var(--dim); }
.shop-tag.stg-yellow .stg-left.stg-flag { color: #f2c230; }
.shop-tag.stg-red .stg-left.stg-flag { color: #ff6b57; }
.shop-tag .stg-line { margin: 0; font-size: 12px; line-height: 1.35; color: var(--muted); }
.shop-tag .stg-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; }
.shop-tag .stg-offer span { color: var(--text); }
.shop-tag .stg-offer .button { padding: 2px 8px; font-size: 11px; }
.shop-tag-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; color: var(--muted); font-family: var(--marker); font-size: 13px; text-decoration: none; opacity: .75; }
.shop-tag-add:hover { color: var(--accent); opacity: 1; }
.dispatch-car-tag { display: flex; width: 100%; max-width: 420px; margin: 2px 0 4px; }
.tag-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 2px; }
.tag-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.tag-page { max-width: 560px; margin: 24px auto; background: var(--panel); border: 1px solid var(--line); }
.tag-box { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.tag-head { border-bottom: 4px solid var(--accent); padding-bottom: 8px; }
.tag-head h2 { margin: 0; font-family: var(--stencil); font-weight: 400; font-size: 24px; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.tag-head p { margin: 4px 0 0; }
.tag-field { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tag-field .label-caps, .tag-when legend { font-family: var(--stencil); font-size: 13px; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 2px; }
.tag-note-in { height: 50px; padding: 0 14px; background: #0b0b0a; border: 1px solid var(--line-2); border-radius: 2px; color: #f3efe4; font-family: var(--marker); font-size: 19px; width: 100%; }
.tag-note-in:focus { border-color: var(--accent); outline: none; }
.tag-count { align-self: flex-end; }
.tag-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; }
.tag-radio input { width: 18px; height: 18px; accent-color: var(--accent); }
.tag-box .tag-sub { margin-left: 28px; width: calc(100% - 28px); }
.tag-sub:disabled { opacity: .5; }
.tag-summary { margin: 0; background: #0b0b0a; border-left: 4px solid var(--accent); padding: 10px 14px; font-size: 15px; line-height: 1.4; }
.tag-buttons { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tag-buttons > div { display: flex; gap: 10px; }
.planner-tag { display: flex; margin: 0 0 12px; max-width: 560px; }
.convoy-car .shop-tag { margin: 2px 0 6px 24px; max-width: 480px; }
/* trailers in Where everyone is (sh351, TRAILER_TOKENS.md): a towed trailer's counter rides to the left of its tow, smaller, on a hitch bar */
.fleet-rig { display: inline-flex; align-items: center; flex: none; }
.fleet-rig .fleet-hitch { width: 8px; height: 3px; background: var(--muted); flex: none; }
.fleet-tow { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 25px; overflow: hidden; background: #000; border: 1px solid var(--line-2); border-radius: 3px; }
.fleet-tow svg { display: block; flex: none; height: 38px; width: auto; transform: rotate(90deg); }
.fleet-tow img { width: 100%; height: 100%; object-fit: cover; }
.fleet-tow:hover, .fleet-tow:focus-visible { border-color: var(--accent); }
.dispatch-idle .dash-list li { align-items: flex-start; }
.dispatch-idle .fleet-crew { align-items: flex-start; }
/* the vehicle log (sh354): in the garage's card window and on /garage/{id}/log */
.vlog { background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; color: var(--text); max-width: 900px; margin: 12px auto; }
.vlog-page .vlog { margin: 0 auto 24px; }
.vlog-page { max-width: 900px; margin: 0 auto; }
.vlog-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px 12px; border-bottom: 4px solid var(--accent); }
.vlog-counter { flex: none; width: 70px; height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; border: 1px solid var(--line-2); border-radius: 3px; }
.vlog-counter svg { height: 66px; width: auto; transform: rotate(90deg); flex: none; }
.vlog-name { min-width: 0; flex: 1; }
.vlog-name h2 { margin: 0; font-family: var(--stencil); font-weight: 400; font-size: 24px; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.vlog-name p { margin: 2px 0 0; }
.vlog-close { flex: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); font-size: 22px; cursor: pointer; }
.vlog-close:hover { color: var(--accent); border-color: var(--accent); }
.vlog-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.vlog-tiles > div { background: #141413; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.vlog-tiles span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vlog-tiles b { font-family: var(--mono); font-weight: 400; font-size: 21px; }
.vlog-tiles i { font-style: normal; font-size: 12px; color: var(--muted); }
.vlog .vlog-up { color: #8fd18a; }
.vlog .vlog-down { color: #ff8a73; }
.vlog-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 22px 4px; }
.vlog-filters .small { margin-left: auto; }
.vlog-filter { min-height: 34px; padding: 0 14px; background: none; color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; font: inherit; font-size: 14px; cursor: pointer; }
.vlog-filter:hover { border-color: var(--accent); }
.vlog-filter.is-on { background: var(--accent); border-color: var(--accent); color: #141310; font-weight: 600; }
.vlog-list { padding: 2px 22px 14px; }
.vlog-day h3 { margin: 0; padding: 14px 0 6px; font-family: var(--stencil); font-weight: 400; font-size: 13px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.vlog-row { display: grid; grid-template-columns: 72px 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 0; border-bottom: 1px solid #222224; }
.vlog-time { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.vlog-tag { display: flex; align-items: center; justify-content: center; height: 24px; border-radius: 2px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #141310; background: #9aa3ab; }
.vlog-job .vlog-tag { background: #f2c230; }
.vlog-trip .vlog-tag, .vlog-flight .vlog-tag { background: #8fb0c9; }
.vlog-road .vlog-tag { background: #e07a5f; }
.vlog-arena .vlog-tag, .vlog-rose .vlog-tag, .vlog-trial .vlog-tag, .vlog-trophy .vlog-tag { background: #c9a26b; }
.vlog-built .vlog-tag { background: #cfc8b4; }
.vlog-what { min-width: 0; }
.vlog-title { font-size: 16px; overflow-wrap: anywhere; }
.vlog-status { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 12px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--dim); vertical-align: 2px; }
.vlog-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vlog-link { display: inline-block; font-size: 13px; margin-top: 3px; }
.vlog-money { font-family: var(--mono); font-size: 15px; text-align: right; color: var(--muted); white-space: nowrap; }
.vlog-more { display: flex; justify-content: center; padding-top: 14px; }
.vlog-list:not(.show-old) .vlog-old { display: none; }
.vlog[data-show="trips"] .vlog-row:not([data-cat="trips"]), .vlog[data-show="fights"] .vlog-row:not([data-cat="fights"]), .vlog[data-show="shop"] .vlog-row:not([data-cat="shop"]) { display: none; }
.vlog[data-show="trips"] .vlog-day:not([data-cats~="trips"]), .vlog[data-show="fights"] .vlog-day:not([data-cats~="fights"]), .vlog[data-show="shop"] .vlog-day:not([data-cats~="shop"]) { display: none; }
@media (max-width: 720px) {
  .vlog-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vlog-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .vlog-time { grid-column: 1 / -1; padding: 0; }
  .vlog-filters .small { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------------------- Admin → Table kit (TABLE_KIT.md; sh355) */
.tkit { --tk-bg: #080807; --tk-panel: #1b1a17; --tk-line: #2e2c27; --tk-line2: #3f3c36; --tk-gold: #c99a17; --tk-text: #ded6c4; --tk-muted: #a0988a; --tk-head: #f0dc9a; color: var(--tk-text); }
.tkit-muted { color: var(--tk-muted); font-size: 13px; }
.tkit-mono { font-family: var(--mono); font-size: 13px; color: #c4bba8; white-space: nowrap; }
.tkit-none { color: var(--tk-muted); font-size: 14px; margin: 8px 12px; }
.tkit-titlebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.tkit-titlebar h1 { margin: 0 0 4px; }
.tkit-new { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.tkit-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--tk-muted); }
.tkit-field input, .tkit-field select { min-height: 44px; padding: 8px 12px; background: #141311; border: 1px solid var(--tk-line2); color: var(--tk-text); font: inherit; font-size: 15px; box-sizing: border-box; }
.tkit-btn { min-height: 44px; padding: 8px 14px; background: #24221d; color: var(--tk-text); border: 1px solid var(--tk-line2); font: 500 14px 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.tkit-btn:hover { border-color: var(--tk-gold); color: #fff; }
.tkit-btn:disabled { opacity: .45; cursor: default; }
.tkit-btn.tkit-small { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.tkit-btn.tkit-gold { background: var(--tk-gold); color: #111; border-color: var(--tk-gold); }
.tkit-btn.tkit-gold:hover { background: #e3b521; color: #111; }
.tkit-btn.tkit-big { min-height: 48px; font-size: 17px; width: 100%; }
.tkit-btn.tkit-danger { color: #ef7a5a; }
.tkit-link { background: none; border: 0; padding: 0; color: var(--tk-gold); font: inherit; text-decoration: underline; cursor: pointer; }
.tkit-scroll { overflow-x: auto; }
.tkit-list { width: 100%; border-collapse: collapse; background: var(--tk-panel); border: 1px solid var(--tk-line); }
.tkit-list th { text-align: left; font: 500 13px 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tk-head); padding: 10px 12px; background: #141311; border-bottom: 1px solid var(--tk-line2); }
.tkit-list td { padding: 8px 12px; border-bottom: 1px solid var(--tk-line); vertical-align: middle; }
.tkit-kitname { font-size: 17px; color: var(--tk-text); }
.tkit-actions { display: flex; gap: 6px; justify-content: flex-end; }
.tkit-actions form { margin: 0; }
.tkit-crumb { font-size: 14px; color: var(--tk-muted); margin: 0 0 8px; }
.tkit-crumb a { color: var(--tk-gold); }
.tkit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.tkit-headfields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tkit-name { width: 300px; max-width: 100%; font-family: var(--stencil) !important; font-size: 24px !important; text-transform: uppercase; }
.tkit-notefield input { width: 260px; max-width: 100%; }
.tkit-saved { margin: 0; font-family: var(--mono); font-size: 13px; color: #8fc98a; }
.tkit-saved.tkit-bad { color: #ef7a5a; }
.tkit-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tkit-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tkit-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.tkit-panel { background: var(--tk-panel); border: 1px solid var(--tk-line); }
.tkit-side .tkit-panel { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tkit-add { display: flex; flex-direction: column; }
.tkit-addbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; border-bottom: 1px solid var(--tk-line2); }
.tkit-grow { flex: 1; min-width: 220px; }
.tkit-grow input { width: 100%; }
.tkit-modes { display: flex; gap: 6px; }
.tkit-mode.on { background: var(--tk-gold); color: #111; border-color: var(--tk-gold); }
.tkit-found { max-height: 440px; overflow-y: auto; }
.tkit-already { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--tk-muted); }
.tkit-already:empty { display: none; }
.tkit-outfithead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #141311; border-bottom: 1px solid var(--tk-line2); }
.tkit-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tkit-grouphead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; }
.tkit-grouphead h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.tkit-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 12px; background: #141311; border-bottom: 1px solid var(--tk-line2); }
.tkit-sub h4, .tkit-h4 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tk-head); }
.tkit-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--tk-line); min-height: 56px; }
.tkit-row:last-child { border-bottom: 0; }
.tkit-row.tkit-away { opacity: .7; }
.tkit-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid #5a5548; }
.tkit-ini { background: #3a362d; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--tk-head); }
.tkit-tok { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #24221d; border: 1px solid var(--tk-line2); flex: none; }
.tkit-tok svg { width: auto !important; height: 40px !important; max-width: 40px; }
.tkit-what { flex: 1; min-width: 0; }
.tkit-title { display: block; font-size: 16px; }
.tkit-sub2 { display: block; font-size: 13px; color: var(--tk-muted); }
.tkit-crew { font-family: var(--mono); font-size: 13px; color: #c4bba8; max-width: 220px; text-align: right; }
.tkit-tag { font-family: var(--mono); font-size: 12px; color: var(--tk-head); border: 1px solid #5a5548; padding: 2px 8px; white-space: nowrap; }
.tkit-tag.tkit-gone { color: #ef7a5a; border-color: #6b3a2c; }
.tkit-status { font-size: 12px; padding: 1px 6px; margin-left: 4px; border: 1px solid #55595e; color: #cfc8b4; }
.tkit-count { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--tk-head); }
.tkit-export .tkit-muted { margin: 0; }
.tkit-progress { display: flex; flex-direction: column; gap: 6px; }
.tkit-progress[hidden] { display: none; }
.tkit-bar { height: 8px; background: #141311; border: 1px solid var(--tk-line2); }
.tkit-bar i { display: block; height: 100%; width: 0; background: var(--tk-gold); transition: width .2s; }
.tkit-progress .tkit-mono { white-space: normal; margin: 0; }
.tkit-check { display: flex; gap: 12px; align-items: flex-start; min-height: 40px; cursor: pointer; }
.tkit-check[hidden] { display: none; }
.tkit-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tk-gold); flex: none; }
.tkit-checklabel { display: block; font-size: 15px; }
.tkit-checknote { display: block; font-size: 13px; color: var(--tk-muted); }
.tkit-preview { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 0; padding: 10px 0 4px; }
.tkit-preview:empty { display: none; }
.tkit-pv { width: 36px; height: 72px; display: block; }
.tkit-pv svg { width: 100%; height: 100%; }
.tkit-tree { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: #c4bba8; white-space: pre; overflow-x: auto; max-height: 420px; }
.tkit-sidebtns { display: flex; gap: 8px; flex-wrap: wrap; }
.tkit-sidebtns form { margin: 0; }
.tkit-stage { position: fixed; left: -12000px; top: 0; width: 1000px; pointer-events: none; }
.tkit-shot { width: 1000px; padding: 2px 0; background: transparent; }
.tkit-shot .sc-buttons { display: none !important; }
.tkit-cardpage .ck-sheet, .tkit-cardpage .spec-card { max-width: 1000px; }
@media (max-width: 960px) { .tkit-cols { grid-template-columns: 1fr; } .tkit-side { position: static; } .tkit-crew { display: none; } }

/* the cheat sheet (TABLE_KIT.md §8): the card's cream paper, stencil headings on black bars, a gold cell where a roll is needed */
.ck-sheet { --ink: #1d1b18; --card: #efe6cf; --cell: #fff8e6; width: 1000px; max-width: 100%; box-sizing: border-box; background: var(--card); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 0 0 0 6px #b9ad8e, 0 0 0 9px var(--ink); margin: 14px 9px; padding: 22px 24px; font-family: var(--mono); font-size: 15px; line-height: 1.45; }
.ck-sheet h3 { font: 20px var(--stencil); letter-spacing: .04em; text-transform: uppercase; margin: 16px 0 6px; }
.ck-sheet p { margin: 6px 0; }
.ck-head { border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.ck-kicker { font: 16px var(--stencil); letter-spacing: .1em; text-transform: uppercase; margin: 0 !important; }
.ck-name { font: 40px var(--stencil); letter-spacing: .04em; margin: 2px 0 4px; line-height: 1.05; }
.ck-facts { font-size: 15px; }
.ck-crew { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ck-warn { background: var(--ink); color: #f2c230; padding: 4px 8px; }
.ck-bar { background: var(--ink); color: var(--card); font: 22px var(--stencil); letter-spacing: .08em; text-transform: uppercase; margin: 20px -24px 10px; padding: 6px 24px; }
.ck-steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
.ck-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ck-table { border-collapse: collapse; width: 100%; background: var(--cell); font-size: 14px; }
.ck-table th, .ck-table td { border: 1px solid var(--ink); padding: 4px 7px; text-align: left; vertical-align: top; }
.ck-table thead th { background: #d9cdaf; font-weight: 400; }
.ck-table td:last-child { white-space: nowrap; }
.ck-scroll { overflow-x: auto; }
.ck-control th, .ck-control td { text-align: center; padding: 4px 3px; font-size: 13px; white-space: nowrap; }
.ck-control tbody th { background: #d9cdaf; }
.ck-safe { color: #6b6355; }
.ck-roll { background: #f2c230; font-weight: 700; }
.ck-xx { background: var(--ink); color: var(--card); font-weight: 700; }
.ck-crash { background: #d9cdaf; }
.ck-note { font-size: 13px; color: #4b443a; }
.ck-pad { padding: 4px 0; }
.ck-big { font-size: 16px; }
.ck-guns td { white-space: normal !important; }
.ck-who { display: block; }
.ck-need { background: #f2c230; padding: 0 4px; }
.ck-xx-text { background: var(--ink); color: var(--card); padding: 0 4px; }
.ck-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.ck-ram th, .ck-ram td { text-align: center; }
.ck-foot { border-top: 3px solid var(--ink); margin-top: 18px; padding-top: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.sc-of { font-size: 12px; color: #6b6355; } /* the Table kit's card: as built, beside what is left now */

/* Admin → an outfit → Standing history (sh357) */
.stl-h { margin: 18px 0 4px; }
.stl-wrap { max-height: 420px; overflow: auto; }
.stl .stl-n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.stl .stl-up { color: #8fd18a; }
.stl .stl-down { color: #ff8a73; }

/* Dispatch: the allocation chart (sh358) */
.alloc { margin: 28px 0 8px; }
.alloc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.alloc-lede { margin: 2px 0 0; max-width: 62ch; }
.alloc-ranges { display: flex; gap: 6px; }
.alloc-range { min-height: 36px; padding: 4px 12px; background: none; color: #e9e2cf; border: 1px solid #55595e; font: 400 13px 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.alloc-range.on { background: #f2c230; color: #141516; border-color: #f2c230; }
.alloc-scroll { overflow-x: auto; border: 1px solid #2b2e31; background: #141516; }
.alloc-chart { min-width: 860px; }
.alloc-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); border-bottom: 1px solid #222426; min-height: 46px; }
.alloc-row:last-child { border-bottom: 0; }
.alloc-head { min-height: 34px; background: #1b1c1d; }
.alloc-head .alloc-veh { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a9aeb4; }
.alloc-veh { position: sticky; left: 0; z-index: 4; background: #141516; padding: 6px 10px; display: flex; gap: 8px; align-items: center; border-right: 1px solid #2b2e31; min-width: 0; }
.alloc-head .alloc-veh { background: #1b1c1d; }
.alloc-under .alloc-veh { padding-left: 24px; }
.alloc-hitch { color: #8c6d14; font-family: var(--mono); }
.alloc-tok { flex: none; width: 14px; height: 28px; border: 1px solid #55595e; border-radius: 2px; background: #2a2c2e; }
.alloc-tok-heli { width: 24px; height: 24px; border-radius: 50%; }
.alloc-tok-trl { height: 32px; width: 12px; background: #24221d; }
.alloc-nm { display: block; font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-nm a { color: #e9e2cf; text-decoration: none; }
.alloc-nm a:hover { color: #f2c230; }
.alloc-veh > span:last-child { min-width: 0; }
.alloc-wh { display: block; font-size: 12px; color: #a9aeb4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-tl { position: relative; overflow: hidden; }
.alloc-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid #222426; }
.alloc-tick.day { border-left-color: #3b3f44; }
.alloc-lab { position: absolute; top: 9px; transform: translateX(4px); font-family: var(--mono); font-size: 12px; color: #a9aeb4; white-space: nowrap; }
.alloc-lab.day { color: #e9e2cf; }
.alloc-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid #f2c230; z-index: 3; }
.alloc-now b { position: absolute; top: 0; left: -2px; background: #f2c230; color: #141516; font: 600 11px 'Oswald', sans-serif; letter-spacing: .08em; padding: 1px 5px; }
.alloc-bar { position: absolute; top: 8px; bottom: 8px; z-index: 2; border-radius: 3px; padding: 0 8px; display: flex; align-items: center; gap: 6px; overflow: hidden;
  font-size: 13px; color: #141516; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.alloc-bar:hover, .alloc-bar:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.alloc-in { display: flex; align-items: center; gap: 6px; min-width: 0; }
.alloc-cramped .alloc-in { visibility: hidden; }
.alloc-out { position: absolute; top: 14px; z-index: 2; display: flex; gap: 6px; align-items: center; font-size: 13px; color: #e9e2cf; white-space: nowrap; pointer-events: none; }
.alloc-out[hidden] { display: none; }
.alloc-out small { color: #a9aeb4; }
.alloc-bar small { font-family: var(--mono); font-size: 12px; opacity: .85; }
.alloc-cargo { background: #141516; color: #f0dc9a; border-radius: 2px; padding: 1px 6px; font-size: 12px; }
.alloc-cargo::before { content: "▣ "; color: #c99a17; }
.alloc-more { margin-left: auto; font-weight: 600; padding-left: 8px; }
.alloc-pastdue { color: #ff8a73 !important; opacity: 1 !important; }
.alloc-idle { position: absolute; top: 14px; left: 10px; font-size: 13px; color: #6e737a; font-style: italic; }
/* each reason its own colour (owner, Nov 26) */
.alloc-job { background: #f2c230; }
.alloc-trip { background: #8fb0c9; }
.alloc-flight { background: #6fd1c4; }
.alloc-shop { background: #9aa3ab; }
.alloc-project { background: #b392d8; }
.alloc-arena { background: #e08a52; }
.alloc-charge { background: #7cc96f; }
.alloc-late { box-shadow: inset -4px 0 0 #ff4a2e; }
.alloc-towed { color: #f0ead8; border: 1px solid; }
.alloc-towed.alloc-tint-job { background: repeating-linear-gradient(135deg, #6f5a1c 0 8px, #5c4b18 8px 16px); border-color: #c99a17; }
.alloc-towed.alloc-tint-trip { background: repeating-linear-gradient(135deg, #5b6f80 0 8px, #4d5f6e 8px 16px); border-color: #8fb0c9; }
.alloc-towed.alloc-tint-shop, .alloc-towed.alloc-tint-project, .alloc-towed.alloc-tint-arena, .alloc-towed.alloc-tint-flight, .alloc-towed.alloc-tint-charge
  { background: repeating-linear-gradient(135deg, #4a4d52 0 8px, #3d4044 8px 16px); border-color: #9aa3ab; }
.alloc-towed .alloc-cargo { background: #0d0d0c; }
.alloc-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: #a9aeb4; }
.alloc-sw { display: inline-block; width: 16px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: middle; border: 0; }
.alloc-plain { margin: 10px 14px; }
/* the vehicle's own counter on its row (owner, Nov 26) */
.alloc-tok-svg { flex: none; width: 26px; height: 36px; display: flex; align-items: center; justify-content: center; }
.alloc-tok-svg svg { display: block; width: auto !important; height: 36px !important; max-width: 26px; }
.alloc-tok-svg-heli svg { height: 34px !important; max-width: 26px; }

/* a special part's bonuses to the vehicle (sh361) */
.vb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vb-row .vb-stat { width: 260px; flex: none; }
.vb-row .vb-family { width: 160px; flex: none; }
.vb-row .vb-value { width: 90px; flex: none; }
.vb-row .vb-limit { min-width: 140px; }
.vb-warn { flex-basis: 100%; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.vb-panel [data-vb-add] { margin-top: 10px; }
.vb-overlimit { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); padding: 8px 12px; border-radius: 6px; font-size: 13px; margin: 8px 0; }

/* radio prices: the best deals in range (sh362) */
.mk-radio-btn { margin-left: auto; font-size: 11px; }
#market h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.rp-title { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-title .mk-live { font-size: 12px; }
.rp-sub { margin: 6px 0 0; max-width: 70ch; }
.rp-tabs { display: flex; gap: 6px; }
#radio-prices h3 { margin: 20px 0 8px; }
.rp-note { margin-top: -4px; max-width: 90ch; }
.rp-table td, .rp-table th { vertical-align: top; }
.rp-table td > div { margin-top: 2px; }
.rp-num { text-align: right; white-space: nowrap; }
.rp-glyph { display: inline-block; width: 18px; text-align: center; opacity: .8; }
.rp-grid td, .rp-grid th { white-space: nowrap; font-size: 13px; }
.rp-grid thead a { color: inherit; text-decoration: none; }
.rp-grid thead a.on { color: var(--accent, #e0b23c); text-decoration: underline; }
.rp-grid .rp-here { background: rgba(224, 178, 60, .08); }
.rp-grid .mk-step { font-size: 10px; min-width: 0; padding: 1px 5px; }
.rp-plan { white-space: nowrap; }
.rp-plan-menu { position: relative; }
.rp-plan-menu summary { list-style: none; cursor: pointer; }
.rp-plan-menu summary::-webkit-details-marker { display: none; }
.rp-plan-list { position: absolute; right: 0; z-index: 20; min-width: 300px; margin-top: 4px; padding: 8px; background: var(--panel, #1d1c1a); border: 1px solid var(--line, #3a3730); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); white-space: normal; }
.rp-plan-list p { margin: 2px 4px 6px; }
.rp-plan-list a { display: block; padding: 6px 8px; border-radius: 4px; text-decoration: none; }
.rp-plan-list a:hover { background: rgba(255, 255, 255, .06); }
.rp-plan-list .rp-cant { display: block; padding: 6px 8px; color: var(--muted, #9b968a); }
