/* console.css: the venue console. A quiet pastel operations desk: cool paper surfaces, one blue accent,
   large rounded figures, and state colours that always come with a shape as well as a hue. */

:root {
  color-scheme: light;

  /* the palette */
  --ground: #EEF1F6;
  --paper: #F4F6FA;
  --line: #D9DEE8;
  --accent: #4F7BF2;
  --mint: #BFE3C0;
  --sand: #D8B48A;

  /* ink for text, tuned for contrast on the palette */
  --ink: #1D2740;
  --ink-soft: #4A5672;
  --ink-faint: #5F6B88;
  --line-strong: #C3CADB;
  --accent-ink: #2A52C9;
  --accent-deep: #3A62D6;
  --accent-wash: #E4EBFD;
  --attention: #EE6A4F;
  --attention-wash: #FCE6E0;
  --attention-ink: #A23620;

  /* what the live layer draws on the model */
  --seat-fixed: #3A9A4A;
  --seat-seen: #E7A33B;
  --seat-unseen: #7B87A5;
  --seat-open: #BFE3C0;
  --seat-hold: #D9780A;
  --person: #4F7BF2;
  --node: #4F7BF2;
  --node-stub: #9DB4F2;
  --node-down: #AEB6C6;

  /* the drawn model, used when there is no generated file */
  --model-slab: #D9DEE8;
  --model-slab-side: #B4BDD0;
  --model-wall: #F4F6FA;
  --model-wood: #D8B48A;
  --model-wood-dark: #B98F5E;
  --model-steel: #9BA6BE;

  /* the receipt: warm printed paper with its own ink, so it reads as a different object from the cards around it */
  --sheet: #FFFEFA;
  --sheet-ink: #25262B;
  --sheet-faint: #67655D;
  --sheet-rule: #B9B4A6;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gap: 12px;
  --r-stage: 28px;
  --r-card: 22px;
  --r-ctl: 12px;
  --shadow-soft: 0 1px 2px rgb(29 39 64 / 0.06), 0 12px 30px -16px rgb(29 39 64 / 0.24);
  --shadow-lift: 0 2px 4px rgb(29 39 64 / 0.1), 0 18px 38px -14px rgb(29 39 64 / 0.34);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 140ms;
  --slow: 280ms;
}

