:root {
  --bg: #0e0d14; --panel: #17151f; --panel2: #1f1c2a; --line: #2f2b3d; --text: #e9e6f2; --dim: #8d88a3;
  --amber: #ffb547; --pink: #ff4f9a; --cyan: #4fd8ff; --green: #5fe39a; --red: #ff5a5a; --violet: #a77bff;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { min-height: 100vh; }
button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--amber); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary { background: var(--amber); color: #1a1206; border-color: var(--amber); font-weight: 700; }
button.primary:hover:not(:disabled) { filter: brightness(1.1); }
button.small { padding: 2px 8px; font-size: 12px; white-space: nowrap; }
button.small.on { border-color: var(--green); }
h1, h2, h3 { margin: 0 0 8px; letter-spacing: 0.02em; }
h2 { font-size: 18px; } h3 { font-size: 14px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.08em; }
.dim { color: var(--dim); } .mono { font-family: var(--mono); }
.good { color: var(--green); } .bad { color: var(--red); } .warn { color: var(--amber); }
#app { max-width: 1280px; margin: 0 auto; padding: 12px 16px 40px; }
#mutebtn { position: fixed; right: 10px; bottom: 10px; z-index: 20; width: 34px; height: 30px; padding: 0; font-size: 16px; background: #17151fdd; }
#mutebtn.muted { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

/* top bar */
.top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; font-family: var(--mono); font-size: 13px; }
.top .brand { font-family: system-ui; font-weight: 800; color: var(--amber); letter-spacing: 0.06em; margin-right: 8px; }
.top .res b { color: var(--text); } .top .res { color: var(--dim); }
.meter { display: inline-block; width: 90px; height: 8px; background: #000; border-radius: 4px; vertical-align: middle; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--green); }
.meter.morale > i { background: linear-gradient(90deg, var(--pink), var(--amber)); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* title */
.title { text-align: center; padding: 60px 16px; }
.title h1 { font-size: 56px; color: var(--amber); letter-spacing: 0.08em; text-shadow: 0 0 24px rgba(255, 181, 71, 0.4); }
.title .sub { color: var(--pink); font-family: var(--mono); letter-spacing: 0.2em; margin-bottom: 18px; }
#title-stage { display: block; margin: 0 auto 24px; width: min(800px, 100%); image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 0 40px rgba(255, 79, 154, 0.12); }
.title .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.howto { max-width: 760px; margin: 28px auto 0; text-align: left; }
.howto li { margin: 4px 0; }

/* map */
.mapgrid { display: grid; grid-template-columns: 1fr 300px; gap: 12px; }
.mapgrid > * { min-width: 0; } /* a wide sheet scrolls in its own box instead of pushing the side panel off screen */
@media (max-width: 900px) { .mapgrid { grid-template-columns: 1fr; } }
.mapsvg { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at 50% 40%, #1d1a2b, #0e0d14); border-radius: 8px; border: 1px solid var(--line); }
.mapsvg .edge { stroke: #3b3650; stroke-width: 2; }
.mapsvg .edge.live { stroke: var(--amber); stroke-dasharray: 6 5; }
.mapsvg .node circle.b { fill: #262236; stroke: #4a4462; stroke-width: 2; }
.mapsvg .node.reach { cursor: pointer; }
.mapsvg .hrs { fill: var(--amber); font-size: 11px; text-anchor: middle; font-family: var(--mono); paint-order: stroke; stroke: #0e0d14; stroke-width: 3px; }
.mapsvg .node.reach circle.b { stroke: var(--amber); stroke-width: 3; }
.mapsvg .node.reach:hover circle.b { fill: #3a2f1a; }
.mapsvg .node.here circle.b { stroke: var(--cyan); stroke-width: 4; }
.mapsvg .node.visited circle.b { fill: #15131c; }
.mapsvg .node.sat circle.b { fill: #3a1424; }
.mapsvg .node text { fill: var(--text); font-size: 13px; text-anchor: middle; pointer-events: none; }
.mapsvg .node text.icon { font-size: 16px; font-weight: 700; }
.mapsvg .node text.city { fill: var(--dim); font-size: 11px; }
.mapsvg .rival { fill: rgba(255, 79, 154, 0.12); }
.mapsvg .rivaledge { stroke: var(--pink); stroke-width: 2; stroke-dasharray: 4 4; }
.mapside .info { min-height: 120px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); margin: 2px 4px 2px 0; }
.tag.haz { border-color: var(--amber); color: var(--amber); }
.tag.sat { border-color: var(--pink); color: var(--pink); }
.log { font-size: 12px; color: var(--dim); max-height: 160px; overflow: auto; }
.log div { margin: 2px 0; }

/* day sheet */
.timeline { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: #000; margin: 8px 0 4px; font-size: 11px; font-family: var(--mono); }
.timeline > div { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; color: #0e0d14; font-weight: 700; }
.tl-rest { background: #9fb2c4; } .tl-reh { background: var(--amber); } .tl-merch { background: var(--pink); }
.tl-full { background: #e0a0ff; }
.tl-load { background: var(--cyan); } .tl-setup { background: var(--violet); } .tl-check { background: var(--green); } .tl-late { background: var(--red); }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { color: var(--dim); font-weight: 500; font-size: 12px; }
.step { display: inline-flex; align-items: center; gap: 6px; }
.step b { min-width: 34px; text-align: center; font-family: var(--mono); }
select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 3px; font: inherit; }

/* show */
.showtop { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.showtop .clock { font-family: var(--mono); font-size: 18px; color: var(--amber); }
.showtop .paused { color: var(--pink); font-weight: 800; letter-spacing: 0.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
@media (max-width: 980px) { .stage { grid-template-columns: 1fr; } }
.rigstats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 12px; margin-bottom: 8px; color: var(--dim); }
.rigstats b { color: var(--text); }
.reactor { display: inline-flex; gap: 2px; vertical-align: middle; }
.reactor i { width: 8px; height: 14px; background: var(--green); border-radius: 2px; }
.reactor i.used { background: #2a3a30; }
.layers { display: inline-flex; gap: 3px; vertical-align: middle; }
.layers i { width: 16px; height: 10px; border-radius: 6px; border: 2px solid var(--cyan); }
.layers i.up { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.layers.crowd i { border-color: var(--violet); } .layers.crowd i.up { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.riggrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, minmax(108px, auto)); gap: 6px; }
.room { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: pointer; user-select: none; }
.room.empty { visibility: hidden; }
.room.target { border-color: var(--cyan); }
.room .nm { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.room.fire { background: linear-gradient(0deg, rgba(255, 90, 40, 0.35), var(--panel2)); }
.room.ion .nm { color: var(--cyan); }
.room.hit { animation: hit 0.5s; } .room.block { animation: block 0.5s; } .room.dodge { animation: dodge 0.5s; }
@keyframes hit { 0% { background: var(--red); } } @keyframes block { 0% { box-shadow: inset 0 0 0 3px var(--cyan); } }
@keyframes dodge { 0% { box-shadow: inset 0 0 0 3px var(--green); } }
.pips { display: inline-flex; gap: 2px; margin: 4px 0; flex-wrap: nowrap; }
.pips i { width: 10px; height: 12px; border-radius: 2px; background: #2c2a38; border: 1px solid #3a3750; }
.pips i.on { background: var(--green); border-color: var(--green); }
.pips i.sub { background: var(--amber); border-color: var(--amber); }
.pips i.dmg { background: var(--red); border-color: var(--red); }
.pips i.ion { background: var(--cyan); border-color: var(--cyan); }
.pwr { display: flex; gap: 4px; }
.pwr button { padding: 0 7px; font-size: 13px; line-height: 18px; }
.repairbar { height: 3px; background: #000; margin-top: 2px; } .repairbar i { display: block; height: 100%; background: var(--amber); }
.tokens { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.tok { position: relative; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #10101a; cursor: pointer; border: 2px solid transparent; }
.tok .hp { position: absolute; bottom: -4px; left: 2px; right: 2px; height: 3px; background: #000; } .tok .hp i { display: block; height: 100%; background: var(--green); }
.tok.sel { border-color: #fff; box-shadow: 0 0 8px #fff; }
.tok.moving { opacity: 0.5; }
.tok.rusher { background: var(--red); color: #fff; border-radius: 4px; cursor: default; }
.bg-local { background: #c9c3dd; } .bg-gearhead { background: var(--amber); } .bg-bouncer { background: #ff8a5c; }
.bg-rigger { background: #9fb2c4; } .bg-merchie { background: var(--pink); } .bg-sparky { background: var(--cyan); } .bg-fixer { background: var(--green); }
.bg-foh { background: #ffb547; } .bg-mon { background: #4fd8ff; } .bg-inst { background: #ff8a5c; } .bg-ld { background: #a77bff; } .bg-vid { background: #ff4f9a; } /* the floor's role colors (ROLE in venueview.js) */

.crowd .hpbar { height: 16px; background: #000; border-radius: 4px; overflow: hidden; margin: 6px 0; position: relative; }
.crowd .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width 0.2s; }
.crowd .hpbar span { position: absolute; inset: 0; font-size: 11px; font-family: var(--mono); display: flex; align-items: center; justify-content: center; }
.secgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.sec { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: pointer; user-select: none; }
.sec.aim { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.sec.hot:hover { border-color: var(--amber); }
.sec .nm { font-weight: 700; font-size: 12px; text-transform: uppercase; display: flex; justify-content: space-between; }
.sec .role { font-size: 11px; color: var(--dim); }
.sec.off { background: linear-gradient(0deg, rgba(255, 79, 154, 0.35), var(--panel2)); }
.sec.hit { animation: hit 0.4s; } .sec.block { animation: block 0.4s; } .sec.miss { animation: dodge 0.4s; }
.incs { font-size: 12px; } .inc { display: grid; grid-template-columns: 1fr 90px; gap: 6px; align-items: center; margin: 3px 0; }
.inc.off { opacity: 0.35; }
.bar { height: 6px; background: #000; border-radius: 3px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--red); }
.gearbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 10px; }
.gear { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; user-select: none; }
.gear.sel { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.gear.unpowered { opacity: 0.55; }
.gear .nm { font-weight: 700; font-size: 12px; display: flex; justify-content: space-between; gap: 4px; }
.gear .bar i { background: var(--green); } .gear.ready .bar i { background: var(--amber); }
.gear .ctl { display: flex; gap: 4px; margin-top: 4px; align-items: center; font-size: 11px; }
.gear .ctl button { padding: 1px 6px; font-size: 11px; }
.gear .ctl button.on { border-color: var(--green); color: var(--green); }
.feed { font-size: 12px; color: var(--dim); margin-top: 8px; min-height: 90px; }
.feed div:last-child { color: var(--text); }
.overlay { position: fixed; inset: 0; background: rgba(5, 4, 10, 0.78); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 16px; }
.overlay .panel { max-width: 560px; width: 100%; }
.hint { font-size: 12px; color: var(--dim); }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); padding: 0 4px; border-radius: 3px; }

/* cards (shop, legs) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.card .nm { font-weight: 700; } .card .help { font-size: 12px; color: var(--dim); flex: 1; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.legcard { cursor: pointer; } .legcard:hover { border-color: var(--amber); }
.event p { font-size: 15px; }
.choices { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.choices button { text-align: left; }
.choices button.blue { border-color: var(--cyan); color: var(--cyan); }
.slot { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 6px; border: 1px dashed var(--line); border-radius: 4px; margin: 3px 0; min-height: 30px; font-size: 13px; }
.skills { font-size: 11px; color: var(--dim); }
.skills b { color: var(--green); font-weight: 600; }

/* booking map */
.mapsvg .region { fill: var(--dim); font-size: 12px; font-family: var(--mono); }
.mapsvg .riskcount { fill: var(--amber); font-size: 13px; font-weight: 800; }
.limitbar { position: relative; display: inline-block; width: 72px; height: 8px; border: 1px solid var(--line); border-radius: 2px; vertical-align: middle; }
.limitbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cyan); }
.limitbar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--amber); }
.limitbar.over i { background: var(--red); }
.floor { position: relative; }
.cardlayer { position: absolute; z-index: 60; pointer-events: auto; }
.pxcard { min-width: 170px; max-width: 260px; padding: 8px 10px; background: #17151f; border: 3px solid #55536a; box-shadow: 3px 3px 0 #000; image-rendering: pixelated; font-size: 12px; }
.pxcard .ch { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; border-bottom: 2px solid #2f2b3d; padding-bottom: 4px; }
.pxcard .ch b { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: 0.02em; }
.pxcard .ci { width: 18px; text-align: center; }
.pxcard .crow { display: flex; gap: 6px; align-items: center; margin: 3px 0; font-family: ui-monospace, monospace; font-size: 11px; }
.pxcard .cbar { display: inline-block; width: 110px; height: 7px; background: #2c2a36; border: 1px solid #000; }
.pxcard .cbar i { display: block; height: 100%; }
.pxcard .cl { margin-top: 6px; color: var(--text); line-height: 1.35; }
[data-card] { cursor: help; }
.rack { display: flex; flex-direction: column; gap: 2px; width: 92px; padding: 4px; background: #14131b; border: 3px solid #55536a; border-radius: 2px; }
.rack .rslot { height: 14px; padding: 0; background: #1f1c2a; border: 1px dashed #2f2b3d; }
.rack .rslot.drop { border-color: var(--amber); }
.rack .rmod { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; font-size: 11px; background: #2c2a36; border: 1px solid #6a6680; }
.rack .rmod.hot { border-color: #ff8a5c; }
.rack .rmod.on { box-shadow: 0 0 0 1px var(--amber); }
.rack .rmod .re { font-family: ui-monospace, monospace; font-size: 10px; }
.setlist { display: flex; flex-direction: column; gap: 3px; }
.setrow { display: flex; align-items: center; gap: 4px; }
.setrow.over { opacity: 0.45; }
.setrow .sn { width: 16px; text-align: right; font-family: ui-monospace, monospace; color: var(--dim); }
.setrow .attrs { display: inline-flex; gap: 2px; }
.setrow .attr { position: relative; width: 26px; height: 24px; padding: 0; font-size: 12px; overflow: hidden; }
.setrow .attr i { position: absolute; left: 0; right: 0; bottom: 0; background: #ffb54755; pointer-events: none; }
.setrow .attr.want { border-color: var(--green); }
.paper { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.paperdoc { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.paperdoc .ph { font-size: 14px; }
.plotstage { position: relative; width: 150px; height: 84px; background: #1b1a24; border: 2px solid #55536a; border-bottom-width: 4px; border-radius: 3px; }
.plotslot { position: absolute; width: 30px; height: 26px; margin: -13px 0 0 -15px; padding: 0; border: 1px dashed var(--line); background: transparent; font-size: 15px; }
.plotslot.full { border-style: solid; background: var(--panel2); }
.plotslot.drop { border-color: var(--amber); }
.chans { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; }
.chan { display: flex; gap: 6px; align-items: center; font-size: 11px; padding: 1px 6px; font-family: ui-monospace, monospace; text-align: left; }
.chan b { font-weight: 600; }
button.src.bad { border-color: var(--red); color: var(--red); }
button.warn { border-color: var(--amber); }
.stopcards { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.stopcards:empty { display: none; }
.stopcards .cards, .stopcards .forks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.stopcards .forks button { font-size: 18px; padding: 4px 10px; }
.stopcards .forks button.on { border-color: var(--amber); }
.stopcard { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 6px 4px; background: var(--panel); border: 2px solid var(--line); border-radius: 4px; image-rendering: pixelated; }
.stopcard:hover:not([disabled]) { border-color: var(--amber); }
.stopcard[disabled] { opacity: 0.4; }
.stopcard .si { font-size: 22px; line-height: 1.1; }
.stopcard .sc { font-size: 11px; font-family: ui-monospace, monospace; color: var(--dim); white-space: nowrap; }
.stopcard .sg { font-size: 12px; min-height: 14px; }
.checkbtns .pace { display: inline-flex; gap: 2px; margin-right: 6px; }
.mapsvg .fest { font-size: 13px; text-anchor: end; pointer-events: none; }
.mapsvg .node.booked circle.b { fill: #3a2f1a; stroke-width: 3; }
.mapsvg .node.finale circle.b { stroke: var(--pink) !important; stroke-width: 3; fill: #3a1424; }
.mapsvg .edge.live.done { stroke: #6b6480; stroke-dasharray: none; }

.cols > * { min-width: 0; }
select { max-width: 100%; }

/* the show: the venue floor is the game, the rest is around it */
.floorwrap { display: flex; gap: 8px; align-items: flex-start; }
.floor { flex: 1; min-width: 0; text-align: center; }
.floor canvas { image-rendering: pixelated; display: block; margin: 0 auto; background: #000; border: 2px solid var(--line); cursor: pointer; touch-action: manipulation; }
.floor .tip { min-height: 32px; font-size: 12px; text-align: left; padding: 4px 2px; color: var(--text); }
.roster { width: 150px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.who { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font-size: 12px; cursor: pointer; user-select: none; }
.who.sel { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.who .burn { display: block; clear: both; }
.who .mtr { display: block; width: 100%; height: 3px; border: 0; margin: 3px 0 2px; }
.balx { position: relative; display: inline-block; width: 24px; height: 24px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, #000; border: 1px solid var(--line); vertical-align: middle; }
.balx i { position: absolute; width: 5px; height: 5px; margin: -2px 0 0 -2px; }
.tongue { position: relative; display: inline-block; width: 54px; height: 10px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.tongue b { position: absolute; top: 0; bottom: 0; background: var(--green); opacity: 0.45; }
.tongue i { position: absolute; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; }
.crowdstrip { margin-bottom: 6px; }
.crowdstrip .rigstats { margin: 4px 0 0; }
.deck { margin-top: 2px; }
.powerbar { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; align-items: center; margin-bottom: 6px; }
.pw { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; display: flex; gap: 5px; align-items: center; }
.pw .pwr { display: inline-flex; gap: 2px; }
.pw .pwr button { padding: 0 6px; font-size: 12px; }
.deck .feed { margin-top: 6px; font-size: 12px; max-height: 58px; overflow: hidden; }
@media (max-width: 760px) { .floorwrap { flex-direction: column; } .roster { width: 100%; flex-direction: row; flex-wrap: wrap; } .who { flex: 1 1 130px; } }

.meters { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; }
.meterbox { flex: 1 1 180px; display: flex; gap: 6px; align-items: center; font-weight: 700; }
.meterbox .hpbar { flex: 1; margin: 0; height: 14px; }
.meterbox .hpbar.band i { background: var(--pink); }
.pips2 { display: flex; gap: 3px; align-items: center; }
.who .dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; }
.who .doing { float: right; font-size: 11px; }
.gear .nm button.pwrbtn { padding: 0 4px; font-size: 11px; opacity: .6; }
.gear .nm button.pwrbtn.on { color: var(--green); border-color: var(--green); opacity: 1; }
.gear .tgt { color: var(--amber); }
.gear .kbd { opacity: .6; font-size: 10px; }
.panel.center { text-align: center; }
.roster { width: 100%; flex-direction: row; flex-wrap: wrap; }
.who { flex: 0 1 140px; }
.floorwrap { flex-direction: column; }
.floor { width: 100%; }
.floor .tip { min-height: 18px; }
/* under 1250px the floor goes full width under the people: the side column spans it too, roster and jobs side by side,
   instead of a 150px strip with nothing beside it (cleanup pass) */
.floorwrap > .sidecol { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.floorwrap > .sidecol > .roster { flex: 2 1 420px; }
.floorwrap > .sidecol > .jobs { flex: 1 1 240px; }
@media (min-width: 1250px) { .floorwrap { flex-direction: row; } .roster { width: 160px; flex-direction: column; } .who { flex: none; } .floor { width: auto; flex: 1; }
  .floorwrap > .sidecol { width: 150px; flex-direction: column; flex-wrap: nowrap; } .floorwrap > .sidecol > .roster, .floorwrap > .sidecol > .jobs { flex: none; width: 100%; } }

.meterbox .hpbar { display: block; min-width: 60px; }
.more > summary { cursor: pointer; color: var(--dim); padding: 6px 0; font-size: 13px; }
.ii { display: inline-block; width: 15px; height: 15px; line-height: 14px; text-align: center; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; color: var(--dim); cursor: help; margin: 0 3px; vertical-align: middle; }
.fillbar { display: inline-block; width: 60px; height: 8px; background: #000; border: 1px solid var(--line); vertical-align: middle; position: relative; }
.fillbar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--green); }
.fillbar i.lo { background: var(--amber); }
.fillbar i.be { width: 1px; background: #fff; left: var(--be); }
.bigdoors { font-size: 17px; padding: 10px 24px; }

.meterbox .hpbar { background: #000; border-radius: 3px; overflow: hidden; }
.meterbox .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--amber)); transition: width 0.2s; }
.meterbox .hpbar.band i { background: linear-gradient(90deg, var(--red), var(--green)); }

/* the day: a clock to doors and the run sheet under the floor */
.daybar { height: 6px; background: #000; border: 1px solid var(--line); margin-bottom: 6px; }
.daybar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); }
.jobs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.job { flex: 0 1 112px; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; font-size: 11px; cursor: pointer; user-select: none; line-height: 1.25; }
.job .jn { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .jr { display: block; color: var(--dim); font-size: 10px; white-space: nowrap; }
.job .jb { height: 3px; background: #000; margin-top: 2px; }
.job .jb i { display: block; height: 100%; background: var(--green); }
.job.ready { border-color: var(--amber); }
.job.on { border-color: var(--green); }
.job.done { opacity: .45; }
.job.locked { opacity: .65; }
.undone { text-align: left; font-size: 13px; max-height: 260px; overflow: auto; }
.problems { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; margin-bottom: 4px; }
.problem { background: #3a1420; border: 1px solid var(--red); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.crowdacts { display: flex; gap: 2px; min-width: 70px; font-size: 13px; }
.crowdacts span { cursor: help; }
.problem.crit { background: #5a0f18; border-width: 2px; animation: crit 0.6s steps(2) infinite; }
@keyframes crit { 50% { border-color: #fff; } }
#sh-clock.stopped { color: var(--red); }

/* strike: the floor coming down beside the truck going up */
.strikewrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 4px; }
.strikewrap .floor { flex: 1 1 400px; width: auto; }
.strikewrap .floor canvas { width: 100%; }
.truckside { flex: 1 1 340px; min-width: 0; }
.truckmap { width: 100%; image-rendering: pixelated; display: block; border: 2px solid var(--line); cursor: pointer; touch-action: none; background: #000; }
.packstrip { width: 100%; max-width: 560px; image-rendering: pixelated; display: block; margin-top: 6px; border: 1px solid var(--line); cursor: pointer; background: #000; } /* the truck from above (M-055) */

/* the five phases, on top of every screen */
.phases { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; margin-bottom: 6px; color: var(--dim); }
.ph { padding: 1px 6px; border-radius: 3px; }
.ph.now { background: var(--panel2); color: var(--amber); font-weight: 700; border: 1px solid var(--amber); }
.phsep { opacity: .4; }
.phnotes { margin-left: 8px; display: inline-flex; flex-wrap: wrap; gap: 4px; }
.phn { padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); cursor: help; }
.phn.good { color: var(--green); border-color: var(--green); }
.phn.bad { color: var(--red); border-color: var(--red); }
.checkbtns { gap: 4px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.checkbtns button.on { border-color: var(--green); color: var(--green); }

/* pictures instead of words: pips, meters, icon chips, and a bar of choices under the floor */
.job { flex: 0 0 auto; min-width: 42px; text-align: center; }
.job .ji { font-size: 16px; display: block; line-height: 1.3; }
.pipr { display: inline-flex; gap: 2px; vertical-align: middle; }
.pipr i { width: 6px; height: 10px; background: #000; border: 1px solid var(--line); }
.pipr i.on { background: var(--green); }
.mtr { display: inline-block; width: 54px; height: 10px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.mtr i { display: block; height: 100%; background: var(--green); }
.mtr.long i { background: var(--amber); }
.mtr.late i { background: var(--red); }
.phn { font-size: 14px; }
.ph { font-size: 15px; }
.doorbar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; background: #0c0b12ee; padding: 8px; border: 1px solid var(--amber); border-radius: 6px; }
.loadbar { position: relative; display: inline-flex; width: 160px; height: 10px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.loadbar i { display: block; height: 100%; background: var(--green); }
.loadbar b { display: block; height: 100%; background: var(--red); }
.loadbar u { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #fff; text-decoration: none; }
.ptiles { display: flex; flex-wrap: wrap; gap: 6px; }
.ptile { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; max-width: 110px; padding: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.ptile.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.ptile:disabled { opacity: 0.4; }
.ptile .pi { font-size: 18px; line-height: 1; }
.ptile .pn { text-align: center; line-height: 1.1; font-size: 11px; }
.ptile .pp { color: var(--amber); font-family: ui-monospace, monospace; }
.ptile .pp.good { color: var(--green); }
.twobar { display: inline-flex; flex-direction: column; gap: 1px; width: 44px; height: 9px; background: #000; vertical-align: middle; cursor: help; }
.twobar i { display: block; height: 4px; }
.who .twobar { display: flex; clear: both; width: 100%; margin: 3px 0 2px; }
.bandstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bandstrip .player { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; }
.gear .by { font-size: 11px; color: var(--dim); }
.gear .by.slow { color: var(--red); }
.mapsvg .radius { fill: #ffb54708; stroke: #ffb54766; stroke-dasharray: 4 6; pointer-events: none; }
.mapsvg .node.shut { opacity: 0.35; }
.mapsvg .node.home circle.b { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.mapsvg .node.home text.icon { fill: #1a1206; font-size: 20px; }
.mapsvg .node text.homename { fill: var(--amber); font-size: 18px; font-weight: 700; paint-order: stroke; stroke: #0e0d14; stroke-width: 3px; }
.cal { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; cursor: help; }
.cal b { font-size: 11px; margin-right: 3px; font-weight: 400; color: var(--dim); }
.cal.shut b { color: var(--red); }
.cal i { display: block; width: 5px; height: 9px; background: #000; border-bottom: 1px solid transparent; }
.cal i.free { background: var(--green); }
.cal i.wk { border-bottom-color: var(--amber); }
.cal i.now { outline: 1px solid #fff; }
.cal.shut i.now { outline-color: var(--red); }
.scale { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; margin: 3px 0; font-size: 11px; }
.scale .sc { display: flex; align-items: center; gap: 4px; }
.scale .sc em { font-style: normal; width: 62px; white-space: nowrap; overflow: hidden; color: var(--dim); }
.scale .sc.you em { color: var(--text); font-weight: 700; }
.scale .sc b { flex: 1; height: 6px; background: #000; display: block; }
.scale .sc i { display: block; height: 100%; }
.mixbar { display: inline-flex; height: 12px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.mixbar i { display: block; height: 100%; }
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
.gtile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; text-align: left; }
.gtile.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.gtile .dim { font-size: 11px; }
.shelves { display: flex; flex-direction: column; gap: 3px; }
.shelf { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.shelf .pi { width: 42px; font-size: 15px; cursor: help; }
.shelf .sq { flex: 1; display: flex; flex-wrap: wrap; gap: 1px; cursor: help; min-width: 80px; }
.shelf .sq i { display: block; width: 7px; height: 9px; }
.shelf .sq i.left { background: var(--green); }
.shelf .sq i.sells { background: #5fe39a55; border-bottom: 1px solid var(--amber); }
.shelf.short .sq i.sells { background: #ff5a5a66; border-bottom-color: var(--red); }
.clock.notyet { opacity: .35; }
.job.wait { animation: jobwait 1s steps(2) infinite; }
@keyframes jobwait { 50% { border-color: var(--amber); background: #ffb54733; } }
.who .mark { width: 12px; height: 12px; flex: none; shape-rendering: crispEdges; }

/* the look pass (2026-11-05): the top bar in pictures */
.top { gap: 6px 14px; }
.top .res { display: inline-flex; align-items: center; gap: 4px; cursor: help; }
.top .res b { font-size: 13px; }
.meter.sm { width: 44px; height: 7px; }
.meter { position: relative; }
.meter.buzz > i { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.meter > u { position: absolute; top: 0; bottom: 0; width: 1px; background: #ffffffcc; text-decoration: none; }
.top .dates { gap: 3px; }
.top .dates i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dim); display: inline-block; }
.top .dates i.on { background: var(--amber); border-color: var(--amber); }
.top .dates i.fin { border-radius: 2px; border-color: var(--red); }
.top .dates i.fin.on { background: var(--red); }
.top .seed { margin-left: auto; font-size: 11px; color: var(--dim); }

/* the phase strip: a track through the day */
.phases { gap: 0; margin-bottom: 8px; }
.phases .ph { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; padding: 0; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); font-size: 15px; opacity: .45; filter: grayscale(.7); cursor: help; position: relative; }
.phases .ph.done { opacity: .85; filter: none; border-color: #2e6b4a; }
.phases .ph.done::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.3l1.9 1.9 3.8-4.3' fill='none' stroke='%230b1a10' stroke-width='1.8'/%3E%3C/svg%3E") center/100% no-repeat; }
.phases .ph.now { opacity: 1; filter: none; width: 42px; height: 32px; border-radius: 16px; font-size: 20px; border: 2px solid var(--amber);
  background: var(--panel2); box-shadow: 0 0 12px #ffb54755; animation: phnow 2.4s ease-in-out infinite; }
@keyframes phnow { 50% { box-shadow: 0 0 4px #ffb54733; } }
.phases .phsep { display: inline-block; width: 14px; height: 2px; background: var(--line); opacity: 1; }
.phases .phsep.done { background: var(--green); }
.phases .phnotes { margin-left: 12px; }
@media (prefers-reduced-motion: reduce) { .phases .ph.now { animation: none; } }

/* the settlement: the night's money as a waterfall */
.nightrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.bigface { font-size: 30px; line-height: 1; cursor: help; }
.roomfill { display: inline-block; width: 110px; height: 10px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.roomfill i { display: block; height: 100%; background: var(--cyan); }
.dchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; cursor: help; }
.dchip.good { color: var(--green); border-color: #2e6b4a; } .dchip.bad { color: var(--red); border-color: #6b2e36; }
.flow { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; }
.fl { display: grid; grid-template-columns: 30px 1fr 74px; align-items: center; gap: 6px; cursor: help; }
.fl .fi { font-size: 16px; text-align: center; }
.fl .ft { position: relative; height: 14px; background: #0006; border-radius: 2px; }
.fl .ft i { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.fl .ft i.in { background: var(--green); } .fl .ft i.out { background: var(--red); } .fl .ft i.net { background: var(--amber); }
.fl .ft u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--dim); text-decoration: none; }
.fl .fa { text-align: right; font-size: 12px; }
.fl.total { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.fl.total .ft { height: 18px; }
.fl:hover .ft { outline: 1px solid var(--line); }

/* the map: names you can read at the size it's drawn, the next leg moving, and you on it */
.mapsvg .node text.city { font-size: 17px; paint-order: stroke; stroke: #0e0d14; stroke-width: 4px; }
.mapsvg .node.booked text.city, .mapsvg .node.reach:hover text.city { fill: var(--text); }
.mapsvg .hrs { font-size: 16px; stroke-width: 4px; }
.mapsvg .node text.icon { font-size: 20px; }
.mapsvg .riskcount { font-size: 18px; paint-order: stroke; stroke: #0e0d14; stroke-width: 4px; }
.mapsvg .edge.live.next { stroke: var(--cyan); stroke-width: 4; stroke-dasharray: 10 8; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
.mapsvg .you circle { fill: #4fd8ff14; stroke: var(--cyan); stroke-width: 2; animation: youpulse 2s ease-in-out infinite; }
.mapsvg .you text { font-size: 30px; pointer-events: none; }
@keyframes youpulse { 50% { stroke-opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .mapsvg .edge.live.next, .mapsvg .you circle { animation: none; } }
.dchip.warn { color: var(--amber); border-color: #6b5a2e; }
.dchip.dim { color: var(--dim); }
.gs { display: inline-flex; align-items: center; gap: 1px; margin-right: 7px; font-family: var(--mono); font-size: 11px; color: var(--dim); cursor: help; white-space: nowrap; }
.dicon { display: inline-block; width: 20px; text-align: center; }
.dayline { position: relative; display: inline-block; width: 200px; height: 12px; background: #000; border: 1px solid var(--line); vertical-align: middle; }
.dayline i { position: absolute; top: 0; bottom: 0; cursor: help; }
.dayline i.free { background: #2f6a4a; } .dayline i.work { background: var(--amber); }
.top .res b.bad { color: var(--red); }
/* the set as a strip of songs, and the room's one shared meter (M-051, M-032) */
.setstrip { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.setstrip .song { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.setstrip .song.now { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.setstrip .song.done { opacity: 0.75; }
.setstrip .song.cut { opacity: 0.35; text-decoration: line-through; }
.setstrip .song .res { position: absolute; left: 2px; right: 2px; bottom: 1px; height: 2px; }
.setstrip .song .drop { padding: 0 4px; margin-left: 2px; font-size: 10px; }
.setstrip .settime { margin-left: auto; }
.moodbar { position: relative; display: inline-block; width: 180px; height: 10px; background: #2c2a36; border: 1px solid var(--line); vertical-align: middle; }
.moodbar i { position: absolute; left: 0; top: 0; bottom: 0; }
.moodbar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--green); }
.moodbar b.enc { background: var(--amber); }
.player .judge { display: inline-block; width: 26px; height: 3px; background: #2c2a36; margin-left: 2px; vertical-align: middle; }
.player .judge i { display: block; height: 100%; }
.player.down { opacity: 0.4; }
/* at a glance (R-100): panels for the room a screen has to spare */
.glancegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
@media (max-width: 760px) { .glancegrid { grid-template-columns: 1fr; } }
.glance h3 { margin-bottom: 6px; }
.glancerow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0; font-size: 14px; }
.glancerow .want, .glancerow .risk { display: inline-flex; align-items: center; gap: 2px; cursor: help; }
.glancerow .crowdacts span, .glancerow > span[title] { cursor: help; }
.songdots { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.songdot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; cursor: help; }
.peoplegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pcard { display: flex; align-items: center; gap: 5px; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; font-size: 12px; }
.pcard b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.pcard .mark { width: 12px; height: 12px; flex: none; }
.pcard .twobar, .pcard .burn, .pcard .meter { flex: none; }
.underfloor { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.underfloor .glance { flex: 1 1 320px; margin: 0; }
.underfloor .packstrip { flex: 1 1 360px; }
.sidecol { width: 150px; flex: none; display: flex; flex-direction: column; gap: 8px; } /* the roster, then today's jobs under it (R-100) */
.sidecol .roster { width: 100%; }
@media (max-width: 760px) { .sidecol { width: 100%; } }
.songbars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.songbar { flex: 1 1 0; max-width: 34px; height: 100%; display: flex; align-items: flex-end; justify-content: center; background: var(--panel2); border-radius: 3px; cursor: help; color: var(--red); font-size: 11px; }
.songbar i { display: block; width: 100%; border-radius: 3px; }
.songbar.cut { align-items: center; opacity: 0.6; }
/* the strike: the crew in a row across the top, so the floor and the truck start right under them (R-100) */
#st-roster.roster { width: 100%; flex-direction: row; flex-wrap: wrap; }
#st-roster .who { flex: 1 1 140px; }
/* a player in detail (R-101): parts of playing, habits, tolerances as icons and small bars */
.pxcard.muso { max-width: 300px; }
.pxcard .mgrid { display: grid; grid-template-columns: repeat(4, auto); gap: 3px 8px; margin: 4px 0 2px; justify-content: start; }
.pxcard .mcell { display: inline-flex; align-items: center; gap: 3px; cursor: help; font-size: 12px; }
.pxcard .mcell.best { outline: 1px solid var(--green); outline-offset: 1px; }
.pxcard .mcell.flaw { outline: 1px solid var(--red); outline-offset: 1px; }
.pxcard .mbar { display: inline-block; width: 30px; height: 5px; background: #2c2a36; border: 1px solid #000; }
.pxcard .mbar i { display: block; height: 100%; }
.pxcard .mhead { margin-top: 5px; border-top: 2px solid #2f2b3d; padding-top: 3px; font-size: 12px; cursor: help; }
.mbadge { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; line-height: 1; margin-left: 2px; cursor: help; vertical-align: middle; }
.mbadge i { display: block; height: 2px; background: var(--amber); align-self: flex-start; max-width: 100%; }
.mbadge.bad i { background: var(--red); }
.mbadge.bad { filter: drop-shadow(0 0 2px var(--red)); }
.stand { display: inline-flex; gap: 1px; margin-left: 3px; font-size: 11px; vertical-align: middle; }
.stand span { cursor: help; }
.stand .best { outline: 1px solid var(--green); outline-offset: -1px; border-radius: 2px; }
.stand .low { box-shadow: inset 0 -2px 0 var(--red); }
.pcard[data-card] { cursor: pointer; }

/* persona traits beside a name, and the building's own people in the roster (cleanup pass) */
.who .trait, .pcard .trait, .slot .trait { font-size: 10px; margin-left: 2px; cursor: help; opacity: 0.85; }
.who.house { opacity: 0.75; cursor: pointer; border-left: 2px solid #55536a; }

/* a room whose night is taken, in the route's room picker (booking) */
button.small.taken { opacity: 0.55; text-decoration: line-through; }
.clash { cursor: pointer; }

/* the game's own hover tip (R-104): the same pixel look as a card, small, never in the way of the pointer */
.hovertip { position: absolute; z-index: 70; max-width: 260px; padding: 5px 8px; background: #17151f; border: 2px solid #55536a; box-shadow: 2px 2px 0 #000;
  color: var(--text); font-size: 12px; line-height: 1.35; pointer-events: none; white-space: pre-line; }

/* the booking sheet under the map (R-109): the route a row a date, and what you could book next */
.sheet { margin-top: 10px; }
.sheetwrap { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet th { position: sticky; top: 0; background: var(--panel); color: var(--dim); font-weight: 600; text-align: right; padding: 4px 3px; border-bottom: 1px solid var(--line); cursor: help; white-space: nowrap; }
.sheet th.sort { cursor: pointer; }
.sheet th.sorted { color: var(--amber); }
.sheet td { padding: 3px 3px; text-align: right; border-bottom: 1px solid #ffffff0a; white-space: nowrap; }
.sheet th.l, .sheet td.l { text-align: left; }
.sheet tbody tr:nth-child(even) td { background: #ffffff05; }
.sheet tbody tr:hover td { background: #ffffff0d; }
.sheet tr.off td { color: var(--dim); }
.sheet tfoot td { border-top: 2px solid var(--line); font-weight: 700; padding-top: 5px; }
.sheet td.wk { color: var(--amber); }
.sheet .neg { color: var(--red); }
.sheet .pos { color: var(--green); }
.sheet small { color: var(--dim); font-size: 10px; margin-left: 1px; }
.sheet select { font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 1px 2px; max-width: 112px; }
.sheet .fill { display: inline-block; width: 28px; height: 6px; background: #000; border: 1px solid var(--line); vertical-align: middle; margin-right: 3px; }
.sheet .fill i { display: block; height: 100%; }
.sheet button.small { padding: 0 6px; }

/* the design review's first pass (R-112): what a click would start, what a job waits on, readable without colour */
.job.next { outline: 2px dashed var(--amber); outline-offset: 1px; }
.job .jm { font-size: 9px; margin-left: 2px; opacity: .9; }
.btns.savefile { margin-top: 8px; gap: 6px; }
#sh-auto.on { border-color: var(--amber); }
.nightrow.causes { gap: 4px; }
.quitmark { font-size: 11px; margin-right: 2px; opacity: .7; }
.quitmark.bad { opacity: 1; animation: quitpulse 1s infinite alternate; }
@keyframes quitpulse { from { opacity: .45; } to { opacity: 1; } }
.res .short { font-size: 9px; color: var(--amber); margin-left: 1px; }

/* the load-out's readiness (R-113): what's left before the truck can close, then a tick */
#st-ready { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; font-size: 13px; }
#st-ready .rd b { font-size: 11px; margin-left: 1px; }
#st-ready .rd.warn { color: var(--amber); }
#st-close.go { animation: quitpulse .8s infinite alternate; box-shadow: 0 0 0 2px var(--green); }
details.later > summary { cursor: pointer; margin: 10px 0 4px; color: var(--dim, #8d88a3); list-style: none; }
details.later > summary::-webkit-details-marker { display: none; }

/* the phone (M-058, R-114): beside the speaker, a count of what's new, ringing for a call */
#phonebtn { position: fixed; right: 50px; bottom: 10px; z-index: 20; height: 30px; min-width: 34px; padding: 0 6px; font-size: 16px; background: #17151fdd; }
#phonebtn .badge { font-size: 10px; margin-left: 2px; background: var(--amber); color: #000; border-radius: 8px; padding: 0 4px; }
#phonebtn.new { border-color: var(--amber); }
#phonebtn.ring { border-color: var(--red); animation: quitpulse .5s infinite alternate; }
.pxcard.phone { max-width: 380px; }
.pxcard.phone .pgoals { display: flex; gap: 8px; margin: 4px 0 6px; font-size: 16px; }
.pxcard.phone .pgoal.met { color: var(--green); } .pxcard.phone .pgoal.missed { opacity: .5; }
.pxcard.phone .plist { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.pxcard.phone .pmsg { border-left: 2px solid var(--line); padding-left: 6px; }
.pxcard.phone .pmsg.unread { border-left-color: var(--amber); }
.pxcard.phone .pmsg.warn { border-left-color: var(--red); }
.pxcard.phone .pmsg .ph { display: flex; gap: 6px; align-items: baseline; font-size: 12px; }
.pxcard.phone .pmsg .ph .dim { margin-left: auto; font-size: 10px; }
.pxcard.phone .pmsg .pt { font-size: 12px; line-height: 1.35; white-space: normal; }
.top .savebtn { padding: 0 4px; font-size: 12px; background: none; border: 1px solid var(--line); }
.pxcard.phone.just { max-width: 300px; }
