/* Liberty Command — the desk's light-paper system (desk/desk.css), the one
   place's own components on top. Newsreader for numbers and headlines,
   Source Sans for the UI, JetBrains Mono for data. */
:root {
  --bg: #f6f3ec; --card: #ffffff; --card-hi: #fbf9f4; --line: #e3ddd0; --line-soft: rgba(28,26,21,0.07);
  --ink: #1c1a15; --dim: #5a544a; --dimmer: #8a8377; --faint: #a29b8e;
  --gold: #b8860b; --goldbtn: #c9962b; --verify: #2f8f5b; --verifydim: #bfe0cb; --clock: #b45309; --red: #b4574a; --link: #1d5fa8;
  --office: #1d5fa8; --officesoft: #e1e8f3; --prod: #b45309; --prodsoft: #f6e3d6; --greensoft: #e6f2e9; --goldsoft: #fbf0d0;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Source Sans 3', -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: light; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.4; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: none; border-color: var(--goldbtn); box-shadow: 0 0 0 3px rgba(201,150,43,.18); }
textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kicker { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--dimmer); letter-spacing: .14em; text-transform: uppercase; }
.hidden { display: none !important; }
.dim { color: var(--dim); } .dimmer { color: var(--dimmer); } .red { color: var(--red); } .clock { color: var(--clock); } .verify { color: var(--verify); } .gold { color: var(--gold); }
.small { font-size: 11px; color: var(--dimmer); }
h1.serif { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; margin-top: 4px; text-wrap: balance; }

/* ── sign in ── */
#signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px; flex-wrap: wrap; }
.signin-card { width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(28,26,21,.06); }
.signin-card h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-top: 6px; }
.signin-card .sub { color: var(--dimmer); font-size: 12px; margin-top: 2px; margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dimmer); margin-bottom: 4px; text-transform: uppercase; }
.rooms-note { width: 400px; display: flex; flex-direction: column; gap: 6px; }
.rooms-note .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }

/* ── buttons, chips ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap; }
.btn.fill { background: var(--goldbtn); border-color: var(--goldbtn); color: #1c1a15; font-weight: 700; }
.btn.ok { background: var(--verify); border-color: var(--verify); color: #fff; }
.btn.sm { min-height: 28px; padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--dim); background: #fff; white-space: nowrap; }
.chip.st-gold { color: var(--gold); background: var(--goldsoft); border-color: transparent; }
.chip.st-green { color: var(--verify); background: var(--greensoft); border-color: transparent; }
.chip.st-blue { color: var(--office); background: var(--officesoft); border-color: transparent; }
.chip.st-orange { color: var(--prod); background: var(--prodsoft); border-color: transparent; }
.chip.st-ink { color: var(--dim); background: var(--card-hi); }
.chip.warn { color: var(--red); border-color: var(--red); }
.chip.demo { color: var(--clock); border-color: #ead9a8; background: var(--goldsoft); }

/* ── nav ── */
nav.side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 40px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
nav.side .brand { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin-right: 18px; display: flex; align-items: baseline; gap: 12px; }
nav.side .brand small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dimmer); text-transform: uppercase; font-weight: 500; }
nav.side .tabs { display: flex; flex-wrap: wrap; gap: 4px; }
nav.side button.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--dim); }
nav.side button.tab.on { background: var(--ink); color: var(--bg); }
nav.side button.tab .n { font-family: var(--mono); font-size: 10px; background: var(--goldsoft); color: var(--gold); border-radius: 999px; padding: 1px 6px; }
nav.side button.tab.on .n { background: rgba(255,255,255,.18); color: var(--bg); }
nav.side .spacer { flex-grow: 1; }
nav.side .find { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 10px; width: 300px; }
nav.side .find input { border: 0; padding: 8px 4px; box-shadow: none; }
nav.side .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dimmer); }
main { padding: 24px 40px 60px; max-width: 1560px; margin: 0 auto; }

/* ── layout pieces ── */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.head .right { display: flex; gap: 8px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile.door { border-top: 4px solid var(--line); cursor: pointer; }
.tile.door:hover { border-color: var(--goldbtn); }
.tile.door.sales { border-top-color: var(--verify); } .tile.door.office { border-top-color: var(--office); } .tile.door.production { border-top-color: var(--prod); } .tile.door.money { border-top-color: var(--ink); }
.fnum { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fnum small { font-size: 15px; color: var(--dimmer); font-family: var(--sans); }
.rows { display: flex; flex-direction: column; }
.rows .r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); }
.rows .r:first-child { border-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-file { display: grid; grid-template-columns: 1fr 380px; gap: 12px; align-items: start; }
@media (max-width: 1000px) { .two, .grid-file { grid-template-columns: 1fr; } }
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.funnel .cell { border-radius: 10px; padding: 12px; cursor: pointer; }
.funnel .cell .n { font-family: var(--mono); font-size: 26px; margin-top: 4px; }
.funnel .cell .d { font-size: 12px; color: var(--dim); }
.inv { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); font-size: 13px; }
.inv.red { border-color: #ead0cb; background: #fbf1ef; }
.sub { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--dim); border: 1px solid var(--line); background: #fff; }
.sub.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.subs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── tables ── */
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); font-weight: 500; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.link { cursor: pointer; } tr.link:hover td { background: var(--card-hi); }
.wrap { overflow-x: auto; }