/* ---- state tones: one place says what each word looks like -------------------------------------------- */
[data-tone] { --tone: var(--accent); --tone-wash: var(--accent-wash); --tone-ink: var(--accent-ink); }
[data-tone='fixed'], [data-tone='held'] { --tone: var(--seat-fixed); --tone-wash: #DDF1E0; --tone-ink: #1D6A2C; }
[data-tone='seen'] { --tone: var(--seat-seen); --tone-wash: #FBEBCB; --tone-ink: #7A4B06; }
[data-tone='unseen'] { --tone: var(--seat-unseen); --tone-wash: #E6E9F0; --tone-ink: #3F4B68; }
[data-tone='empty'] { --tone: #7DBE86; --tone-wash: #E3F4E4; --tone-ink: #22633A; }
[data-tone='live'] { --tone: var(--seat-fixed); --tone-wash: #DDF1E0; --tone-ink: #1D6A2C; }
[data-tone='simulated'], [data-tone='info'] { --tone: var(--accent); --tone-wash: var(--accent-wash); --tone-ink: var(--accent-ink); }
[data-tone='stub'] { --tone: var(--sand); --tone-wash: #F6EADB; --tone-ink: #6B4A25; }
[data-tone='grey'] { --tone: var(--seat-unseen); --tone-wash: #E6E9F0; --tone-ink: #4F5B78; }          /* 5.5 to 1 on its wash, plainly lighter than the ink */
[data-tone='amber'] { --tone: var(--seat-seen); --tone-wash: #FBEBCB; --tone-ink: #7A4B06; }
[data-tone='down'], [data-tone='attention'] { --tone: var(--attention); --tone-wash: var(--attention-wash); --tone-ink: var(--attention-ink); }
[data-tone='witnessed'] { --tone: var(--seat-fixed); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 14px/1.45 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--gap) 18px;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  padding: 14px 16px 12px;
}
.topbar { grid-column: 1 / -1; }

/* ---- the pages: a side navigation, and one page shown at a time ------------------------------------------ */
.sidenav { display: grid; align-content: start; gap: 6px; padding: 6px 0 0; }
.sidenav-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sidenav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--ink-soft); font-weight: 600;
  font-size: 14px; text-decoration: none; transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.sidenav-link svg { width: 20px; height: 20px; flex: none; }
.sidenav-link:hover { background: #EDF0F6; color: var(--ink); }
.sidenav-link[aria-current='page'] { background: var(--accent-wash); color: var(--accent-ink); }
.sidenav-hint { margin-top: 14px; padding: 0 12px; font-size: 11.5px; color: var(--ink-faint); }

.pages { display: grid; min-height: 0; }
.page { min-height: 0; }
.page[hidden] { display: none; }
.page:not(.page-floor) { overflow: auto; overscroll-behavior: contain; padding: 2px 16px 28px 2px; scrollbar-width: thin; }

/* the floor: the scene runs to the page's right and bottom edges with the card panel docked on the right; the timeline and the
   layer chips float over the bottom of the scene, so nothing takes room from it */
.app { padding: 14px 0 0 16px; }
.topbar { padding-right: 16px; }
.page-floor { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); gap: 0; }
.page-floor .workspace, .page-floor .workspace.with-rail { grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: minmax(0, 1fr); gap: 0; }
.page-floor .workspace .stage, .page-floor .workspace .panel { grid-row: auto; grid-column: auto; }
.page-floor .stage { border-radius: 0; box-shadow: none; }
.page-floor .panel { border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); }
.page-floor .transport { position: absolute; left: 16px; right: calc(372px + 16px); bottom: 52px; z-index: 3; }
.page-floor .layers { position: absolute; left: 16px; right: calc(372px + 16px); bottom: 12px; z-index: 3; }
.page-floor .legend, .page-floor .tools { bottom: 118px; }
.page-head { max-width: 1040px; margin: 6px 0 20px; }
.page-title { font: 650 30px/1.1 var(--font-display); letter-spacing: -0.02em; }
.page-blurb { max-width: 66ch; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.page-body { max-width: 1040px; }
.page-body-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.page-body-guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: start; }
.page-body-truth { max-width: 820px; }
.page-body .piece { padding: 18px 22px 20px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft); }
.page-body .piece .card-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.page-body .rail { max-height: calc(100dvh - 230px); }
.page-links { display: flex; gap: 10px; margin-top: 14px; }
.page-link { color: var(--accent-ink); font-weight: 650; text-decoration: none; }

/* the home page: the figures again, then one tile per page */
.kpis.kpis-page { position: static; z-index: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: 1040px; margin: 6px 0 26px; pointer-events: auto; }
.kpis.kpis-page .kpi, .kpis.kpis-page .kpi:first-child { flex-basis: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; max-width: 1040px; margin-top: 6px; }
.tile {
  display: grid; gap: 8px; align-content: start; padding: 16px 18px 18px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft);
  color: inherit; text-decoration: none; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.tile:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgb(29 39 64 / 0.08), 0 16px 34px -16px rgb(29 39 64 / 0.32); }
.tile:active { transform: none; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; }
.tile-go { font-size: 12.5px; font-weight: 650; color: var(--accent-ink); }
.tile-body { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* the owner's switches (ownerswitch.js) */
.owner-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.owner-name { margin: 0 0 4px; font-weight: 650; font-size: 15px; }
.owner-what { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); max-width: 62ch; }
.owner-switch .row-note { margin-top: 4px; }

/* the truth page: the agreement card laid out for reading, four counts first, then the seats the two sides disagree on */
.page-body .piece .row { grid-template-columns: minmax(0, 1fr) auto; }
.page-body .piece .row dd { white-space: nowrap; }
.agreement-status { margin: 6px 0 14px; font-size: 15px; color: var(--ink-soft); }
.agreement-status:empty { display: none; }
.agreement-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.agreement-row { display: grid; gap: 4px; padding: 12px 14px 11px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.agreement-row dt { font: 650 10.5px/1.2 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.agreement-row dd { margin: 0; font: 650 28px/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.agreement-row[data-key='discrepancies'] dd, .agreement-row[data-key='one_side'] dd { color: var(--accent-ink); }
.agreement-subtitle { margin: 16px 0 6px; font: 650 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
.agreement-hidden, .agreement-notes { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.agreement-hidden:empty, .agreement-notes:empty { display: none; }
.agreement-seat { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.agreement-seat:empty { display: none; }
.agreement-forecast { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.agreement-notes { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); list-style: none; padding: 0; }

/* ---- top bar -------------------------------------------------------------------------------------------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 6px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font: 650 19px/1.1 var(--font-display); letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; display: block; flex: none; }
@keyframes cb-beat{0%,100%{transform:scale(1)}45%{transform:scale(1.2)}}
@keyframes cb-ripple{0%{transform:scale(1);opacity:.5}100%{transform:scale(2.25);opacity:0}}
.cb-dot,.cb-rip{transform-box:fill-box;transform-origin:center}
.cb-dot{animation:cb-beat 2.8s cubic-bezier(.4,0,.2,1) infinite}
.cb-rip{animation:cb-ripple 2.8s cubic-bezier(.2,.6,.4,1) infinite}
@media (prefers-reduced-motion:reduce){.cb-dot{animation:none}
.cb-rip{display:none}}
.occupied, .clock { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock { font-weight: 600; color: var(--ink); }
.link {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--tone-wash); color: var(--tone-ink); font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.link-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.link[data-tone='wait'] { --tone: var(--seat-seen); --tone-wash: #FBEBCB; --tone-ink: #7A4B06; }
.link[data-tone='paused'] { --tone: var(--seat-unseen); --tone-wash: #E6E9F0; --tone-ink: #3F4B68; }
.link[data-tone='play'] { --tone: var(--accent); --tone-wash: var(--accent-wash); --tone-ink: var(--accent-ink); }
.link[data-tone='error'] { --tone: var(--attention); --tone-wash: var(--attention-wash); --tone-ink: var(--attention-ink); }
.link[data-tone='live'] .link-dot { animation: breathe 2.2s ease-in-out infinite; }

/* ---- workspace: the model and the side panel ------------------------------------------------------------ */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); min-height: 0; }

.stage {
  position: relative; min-height: 0; overflow: hidden; border-radius: var(--r-stage);
  background: radial-gradient(120% 90% at 28% 18%, #FBFCFE 0%, #F1F4F9 52%, #E5E9F2 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), var(--shadow-soft);
}
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage:focus-visible { outline-offset: -3px; }
.viewport { position: absolute; inset: 0; }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.stage.over-target canvas { cursor: pointer; }

.hover-label {
  position: absolute; left: 0; top: 0; z-index: 4; padding: 5px 10px; border-radius: 10px; pointer-events: none;
  background: var(--ink); color: #fff; font: 600 12px/1.3 var(--font-text); white-space: nowrap; box-shadow: var(--shadow-lift);
}

/* ---- key figures ---------------------------------------------------------------------------------------- */
.kpis { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; max-width: calc(100% - 28px); pointer-events: none; }
.kpi {
  pointer-events: auto; flex: 0 0 148px; display: flex; flex-direction: column; padding: 11px 14px 10px; border-radius: 18px;
  background: rgb(244 246 250 / 0.8); border: 1px solid rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: var(--shadow-soft); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.kpi:first-child { flex-basis: 190px; border-radius: 24px; padding: 12px 18px 11px; }
.kicker { font: 650 10.5px/1.2 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.kpi .kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value { margin: 7px 0 4px; font: 650 32px/1 var(--font-display); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi:first-child .kpi-value { font-size: 54px; margin: 8px 0 5px; letter-spacing: -0.04em; }
.kpi-value .unit { font-size: 0.46em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.kpi-value .word { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink-faint); }
.kpi-caption { font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.kpi-source { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--ink-faint); }
.kpi.bump .kpi-value { animation: tick 560ms var(--ease); }
.gauge { display: flex; gap: 2px; height: 6px; margin: 2px 0 7px; border-radius: 3px; overflow: hidden; background: var(--line); }
.gauge i, .stack i { flex: var(--n, 0) 0 0; min-width: 0; background: var(--tone); }
.gauge i[data-tone='held'], .stack i[data-tone='held'] { background: repeating-linear-gradient(135deg, var(--seat-fixed) 0 3px, #A9D8B0 3px 6px); }
.gauge i[data-tone='empty'], .stack i[data-tone='empty'] { background: var(--mint); }

/* ---- provenance and state dots ------------------------------------------------------------------------- */
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.dot[data-tone='held'] { background: conic-gradient(var(--tone) 0 50%, transparent 0 100%); box-shadow: inset 0 0 0 1.5px var(--tone); }
.dot[data-tone='unseen'] { background: transparent; box-shadow: inset 0 0 0 2px var(--tone); }
.dot[data-tone='empty'] { background: var(--mint); box-shadow: inset 0 0 0 1.5px #7DBE86; }
.dot[data-prov] { background: var(--prov, var(--seat-unseen)); }
.dot[data-prov='witnessed'], .dot[data-prov='live'] { --prov: var(--seat-fixed); }
.dot[data-prov='anchored'] { --prov: var(--accent); }
.dot[data-prov='dreamed'] { --prov: #A08FE6; }
.dot[data-prov='simulated'] { --prov: var(--seat-seen); }
.dot[data-prov='stub'] { background: transparent; box-shadow: inset 0 0 0 2px var(--sand); }
.dot[data-prov='none'], .dot[data-prov='no feed'] { background: transparent; box-shadow: inset 0 0 0 2px var(--seat-unseen); }

/* ---- the key, the view buttons, the notice -------------------------------------------------------------- */
.legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: grid; gap: 5px; padding: 10px 14px 10px 12px; border-radius: 14px;
  background: rgb(244 246 250 / 0.8); font-size: 11.5px; color: var(--ink-soft);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 50%; background: var(--seat-fixed); }
.key[data-key='held'] { background: conic-gradient(var(--seat-fixed) 0 50%, transparent 0 100%); box-shadow: inset 0 0 0 1.5px var(--seat-fixed); }
.key[data-key='seen'] { background: var(--seat-seen); }
.key[data-key='unseen'] { background: transparent; box-shadow: inset 0 0 0 2px var(--seat-unseen); }
.key[data-key='open'] { background: var(--seat-open); box-shadow: inset 0 0 0 1.5px #7DBE86; }
.key[data-key='hold'] { box-sizing: border-box; background: transparent; border: 2px dashed var(--seat-hold); }
.key[data-key='person'] { width: 8px; height: 12px; border-radius: 4px; background: var(--person); }
.key[data-key='node'] { border-radius: 2px; background: var(--node); }

.tools { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 6px; }
.tools button {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgb(255 255 255 / 0.85); border-radius: 12px;
  background: rgb(244 246 250 / 0.86); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-soft);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.tools button:active { transform: scale(0.94); }
.tools svg { width: 18px; height: 18px; }

.notice {
  position: absolute; left: 50%; bottom: 76px; z-index: 5; display: grid; gap: 2px; width: max-content; max-width: min(540px, calc(100% - 32px));
  padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lift); font-size: 13px; transform: translateX(-50%);
}
.notice span { color: var(--ink-soft); }

.badges { position: absolute; inset: 0; pointer-events: none; }
.badge {
  position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.9); background: rgb(255 255 255 / 0.88); box-shadow: var(--shadow-soft); cursor: pointer; pointer-events: auto;
  font: 650 12px/1.2 var(--font-text); will-change: transform; transition: box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.badge-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-deep); color: #fff; font-variant-numeric: tabular-nums; }
.badge-count:empty { display: none; }

/* ---- side panel ------------------------------------------------------------------------------------------ */
.panel { min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft); scrollbar-width: thin; }
.card { padding: 20px 20px 24px; }
.card-head { display: grid; gap: 6px; padding-bottom: 14px; }
.card-head .kicker { color: var(--accent-ink); }
.card-title { font: 650 30px/1.05 var(--font-display); letter-spacing: -0.025em; }
.card-sub { color: var(--ink-soft); }
.note { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.chip-line { display: flex; margin-top: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border: 0; border-radius: 999px;
  background: var(--tone-wash); color: var(--tone-ink); font: 650 12.5px/1.4 var(--font-text); white-space: nowrap;
}
.chip-button { cursor: pointer; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.chip-button:active { transform: scale(0.97); }
.card-section { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.section-title { margin-bottom: 4px; font: 650 10.5px/1.2 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--ink-soft); font-size: 13px; }
.row dd { display: grid; justify-items: end; gap: 6px; min-width: 0; text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row dd .val[data-tone] { color: var(--tone-ink); }
.row.wide { grid-template-columns: 1fr; }
.row.wide dd { justify-items: stretch; text-align: left; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.meter { justify-self: stretch; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter::after { content: ''; display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform var(--slow) var(--ease); }
.link {
  padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}

.stack { display: flex; gap: 2px; height: 12px; overflow: hidden; border-radius: 6px; background: var(--line); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.stack-legend li { display: inline-flex; align-items: center; gap: 6px; }
.stack-legend b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px 6px; }
.steps li { display: grid; gap: 2px; padding-top: 8px; border-top: 4px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.steps li[data-state='done'] { border-color: var(--accent); color: var(--ink-soft); }
.steps li[data-state='current'] { border-color: var(--accent); color: var(--ink); }
.steps li[data-state='current'] .step-name::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.step-time { font-weight: 500; font-variant-numeric: tabular-nums; min-height: 1em; }
.step-item { font-weight: 500; font-size: 11px; line-height: 1.3; color: var(--ink-soft); overflow-wrap: anywhere; }
.step-item:empty { display: none; }

.row-label { display: block; }
.row[data-tone] .row-label { color: var(--tone-ink); font-weight: 650; }                 /* a row with a tone of its own, such as a hold, says it in its words */
.row-note { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--ink-faint); }
.row-note:empty { display: none; }

/* ---- a receipt: printed paper in monospace, every figure the ticket's own ----------------------------------- */
.receipt-row { padding: 10px 0 6px; border-bottom: 0; }
.receipt {
  position: relative; margin: 2px 2px 16px; padding: 16px 16px 18px; border-radius: 6px 6px 0 0;
  background: var(--sheet); color: var(--sheet-ink); font: 400 12.5px/1.5 var(--font-mono); font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgb(29 39 64 / 0.1), 0 14px 24px -16px rgb(29 39 64 / 0.45);
  -webkit-user-select: text; user-select: text;
}
.receipt::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
  background: linear-gradient(135deg, var(--sheet) 50%, transparent 50%) 0 0 / 11px 8px repeat-x, linear-gradient(225deg, var(--sheet) 50%, transparent 50%) 0 0 / 11px 8px repeat-x;
  filter: drop-shadow(0 2px 1px rgb(29 39 64 / 0.1));
}
.rc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 0; }
.rc-left { min-width: 0; overflow-wrap: anywhere; }
.rc-right { flex: none; text-align: right; white-space: nowrap; }
.rc-right:empty { display: none; }
.rc-title { justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.rc-center { justify-content: center; margin-bottom: 6px; color: var(--sheet-faint); }
.rc-rule { height: 0; margin: 8px 0; border: 0; border-top: 1px dashed var(--sheet-rule); }
.rc-item { font-weight: 600; }
.rc-detail { margin: 0 0 5px; padding-left: 10px; font-size: 11.5px; color: var(--sheet-faint); white-space: pre-wrap; }
.rc-total { font-size: 15px; font-weight: 700; }
.rc-wrap { display: block; }
.rc-note { display: block; font-size: 11.5px; color: var(--sheet-faint); }
.rc-status { justify-content: center; margin-top: 2px; }
.rc-status .rc-left {
  padding: 2px 12px 1px; border: 2px solid currentColor; border-radius: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; transform: rotate(-1.5deg);
}
.receipt[data-status='open'] .rc-status { color: #1D6A2C; }
.receipt[data-status='closed'] .rc-status { color: var(--sheet-faint); }
.receipt[data-status='void'] .rc-status, .receipt[data-status='unknown'] .rc-status { color: var(--attention-ink); }
.receipt[data-status='void'] .rc-item, .receipt[data-status='void'] .rc-detail { text-decoration: line-through; opacity: 0.6; }
.rc-line[data-tone='amber'] { color: var(--tone-ink); font-weight: 600; }
.rc-new { animation: rc-in 1.8s var(--ease) both; }

/* ---- a cocktail's recipe on the paper: the lines the bar pours from, under the item ------------------------- */
.rc-recipe { margin: 0 0 1px 4px; padding-left: 10px; border-left: 2px solid var(--sheet-rule); font-size: 11.5px; line-height: 1.45; color: var(--sheet-faint); }
.rc-recipe + .rc-item, .rc-recipe + .rc-detail { margin-top: 5px; }

/* ---- the bar ticket rail: orders printed as tickets hanging from a steel rail, newest first -------------------- */
.workspace.with-rail { grid-template-columns: minmax(0, 1fr) 292px 340px; }
.rail {
  position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 0 14px 18px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft);
}
.rail-head {
  position: sticky; top: 0; z-index: 2; display: grid; gap: 4px; margin: 0 -14px 6px; padding: 0 18px 12px;
  background: var(--paper); box-shadow: 0 12px 14px -14px rgb(29 39 64 / 0.35);
}
.rail-bar {
  display: block; height: 9px; margin: 12px -4px 10px; border-radius: 5px;
  background: linear-gradient(180deg, #F1F4F9 0%, #C3CADB 38%, #8E99AF 58%, #B4BDD0 78%, #DCE1EA 100%);
  box-shadow: 0 2px 3px rgb(29 39 64 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.rail-title { font: 650 20px/1.1 var(--font-display); letter-spacing: -0.015em; }
.rail-count { font-weight: 650; font-size: 12.5px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rail-clocks { font-size: 11.5px; line-height: 1.4; color: var(--ink-faint); }
.rail-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.rail-legend li { display: inline-flex; align-items: center; gap: 5px; }
.rail-legend .dot { width: 8px; height: 8px; }
.rail-empty, .rail-note { padding: 10px 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.rail[data-chain='broken'] .rail-empty { color: var(--attention-ink); font-weight: 600; }
.rail-group { padding-top: 6px; }
.rail-group + .rail-group { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.rail-tickets { display: grid; gap: 16px; padding-top: 4px; }

.rail-ticket { position: relative; display: grid; gap: 8px; }
.rail-ticket::before {                                  /* the clip that hangs the ticket from the rail */
  content: ''; position: absolute; top: -5px; left: 50%; z-index: 1; width: 34px; height: 9px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, #DCE1EA, #9BA6BE); box-shadow: 0 1px 2px rgb(29 39 64 / 0.25);
}
.rail-ticket .receipt { margin: 0 2px 10px; padding: 16px 14px 14px; border-left: 3px solid transparent; transition: border-color var(--slow) var(--ease), opacity var(--slow) var(--ease); }
.rail-ticket[data-status='ready'] .receipt { border-left-color: var(--seat-fixed); box-shadow: 0 1px 2px rgb(29 39 64 / 0.1), 0 14px 26px -14px rgb(58 154 74 / 0.55); }
.rail-ticket[data-status='making'] .receipt { border-left-color: var(--seat-seen); }
.rail-ticket[data-status='served'] .receipt, .rail-ticket[data-status='cancelled'] .receipt { opacity: 0.66; }
.rail-ticket[data-status='cancelled'] .rc-item, .rail-ticket[data-status='cancelled'] .rc-recipe { text-decoration: line-through; }
.receipt[data-status='received'] .rc-status { color: var(--accent-ink); }
.receipt[data-status='making'] .rc-status { color: #7A4B06; }
.receipt[data-status='ready'] .rc-status { color: #1D6A2C; }
.receipt[data-status='served'] .rc-status { color: var(--sheet-faint); }
.receipt[data-status='cancelled'] .rc-status { color: var(--attention-ink); }

.ticket-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.act {
  flex: 1 1 0; min-width: 0; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: #fff; color: var(--ink); font-weight: 650; font-size: 12.5px; cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.act[data-act='ready'] { border-color: #9ED3A6; background: #F0FAF1; color: #1D6A2C; }
.act[data-act='served'] { border-color: var(--accent); background: var(--accent); color: #fff; }
.act[data-act='cancelled'] { flex: 0 0 auto; border-color: transparent; background: transparent; color: var(--attention-ink); }
.act:active { transform: scale(0.97); }
.act:disabled { cursor: not-allowed; opacity: 0.42; transform: none; box-shadow: none; }
.rail-ticket[data-busy='true'] .ticket-actions { cursor: progress; }
.ticket-problem { padding: 0 4px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--attention-ink); }
.ticket-problem:empty { display: none; }
.rail-new .receipt { animation: ticket-in 1.6s var(--ease) both; }

/* ---- the bar's own till under an unpaid ticket: how it was paid, the tip, and one button (cardview.js _registerForm) */
.ticket-register { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px; }
.ticket-register[hidden] { display: none; }
.reg-select { flex: 1 1 88px; min-width: 0; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: #fff; color: var(--ink); }
.reg-select:disabled { opacity: 0.42; cursor: not-allowed; }
.ticket-register .act[data-act='paid'] { flex: 1 1 100%; border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }

/* ---- money back under a paid ticket: the amount, the reason and one button (cardview.js _refundForm) */
.ticket-refund { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px; }
.ticket-refund[hidden] { display: none; }
.reg-input { flex: 1 1 88px; min-width: 0; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: #fff; color: var(--ink); }
.reg-input:disabled { opacity: 0.42; cursor: not-allowed; }
.ticket-refund .act[data-act='refund'] { flex: 1 1 100%; }

/* ---- timeline ------------------------------------------------------------------------------------------- */
.transport {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 10px; border-radius: 22px;
  background: var(--paper); box-shadow: var(--shadow-soft);
}
.play {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 8px 16px -8px rgb(79 123 242 / 0.8);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.play:active { transform: scale(0.94); }
.play svg { width: 20px; height: 20px; }
.readout { flex: none; min-width: 132px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }

.scrub { --pct: 0%; flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.scrub::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--pct), var(--line) var(--pct)); }
.scrub::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.scrub::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 3px solid var(--accent); border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgb(29 39 64 / 0.3); transition: transform var(--fast) var(--ease);
}
.scrub::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--accent); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(29 39 64 / 0.3); }
.scrub:active::-webkit-slider-thumb { transform: scale(0.96); }
.scrub:focus-visible { outline-offset: 4px; border-radius: 6px; }

.switch {
  display: inline-flex; flex: none; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; font-weight: 650; font-size: 13px; cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.switch-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background var(--slow) var(--ease); }
.switch-track i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(29 39 64 / 0.3); transition: transform var(--slow) var(--ease); }
.switch[aria-checked='true'] { background: #F0FAF1; border-color: #9ED3A6; }
.switch[aria-checked='true'] .switch-track { background: var(--seat-fixed); }
.switch[aria-checked='true'] .switch-track i { transform: translateX(14px); }

/* ---- layer bar: also the provenance line ----------------------------------------------------------------- */
.layers { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0 4px 2px; }
.layer {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.6); font-size: 12px; line-height: 1.4; color: var(--ink-soft); white-space: nowrap;
}
.layer-name { font-weight: 650; color: var(--ink); }
button.layer { cursor: pointer; transition: background var(--fast) var(--ease), opacity var(--fast) var(--ease), transform var(--fast) var(--ease); }
button.layer:active { transform: scale(0.97); }
button.layer[aria-pressed='false'] { opacity: 0.55; background: transparent; border-style: dashed; }

/* ---- hover: only where a pointer can hover, so a tap on a phone does not leave a control looking lifted ----- */
@media (hover: hover) {
  .kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
  .tools button:hover { background: #fff; transform: translateY(-1px); }
  .badge:hover { background: #fff; box-shadow: var(--shadow-lift); }
  .chip-button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgb(29 39 64 / 0.5); }
  button.link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .play:hover { transform: translateY(-1px); box-shadow: 0 12px 20px -8px rgb(79 123 242 / 0.85); }
  .scrub:hover::-webkit-slider-thumb { transform: scale(1.12); }
  .switch:hover { border-color: var(--accent); }
  button.layer:hover { background: #fff; }
  .act:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgb(29 39 64 / 0.55); }
  .act[data-act='cancelled']:not(:disabled):hover { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
  /* pressed wins over hover for a mouse, so these come last */
  .tools button:active { transform: scale(0.94); }
  .chip-button:active { transform: scale(0.97); }
  .play:active { transform: scale(0.94); }
  .scrub:active::-webkit-slider-thumb { transform: scale(0.96); }
  button.layer:active { transform: scale(0.97); }
  .act:not(:disabled):active { transform: scale(0.97); }
}

/* ---- short windows: the key figures shrink to a title and a number, so the model keeps the room ------------- */
@media (min-width: 901px) and (max-height: 800px) {
  .kpi { flex-basis: 140px; padding: 8px 12px 8px; border-radius: 16px; }
  .kpi:first-child { flex-basis: 150px; padding: 8px 14px 8px; border-radius: 18px; }
  .kpi .kicker { letter-spacing: 0.1em; }
  .kpi-value, .kpi:first-child .kpi-value { margin: 4px 0 0; font-size: 28px; }
  .kpi:first-child .kpi-value { font-size: 40px; }
  .kpi-caption, .kpi-source, .gauge { display: none; }
}

/* ---- smaller screens ------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 304px; }
  .workspace.with-rail { grid-template-columns: minmax(0, 1fr) 304px; grid-template-rows: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .workspace.with-rail .rail-legend { display: none; }                         /* cramped: each stamp prints its status word */
  .workspace.with-rail .stage { grid-row: 1 / span 2; }
  .workspace.with-rail .panel { grid-column: 2; grid-row: 1; }
  .workspace.with-rail .rail { grid-column: 2; grid-row: 2; }
  .kpi { flex-basis: 138px; }
  .kpi:first-child { flex-basis: 176px; }
  .kpi:first-child .kpi-value { font-size: 58px; }
}
@media (max-width: 900px) {
  .app { height: auto; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding: 12px 12px 14px; }
  .sidenav { padding: 0; }
  .sidenav-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidenav-link { padding: 7px 11px; font-size: 13px; }
  .sidenav-hint { display: none; }
  .page:not(.page-floor) { overflow: visible; padding: 0 0 20px; }
  .page-body-bar, .page-body-guests { grid-template-columns: minmax(0, 1fr); }
  .page-body .rail { max-height: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace.with-rail { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .workspace.with-rail .stage, .workspace.with-rail .panel, .workspace.with-rail .rail { grid-column: auto; grid-row: auto; }
  .rail { max-height: 72vh; }
  .stage { display: flex; flex-direction: column; }
  .kpis { position: static; order: 1; max-width: none; padding: 12px 12px 0; }
  .kpi, .kpi:first-child { flex: 1 1 calc(50% - 5px); min-width: 120px; }
  .kpi:first-child { border-radius: 18px; padding: 12px 14px 11px; }
  .kpi:first-child .kpi-value { font-size: 44px; margin: 8px 0 5px; }
  .viewport { position: relative; inset: auto; order: 2; height: clamp(290px, 66vw, 560px); }
  .legend { display: none; }
  .tools { bottom: 12px; right: 12px; }
  .panel { max-height: none; }
  .topbar { flex-wrap: wrap; gap: 6px 12px; }
}
@media (max-width: 560px) {
  .kpis { gap: 8px; padding: 10px 10px 0; }
  .kpi, .kpi:first-child { padding: 10px 12px 9px; }
  .kpi-value, .kpi:first-child .kpi-value { font-size: 32px; margin: 6px 0 4px; }
  .kpi-caption { font-size: 11.5px; }
  .readout { display: none; }
  .transport { gap: 10px; padding-right: 10px; }
  .card { padding: 16px 16px 20px; }
  .card-title { font-size: 26px; }
  .occupied { display: none; }
}

/* ---- motion ---------------------------------------------------------------------------------------------- */
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.6; } }
@keyframes rc-in { 0% { background: var(--accent-wash); box-shadow: -8px 0 0 var(--accent-wash), 8px 0 0 var(--accent-wash); } 100% { background: transparent; box-shadow: none; } }
@keyframes tick { 0% { color: var(--accent-ink); transform: translateY(-3px); } 100% { color: inherit; transform: none; } }
@keyframes ticket-in { 0% { opacity: 0; transform: translateY(-10px); box-shadow: 0 0 0 4px var(--accent-wash); } 60% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* The referrals rail (referrals.js): assistants that asked about the patio and what it answered, newest first. */
.referrals { list-style: none; margin: 0; padding: 0; display: grid; }
.referral { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.referral:last-child { border-bottom: 0; }
.referral-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.referral-when { flex: none; color: var(--ink-faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.referral-body { margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
button.ping { margin-top: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; cursor: pointer; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
button.ping:hover:not([disabled]) { background: var(--line); }
button.ping:active:not([disabled]) { transform: scale(0.98); }
button.ping[disabled] { opacity: 0.6; cursor: default; }

/* ---- payment on the bar ticket: the paid stamp, the tip, and the QR of the checkout link under an unpaid ticket (payqr.js) */
.rc-paid { font-weight: 700; color: #1D6A2C; }
.rc-paid .rc-right { font-weight: 500; color: var(--sheet-faint); }
.ticket-stamp {
  position: absolute; top: 12px; right: 16px; z-index: 1; padding: 4px 8px; border: 2px solid #1D6A2C; border-radius: 6px;
  font: 700 11px/1 var(--font-text); letter-spacing: 0.18em; color: #1D6A2C; background: rgb(255 255 255 / 0.72); transform: rotate(-8deg);
}
.ticket-stamp[hidden] { display: none; }
.ticket-qr {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; margin: -6px 2px 4px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff;
}
.ticket-qr[hidden] { display: none; }
.ticket-qr-box { width: 96px; height: 96px; color: var(--ink); }
.ticket-qr-box svg { display: block; width: 100%; height: 100%; }
.ticket-qr-text { font-size: 12.5px; font-weight: 650; line-height: 1.4; color: var(--ink-soft); }

/* ---- the owner's payments card on the guests page (ownerpay.js) */
.owner-pay .owner-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }          /* the words first, the controls under them */
.owner-pay .owner-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owner-select { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.owner-pay .owner-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-pay .act { flex: 0 0 auto; }
.owner-pay .act[hidden] { display: none; }
.owner-account { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.owner-ready { margin: 6px 0 0; font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.owner-pay[data-ready='true'] .owner-ready { color: #1D6A2C; }

/* ---- the Menu page: drinks, food and the order in three columns that fill the page, each scrolling on its own (menupage.js) */
.page-menu { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.page-body-menu { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(300px, 0.8fr); grid-template-rows: minmax(0, 1fr); gap: 14px; align-items: stretch; min-height: 0; }
.page-body-menu > .piece { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; }
.page-body-menu > .piece > .section-title { font-size: 12px; }
.select { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); max-width: 100%; }
.menu-list, .ring-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.menu-list { display: grid; gap: 10px; align-content: start; }
.menu-section-title { margin: 8px 0 2px; font: 650 13px/1.2 var(--font-text); color: var(--ink); }
.menu-section:first-child .menu-section-title { margin-top: 0; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.menu-row[data-photo='true'] { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.menu-row[data-offerable='false'] .menu-name { color: var(--ink-faint); }
.menu-photo { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--ground); }
.menu-photo-button { padding: 0; border: 0; border-radius: 10px; background: none; cursor: zoom-in; line-height: 0; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.menu-photo-button:hover, .menu-photo-button:focus-visible { transform: scale(1.04); box-shadow: 0 2px 10px rgba(29, 39, 64, 0.18); }
.menu-photo-button[hidden] { display: none; }
.menu-dialog { width: min(560px, 92vw); padding: 0; border: 0; border-radius: var(--r-card); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-soft); overflow: hidden; }
.menu-dialog::backdrop { background: rgba(29, 39, 64, 0.45); }
.menu-dialog-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground); }
.menu-dialog-words { display: grid; gap: 8px; padding: 16px 20px 20px; }
.menu-dialog-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font: 650 20px/1.2 var(--font-display); }
.menu-dialog .menu-desc { font-size: 13.5px; }
.menu-dialog .ring-actions { margin-top: 6px; }
.menu-dialog-close { flex: 0 0 auto; }
.menu-words { min-width: 0; }
.menu-name { margin: 0; font-size: 14px; font-weight: 650; }
.menu-serving { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.menu-desc { margin: 1px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.menu-recipe { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-faint); }
.menu-why { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--attention-ink); }
.menu-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.menu-choices[hidden] { display: none; }
.menu-choice { background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.menu-choice:hover, .menu-choice:focus-visible { border-color: var(--accent); color: var(--accent); }
.menu-row .act[aria-expanded='true'] { background: var(--accent); color: #fff; }
.menu-row[data-addon='true'] .menu-name { font-weight: 550; }
.menu-price { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.menu-row .act { flex: none; padding: 6px 12px; }
.menu-note { margin-top: 4px; }
.ring-field { display: grid; gap: 4px; margin: 10px 0; }
.ring-field .owner-name { margin: 0; }
.ring-lines { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.ring-empty { font-size: 13px; color: var(--ink-faint); }
.ring-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.ring-qty { display: inline-flex; align-items: center; gap: 6px; }
.ring-qty b { min-width: 1.4em; text-align: center; font-size: 14px; }
.qty { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
.qty:hover { border-color: var(--accent); }
.ring-name { font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ring-money { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.ring-sums { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 8px 0 2px; font-size: 13.5px; }
.ring-sums dt { color: var(--ink-soft); }
.ring-sums dd { margin: 0; text-align: right; font-family: var(--font-mono); }
.ring-total { font-weight: 700; font-size: 15px; }
.ring-age { margin: 12px 0 4px; }
.ring-age[hidden] { display: none; }
.ring-note { font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.ring-actions { display: flex; gap: 8px; margin-top: 12px; }
.ring-actions .act { flex: 1 1 0; padding: 10px 14px; font-size: 13.5px; }
.ring-status { margin: 8px 0 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.ring-status:empty { display: none; }
@media (max-width: 1180px) {
  .page-body-menu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .page-body-menu > .ring-piece { grid-column: 1 / -1; max-height: 45vh; }
}
@media (max-width: 760px) {
  .page-menu { display: block; overflow: auto; }
  .page-body-menu { display: block; }
  .page-body-menu > .piece { display: block; overflow: visible; margin-bottom: 14px; }
  .menu-list, .ring-body { overflow: visible; }
}

/* ---- what the patio has learned (learnpiece.js): statements with their evidence, tonight, the scores, the correction door */
.learn-piece { display: grid; gap: 10px; }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.learn-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.4; }
.learn-statement { min-width: 0; }
.learn-evidence { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.learn-empty { font-size: 13px; color: var(--ink-faint); }
.learn-block .owner-name { margin: 6px 0 2px; }
.learn-correct summary { cursor: pointer; font-weight: 650; font-size: 13px; }
.learn-form { display: grid; gap: 8px; margin-top: 8px; }
.learn-window { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.learn-next { margin: 2px 0 0; }
@media (max-width: 560px) { .learn-window { grid-template-columns: 1fr; } }

/* ---- the cameras page: the run switch, the list, adding one, placing one from a still */
.page-body-cameras { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: start; }
.page-body-cameras .piece { display: contents; }
.page-body-cameras .card { padding: 18px 22px 20px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft); }
.page-body-cameras .cam-place { grid-column: 1 / -1; }
.cam-list { display: grid; }
.cam-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cam-row:last-child { border-bottom: 0; }
.cam-row-text .row-label { font-weight: 650; }
.cam-row-text .row-note { margin-top: 2px; }
.cam-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cam-actions .ping { margin-top: 0; }
.cam-form { display: grid; gap: 12px; }
.cam-field { display: grid; gap: 4px; }
.cam-field label, .cam-fieldset legend { font-size: 12.5px; font-weight: 650; color: var(--ink-soft); }
.cam-inline { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px; }
.cam-input { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); max-width: 100%; }
.cam-input:focus-visible, .cam-anchor:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cam-short { width: 92px; }
.cam-fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.cam-radio, .cam-check-label { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cam-still { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--line); }
.cam-still-img { display: block; width: 100%; height: auto; cursor: crosshair; }
.cam-mark, .cam-point { position: absolute; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font: 650 12px/22px var(--font-text); text-align: center; color: #fff; pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.cam-mark { background: var(--seat-fixed); }
.cam-point { background: var(--accent); }
.cam-pairs { display: grid; gap: 8px; margin-top: 12px; }
.cam-pair { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.cam-anchor { max-width: 100%; }
.cam-result { margin-top: 10px; font-weight: 650; color: var(--ink); }
@media (max-width: 760px) {
  .page-body-cameras { grid-template-columns: minmax(0, 1fr); }
  .cam-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the truth page: the scan studio embedded whole, the agreement record folded underneath. The page is a grid that gives
   the frame every pixel the viewport has; no fixed heights anywhere, so it fits any window. */
.page-truth { display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; padding: 2px 16px 10px 2px; }
.page-body-truth { max-width: none; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
.page-body-truth #piece-studio { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; padding: 0; background: transparent; box-shadow: none; }
.studio-note { grid-row: 1; padding: 10px 14px; }
.studio-note:empty { display: none; }
.studio-host { grid-row: 2; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--ground); }
.studio-host:empty { display: none; }
.studio-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
.studio-open { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 14px; cursor: pointer; opacity: 0.7; transition: opacity var(--fast) var(--ease); }
.studio-open:hover { opacity: 1; color: var(--accent-ink); }
.truth-record { border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-soft); padding: 0 16px; }
.truth-record summary { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; cursor: pointer; list-style: none; font-size: 12.5px; }
.truth-record summary::-webkit-details-marker { display: none; }
.truth-record summary .row-label::before { content: ''; display: inline-block; width: 0; height: 0; margin-right: 8px; border: 5px solid transparent; border-left-color: var(--ink-soft); transform: translateY(1px); }
.truth-record[open] summary .row-label::before { transform: rotate(90deg) translateX(1px); }
.truth-record .piece { padding: 0 0 16px; box-shadow: none; }
.truth-record[open] { max-height: 40vh; overflow: auto; }

/* ---- the bar page as lanes: the stands in a strip across the top, then one lane per status, each scrolling on its own */
.page-bar { display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.page-body-bar { max-width: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; min-height: 0; gap: 12px; }
.page-body-bar #piece-stands { order: 0; padding: 10px 18px 8px; }
.page-body-bar #piece-stands .rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
.page-body-bar #piece-stands .row { border-bottom: 0; padding: 4px 0; }
.page-body-bar #piece-stands .section-title { margin-bottom: 2px; }
.page-body-bar .rail { order: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; padding: 0 14px 12px; }
.page-body .rail { max-height: none; }
.rail-head-row { display: flex; align-items: baseline; gap: 12px; }
.rail-lanes { display: grid; grid-template-columns: repeat(4, minmax(300px, 1fr)); gap: 14px; min-height: 0; overflow-x: auto; padding-bottom: 4px; }
.rail-lane { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 16px; background: var(--ground); }
.rail-group + .rail-group.rail-lane { margin-top: 0; border-top: 0; padding-top: 0; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.lane-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.lane-title { font: 650 13px/1.2 var(--font-text); color: var(--ink); }
.lane-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--tone-wash); color: var(--tone-ink); font: 650 11.5px/18px var(--font-text); text-align: center; font-variant-numeric: tabular-nums; }
.lane-count:empty { display: none; }
.rail-lane .rail-tickets { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 10px 8px 12px; gap: 14px; }
.rail-lane[data-empty='true'] .rail-tickets::before { content: 'Nothing here'; display: block; padding: 14px 6px; font-size: 12px; color: var(--ink-faint); }
.rail-lane[data-lane='ready'] { background: #EAF5EC; }
@media (max-width: 1100px) {
  .rail-lanes { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
}

/* ------------------------------------------------- the marketplace page (docs/MARKETPLACE.md) */
.market-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 14px; }
.market-body { display: grid; gap: 12px; }
.market-note { min-height: 16px; }
.market-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.market-bar input { flex: 1 1 200px; }
.market-chips { justify-content: flex-start; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.market-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.market-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.market-card-top .section-title { margin: 0; }
.market-kind.connector { border-color: #E2B96A; color: #7A5A12; }
.market-kind.plugin { border-color: #9ED3A6; color: #2E6B3A; }
.market-words { margin: 0; font-size: 13px; color: var(--ink-soft); }
.market-warn { margin: 0; font-size: 12.5px; color: var(--attention-ink); }
.market-act { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 4px; }
.market-ok { font-size: 12.5px; font-weight: 650; color: var(--seat-fixed); }
.market-state { margin-left: auto; }
.market-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.market-row input { flex: 1 1 200px; }
.market-danger { color: var(--attention-ink); }
.market-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; margin-top: 8px; }
.market-tool { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.market-made { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.market-value { font: 650 22px/1.1 var(--font-display); letter-spacing: -0.02em; text-align: right; max-width: 280px; }
.market-result { margin: 8px 0 0; padding: 10px 12px; white-space: pre-wrap; font: 12.5px/1.45 var(--font-mono); background: var(--ground); border-radius: 10px; }
.market-result:empty { display: none; }
.market-form { display: grid; gap: 8px; }
.market-form .ping { justify-self: end; }

/* ------------------------------------------------- the staff page (staff.js): leads, roles, memory, activity, computer */
.staff-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 14px; }
.staff-body { display: grid; gap: 12px; }
.staff-note { min-height: 16px; }
.staff-leads { display: grid; gap: 10px; }
.staff-add summary { cursor: pointer; }
.staff-add .learn-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.staff-bar input { width: 100%; box-sizing: border-box; }
.staff-strip { justify-content: flex-start; }
.staff-waiting { margin: 0; }
.staff-list { display: grid; gap: 6px; }
.staff-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.staff-row:hover { background: #fff; }
.staff-row[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-wash); }
.staff-row-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.staff-row-asks { font-size: 12.5px; color: var(--ink-soft); }
.staff-row-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; }
.staff-badges { display: inline-flex; gap: 6px; }
.staff-badge.waiting { background: var(--attention-wash); color: var(--attention-ink); }
.staff-badge.stopped { background: var(--line); color: var(--ink-soft); }
.staff-stage-chip { background: var(--accent-wash); color: var(--accent-ink); }
.staff-stage-chip.stage-won, .staff-stage-chip.stage-booked { background: #F0FAF1; color: #1D6A2C; }
.staff-stage-chip.stage-lost, .staff-stage-chip.stage-stopped { background: var(--line); color: var(--ink-soft); }
.staff-lead { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.staff-lead-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.staff-lead-head .section-title { margin: 0; }
.staff-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
.staff-facts dt { color: var(--ink-faint); }
.staff-facts dd { margin: 0; overflow-wrap: anywhere; }
.staff-proposal { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #E2B96A; border-radius: 12px; background: #FFFBF1; }
.staff-edit { width: 100%; box-sizing: border-box; resize: vertical; font-family: inherit; line-height: 1.45; }
.staff-proposal input { width: 100%; box-sizing: border-box; }
.staff-msg { display: grid; gap: 4px; max-width: 86%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.staff-msg.in { justify-self: start; }
.staff-msg.out { justify-self: end; background: var(--accent-wash); border-color: transparent; }
.staff-msg.failed { border-color: var(--attention); }
.staff-msg-body { margin: 0; white-space: pre-wrap; font-size: 13px; }
.staff-msg-status { justify-self: start; background: var(--line); color: var(--ink-soft); font-size: 11.5px; }
.staff-msg-status.waiting, .staff-msg-status.failed { background: var(--attention-wash); color: var(--attention-ink); }
.staff-msg-status.sent, .staff-msg-status.received { background: #F0FAF1; color: #1D6A2C; }
.staff-notes-line { display: grid; gap: 1px; margin: 0; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.staff-field { display: grid; gap: 4px; }
.staff-field-label { font-size: 12px; font-weight: 650; color: var(--ink-soft); }
.staff-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.staff-fieldset { display: grid; gap: 6px; margin: 8px 0; padding: 0; border: 0; }
.staff-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.staff-role .switch[disabled] { opacity: 0.55; cursor: not-allowed; }
.staff-role { display: grid; gap: 4px; }
.staff-act { display: grid; gap: 1px; margin: 0; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.staff-log summary { cursor: pointer; }
.staff-secret { flex: 1 1 260px; font-family: var(--font-mono); }
.staff-path { font-family: var(--font-mono); font-size: 13px; }
.staff-runline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 4px 0; }
.staff-fresh { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-wash); }
.staff-badge.news { background: var(--accent-wash); color: var(--accent-ink); }

/* ------------------------------------------------- the screens page (screens.js): screens, spots, results */
.screens-showing { font-size: 15px; font-weight: 650; color: var(--ink); }
.screens-card, .screens-spot, .screens-result { display: grid; gap: 4px; }
.screens-card .market-row input { flex: 0 1 90px; }
.screens-state { background: var(--line); color: var(--ink-soft); font-size: 11.5px; }
.screens-state.proposed { background: var(--attention-wash); color: var(--attention-ink); }
.screens-state.approved { background: var(--accent-wash); color: var(--accent-ink); }
.screens-verdict { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); }
.screens-lift { justify-self: start; background: var(--accent-wash); color: var(--accent-ink); }

/* the year, remembered (rememberedpiece.js): a change waiting for the owner's word, with the form under it */
.rem-row { display: grid; gap: 8px; }
.rem-what { display: grid; gap: 2px; }
.rem-day { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rem-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr) auto; gap: 6px; align-items: center; }
.rem-form .act { padding: 8px 12px; font-size: 13px; }
.rem-actions { margin-top: 6px; }
@media (max-width: 720px) {
  .rem-form { grid-template-columns: 1fr 1fr; }
  .rem-form .act { grid-column: 1 / -1; }
}
.rem-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rem-head .section-title { margin: 0; }
.rem-snap { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; font-weight: 500; }
.rem-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rem-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); }
.rem-thumb.small { width: 36px; height: 36px; border-radius: 8px; }
.rem-what { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.rem-what .learn-statement, .rem-what .learn-evidence, .rem-what .rem-day { grid-column: 2; }
.rem-what > .rem-thumb { grid-row: 1 / span 3; }
.rem-filed { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
