/* Cubicle: lawn green for what grows, warm cream for what is built, and a
   single yellow for "this needs you". Flat blocks, square corners, mono captions. The dither tiles (--dither-*)
   are generated by pixel.js. */
:root {
  --ink: #0b2e1f;
  --deep: #14532f;
  --lawn: #1c7c45;
  --mid: #4fa862;
  --soft: #9fd494;
  --leaf: #dff2cf;
  --tint: #eee2c4;
  --wash: #f7efdb;
  --white: #fffaf0;
  --accent: #ffd23f;
  --muted: #5b6652;
  --sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.45 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.cap { display: block; font: 11px/1.3 var(--mono); color: var(--lawn); letter-spacing: 0.01em; }

/* -------------------------------------------------------------- buttons */
.btn { padding: 8px 16px; font-weight: 600; color: var(--white); background: var(--lawn); border: 0; border-radius: 0; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--deep); }
.btn:disabled { background: var(--soft); cursor: default; }
.btn.soft { color: var(--ink); background: var(--tint); }
.btn.soft:hover { background: #e2d3ad; }
.btn.light { color: var(--lawn); background: var(--white); }
.btn.light:hover { background: var(--tint); }
.btn.big { padding: 12px 24px; font-size: 15px; }
.link { padding: 0; background: none; border: 0; font: 12px var(--mono); color: var(--lawn); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link.danger { color: var(--muted); }
.close { width: 28px; height: 28px; font-size: 20px; line-height: 1; color: var(--muted); background: none; border: 0; }
.close:hover { background: var(--tint); color: var(--ink); }
.chipbtn { padding: 5px 10px; font: 12px var(--mono); color: var(--ink); background: var(--wash); border: 0; }
.chipbtn:hover { background: var(--tint); }
.chipbtn.on { color: var(--white); background: var(--lawn); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.actions { display: flex; align-items: center; gap: 8px; }
.actions.spread { justify-content: space-between; }

/* ------------------------------------------------------------ app frame */
/* The campus fills the window. Everything else floats on it. */
.app { overflow: hidden; background: var(--lawn); }
#world { position: fixed; inset: 0; }
.hud { position: fixed; left: 12px; right: 12px; z-index: 5; display: flex; gap: 10px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: 12px; align-items: flex-start; }
.hud-bottom { bottom: 12px; align-items: flex-end; }
.card { color: var(--ink); background: var(--white); box-shadow: 4px 4px 0 rgba(11, 46, 31, 0.45); }
.company { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; }
.company b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.emblem { image-rendering: pixelated; display: block; }
.counts { display: flex; flex-wrap: wrap; gap: 4px; margin-right: auto; padding-top: 2px; }
.chip, .pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 11px var(--mono); padding: 5px 9px; }
.chip { color: var(--white); background: var(--ink); }
.chip i, .pill i, .seat-label i { width: 6px; height: 6px; background: var(--soft); flex: none; }
.chip.is-blocked, .chip.is-needs_you, .pill.is-blocked, .pill.is-needs_you { color: var(--ink); background: var(--accent); }
.chip.is-blocked i, .chip.is-needs_you i, .pill.is-blocked i, .pill.is-needs_you i { background: var(--ink); }
.chip.is-working i { background: var(--mid); }
.pill { color: var(--ink); background: var(--wash); }
.pill.is-working { background: var(--leaf); }
.pill.is-working i { background: var(--lawn); }
.hud-actions { display: flex; gap: 4px; }
.hud-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; font-weight: 600; color: var(--white); background: var(--ink); border: 0; text-decoration: none; }
.hud-btn:hover { background: var(--deep); }
.hud-btn em { font: 11px var(--mono); font-style: normal; padding: 2px 6px; color: var(--ink); background: var(--accent); }
.hud-btn.hot { color: var(--ink); background: var(--accent); }
.chip.quiet { color: var(--white); background: var(--deep); font: 11px var(--mono); }
.chip.warn { color: var(--ink); background: var(--accent); max-width: 420px; white-space: normal; }
.approval.ask b { font-size: 16px; line-height: 1.35; }
.btn.mic.on { color: var(--ink); background: var(--accent); animation: hop 0.9s infinite steps(2); }
.changes li.file { cursor: pointer; }
.changes li.file:hover, .changes li.file.open { background: var(--tint); }
.changes li.diff { display: block; padding: 0; background: var(--ink); }
.changes li.diff pre, .tail { margin: 0; padding: 10px; max-height: 340px; overflow: auto; font: 11.5px/1.5 var(--mono); color: var(--white); background: var(--ink); white-space: pre; }
.diff .plus { color: #9be29b; } .diff .minus { color: #f0a78c; } .diff .at { color: var(--accent); }
.tail { max-height: 180px; white-space: pre-wrap; }
/* what they write, with its bold, its lists and its code */
.md { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.md p, .md ul, .md ol, .md h4, .md pre { margin: 0; }
.md p { white-space: pre-wrap; overflow-wrap: anywhere; }
.md ul, .md ol { padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.md h4 { font-size: 1.05em; font-weight: 700; }
.md code { padding: 1px 5px; font: 0.88em var(--mono); background: rgba(11, 46, 31, 0.1); overflow-wrap: anywhere; }
.md pre { padding: 9px 11px; font: 12px/1.5 var(--mono); color: var(--white); background: var(--ink); overflow: auto; white-space: pre; }
.md a { color: inherit; text-decoration: underline; }
.md strong { font-weight: 700; }
.chair .md, .row .md { font-size: 14.5px; line-height: 1.45; }
.pin .md { font-size: 13px; line-height: 1.4; }
.wizard-note { margin: 0; font-size: 13.5px; color: var(--lawn); }
.wizard-note.bad { padding: 8px 10px; color: var(--ink); background: var(--accent); }
.choices.hub .choice em { margin-left: 8px; font: 10px var(--mono); font-style: normal; padding: 1px 5px; color: var(--lawn); background: var(--tint); vertical-align: middle; }
.choice.taken { opacity: 0.55; cursor: default; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--wash); }
.firms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.firm { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; color: var(--ink); background: var(--wash); border: 0; cursor: pointer; }
.firm:hover:not(:disabled) { background: var(--tint); }
.firm.on { background: var(--accent); cursor: default; }
.firm span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.firm b { font-size: 17px; }
.firm .cap { color: var(--lawn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm small { font-size: 12.5px; color: var(--muted); }
.firm em { font: 11px var(--mono); font-style: normal; padding: 3px 7px; color: var(--white); background: var(--ink); white-space: nowrap; }
.firm.new { background: none; outline: 2px dashed #cdbf9c; outline-offset: -2px; }
.firm.new i { display: grid; place-items: center; width: 48px; height: 48px; font: 700 26px/1 var(--mono); font-style: normal; color: var(--lawn); }
.repos { list-style: none; margin: 0; padding: 0; }
.repos li { display: grid; grid-template-columns: 220px 60px 1fr auto; gap: 0 12px; align-items: baseline; padding: 8px 4px; border-top: 2px solid var(--tint); font-size: 14px; }
.repos .tag { font: 10px var(--mono); color: var(--lawn); }
.repos small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repos .has { font: 11px var(--mono); padding: 1px 6px; background: var(--accent); }
.paper > .cap { color: var(--lawn); margin-top: 6px; }
/* the board and the handbook */
.pix { width: 18px; height: 18px; display: block; }
.hud-btn.icon { padding: 0 9px; color: var(--mid); }
.hud-btn.icon.on { color: var(--accent); }
.btn.mic { padding: 0 11px; }
.stage-in.wide { width: min(1500px, 100%); box-sizing: border-box; }
.stage-in { box-sizing: border-box; }
.stage-sub { margin: 4px 0 0; font-size: 15px; color: var(--soft); max-width: 720px; }
/* A board on the wall: paper in a wooden frame, a row for each person, notes pinned across it. */
.paper { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 22px; color: var(--ink); background: var(--white); border: 12px solid #2a1d14; box-shadow: 0 12px 0 -6px #5a3f2b; overflow: auto; }
.paper-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.stage .paper-top .say { width: auto; min-width: 0; }
.paper-top input { font-size: 16px; padding: 11px 13px; color: var(--ink); }
.paper .btn.soft { color: var(--ink); background: var(--wash); }
.flip { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px; font: 12px var(--mono); color: var(--ink); background: var(--wash); border: 0; cursor: pointer; }
.flip i { width: 22px; height: 12px; background: var(--white); box-shadow: inset 11px 0 0 #b3a988; }
.flip.on { background: var(--accent); }
.flip.on i { box-shadow: inset -11px 0 0 var(--lawn); }
.lanes { display: flex; flex-direction: column; }
.lane { display: grid; grid-template-columns: 210px repeat(4, minmax(0, 1fr)); gap: 0 14px; padding: 12px 0; border-top: 2px solid var(--tint); align-items: start; }
.lane.heads { padding: 0 0 8px; border-top: 0; }
.lane.heads .cap { color: var(--lawn); }
.lane-who { display: flex; align-items: center; gap: 10px; padding: 0; text-align: left; color: var(--ink); background: none; border: 0; cursor: pointer; }
.lane-who.nobody { cursor: default; min-height: 48px; }
.lane-who span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lane-who b { font-size: 16px; }
.lane-who .cap { color: var(--lawn); }
.lane-who small { font: 11px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-who small.is-working { color: var(--lawn); }
.lane-who small.is-needs_you, .lane-who small.is-blocked { color: var(--ink); background: var(--accent); align-self: flex-start; padding: 0 4px; }
button.lane-who:hover .portrait { outline: 3px solid var(--accent); }
.cell { display: flex; flex-direction: column; gap: 6px; min-height: 48px; }
.none { font: 12px var(--mono); color: #b3a988; }
.pin { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; background: var(--wash); }
.pin > b { font-size: 14.5px; line-height: 1.3; }
.pin .cap { color: var(--lawn); }
.pin p { margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.pin.is-idea { background: none; outline: 2px dashed #cdbf9c; outline-offset: -2px; }
.pin.is-doing { background: var(--tint); }
.pin.is-waiting { background: none; outline: 2px solid var(--tint); outline-offset: -2px; }
.pin.is-review { background: var(--accent); }
.pin.is-done { background: none; padding: 2px 0; }
.pin.is-done > b { font-weight: 400; color: var(--muted); text-decoration: line-through; }
.pin .twin { padding: 6px 8px; font-size: 12.5px; background: var(--accent); }
.pin .verdict { padding: 6px 8px; background: rgba(255, 255, 255, 0.55); }
.pin .actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pin .chipbtn { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.pin .chipbtn.strong { color: var(--white); background: var(--ink); }
.pin .chipbtn:hover { color: var(--white); background: var(--lawn); }
.pin.is-done .chipbtn { background: none; padding: 0; color: #b3a988; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: 12px var(--mono); color: var(--ink); background: none; border: 0; cursor: pointer; }
.who-chip:hover .portrait { outline: 2px solid var(--ink); }
.task-note { font-size: 13px; padding: 6px 8px; background: rgba(255, 255, 255, 0.6); border-bottom-color: var(--ink); }
@media (max-width: 1000px) { .lane { grid-template-columns: 1fr; gap: 8px; } .lane.heads { display: none; } .paper-top { grid-template-columns: 1fr; } }
.book-edit { flex: 1; min-height: 46vh; padding: 22px 26px; font: 15px/1.6 var(--mono); color: var(--ink); background: var(--white); border: 12px solid #2a1d14; }
.book-edit:focus { background: var(--white); }
.stage-foot.row { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px; margin-top: 0; }
.stage.pages { z-index: 16; }
.hud-btn { white-space: nowrap; }
.hud-actions { flex-wrap: wrap; justify-content: flex-end; }
.hud-btn.hot em { color: var(--white); background: var(--ink); }
.hud-btn.brand img { display: block; height: 16px; }

.hint { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; font: 11px var(--mono); color: var(--white); background: var(--ink); white-space: nowrap; }
.hint i { width: 1px; height: 12px; background: var(--mid); margin: 0 4px; }
kbd { display: inline-block; min-width: 18px; text-align: center; padding: 1px 5px; color: var(--ink); background: var(--white); font-weight: 700; }
.dock { display: flex; gap: 2px; margin: 0 auto; padding: 4px; background: var(--ink); max-width: 100%; overflow-x: auto; }
.person { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 50px; padding: 5px 2px 4px; color: var(--white); background: none; border: 0; }
.person:hover, .person.on { background: var(--deep); }
.person span { font: 10px var(--mono); max-width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person i { position: absolute; top: 3px; right: 5px; width: 9px; height: 9px; background: var(--soft); outline: 2px solid var(--ink); }
.person.is-working i { background: var(--mid); }
.person.is-idle i { background: #cdbf9c; }
.person.is-blocked i, .person.is-needs_you i { background: var(--accent); animation: blink 0.8s steps(2) infinite; }
.person.hire b { display: grid; place-items: center; width: 36px; height: 36px; font: 700 20px var(--mono); color: var(--ink); background: var(--soft); }
@keyframes blink { 50% { opacity: 0.25; } }
.map { position: relative; padding: 4px; background: var(--ink); }
#minimap { display: block; width: 228px; height: 60px; image-rendering: pixelated; cursor: pointer; }
.zoom { position: absolute; right: 0; bottom: 100%; display: flex; gap: 2px; padding-bottom: 4px; }
.zoom button { width: 30px; height: 28px; font: 700 16px/1 var(--mono); color: var(--white); background: var(--ink); border: 0; }
.zoom button:hover { background: var(--deep); }

.arena { position: fixed; inset: 0; z-index: 15; color: var(--white); background: var(--ink); }
.arena[hidden] { display: none; }
.arena-in { display: flex; flex-direction: column; gap: 12px; height: 100%; max-width: 1340px; margin: 0 auto; padding: 16px 20px 14px; }
.arena-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 62px; }
.arena-head .cap { color: var(--mid); font-size: 12px; }
.arena-head p { margin-top: 4px; font-size: 17px; font-weight: 600; }
.arena-head .btn { justify-self: end; color: var(--white); background: var(--deep); }
.arena-head .btn:hover { color: var(--ink); background: var(--accent); }
.arena-in.setup { align-items: center; gap: 22px; overflow: auto; }
.arena-in.setup .arena-head { width: 100%; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; gap: 6px; width: 100%; }
.sizes .lobby-card { min-height: 0; }
.sizes .lobby-card.on { background: var(--accent); }
.sizes .lobby-card.on:hover { color: var(--ink); }
.match { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.match .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match .cap { color: var(--mid); }
.match .vs { font: 700 26px/1 var(--mono); padding-top: 22px; color: var(--accent); }
.slots { display: flex; gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 96px; height: 104px; color: var(--white); background: var(--deep); border: 0; font: 11px var(--mono); }
.slot i { display: grid; place-items: center; width: 48px; height: 48px; font: 700 24px/1 var(--mono); font-style: normal; color: var(--mid); outline: 2px dashed var(--mid); }
.slot.full { background: var(--lawn); }
.slot.you i { color: var(--ink); background: var(--accent); outline: 0; }
button.slot { cursor: pointer; }
button.slot:hover { background: var(--accent); color: var(--ink); }
.bench { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; max-width: 760px; }
.bench .seat.in .portrait { outline: 3px solid var(--accent); }
.arena-view { flex: 1; min-height: 0; display: grid; place-items: center; }
.arena-view canvas { display: block; image-rendering: pixelated; cursor: crosshair; outline: 4px solid #2a1d14; }
.gh-score { display: flex; align-items: baseline; gap: 14px; font: 700 44px/1 var(--mono); letter-spacing: -0.02em; }
.gh-score span { font-size: 18px; padding: 3px 8px; color: var(--ink); background: var(--accent); }
.arena .gh-keys { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0; padding: 0; border: 0; color: var(--soft); }
.arena .gh-keys kbd { color: var(--ink); background: var(--white); }
.gh-keys { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 2px solid var(--tint); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.gh-keys li { display: flex; align-items: center; gap: 8px; }
.gh-keys kbd { color: var(--white); background: var(--ink); font-size: 11px; }
.gh-keys i { width: 6px; height: 6px; background: var(--accent); margin: 0 6px; }

/* ------------------------------------------------------------ the world */
.world-view { position: relative; overflow: hidden; }
.world-view canvas { display: block; image-rendering: pixelated; cursor: pointer; }
.world-labels { position: absolute; inset: 0; pointer-events: none; }
.world-labels > * { position: absolute; left: 0; top: 0; }
.seat-label { pointer-events: auto; translate: -50% 0; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 2px 5px; border: 0; white-space: nowrap;
  font: 600 max(10px, calc(var(--s) * 3.5px)) / 1.1 var(--sans); color: var(--ink); background: var(--white); }
.seat-label i { width: 5px; height: 5px; background: var(--mid); }
.seat-label.is-working i { background: var(--lawn); }
.seat-label.is-blocked, .seat-label.is-needs_you { background: var(--accent); }
.seat-label.is-blocked i, .seat-label.is-needs_you i { background: var(--ink); }
.seat-label.is-empty { color: var(--white); background: var(--ink); font: max(10px, calc(var(--s) * 3.2px)) / 1.1 var(--mono); }
.seat-label:hover { color: var(--white); background: var(--ink); }
.room-label { font: max(10px, calc(var(--s) * 3.4px)) / 1 var(--mono); color: var(--white); white-space: nowrap; }
.you-label { translate: -50% -100%; padding: 1px 4px; font: 700 max(9px, calc(var(--s) * 3px)) / 1.1 var(--mono); color: var(--ink); background: var(--accent); }

/* ---------------------------------------------------------------- panel */
.panel { position: fixed; top: 60px; right: 12px; bottom: 112px; z-index: 6; width: 410px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; min-height: 0; background: var(--white); box-shadow: 4px 4px 0 rgba(11, 46, 31, 0.45); }
.panel[hidden] { display: none; }
.panel-head { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 14px; }
.panel-head h2, .who h2 { font-size: 22px; }
.panel-head .close { position: absolute; top: 14px; right: 12px; }
.rows { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 16px; overflow: auto; }
.row { display: flex; align-items: center; gap: 12px; text-align: left; padding: 9px 8px; background: none; border: 0; }
.row:hover { background: var(--wash); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { font-weight: 400; color: var(--muted); margin-left: 8px; }
.row-sub { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portrait { image-rendering: pixelated; flex: none; background: var(--tint) var(--dither-tint) 0 0 / 8px 8px; display: block; }
.figure { image-rendering: pixelated; }

.who { display: flex; align-items: flex-start; gap: 14px; padding: 18px 12px 14px 20px; }
.who-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.who-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tabs { display: flex; padding: 0 20px; background: var(--white); }
.tab { padding: 7px 14px; font: 12px var(--mono); color: var(--muted); background: none; border: 0; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--white); background: var(--lawn); }

.chat { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; background: var(--wash); border-top: 2px solid var(--lawn); }
.msg { max-width: 88%; padding: 9px 12px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time, .tool time { font: 10.5px var(--mono); opacity: 0.65; }
.msg time { display: block; margin-top: 4px; }
.msg.you { align-self: flex-end; color: var(--white); background: var(--lawn); }
.msg.agent { align-self: flex-start; background: var(--white); }
.msg.assigned { align-self: flex-end; background: var(--leaf); }
.tool { display: flex; align-items: baseline; gap: 8px; font: 12px/1.5 var(--mono); color: var(--deep); }
.tool::before { content: ">"; color: var(--mid); }
.tool span:first-child { flex: 1; overflow-wrap: anywhere; }
.tool.live { color: var(--ink); font-weight: 600; }
.note { font: 11.5px var(--mono); color: var(--muted); padding: 2px 0; }
.report { padding: 9px 12px; background: var(--leaf); }
.dots { display: inline-flex; gap: 3px; flex: none !important; }
.dots i { width: 4px; height: 4px; background: var(--lawn); animation: hop 0.9s infinite steps(2); }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }

.approval { display: flex; flex-direction: column; gap: 9px; padding: 12px; background: var(--accent); }
.approval .cap { color: var(--ink); }
.approval code { display: block; padding: 8px 10px; color: var(--white); background: var(--ink); overflow-wrap: anywhere; }
.approval .btn { background: var(--ink); }
.approval .btn.soft { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.approval .btn.soft:hover { background: var(--white); }

.quick { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 20px 0; }
.composer { display: flex; gap: 8px; align-items: stretch; padding: 10px 20px 18px; }
textarea, input { width: 100%; padding: 9px 11px; background: var(--wash); border: 0; border-bottom: 2px solid var(--lawn); border-radius: 0; outline: none; }
textarea { resize: none; }
textarea:focus, input:focus { background: var(--tint); }
textarea::placeholder { color: var(--muted); }

/* ----------------------------------------------------------------- work */
.work { padding: 18px 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--lawn); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 8px; font: 12px var(--mono); }
.facts dt { color: var(--lawn); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: flex; gap: 10px; padding: 7px 10px; font-size: 12px; background: var(--wash); }
.changes li:nth-child(even) { background: var(--white); }
.changes code { flex: 1; overflow-wrap: anywhere; }
.add, .del { font-family: var(--mono); }
.add { color: var(--lawn); }
.del { color: var(--muted); }

/* --------------------------------------------------------- meeting room */
/* The stage: a screen on the wall, the people in front of you. */
.stage { position: fixed; inset: 0; z-index: 15; overflow: auto; color: var(--white); background: var(--ink); }
.stage[hidden] { display: none; }
.stage-in { display: flex; flex-direction: column; gap: 18px; width: min(1000px, 100%); min-height: 100%; margin: 0 auto; padding: 22px 24px 26px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; }
.stage-head .cap { color: var(--mid); font-size: 12px; }
.screen { position: relative; display: flex; align-items: center; min-height: 340px; color: var(--ink); background: var(--white); border: 12px solid #2a1d14; box-shadow: 0 12px 0 -6px #5a3f2b; }
.slide-body { flex: 1; min-width: 0; padding: 36px 44px 44px; }
.screen h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.035em; line-height: 1.04; }
.screen ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 21px; }
.screen li { position: relative; padding-left: 26px; }
.screen li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; background: var(--lawn); }
.minutes { font-size: 17px !important; gap: 8px !important; }
.minutes b { display: inline-block; min-width: 76px; font-weight: 600; }
.turn { align-self: stretch; width: 56px; font-size: 40px; line-height: 1; color: var(--ink); background: var(--wash); border: 0; }
.turn:hover { background: var(--accent); }
.turn:disabled { color: #cdbf9c; background: none; cursor: default; }
.pips { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.pips i { width: 8px; height: 8px; background: var(--tint); }
.pips i.on { background: var(--ink); }
.screen.lobby { flex-direction: column; align-items: stretch; gap: 22px; padding: 34px 36px 38px; }
.lobby-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.lobby-card { display: flex; flex-direction: column; gap: 6px; min-height: 130px; padding: 16px; text-align: left; color: var(--ink); background: var(--wash); border: 0; }
.lobby-card:hover { color: var(--white); background: var(--lawn); }
.lobby-card:hover .cap { color: var(--leaf); }
.lobby-card.hot { background: var(--accent); }
.lobby-card.hot .cap { color: var(--ink); }
.lobby-card b { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lobby-card small { font-size: 13.5px; opacity: 0.8; }
.screen.writing { align-items: stretch; }
.slide-edit { flex: 1; min-height: 316px; padding: 30px 40px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); background: var(--white); border: 0; }
.slide-edit:focus { background: var(--white); }
.slide-edit::placeholder { font-weight: 400; color: #b3a988; }
.audience { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 18px; min-height: 150px; padding-top: 70px; }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; }
.seat span { font: 11px var(--mono); }
.seat .cap { color: var(--accent); font-size: 10px; }
.seat.lead .portrait { outline: 3px solid var(--accent); }
.says { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; width: max-content; max-width: 230px; padding: 8px 10px; font-size: 13px; line-height: 1.35; color: var(--ink); background: var(--white); }
.says::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 6px solid transparent; border-top-color: var(--white); }
.seat.lead .says { background: var(--accent); max-width: 300px; }
.seat.lead .says::after { border-top-color: var(--accent); }
.stage-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; }
.stage-foot .quick { padding: 0; justify-content: center; align-items: center; gap: 4px 6px; }
.stage-foot .quick .cap { color: var(--mid); margin-right: 4px; }
.stage-foot .chipbtn { color: var(--white); background: var(--deep); }
.stage-foot .chipbtn:hover { color: var(--ink); background: var(--accent); }
.say { display: flex; gap: 6px; width: min(560px, 100%); }
.say input { color: var(--ink); }
/* A meeting in progress: the table on the left, what was said on the right. */
.stage-in.live { display: grid; width: min(1400px, 100%); height: 100%; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "head head" "screen chat" "people chat" "people foot"; gap: 14px 18px; }
.live > .stage-head { grid-area: head; }
.live > #st-screen { grid-area: screen; }
.live > .table { grid-area: people; }
.live > .room-chat { grid-area: chat; }
.live > .stage-foot { grid-area: foot; margin-top: 0; align-items: stretch; }
.agenda { padding: 4px 2px 2px; }
.agenda h2 { margin: 0; font-size: 34px; letter-spacing: -0.02em; color: var(--white); }
.agenda p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.table { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; align-content: start; overflow: auto; }
.chair { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; color: var(--ink); background: var(--white); border: 0; cursor: pointer; }
.chair:hover { background: var(--wash); }
.chair.on { box-shadow: inset 0 0 0 4px var(--accent); }
.chair.thinking { background: var(--tint); }
.chair-who { display: flex; align-items: center; gap: 10px; }
.chair-who b { display: block; font-size: 17px; }
.chair-who .cap { color: var(--lawn); }
.chair-who em { margin-left: auto; font: 11px var(--mono); font-style: normal; padding: 2px 6px; background: var(--accent); }
.chair-who .dots { margin-left: auto; }
.chair p { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.chair p.muted { color: var(--muted); }
.chair small { padding-top: 8px; border-top: 2px solid var(--tint); font: 11.5px var(--mono); color: var(--lawn); }
.live .room-chat { width: auto; max-height: none; min-height: 0; margin: 0; padding: 14px 16px; gap: 12px; color: var(--ink); background: var(--white); border: 10px solid #2a1d14; }
.thread-head .cap { color: var(--lawn); }
.room-chat .muted { color: var(--muted); margin: 0; }
.row b { display: block; font: 11px var(--mono); font-weight: 400; color: var(--lawn); margin-bottom: 2px; }
.row p { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.row.mine { padding: 9px 12px; background: var(--accent); }
.row.mine b { color: var(--ink); opacity: 0.65; }
.live .stage-foot .quick { justify-content: flex-start; }
.live .stage .say, .live .say { width: 100%; }
.live .stage-tip { justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 900px) { .stage-in.live { display: flex; flex-direction: column; height: auto; } }
.audience.small { min-height: 0; padding-top: 0; gap: 4px 12px; }
.audience.small .seat { width: 64px; }
.room-chat:empty { display: none; }
.room-chat { flex: 1; min-height: 180px; max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; width: min(820px, 100%); margin: 0 auto; padding: 4px 2px; }
.line { display: flex; gap: 10px; align-items: flex-start; }
.line .portrait { flex: none; }
.line p { margin: 0; padding: 9px 13px; max-width: 78%; font-size: 15.5px; line-height: 1.45; color: var(--ink); background: var(--white); white-space: pre-wrap; overflow-wrap: anywhere; }
.line b { display: block; margin-bottom: 2px; font: 11px var(--mono); font-weight: 400; color: var(--lawn); }
.line small { display: block; margin-top: 6px; padding-top: 6px; border-top: 2px solid var(--tint); font: 11.5px var(--mono); color: var(--lawn); }
.line.mine { justify-content: flex-end; }
.line.mine p { background: var(--accent); }
.line.mine b { color: var(--ink); opacity: 0.6; }
.line.wait p { background: var(--deep); }
.line.wait b { color: var(--mid); }
.screen.compact { min-height: 0; }
.screen.compact .slide-body h2 { font-size: 30px; }
.aloud { margin: 14px 0 0; padding: 10px 12px; font-size: 15px; background: var(--accent); }
.aloud b { display: block; font: 11px var(--mono); font-weight: 400; }
.stage .say { width: min(820px, 100%); align-items: stretch; }
.stage .say textarea { font-size: 16px; padding: 12px 14px; color: var(--ink); }
.said { min-height: 20px; margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.said b { color: var(--accent); }
.said span { font: 11px var(--mono); color: var(--mid); }
.seat.pickable { cursor: pointer; }
.seat.pickable:hover .portrait { outline: 3px solid var(--mid); }
.minutes li.mine b { color: var(--lawn); }
.who-main .where { font: 11px var(--mono); color: var(--lawn); }
.day { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.day time { display: inline-block; width: 44px; font: 11px var(--mono); color: var(--lawn); }
.day li .link { margin-left: 8px; font-size: 11px; }
.ties li { display: grid; grid-template-columns: 70px auto; gap: 0 8px; }
.ties span { font: 11px var(--mono); color: var(--muted); }
.ties span.warm { color: var(--lawn); } .ties span.cold { color: var(--ink); background: var(--accent); justify-self: start; padding: 0 4px; }
.ties small { grid-column: 2; color: var(--muted); font-size: 12px; }
.about .lead { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.quick.flat { padding: 0; }
.stage-tip { font: 11px var(--mono); color: var(--mid); display: flex; align-items: center; gap: 5px; }
.stage .btn.soft { color: var(--white); background: var(--deep); }
.stage .btn.soft:hover { color: var(--ink); background: var(--accent); }
.msg .cap { margin-bottom: 2px; }

/* ------------------------------------------------- choosing, not typing */
.form { display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 22px; overflow: auto; border-top: 2px solid var(--lawn); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.choices.cols4 { grid-template-columns: repeat(4, 1fr); }
.choice { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; text-align: left; color: var(--ink); background: var(--wash); border: 0; }
.choice:hover { background: var(--tint); }
.choice.on { color: var(--white); background: var(--lawn); }
.choice b { font-weight: 600; }
.choice small { font-size: 11.5px; line-height: 1.35; opacity: 0.8; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.people .choice { align-items: center; gap: 6px; padding: 10px 6px 8px; }
.people .choice.on .portrait { outline: 2px solid var(--white); }

/* --------------------------------------------------------------- wizard */
.browser { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--wash); }
.browser-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.browser-head .cap { overflow-wrap: anywhere; }
.browser-list { display: flex; flex-wrap: wrap; gap: 4px; max-height: 150px; overflow: auto; }
.browser-list .chipbtn { background: var(--white); }
.browser-list .chipbtn.on { color: var(--white); background: var(--lawn); }
.choices .choice small { overflow-wrap: anywhere; }
.approval small { font-size: 12.5px; }
.merge { display: flex; flex-direction: column; gap: 9px; padding: 12px; background: var(--wash); }
.merge.warn { background: var(--accent); }
.merge.warn .cap { color: var(--ink); }
.merge.warn .btn { background: var(--ink); }
.merge p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.merge p.failed { padding: 8px 10px; background: var(--accent); overflow-wrap: anywhere; }
.merge small { font-size: 12.5px; opacity: 0.85; }
.clash { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.clash code { overflow-wrap: anywhere; }
button.seat { padding: 6px 0; color: var(--white); background: none; border: 0; cursor: pointer; }
button.seat:hover:not(:disabled) .portrait { outline: 3px solid var(--accent); }
button.seat:disabled { opacity: 0.5; cursor: default; }
.tool.live .link { flex: none; }
.own { display: flex; flex-direction: column; gap: 7px; }
.own-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 14px; }
.own-logo { display: flex; align-items: center; gap: 14px; }
.own-logo .choice { padding: 10px; }
.own-logo .choice.on .emblem { outline: 3px solid var(--white); }
.own-logo label { cursor: pointer; }
.company { cursor: pointer; }
.company:hover { background: var(--wash); }
.wizard { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: var(--dither-veil) 0 0 / 8px 8px; image-rendering: pixelated; overflow: auto; }
.wizard[hidden] { display: none; }
.sheet { width: min(860px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 22px 30px 26px; background: var(--white); image-rendering: auto; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.crumbs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.crumbs button { padding: 6px 12px; font: 12px var(--mono); color: var(--muted); background: var(--wash); border: 0; }
.crumbs .done button { color: var(--lawn); }
.crumbs .on button { color: var(--white); background: var(--lawn); }
.sheet-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.sheet h1 { font-size: clamp(28px, 4vw, 40px); }
.lead { font-size: 16px; max-width: 620px; }
.sheet-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 250px; padding: 6px 0 10px; }
.sheet-body > * { width: 100%; }
.sheet-body > .link { width: auto; }
.sheet .choices.cols4 .choice { padding: 18px 14px; font-size: 16px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.logos .choice { align-items: center; padding: 14px; }
.logos .choice.on .emblem { outline: 3px solid var(--white); }
.engine-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: var(--wash); }
.engine-row + .engine-row { margin-top: -3px; }
.engine-row.off { opacity: 0.55; }
.engine-main { display: flex; flex-direction: column; min-width: 190px; flex: 1; }
.engine-main b { font-weight: 600; font-size: 15px; }
.switch { width: 40px; height: 22px; padding: 3px; background: #cdbf9c; border: 0; flex: none; }
.switch i { display: block; width: 16px; height: 16px; background: var(--white); }
.switch.on { background: var(--lawn); }
.switch.on i { margin-left: 18px; }
.switch:disabled { background: #e2d8bf; cursor: default; }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: stretch; }
.teams .choice { padding: 14px 12px; gap: 4px; }
.teams .choice > b { font-size: 16px; }
.team-roles { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.team-roles em { font-style: normal; font-weight: 600; font-size: 12.5px; display: block; }
.choice.on .cap { color: var(--tint); }

@media (max-width: 980px) {
  .counts, .hint, .map { display: none; }
  .hud-actions { margin-left: auto; }
  .panel { top: 56px; bottom: 84px; }
  .choices.cols4, .teams { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
}