/* ── asks ── */
.ask { display: grid; grid-template-columns: 110px 1fr 90px 100px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); font-size: 13px; }
.ask.green { border-color: var(--verifydim); background: var(--greensoft); }
.ask .who { color: var(--dim); font-size: 12px; }
.ask.done { color: var(--dimmer); background: transparent; }
.check { width: 18px; height: 18px; border: 1.5px solid var(--dimmer); border-radius: 4px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.check.done { background: var(--verify); border-color: var(--verify); }

/* ── the thread ── */
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.msg { max-width: 76%; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.msg.in { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
/* A person is a color (Kevin, 14 Sep). Every outbound bubble, note, envelope
   and event carries --c / --cs for whoever did it; the machine is gold. */
.msg.out { background: var(--cs, var(--card-hi)); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid var(--line); border-left: 5px solid var(--c, var(--ink)); }
.msg.machine { background: var(--goldsoft); border: 1px solid #ead9a8; border-left: 5px solid var(--gold); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--dimmer); font-size: 12px; font-family: var(--mono); max-width: 100%; }
.msg.chat { background: var(--card-hi); border: 1px dashed var(--c, var(--office)); border-left: 5px solid var(--c, var(--office)); align-self: flex-end; border-bottom-right-radius: 4px; }
.who { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg.out .who, .msg.chat .who, .msg.machine .who { color: var(--c, var(--dim)); }
.av { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c, var(--dimmer)); color: #fff; font-family: var(--mono); font-style: normal; font-size: 9.5px; font-weight: 500; flex: 0 0 20px; letter-spacing: 0; }
.msg.machine .av { color: var(--ink); }
.env { align-self: flex-end; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--dim); border: 1px dashed var(--line); border-left: 5px solid var(--c, var(--line)); border-radius: 10px; padding: 6px 12px; background: var(--card-hi); }
.ev { align-self: center; max-width: 92%; font-family: var(--mono); font-size: 11px; color: var(--dim); background: var(--card-hi); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--line)); border-radius: 999px; padding: 4px 12px; text-align: center; }
.ev.file { border-color: var(--verifydim); border-left-color: var(--c, var(--verify)); color: var(--verify); }
.ev.money { border-color: #ead9a8; color: var(--gold); background: var(--goldsoft); }
.ev.hand { border-color: var(--gold); border-left-color: var(--gold); border-left-width: 8px; background: var(--goldsoft); color: var(--gold); font-weight: 700; font-size: 12px; }   /* 417: the handoff, obvious */
.btn.hand { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }
.ev.bad { border-color: #ead0cb; background: #fbf1ef; color: var(--red); }
.journey { display: flex; gap: 3px; margin-top: 10px; }
.journey span { flex: 1 1 0; height: 12px; border-radius: 4px; background: var(--c); min-width: 6px; }
.journey-who { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.journey-who .pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--cs); border-radius: 999px; padding: 2px 9px 2px 4px; font-size: 12px; color: var(--ink); }
.btn.mic { padding: 8px 10px; font-size: 16px; line-height: 1; }
.btn.mic.on { background: var(--red); border-color: var(--red); color: #fff; animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 50% { opacity: .55; } }
.composer { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 4px; background: var(--card-hi); }
.composer textarea { min-height: 44px; border: 0; background: transparent; box-shadow: none; padding: 6px 4px; }
.stagebar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stagebar svg { color: var(--faint); }
.pill { font-family: var(--mono); font-size: 11px; color: var(--dimmer); }

/* ── modal, toast ── */
.modal-bg { position: fixed; inset: 0; background: rgba(28,26,21,.35); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 20px; }
.modal { width: 520px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.18); max-height: 90vh; overflow-y: auto; }
.modal h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.modal .foot { display: flex; gap: 8px; margin-top: 14px; }
.modal .err, .err { color: var(--red); font-size: 12px; min-height: 16px; margin-top: 6px; }
.note { font-size: 12px; color: var(--dimmer); line-height: 1.45; }
/* the itemized estimate's item row (322): one line on a desk; on a phone the item and its scope take the
   full width and qty · unit · price each sit under it with their names, so Mike can type a line on his phone */
.est-row { display: grid; grid-template-columns: 1.5fr 64px 70px 110px 32px; gap: 6px; align-items: start; margin-top: 6px; }
.est-row .est-cl { display: none; }
@media (max-width: 700px) {
  .est-row { grid-template-columns: 1fr 1fr 1.4fr 32px; align-items: end; margin-top: 10px; }
  .est-row > div:first-child { grid-column: 1 / -1; }
  .est-row .est-cl { display: block; font-family: var(--mono); font-size: 10px; color: var(--dimmer); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
}
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 30; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--red); }
.toast button { color: var(--goldbtn); font-weight: 700; }
.empty { padding: 20px; text-align: center; color: var(--dimmer); font-size: 13px; }
.crew { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--verify); margin-right: 6px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }

/* the owner console, embedded — its own dark ground, so the frame gets a dark seat */
.embed { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0f1e17; box-shadow: 0 10px 40px rgba(28,26,21,.08); }
.embed iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 640px; border: 0; }

/* ── the customer's thread, beside every room (Kevin, 13 Sep: "we always keep our eyes on the prize, the customer") ── */
#drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(640px, 92vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(28,26,21,.14); z-index: 12; overflow-y: auto; }
#drawer[hidden] { display: none; }
#drawer-body { padding: 18px 20px 40px; }
#drawer .grid-file { grid-template-columns: 1fr; }
#drawer .thread { max-height: 48vh; }
#drawer h1.serif { font-size: 24px; }
#drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
main.dimmed { filter: none; }
.thread { max-height: 66vh; }
.msg { font-size: 15px; max-width: 80%; }
.msg.in { border-left: 3px solid var(--goldbtn); }
.grid-file { grid-template-columns: minmax(0, 1.6fr) 360px; }

/* ── the village · the team's rooms (Kevin, 13 Sep: "a shared village for all
      customers and all employees") — the hype thread's bubbles, every room ── */
.room { gap: 8px; }
.village-wide .room .room-list { max-height: calc(100vh - 290px); min-height: 380px; }   /* 134: the room gets the height the header gave up */
.village-wide { max-width: 980px; }
.room .room-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding: 6px 4px 2px 0; }
.room .roomrow { display: flex; gap: 8px; align-items: flex-end; }
.room .roomrow.out { flex-direction: row-reverse; }
.room .ini { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--dim); background: var(--card-hi); border: 1px solid var(--line); margin-bottom: 2px; }
.room .roomrow.out .ini { color: var(--gold); background: var(--goldsoft); border-color: #ead9a8; }
.room .msg { max-width: 74%; font-size: 13.5px; white-space: normal; }
.room .msg.in { border-left: 0; }                      /* the gold bar on the file is the customer's, not the team's */
.room .say { white-space: pre-wrap; word-break: break-word; }
.room .chip.cust { display: inline-block; margin-top: 6px; color: var(--gold); background: var(--goldsoft); border-color: transparent; cursor: pointer; }
.room .msg.out .chip.cust { color: var(--goldbtn); background: rgba(201,150,43,.20); }
.room .room-reacts { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.room .react { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; line-height: 1.55; color: var(--dim); }
.room .react.on { border-color: var(--goldbtn); background: var(--goldsoft); color: var(--gold); }
.room .react .mono { font-size: 10px; }
/* 133: a bell in the Village */
.room .roomrow.bell .msg.bell { background: var(--goldsoft); border: 1px solid var(--goldbtn); }
.room .ini.bell { background: var(--goldsoft); font-size: 14px; }
.room .ini.face, .line-av.face { font-size: 15px; font-family: inherit; }   /* 134: an emoji reads at 15px, initials stay mono */
.room .msg.out .react { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: var(--bg); }
.room .msg.out .react.on { background: var(--goldbtn); border-color: var(--goldbtn); color: var(--ink); }
.room .room-on-row { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.room .room-on-row input { width: 240px; padding: 5px 10px; font-size: 12px; }
.room .room-pick { display: flex; align-items: center; gap: 6px; }
.room .room-pop { position: absolute; left: 0; bottom: calc(100% + 6px); width: 340px; z-index: 9; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 50px rgba(28,26,21,.15); }
.room .room-pop[hidden], .room .room-pick[hidden] { display: none; }
.room .composer { margin-top: 0; }

/* the Find dropdown: rows read as buttons (Kevin, 13 Sep: "shows one, nothing to click on") */
nav.side .card button.findrow { padding: 8px 10px; border-radius: 8px; }
nav.side .card button.findrow:hover { background: var(--goldsoft); }

/* THE NEXT LINE (gospel 3, 13 Sep): every card says what happens next, loud, with the button beside it */
.next { margin: 6px 0 8px; padding: 9px 12px; border-radius: 10px; background: var(--goldsoft); color: var(--ink); font-size: 13.5px; line-height: 1.4; border-left: 4px solid var(--gold); }
.next b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold); margin-right: 8px; }
.next.bad { background: #fbe9e4; border-left-color: #b8442a; } .next.bad b { color: #b8442a; }
.next.good { background: #e6f4ea; border-left-color: #1d6b3a; } .next.good b { color: #1d6b3a; }

/* ── the conversation, horizontal (Kevin, 14 Sep: "you can't read any of the chat because it's too small… go horizontal") ──
   Left: the whole thread, big, and the box you type in. Right: every pre-written line, readable, one tap to fill the box.
   Nothing here sends; Send is still the one button. */
.convo { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); gap: 18px; align-items: start; padding: 18px 20px; }
.convo-main, .convo-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.convo .thread, #drawer .convo .thread { max-height: none; height: clamp(420px, 62vh, 900px); }
.convo .msg { font-size: 16px; line-height: 1.45; max-width: 84%; padding: 12px 16px; }
.convo .composer textarea { min-height: 72px; font-size: 15px; }
.convo-side .lines { display: flex; flex-direction: column; gap: 8px; max-height: clamp(360px, 52vh, 760px); overflow-y: auto; padding-right: 4px; }
.line { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; border: 1px solid var(--line); border-left: 4px solid var(--goldbtn); border-radius: 12px; background: var(--card-hi); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.line b { font-size: 14px; }
.line span { font-size: 14px; line-height: 1.4; color: var(--dim); white-space: pre-wrap; }
.line:hover, .line.on { border-color: var(--gold); background: var(--goldsoft); }
.line:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.grid-file.cards { grid-template-columns: 1fr 1fr; }
#drawer { width: min(1240px, 95vw); }
#drawer .convo .thread { height: clamp(380px, 56vh, 820px); }
@media (max-width: 1000px) { .convo { grid-template-columns: 1fr; } .convo .thread, #drawer .convo .thread { height: 52vh; } .grid-file.cards { grid-template-columns: 1fr; } }

/* ── the pipeline (Kevin, 14 Sep: "it doesn't have Gio's and each one broken down") ── */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.pcol { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--line)); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcol .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.pcol .ph .n { font-family: var(--mono); font-size: 24px; color: var(--c, var(--ink)); text-align: right; line-height: 1; }
.pcard { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: 10px; background: var(--card-hi); padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.pcard:hover, .pcard:focus-visible { border-color: var(--gold); outline: none; }
.pcard b { font-size: 14px; }
.pcard .s { font-size: 12px; color: var(--dim); }
.pcard .t { font-size: 12.5px; color: var(--ink); }
.pcard .t.due { color: var(--gold); font-weight: 600; }
.pcard .clock { font-size: 12px; color: var(--red); }
@media (max-width: 1000px) { .pipe { grid-template-columns: repeat(6, 250px); } }

/* ── The Flow (Kevin, 15 Sep: "a scrolling timeline of all the stuff in our entire workflow"; then "I should be able to easily look at the flow and have a clue") ── */
.flow-miles { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.mile { position: relative; flex: 1 1 0; min-width: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 9px; text-align: center; color: var(--dimmer); }
.mile.live { border-color: var(--gold); background: var(--goldsoft); color: var(--ink); }
.mile .n { font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 500; }
.mile .l { font-size: 12px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.mile .h { font-size: 10.5px; line-height: 1.25; margin-top: 2px; color: var(--dimmer); }
.mile .arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-55%); color: var(--faint); font-style: normal; font-size: 18px; }
.flow { display: flex; flex-direction: column; gap: 10px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; cursor: pointer; flex-wrap: wrap; }
.fhead:hover .fname { text-decoration: underline; }
.fname { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.fsub { font-size: 12px; color: var(--dimmer); margin-top: 1px; }
.fwhere { font-size: 13px; color: var(--dim); background: var(--card-hi); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; max-width: 520px; }
.fwhere.wait { border-color: #ead9a8; background: var(--goldsoft); color: var(--ink); }
.flines { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.fline { display: grid; grid-template-columns: 22px 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 9px; border-left: 4px solid var(--c, var(--line)); background: var(--cs, var(--card-hi)); font-size: 13.5px; }
.fline .b { color: var(--ink); min-width: 0; }
.fline .t { font-family: var(--mono); font-size: 11px; color: var(--dimmer); white-space: nowrap; }
.fline.done .b { color: var(--verify); }
.fline.money { background: var(--goldsoft); border-left-color: var(--gold); }
.fline.money .b { color: var(--gold); font-weight: 600; }
.fline.bad .b { color: var(--red); }
.fcard .more { align-self: flex-start; font-size: 12px; color: var(--link); background: none; border: 0; padding: 4px 8px; cursor: pointer; text-decoration: underline; }
.fcard .more ~ .fline { display: none; }
.fcard.open .more ~ .fline { display: grid; }
@media (max-width: 720px) { .fwhere { max-width: none; } .fline { grid-template-columns: 22px 1fr; } .fline .t { grid-column: 2; } }
.mile .ic { color: var(--dimmer); margin-bottom: 2px; } .mile.live .ic { color: var(--gold); }
.mile .ic svg { width: 22px; height: 22px; }
.fline .mk { display: inline-flex; color: var(--c, var(--dim)); } .fline .mk svg { width: 17px; height: 17px; }
.fline.money .mk { color: var(--gold); } .fline.done .mk { color: var(--verify); } .fline.bad .mk { color: var(--red); }
.track { display: flex; gap: 3px; margin: 0 0 10px; }
.track .seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-hi); color: var(--faint); }
.track .seg svg { width: 16px; height: 16px; }
.track .seg em { font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.track .seg.past { background: var(--verifydim); border-color: var(--verifydim); color: var(--verify); }
.track .seg.now { background: var(--goldsoft); border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 2px var(--goldsoft); }
@media (max-width: 720px) { .track .seg em { display: none; } .fline { grid-template-columns: 22px 22px 1fr; } .fline .t { grid-column: 3; } }
.ai { display: inline-flex; vertical-align: middle; margin-right: 6px; color: var(--dim); } .ai svg { width: 15px; height: 15px; }
.mile .u { font-family: var(--mono); font-size: 9.5px; color: var(--dimmer); margin-top: 3px; letter-spacing: .04em; }
.fwhere .slow { color: var(--clock); font-weight: 600; }
.map { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: grid; grid-template-columns: 96px 190px 1.3fr 1fr 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mstep { text-align: center; color: var(--ink); } .mic { color: var(--gold); } .mic svg { width: 26px; height: 26px; } .mn { font-family: var(--mono); font-size: 10px; color: var(--dimmer); } .ml { font-weight: 700; font-size: 13px; }
.mwho { display: flex; gap: 8px; align-items: center; border-left: 4px solid var(--c); background: var(--cs); border-radius: 10px; padding: 8px 10px; }
.mwho .av { width: 28px; height: 28px; font-size: 10px; } .mwn { font-weight: 700; font-size: 13.5px; } .mwh { font-size: 11px; color: var(--dimmer); }
.mk { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 4px; } .mk.gold { color: var(--gold); }
.mcol ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.4; } .mcol li { margin-bottom: 3px; } .mcust { font-size: 13px; line-height: 1.4; color: var(--dim); }
@media (max-width: 900px) { .mrow { grid-template-columns: 80px 1fr; } .mcol, .mwho { grid-column: 1 / -1; } }

/* ── The Line — the switchboard (15 Sep). The rail never changes when the pane
   does: that is the whole point of the room, so the two are separate grids
   and only #line-pane is repainted by a click. ── */
.line-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.line-rail { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0 10px; position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
.line-grp { padding: 10px 10px 2px; }
.line-grp .kicker { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px 6px; }
.line-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; text-align: left; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; }
.line-item:hover { background: var(--card-hi); border-color: var(--line); }
.line-item.on { background: var(--card-hi); border-color: var(--goldbtn); box-shadow: 0 0 0 3px rgba(201,150,43,.14); }
.line-av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; background: var(--card-hi); color: var(--dim); border: 1px solid var(--line); }
.line-av.gold { background: var(--goldsoft); color: #8a6508; border-color: transparent; }
.line-av.blue { background: var(--officesoft); color: var(--office); border-color: transparent; }
.line-av.orange { background: var(--prodsoft); color: var(--prod); border-color: transparent; }
.line-av.green { background: var(--greensoft); color: var(--verify); border-color: transparent; }
/* 132: employees and customers look different in the @ picker */
.line-item.emp { background: var(--officesoft); border-color: transparent; }
.line-item.emp:hover { background: #d3ddec; }
.line-item .tag { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
.line-item .tag.emp { background: var(--office); color: #fff; }
.line-item .tag.cust { background: var(--card-hi); color: var(--dimmer); border: 1px solid var(--line); }
nav.side .who .enter-sends { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.line-av.red { background: #fbf1ef; color: var(--red); border-color: transparent; }
.line-item .nm { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-item .pv, .line-row .pv { display: block; font-size: 11px; color: var(--dimmer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-badge { font-family: var(--mono); font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; }
.line-pane .card { margin-bottom: 0; }
.line-row { grid-template-columns: 28px minmax(0, 1fr) auto; width: 100%; text-align: left; cursor: pointer; margin-bottom: 6px; }
.line-row:hover { border-color: var(--goldbtn); }
.line-bar { display: grid; grid-template-columns: minmax(96px, 1.1fr) minmax(0, 2fr) 34px 58px; gap: 10px; align-items: center; padding: 4px 0; }
.line-bar .bl { font-size: 12.5px; color: var(--dim); text-align: right; }
.line-bar .tr { height: 16px; background: var(--card-hi); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.line-bar .tr i { display: block; height: 100%; background: var(--goldbtn); border-radius: 0 3px 3px 0; }
.line-bar .bn { font-size: 12.5px; font-weight: 700; text-align: right; }
.line-bar .bo { font-size: 11.5px; text-align: right; }
@media (max-width: 900px) {
  .line-wrap { grid-template-columns: 1fr; }
  .line-rail { position: static; max-height: none; }
}
.line-grp .kicker span:last-child { white-space: nowrap; flex: 0 0 auto; }
.line-grp .kicker span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── page one: the three ledgers (15 Sep 2026) ── */
.ledger { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; min-width: 0; }
.ledger.sales { border-left-color: var(--verify); } .ledger.build { border-left-color: var(--prod); } .ledger.cash { border-left-color: var(--office); }
.lhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lhead h2 { font-family: var(--serif); font-size: 22px; margin: 0; }
.lhead .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fig { background: var(--card-hi); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fig .n { font-family: var(--serif); font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fig .n small { font-size: 12.5px; color: var(--dimmer); font-family: var(--sans); }
.fig .l { font-size: 12px; color: var(--dim); margin-top: 3px; line-height: 1.3; }
.bars { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.brow { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.brow .lbl { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bar { height: 20px; border-radius: 4px; position: relative; min-width: 3px; }
.brow .bar b { position: absolute; left: 6px; top: 0; line-height: 20px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week .d { background: var(--card-hi); border-radius: 10px; padding: 8px 10px; min-height: 76px; min-width: 0; }
.week .d.today { outline: 2px solid var(--goldbtn); }
.week .d .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dimmer); text-transform: uppercase; }
.week .d .n { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.week .d .c { font-size: 11px; color: var(--dim); line-height: 1.3; overflow-wrap: anywhere; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.src { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.src.none { color: var(--clock); border-color: #ead9a8; background: var(--goldsoft); }
.cos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.co { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.co .nm { font-weight: 700; margin-bottom: 4px; }
@media (max-width: 700px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } .brow { grid-template-columns: 80px 1fr; } .two { grid-template-columns: 1fr; } }

/* ── page one: the company bands (15 Sep 2026, round two) ── */
.ledger.co { border-left-color: var(--ink); }
.ledger.co.quiet { opacity: .7; }
.cogrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.figs.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.figs.tight .fig .n { font-size: 24px; }
.brow.compact { grid-template-columns: 96px 1fr; font-size: 12px; }
.brow.compact .bar { height: 18px; }
.brow.compact .bar b { line-height: 18px; font-size: 10.5px; }
.trend { font-size: 12.5px; color: var(--dim); margin-top: 8px; line-height: 1.4; border-left: 3px solid var(--line); padding-left: 8px; }
.trend b { color: var(--ink); }
.trend.down { border-left-color: var(--red); } .trend.down b:last-child { color: var(--red); }
.trend.up { border-left-color: var(--verify); } .trend.up b:last-child { color: var(--verify); }
@media (max-width: 900px) { .cogrid { grid-template-columns: 1fr; } }

/* ── page one: "compared to what" — one quiet line under a figure (15 Sep 2026) ── */
.fig .cmp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--dimmer); margin-top: 5px; }
.fig .cmp.down { color: var(--red); } .fig .cmp.up { color: var(--verify); }

/* ── the Pipeline room: THE PIE per rep (15 Sep 2026) ── */
.pies { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pie { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pie-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pie-head b { font-size: 15px; }
.stack { display: flex; height: 24px; border-radius: 6px; overflow: hidden; background: var(--card-hi); }
.stack span { display: flex; align-items: center; padding-left: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; min-width: 3px; }
.stack span.none { color: var(--dimmer); background: transparent; font-family: var(--sans); font-size: 12px; width: 100%; }
.pie-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.pie-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pie-legend b { color: var(--ink); font-family: var(--mono); font-weight: 500; }

/* 346: the Message-anyone box in the rail, and the direct-line thread */
.line-find { position: relative; padding: 0 8px 6px; }
.line-find input { padding: 7px 10px; font-size: 12.5px; border-radius: 9px; }
.line-find-pop { position: absolute; left: 8px; right: 8px; top: 100%; z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 14px 40px rgba(28,26,21,.14); }
.line-dm .room-list { max-height: 440px; }
/* the lane switch at the top of The Line's rail (Jess, 14 Sep) */
.line-lane { display: flex; gap: 6px; padding: 10px 12px 6px; }
.line-lane .sub { flex: 1; justify-content: center; }
/* SAY IT — the composer at the top of The Line (Kevin, 15 Sep) */
.card.say { border-top: 4px solid var(--goldbtn); margin-bottom: 18px; }
.say-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.say-who { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.say-who input { max-width: 520px; }
.say-who .line-find-pop { left: 0; right: auto; width: min(520px, 100%); }
.say-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px 66px; }
.lanebtn { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--dim); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lanebtn.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lanes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) { .say-row { grid-template-columns: 1fr; gap: 4px; } .say-presets { margin-left: 0; } }
/* @ in every room's composer (15 Sep): the popup sits under the box, the lane chips show once a customer is hung */
.composer .at-pop { left: 0; right: auto; top: 100%; width: min(460px, 100%); max-height: 320px; overflow-y: auto; }
.at-lanes { margin: 6px 0 4px; }
.at-lanes .small { margin-left: 4px; }
/* the pick lists scroll instead of clipping (Kevin, 15 Sep: "I can't roll down in the side") */
.card.say, .card.room { overflow: visible; }
.line-find-pop, .say-who .line-find-pop, .composer .at-pop { max-height: min(60vh, 440px); overflow-y: auto; z-index: 12; }
nav.side .card { max-height: 70vh; overflow-y: auto; }
/* a rep's Line on a phone: the box first, the chrome small (Kevin, 15 Sep: "so easy a caveman can do it") */
.rep-head { margin-bottom: 8px; }
@media (max-width: 700px) {
  nav.side { padding: 8px 16px; gap: 4px; }
  nav.side .brand { font-size: 18px; margin-right: 6px; }
  nav.side button.tab { padding: 5px 10px; font-size: 12px; }
  nav.side .find { width: 100%; }
  main { padding: 12px 16px; }
  .head h1.serif { font-size: 22px; }
  .card.say { padding: 12px 12px; }
  .say-who input { max-width: none; }
}

/* ── View as (owner / admin): look through any seat (15 Sep 2026) ── */
.viewas { margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.viewas select { width: 100%; font: 12.5px var(--sans); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.viewas .on { font-size: 11.5px; line-height: 1.35; color: var(--clock); background: var(--goldsoft); border: 1px solid #ead9a8; border-radius: 8px; padding: 6px 8px; }
.viewas .on b { display: block; color: var(--ink); }
.viewas .on button { border: 0; background: none; color: var(--link); font: 600 11.5px var(--sans); padding: 0; cursor: pointer; text-decoration: underline; }

/* ── the tour: a caption per step on the real screen (15 Sep 2026) ── */
#tour { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.tour-card { position: fixed; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 36px)); background: var(--card); border: 1px solid var(--goldbtn); border-radius: 16px; padding: 16px 18px; box-shadow: 0 16px 50px rgba(28,26,21,.22); pointer-events: auto; }
.tour-card.center { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.tour-card h2 { margin: 6px 0 4px; font-size: 22px; }
.tour-card p { margin: 0 0 12px; font-size: 14.5px; color: var(--dim); line-height: 1.45; }
.tour-foot { display: flex; gap: 8px; align-items: center; }
.tour-lit { outline: 3px solid var(--goldbtn); outline-offset: 4px; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(28,26,21,.35); position: relative; z-index: 89; }
.tour-bar { height: 3px; background: var(--line); border-radius: 2px; margin: 6px 0 2px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--goldbtn); animation: tourbar 7s linear forwards; }
@keyframes tourbar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tour-bar i { animation: none; width: 100%; } }

/* ── THE BING (Kevin, 15 Sep night): the task card in the corner — stays until ✓ Got it or Open ── */
#alerts { position: fixed; top: 14px; right: 14px; z-index: 40; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 28px)); }
.alert { background: var(--card, #fff); color: var(--ink); border: 2px solid var(--gold, #b7791f); border-left-width: 8px; border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 48px rgba(0,0,0,.28); transform: translateX(120%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.alert.show { transform: none; opacity: 1; }
.alert .ak { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #b7791f); font-weight: 700; }
.alert .an { font-size: 18px; font-weight: 700; margin-top: 2px; }
.alert .ab { font-size: 14px; line-height: 1.35; margin-top: 4px; }
.alert .af { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.alert .btn.ok { font-weight: 700; }   /* the green fill from .btn.ok, bold */
@media (prefers-reduced-motion: reduce) { .alert { transition: none; } }

/* ── 351: THE PHOTOS on the file ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.pthumb { display: block; border-radius: 8px; background: var(--card-hi); cursor: zoom-in; object-fit: cover; }
.pthumb.grid { width: 100%; aspect-ratio: 1; }
.msg .pthumb { max-width: 220px; max-height: 220px; margin-top: 6px; border: 1px solid var(--line); }
.photo-cap { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-hi); color: var(--ink); margin-bottom: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20,18,14,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { color: #f3efe6; font-size: 13px; } .lightbox .cap a { color: #f0c96a; }
/* 352: the photo sheet + the Photos room */
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tagchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-hi); cursor: pointer; }
.tagchip:has(input:checked) { border-color: var(--office); background: var(--officesoft); color: var(--office); font-weight: 600; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid .pt, .ptile .pt { position: relative; }
.pbadge { position: absolute; right: 4px; bottom: 4px; background: rgba(28,26,21,.82); color: #f7e7b5; font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.pbadge.cc { left: 4px; right: auto; color: #d7dde6; }
.photo-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ptile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: var(--card-hi); display: block; }
.ptile .pname { text-align: left; font-size: 13.5px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); }
.ptile .pmeta { font-size: 11.5px; color: var(--dim); } .ptile .pcap { font-size: 12.5px; }
.blue { color: var(--office); }

/* ── THE PHONE (Kevin, 15 Sep night: "Luis needs a mobile version… a desktop cockpit and a mobile command center").
   Same site, one column, thumb-sized targets; Add to Home Screen makes it the app. ── */
@media (max-width: 700px) {
  nav.side { padding: 10px 12px; gap: 6px; }
  nav.side .brand { font-size: 20px; }
  nav.side .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  nav.side .tabs::-webkit-scrollbar { display: none; }
  nav.side .tabs .tab { flex: 0 0 auto; padding: 9px 14px; font-size: 14px; }
  nav.side .find { width: 100%; }
  nav.side .who { width: 100%; justify-content: space-between; }
  nav.side .who .btn { padding: 8px 10px; }
  main { padding: 12px 12px 80px; }
  .card { padding: 12px 12px; border-radius: 12px; }
  h1.serif { font-size: 24px; }
  .btn { min-height: 38px; }
  .line-wrap { grid-template-columns: 1fr; }
  #drawer { width: 100vw; border-left: 0; }
  .drawer-top { position: sticky; top: 0; background: var(--bg); z-index: 3; padding: 8px 0; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .two-up { grid-template-columns: 1fr; }
  #alerts { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; }
  .alert { transform: translateY(120%); }
  .msg { max-width: 92%; }
  .modal { width: calc(100vw - 24px) !important; max-height: 90vh; overflow-y: auto; }
}

/* ── 353: SEND QUOTE TO GIO ── */
.card.quotes { border-left: 6px solid var(--gold); }
.qreq { border-top: 1px solid var(--line); padding: 10px 0 8px; }
.qreq:first-of-type { border-top: 0; }
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.qhead .inv { text-align: left; }
.qrows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.qrows .r { font-size: 12.5px; padding: 3px 0; }
.qans { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.qans input[type=number] { width: 110px; font: inherit; font-family: var(--mono); font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-hi); color: var(--ink); }
.qans input[type=text] { flex: 1; min-width: 180px; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-hi); color: var(--ink); }
.qprice { margin-top: 6px; font-size: 15px; } .qprice b { font-family: var(--mono); color: var(--verify); font-size: 17px; }
@media (max-width: 700px) { .qrows { grid-template-columns: 1fr; } }

/* 354: the receipt under a note */
.rcpt { font-family: var(--mono); font-size: 10.5px; color: var(--dimmer); margin-top: 5px; letter-spacing: .02em; }
.rcpt .seen { color: var(--verify); }

/* MY BOOK — Files opens on your customers and what is open on each (16 Sep) */
.mybook { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.card.mb { gap: 6px; }
.mbhead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; cursor: pointer; flex-wrap: wrap; }
.mbhead b { font-size: 16px; }
.mbwait { font-size: 13px; margin-top: 2px; } .mbwait .mono { margin-right: 6px; font-weight: 600; }
.mblast { margin-top: 2px; }
.tasks { display: flex; flex-direction: column; margin-top: 4px; }
.task { display: grid; grid-template-columns: 16px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task .check { width: 12px; height: 12px; border: 1.5px solid var(--dimmer); border-radius: 4px; }
.task.mine { font-weight: 600; } .task.mine .check { border-color: var(--gold); }
.task .who { font-size: 12px; color: var(--dim); }
.mbfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
@media (max-width: 700px) { .mybook { grid-template-columns: 1fr; } }

/* THE NEXT WORD — the box lights when the right line lands in it */
#compose.hot { box-shadow: 0 0 0 3px var(--goldsoft), 0 0 0 5px var(--gold); transition: box-shadow .3s; }

/* ── 356/357: MY CREWS + THE NUGGET ── */
.card.crews { border-left: 6px solid var(--prod); }
.crewrow { display: flex; flex-wrap: wrap; gap: 6px; }
.crewchip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-hi); cursor: pointer; font-size: 13px; }
.nug { border-top: 1px solid var(--line); padding: 8px 0; }
.nug.late { border-left: 4px solid var(--red); padding-left: 8px; }
.nug.back { opacity: .9; }
.nughead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.nughead .inv { padding: 0; font-size: 14px; }
.nugbody { font-size: 14px; margin-top: 2px; }
.nrcpt { font-family: var(--mono); font-size: 10.5px; color: var(--dimmer); margin-top: 5px; letter-spacing: .02em; }
.pick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* the find popup — closeable, and rows that breathe (16 Sep) */
.findpop { position: absolute; right: 40px; top: 58px; width: min(480px, calc(100vw - 24px)); z-index: 9; padding: 8px; gap: 2px; box-shadow: 0 20px 50px rgba(0,0,0,.15); max-height: min(70vh, 560px); overflow-y: auto; }
.findhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.findrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 8px 6px; border-top: 1px solid var(--line); }
.findrow:first-of-type { border-top: 0; }
.findrow > span:first-child { min-width: 0; }
@media (max-width: 700px) { .findpop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } .findrow { grid-template-columns: minmax(0, 1fr) auto; } .findrow > .mono { display: none; } }

/* ── 358: WHAT I SENT OUT — the chain ── */
.card.sent { border-left: 6px solid var(--office); }
.dir { border-top: 1px solid var(--line); }
.dir:first-of-type { border-top: 0; }
.dirhead { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; font-size: 13.5px; }
.dirkind { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dimmer); }
.dirbody { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dirto { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.dir.done .dirbody { color: var(--dim); }
.chain { margin: 0 0 10px 62px; border-left: 2px solid var(--line); padding-left: 12px; display: flex; flex-direction: column; gap: 4px; }
.step { display: grid; grid-template-columns: 96px 90px minmax(0, 1fr); gap: 8px; font-size: 13px; align-items: baseline; position: relative; }
.step::before { content: ''; position: absolute; left: -17px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step.first::before { background: var(--office); }
.chip.st-blue { color: var(--office); border-color: var(--office); background: var(--officesoft); }
@media (max-width: 700px) { .dirhead { grid-template-columns: 1fr; gap: 3px; } .dirbody { white-space: normal; } .chain { margin-left: 8px; } .step { grid-template-columns: 1fr; gap: 1px; } }

/* THE VILLAGE, DENSE BUT STILL A CONVERSATION (Kevin, 16 Sep 1:55 PM: "make it more like it was before, but these
   are all little smaller conversations… more color and the back and forth… I like this amount of stuff, but the UI
   of the previous one"). Small bubbles, mine on the right in gold, theirs on the left, who · when on the same line as
   the words, @names lit up, reactions tiny. The list fills the screen. */
.village-wide { max-width: none; }
.village-wide .room .room-list { max-height: none; height: calc(100vh - 340px); min-height: 380px; gap: 3px; padding: 4px 4px 2px 0; }
.village-wide .roomrow { gap: 6px; }
.village-wide .ini, .village-wide .roomrow.out .ini { width: 22px; height: 22px; font-size: 9px; margin-bottom: 0; }
.village-wide .msg { max-width: 80%; font-size: 13px; padding: 5px 10px 4px; border-radius: 12px; line-height: 1.35; }
.village-wide .msg .who { display: inline; font-size: 10px; margin: 0 8px 0 0; }
.village-wide .msg .say { display: inline; }
.village-wide .msg .chip.cust { margin: 2px 0 0 6px; font-size: 10px; padding: 0 6px; }
.village-wide .room-reacts { margin-top: 2px; gap: 2px; opacity: .55; }
.village-wide .roomrow:hover .room-reacts { opacity: 1; }
.village-wide .react { padding: 0 5px; font-size: 10px; line-height: 1.4; }
.room .say .at { color: var(--gold); font-weight: 600; }
.room .msg.out .say .at { color: #f4d58d; }
@media (max-width: 700px) { .village-wide .msg { max-width: 92%; } .village-wide .room .room-list { height: calc(100vh - 380px); } }

/* ── THE BILLS (365/369): the Bill landed card, the Invoice ready card, the Office room's Bills queue ──
   Money is visually obvious before anyone opens a file (gospel 2): the left edge is gold while a bill
   waits, red when it is over the estimate or matched nothing, green once it is approved or the
   invoice is recorded. The grid is the six things a person verifies, side by side. */
.card.bill { border-left: 6px solid var(--gold); gap: 8px; }
.card.bill.red { border-left-color: var(--red); }
.card.bill.green { border-left-color: var(--verify); }
.card.bill.done { border-left-color: var(--line); }
.bill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 10px 30px; font-size: 15px; align-items: end; }
.bill-grid > div > .kicker { margin-bottom: 2px; }
.bill-grid b.big { font-size: 19px; }
.bill-text { padding: 8px 10px; border-radius: 8px; background: var(--card-hi); border: 1px solid var(--line); line-height: 1.45; color: var(--dim); }
.billrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); font-size: 13px; margin-top: 6px; }
.billrow.red { border-color: #ead0cb; background: #fbf1ef; }
.billrow .who { color: var(--dim); font-size: 12px; margin-top: 3px; }
@media (max-width: 700px) { .bill-grid { grid-template-columns: 1fr 1fr; } .billrow { grid-template-columns: 1fr; } }

/* ── the address that fills itself in (Samantha, 17 Sep): the list under the Street box on the New lead door ── */
.addrpick { flex-direction: column; align-items: stretch; gap: 3px; }
.addrpick .sub { justify-content: flex-start; border-radius: 8px; text-align: left; gap: 8px; cursor: pointer; }
.addrpick .sub span { color: var(--dimmer); font-weight: 400; }
.addrpick .sub.lit, .addrpick .sub:hover { border-color: var(--goldbtn); box-shadow: 0 0 0 3px rgba(201,150,43,.18); }

/* THE FIND LIST ON A PHONE (Kevin, 17 Sep night: a hundred Smiths and "it stops me"): fixed under the box, sized to what the
   keyboard leaves of the screen (--vvh and --findtop are set by wireFind from visualViewport), scrolls on its own, never the page. */
@media (max-width: 700px) {
  .findpop, nav.side .card.findpop { position: fixed; left: 8px; right: 8px; top: var(--findtop, 96px); width: auto; max-height: calc(var(--vvh, 100vh) - var(--findtop, 96px) - 8px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* 18 Sep — Sam's asks: the contact line under the customer's name, and small link-buttons (copy · ↗ new tab) */
.contactline { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 6px; font-size: 13px; }
.contactline a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--dimmer); }
.contactline a.lnk, button.lnk { color: var(--office); border: 0; background: none; padding: 0; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.locates .r.soon { color: var(--clock); }

/* 134: on a phone the Village keeps its share of the screen */
@media (max-width: 700px) { .village-wide .room .room-list { max-height: 62vh; min-height: 0; } }

/* ── 136 THE VILLAGE AS CONVERSATIONS (18 Sep 2026): the board of cards, the open conversation, by person ── */
.vb { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; align-items: start; }
.vb.vcols-mode { display: block; }
.vb-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 175px); overflow-y: auto; padding-right: 2px; min-width: 0; }
.vb-open { min-width: 0; }
.vcard { text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; background: var(--card); cursor: pointer; display: block; }
.vcard:hover { background: var(--card-hi); }
.vcard.on { border-color: var(--goldbtn); box-shadow: 0 0 0 3px rgba(201,150,43,.14); }
.vcard.new { border-style: dashed; color: var(--dim); }
.vcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vcard .nm { font-weight: 700; margin-top: 4px; font-size: 13px; }
.vcard .last { color: var(--dim); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vwait { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--clock); white-space: nowrap; }
.vwait.red { color: var(--red); } .vwait.ok { color: var(--verify); } .vwait.dim { color: var(--dimmer); }
.vb .ini, .vcols .ini { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 600; border: 1px solid var(--line); background: var(--card-hi); color: var(--dim); }
.vb .ini.face, .vcols .ini.face { font-size: 15px; font-family: var(--sans); }
.vb .ini.grp, .vcols .ini.grp { background: var(--goldsoft); color: var(--gold); border-color: var(--gold); }
.vfaces { display: inline-flex; align-items: center; }
.vfaces .ini { margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }
.vfaces .ini:first-child { margin-left: 0; }
.vto { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-hi); margin-bottom: 8px; }
.vto .pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 12px; font-weight: 600; background: var(--card); }
.vto .pill.add { border-style: dashed; color: var(--dimmer); padding: 4px 9px; font-weight: 400; cursor: pointer; }
.vto .pill .x { color: var(--dimmer); cursor: pointer; padding-left: 4px; }
.vb .room.village-wide .vmsgs { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 400px); min-height: 220px; overflow-y: auto; padding: 6px 4px 2px 0; }
.vsplit { margin: 0 0 4px 30px; padding-left: 10px; border-left: 3px solid var(--goldsoft); display: flex; flex-direction: column; gap: 4px; }
.vsplit .lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.vreply { border: 0; background: none; color: var(--dimmer); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 0 8px; cursor: pointer; padding: 0; }
.vreply:hover { color: var(--gold); }
.vabout { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--dimmer); font-size: 12px; position: relative; flex-wrap: wrap; }
.vabout input { width: auto; flex: 1; min-width: 160px; padding: 5px 9px; font-size: 12px; }
.vabout .room-pop { position: absolute; left: 0; right: 0; top: 100%; z-index: 9; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 14px 40px rgba(28,26,21,.14); max-height: 300px; overflow-y: auto; }
.vpick { display: flex; flex-direction: column; gap: 10px; }
.vpick .sec { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--card); }
.vpick .sec .kicker { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vpick .faces { display: flex; flex-wrap: wrap; gap: 6px; }
.vpick .fb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 12.5px; background: var(--card-hi); cursor: pointer; }
.vpick .fb .small { font-size: 10px; }
.vpick .fb.on { border-color: var(--goldbtn); background: var(--goldsoft); font-weight: 700; }
.vcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.vcol { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--card-hi); min-width: 0; }
.vcol .vh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
.vcol .vh .k { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--dimmer); font-weight: 400; }
.vcol .vcard { padding: 8px 9px; margin-bottom: 6px; }
.vback { display: none; }
@media (max-width: 760px) {
  .vb { grid-template-columns: 1fr; }
  .vb.opened .vb-list { display: none; }
  .vb:not(.opened):not(.vcols-mode) .vb-open { display: none; }
  .vback { display: inline-flex; margin-bottom: 8px; }
  .vb-list { max-height: none; }
  .vb .room.village-wide .vmsgs { max-height: 48vh; }
  .vcols { grid-template-columns: 1fr 1fr; }
}

/* ── the console's boards, one at a time, on paper (Kevin, 19 Sep 2026: "weave the best of the best in… blend into the command center style") ── */
.boards { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.boards button { font: inherit; font-size: 13px; font-weight: 600; color: var(--dim); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.boards button:hover { border-color: var(--goldbtn); }
.boards button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.boards button.whole { color: var(--dimmer); }
.embed.paper { background: var(--bg); border-color: var(--line); }
.ledger.revenue .embed iframe { height: 720px; min-height: 0; }

/* ── BOARDS ON PAPER · the kit (js/boards.js) — the mockup's grammar, live (Kevin, 19 Sep: "clean, classy… only the best and highest grade stuff") ── */
.boards button.native { border-color: var(--goldbtn); }
.pb { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(28,26,21,.06); overflow: hidden; }
.pb-lbl { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card-hi); }
.pb-t { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.pb-s { font-size: 13px; color: var(--dim); margin-top: 2px; max-width: 72ch; }
.pb-as { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--dimmer); text-transform: uppercase; text-align: right; line-height: 1.7; white-space: nowrap; }
.pb-body { padding: 16px 18px; }
.pb-foot { padding: 0 18px 14px; }
.pb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pb-tile { background: var(--card-hi); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.pb-tile .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dimmer); text-transform: uppercase; }
.pb-tile .v { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pb-tile .v.clock { color: var(--clock); } .pb-tile .v.verify { color: var(--verify); } .pb-tile .v.dimmer { color: var(--dimmer); }
.pb-tile .u { font-size: 11px; color: var(--dimmer); margin-top: 2px; }
.pb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.pb-sub { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; min-width: 0; }
.pb-grid2 .pb-sub { margin-top: 0; }
.pb-sub h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.pb-sub .note { font-size: 11px; color: var(--dimmer); margin-top: 6px; }
.pb-table { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 8px; }
.pb-table th { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dimmer); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 500; }
.pb-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.pb-table td.n, .pb-table th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb .tw { overflow-x: auto; }
.pb-bar { height: 8px; border-radius: 4px; background: var(--goldsoft); position: relative; overflow: hidden; min-width: 60px; }
.pb-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pb-svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.pb-svg text { font-family: var(--mono); font-size: 10px; fill: var(--dimmer); }
.pb-svg text.val { fill: var(--ink); font-size: 10.5px; font-weight: 500; }
.pb-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--dim); margin-top: 8px; }
.pb-legend span { display: inline-flex; align-items: center; gap: 6px; } .pb-legend i { display: inline-block; width: 16px; height: 0; }
.pb-withheld { font-size: 13px; color: var(--dim); border-left: 3px solid var(--goldbtn); padding: 6px 12px; }
@media (max-width: 640px) { .pb-lbl { grid-template-columns: 1fr; } .pb-as { text-align: left; } }
.pb-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pb-grid3 .pb-sub { margin-top: 0; }
.pb-hbars { display: grid; gap: 6px; margin-top: 10px; }
.pb-hbars .hb { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.pb-hbars .hl { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-hbars .ht { height: 10px; border-radius: 5px; background: var(--card-hi); border: 1px solid var(--line-soft); overflow: hidden; display: flex; }
.pb-hbars .ht i { display: block; height: 100%; border-radius: 5px; }
.pb-hbars .ht.stack i { border-radius: 0; }
.pb-hbars .hv { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 48px; text-align: right; }
.pb-hbars .hv small { color: var(--dimmer); font-size: 10px; }
.pb-hbars .hv.clock { color: var(--clock); } .pb-hbars .hv.verify { color: var(--verify); }
.pb-cell { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.pb-table .pb-hbars { margin-top: 0; } .pb-table .pb-hbars .hb { grid-template-columns: 1fr auto; }
.pb-live { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--verify); }

/* THE IPAD (19 Sep 2026, late) — the Phone room: the sales app inside a device on the paper. */
.room.phone { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone-bar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.phone-bar .chip { cursor: pointer; text-decoration: none; }
.device { --dw: 834px; --dh: 1194px; --fit: min(1, (100vh - 190px) / var(--dh)); width: calc(var(--dw) * var(--fit)); height: calc(var(--dh) * var(--fit)); }
.device .bezel { width: 100%; height: 100%; padding: 14px; border-radius: 34px; background: #14120e; box-shadow: 0 24px 60px rgba(28,26,21,.28), inset 0 0 0 2px #2a2620; }
.device.phone .bezel { padding: 10px; border-radius: 44px; }
.device.phone { --fit: min(1, (100vh - 190px) / var(--dh)); }
.device iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 22px; background: #0c1019; }
.device.phone iframe { border-radius: 36px; }
.device.full { width: 100%; height: calc(100vh - 190px); }
.device.full .bezel { padding: 0; border-radius: 16px; box-shadow: 0 10px 40px rgba(28,26,21,.08); }
.device.full iframe { border-radius: 16px; }
.room.phone .note { max-width: 640px; text-align: center; }

/* the Schedule board (Production room, 20 Sep): crews down, fourteen days across */
.sched th.today { outline: 2px solid var(--goldbtn); }
.sched td { vertical-align: top; min-width: 64px; }
.sched .pill { display: block; white-space: nowrap; }
.sched .pill.good { color: var(--verify); }
.sched .pill.dim { color: var(--dim); }
.sel { font: inherit; padding: 4px 6px; }
