@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("fonts/archivo-narrow.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* The theme is an executive's desk, circa the dictation machine that sits on it:
   a green blotter, cream index cards, manila folder tabs, pink message slips,
   rubber stamps, and a brass nameplate. Titles are the typewriter face, anything
   a printer would have set (labels, tabs, key caps) is the form face, and the
   copy under a title is a book serif, which fits more words on a line than
   the typewriter can.
   This replaces the usual terminal signatures (// headers, $ prompts, mono) on
   purpose: the recorder is a physical object and the page around it has to be
   the room it lives in. Signal Orange and the hard edge stay. */
:root {
  --orange: #E85D00;
  --orange-muted: #D4722A;
  --orange-ink: #A84300;
  --felt: #2E4A3D;
  --felt-deep: #233A2F;
  --felt-ink: #D5DFCC;
  --walnut: #38261A;
  --brass: #C6A75E;
  --paper: #F4EEDD;
  --sheet: #FBF8EE;
  --surface: #EAE2CC;
  --manila: #E5CC94;
  --manila-edge: #BFA466;
  --pink: #F4D0C7;
  --legal: #F6ECB0;
  --line: #C9BFA6;
  --ink: #23201B;
  --text: #3B362D;
  --muted: #6A6250;
  --green: #2F6B45;
  --red: #B3261E;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --copy: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --form: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* Paper sits on the desk with a hard shadow, the way a photocopy shows an edge. */
  --lift: 1px 1px 0 rgba(0, 0, 0, .28), 3px 3px 0 rgba(0, 0, 0, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--felt); color: var(--text); font: 400 16px/1.45 var(--copy); }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; border-radius: 0; }

/* Buttons are keys off the same machine as the deck: a cap with a thick front edge that goes down when pressed. */
button { cursor: pointer; background: var(--sheet); color: var(--ink); border: 1px solid var(--ink); border-bottom-width: 3px; padding: 7px 12px 5px; font: 700 13px/1.2 var(--form); letter-spacing: .08em; text-transform: uppercase; touch-action: manipulation; }
button:hover { background: #fff; }
button:active:not(:disabled) { border-bottom-width: 1px; margin-top: 2px; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--orange); border-color: #6E2C00; color: #fff; }
button.primary:hover { background: var(--orange-muted); }
button.quiet { background: none; border-color: transparent; color: var(--muted); padding: 4px 6px; }
button.quiet:hover { background: none; color: var(--ink); border-color: var(--line); }
input, textarea, select { background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-bottom: 2px solid var(--ink); padding: 9px 10px 7px; width: 100%; }
input::placeholder, textarea::placeholder { color: #8A826E; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
textarea { resize: vertical; min-height: 64px; }
[hidden] { display: none !important; }

.muted { color: var(--muted); }

/* A section heading is a folder tab: manila, one corner cut, sitting on the folder's edge. */
.heading { display: flex; align-items: flex-end; border-bottom: 2px solid var(--manila-edge); }
.heading .tab { background: var(--manila); color: var(--ink); font: 700 13px/1 var(--form); letter-spacing: .1em; text-transform: uppercase; padding: 8px 22px 6px 10px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); display: flex; align-items: baseline; gap: 8px; }
.heading .count { font: 400 13px/1 var(--type); letter-spacing: 0; color: var(--text); }
@keyframes blink { 50% { opacity: 0; } }

/* The top bar is the walnut edge of the desk, and the wordmark is the nameplate on it. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; background: var(--walnut); border-bottom: 2px solid #1C120B; }
.wordmark { font: 700 13px/1 var(--form); letter-spacing: .2em; text-transform: uppercase; color: #2A1D0C; background: var(--brass); border: 1px solid #7F6830; box-shadow: inset 0 0 0 2px #D9BF7E; padding: 8px 12px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wordmark .muted { color: #4F3F1C; font-weight: 500; letter-spacing: .12em; }
.who { font: 500 13px/1 var(--form); letter-spacing: .1em; text-transform: uppercase; color: #D9CDB0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar button.quiet { color: #D9CDB0; }
.topbar button.quiet:hover { color: #fff; border-color: #7A6A55; }
.live { width: 8px; height: 8px; background: #7A6A55; display: inline-block; }
.live.on { background: #6FCF7F; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 14px; max-width: min(92vw, 520px); z-index: 50; box-shadow: var(--lift); }

/* ---- login: a sheet of letterhead on the blotter */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: min(100%, 380px); background: var(--sheet); box-shadow: var(--lift); padding: 30px 26px 26px; display: grid; gap: 14px; }
.login-box h1 { font: 700 26px/1 var(--form); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-align: center; padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.login-box .form-no { font: 600 11px/1 var(--form); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: -4px; }
.login-box form { display: grid; gap: 10px; }
.login-box form[hidden] { display: none; }
.login-box .code { font: 700 30px/1.1 var(--type); letter-spacing: .32em; text-align: center; padding-left: calc(10px + .32em); }
.login-box button.quiet { font: 400 14px/1.2 var(--copy); letter-spacing: 0; text-transform: none; text-decoration: underline; background: none; border-color: transparent; }
.login-box .note { font-size: 14px; color: var(--muted); word-break: break-word; }
.login-box a { color: var(--orange-ink); }

/* ---- exec */
body.exec { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.exec .toast { bottom: auto; top: 58px; }
.exec-shell { flex: 1; display: flex; flex-direction: column; }
.exec-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; gap: 22px; align-content: start; }

/* What came of a take: a typed slip, newest on top. */
.results { display: grid; gap: 10px; }
.confirm { background: var(--sheet); box-shadow: var(--lift); padding: 14px; display: grid; gap: 12px; }
.confirm ~ .confirm { background: var(--surface); }
.confirm ~ .confirm .message { font-size: 15px; font-weight: 400; }
.confirm ~ .confirm .said { display: none; }
.confirm .said { font-size: 14px; line-height: 1.5; color: var(--muted); }
.confirm .said mark { background: #F5E36B; color: var(--ink); padding: 0 2px; }
.confirm .message { font-size: 17px; color: var(--ink); font-weight: 700; }
.confirm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.confirm li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--muted); font-size: 15px; }
.confirm li.undone .what { text-decoration: line-through; color: var(--muted); }
.confirm li .tag { font: 700 11px/1 var(--form); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.confirm li button { font-size: 12px; padding: 5px 10px 3px; white-space: nowrap; }

.columns { display: grid; gap: 22px; }
.column { display: grid; gap: 10px; align-content: start; min-width: 0; }
.column .empty { font-size: 14px; color: var(--felt-ink); padding: 4px 0; }
.column[data-col="needs_you"] { order: -1; }
.column[data-col="needs_you"] .heading { border-color: var(--orange); }
.column[data-col="needs_you"] .heading .tab { background: var(--orange); }
@media (min-width: 620px) {
  .columns { grid-template-columns: repeat(2, 1fr); gap: 20px 18px; }
}
@media (min-width: 1500px) {
  .columns { grid-template-columns: repeat(4, 1fr); }
}

/* A request is an index card: typed title over the red rule, the status typed under it. */
.xcard { background: var(--paper); box-shadow: var(--lift); padding: 12px 12px 10px; display: grid; gap: 7px; }
.xcard h3 { font: 700 16px/1.3 var(--type); color: var(--ink); overflow-wrap: anywhere; padding-bottom: 6px; border-bottom: 1px solid #D4877C; }
.xcard .status { font-size: 14px; line-height: 1.4; color: var(--muted); }
/* A card that needs the exec is the pink message slip the assistant left on the desk. */
.xcard.needs { background: var(--pink); }
.xcard.needs::before { content: "While you were out"; font: 700 13px/1 var(--form); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-align: center; padding-bottom: 7px; border-bottom: 3px double var(--ink); }
.xcard.needs h3 { border-bottom-color: var(--ink); }
.xcard .question { font-size: 16px; color: var(--ink); }
/* The choices are the slip's tick boxes, each one a key wide enough for a thumb. Tapping one answers. */
.xcard .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 7px; margin-top: 2px; }
.xcard .choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px 6px; background: var(--sheet); text-align: left; font: 600 16px/1.25 var(--copy); letter-spacing: 0; text-transform: none; }
.xcard .choice .box { flex: none; width: 16px; height: 16px; border: 2px solid var(--ink); background: #fff; position: relative; }
.xcard .choice.picked { opacity: 1; background: #fff; }
.xcard .choice.picked .box::before, .xcard .choice.picked .box::after { content: ""; position: absolute; left: -4px; right: -4px; top: 4px; height: 3px; background: var(--red); transform: rotate(45deg); }
.xcard .choice.picked .box::after { transform: rotate(-45deg); }
.xcard .sending { font: 700 12px/1.3 var(--form); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
/* Saying it instead: a record key cut from the deck, sitting on the slip. */
.xcard .say { display: flex; gap: 7px; }
.xcard .slip-rec { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; background: #2B2A27; border-color: #0B0B0A; color: #EFE9DA; }
.xcard .slip-rec:hover { background: #34322E; }
.xcard .slip-rec .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; }
.xcard .slip-rec.on { background: var(--orange); border-color: #7A3100; color: #fff; }
.xcard .slip-rec.on .dot { border-radius: 0; background: #fff; animation: blink 1s steps(1) infinite; }
.xcard .slip-time { font: 700 14px/1 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.xcard .slip-type { min-width: 48px; min-height: 44px; font: 700 15px/1 var(--type); letter-spacing: 0; text-transform: none; background: none; border-color: var(--ink); }
.xcard .mine { font-size: 14px; color: var(--muted); border-top: 1px dotted var(--muted); padding-top: 6px; }
.xcard .mine::before { content: "You wrote "; font: 700 11px/1 var(--form); letter-spacing: .1em; text-transform: uppercase; }
.xcard form { display: flex; gap: 6px; margin-top: 4px; align-items: stretch; }
.xcard form input { flex: 1; min-width: 0; }
.xcard .add { justify-self: start; font-size: 12px; margin-left: -6px; }

/* ---- the deck: a micro-cassette dictation recorder
   Dark plastic, a cream cassette label, a grey-green LCD, and chunky piano keys.
   Silk-screened lettering is the form face; only the LCD keeps the mono digits.
   Reels, the record dot, and the speaker holes are round because the real
   things are; everything else keeps the hard edge. */
.deck {
  --body: #1F1E1C; --panel: #2B2A27; --edge: #0B0B0A; --trim: #4A4740; --silk: #A8A294; --paper: #EFE9DA; --lcd: #B4C0A0; --lcd-ink: #1B2412; --tape: 0;
  position: sticky; bottom: 0; z-index: 5; background: var(--body); color: var(--paper); border-top: 2px solid var(--edge);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 8px; font-family: var(--form);
}
.deck button:focus-visible, .deck input:focus { outline-color: var(--paper); }

.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12px/1 var(--form); letter-spacing: .14em; color: var(--silk); }
.deck .silk b { color: var(--paper); font-weight: 800; }
.deck-state { display: flex; align-items: center; gap: 6px; color: var(--paper); font-weight: 700; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led { width: 8px; height: 8px; flex: none; background: var(--trim); }
.deck[data-state="rec"] .led { background: #FF3B30; animation: blink 1s steps(1) infinite; }
.deck[data-state="busy"] .led { background: var(--orange); }

.transport { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: stretch; }
.deck[data-mode="video"] .transport { grid-template-columns: minmax(0, 1fr) minmax(0, 150px) minmax(84px, 96px); }

.viewfinder { display: none; position: relative; background: #000; border: 1px solid var(--trim); overflow: hidden; min-height: 75px; }
.deck[data-mode="video"] .viewfinder { display: block; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.viewfinder.on video { display: block; }
.viewfinder.mirror video { transform: scaleX(-1); }
.viewfinder .standby { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1.3 var(--form); letter-spacing: .12em; color: var(--silk); text-align: center; }
.viewfinder.on .standby { display: none; }
.viewfinder .rec-tag { display: none; position: absolute; top: 4px; left: 5px; font: 700 11px/1 var(--form); letter-spacing: .1em; color: #fff; background: #D92B21; padding: 2px 4px; }
.deck[data-state="rec"] .viewfinder .rec-tag { display: block; animation: blink 1s steps(1) infinite; }

/* The cassette is one drawing, so it keeps the proportions of the real thing at any size. */
.cassette { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; align-self: center; min-width: 0; }
.cassette .shell { fill: #33312D; stroke: var(--edge); }
.cassette .paper { fill: var(--paper); }
.cassette .label { font: 700 11px/1 var(--type); letter-spacing: .02em; fill: #2C2C2C; }
.cassette .side { font: 600 8.5px/1 var(--form); letter-spacing: .12em; fill: #6B6B6B; text-anchor: end; }
.cassette .scale { stroke: #6B6B6B; stroke-width: .8; }
.cassette .rule { stroke: var(--orange); stroke-width: 1.5; }
.cassette .well { fill: #141312; }
.cassette .tape { stroke: #4B3527; stroke-width: 1.5; }
.reel .pack { fill: #4B3527; transform-box: fill-box; transform-origin: center; transition: transform .25s linear; }
.reel.supply .pack { transform: scale(calc(1 - .5 * var(--tape))); }
.reel.takeup .pack { transform: scale(calc(.5 + .5 * var(--tape))); }
.reel .rim { fill: var(--paper); }
.reel path { stroke: #141312; stroke-width: 2.2; }
.reel .hub { transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(-360deg); } }
.deck[data-state="rec"] .reel .hub { animation: spin 2.2s linear infinite; }
.deck[data-state="busy"] .reel .hub { animation: spin .7s linear infinite reverse; }

.readout { display: grid; gap: 6px; align-content: space-between; }
.lcd { background: var(--lcd); color: var(--lcd-ink); border: 1px solid var(--edge); padding: 5px 6px; display: grid; gap: 3px; flex: 1; align-content: center; }
.lcd-tag { font: 700 9px/1 var(--mono); letter-spacing: .12em; }
.deck[data-state="rec"] .lcd-tag { animation: blink 1s steps(1) infinite; }
.lcd-time { font: 700 24px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vu { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; height: 8px; }
.vu i { background: var(--trim); }
.vu i.on { background: #6FCF7F; }
.vu i.on:nth-child(n+11) { background: #F2C230; }
.vu i.on:nth-child(n+14) { background: #FF3B30; }

.keys { display: flex; gap: 6px; align-items: stretch; }
.mode { display: flex; }
.key {
  height: 50px; min-width: 46px; padding: 0 6px; background: var(--panel); color: var(--paper); border: 1px solid var(--edge); border-bottom-width: 5px;
  font: 700 11px/1 var(--form); letter-spacing: .1em; text-transform: none; display: grid; place-items: center; align-content: center; gap: 6px; touch-action: manipulation;
}
.key:hover { border-color: var(--edge); background: #34322E; }
.deck .key:active:not(:disabled), .key[aria-pressed="true"] { border-bottom-width: 1px; margin-top: 4px; height: 46px; }
.key:disabled { opacity: .4; }
.mode { flex: 1; }
.mode .key { flex: 1; min-width: 44px; }
.mode .key + .key { border-left: 0; }
/* A record key carries its own lamp: dark until its take is rolling, then it flashes. */
.lamp { width: 12px; height: 12px; display: block; border-radius: 50%; background: #5A1F1B; border: 1px solid var(--edge); }
.key.rec[aria-pressed="true"] { background: #34322E; }
@keyframes lamp { 50% { background: #5A1F1B; box-shadow: none; } }
.key.rec[aria-pressed="true"] .lamp { background: #FF3B30; box-shadow: 0 0 6px #FF3B30; animation: lamp 1s steps(1) infinite; }
.glyph { width: 14px; height: 14px; display: block; }
.glyph.ff { background: currentColor; clip-path: polygon(0 0, 50% 50%, 50% 0, 100% 50%, 50% 100%, 50% 50%, 0 100%); }
.glyph.flip { border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; }
.glyph.abc { width: auto; height: 14px; font: 700 15px/14px var(--type); letter-spacing: 0; }
.video-only { display: none; }
.deck[data-mode="video"] .video-only { display: grid; }

.deck .typed { display: flex; gap: 6px; }
.deck .typed input { flex: 1; min-width: 0; background: var(--paper); color: #2C2C2C; border-color: var(--edge); font: 400 16px/1.2 var(--copy); }
.deck .typed .key { height: auto; border-bottom-width: 1px; padding: 0 12px; }

.takes { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.take { flex: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--trim); padding: 5px 7px; font: 600 12px/1 var(--form); letter-spacing: .08em; color: var(--silk); white-space: nowrap; }
.take b { color: var(--paper); font-weight: 800; }
.take .kind { font-weight: 500; }
.take.working, .take.sending, .take.recording { border-color: var(--orange); color: var(--paper); }
.take.done .status { color: #6FCF7F; }
.take.held, .take.late { border-color: #FF3B30; }
.take.held .status, .take.late .status { color: #FF8A82; }
.take .dot { width: 6px; height: 6px; background: var(--orange); animation: blink 1s steps(1) infinite; }
.take .retry { font: 700 11px/1 var(--form); padding: 3px 6px; border: 1px solid #FF3B30; background: none; color: #fff; margin: 0; }
.take .retry.drop { border-color: var(--trim); color: var(--silk); }

/* Speaker holes. A dot pattern is the one honest way to draw a grille. */
.grille { display: none; height: 84px; background: radial-gradient(circle, #0B0B0A 1.6px, transparent 2px) 0 0 / 9px 9px; border: 1px solid var(--edge); }

/* Wide screens, and phones on their side: the deck stands beside the board instead of under it. */
@media (min-width: 900px), (orientation: landscape) and (max-height: 520px) and (min-width: 620px) {
  body.exec { height: 100vh; height: 100dvh; overflow: hidden; }
  .exec-shell { flex-direction: row-reverse; align-items: stretch; min-height: 0; }
  .exec-main { max-width: none; margin: 0; min-width: 0; padding: 20px; overflow-y: auto; }
  .deck { position: static; width: 360px; flex: none; overflow-y: auto; border-top: 0; border-right: 2px solid var(--edge); padding: 16px; gap: 12px; align-content: start; }
  .takes { flex-direction: column-reverse; overflow: visible; }
  .take .status, .take .retry { margin-left: auto; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 620px) {
  .deck[data-mode="video"] .transport { grid-template-columns: 88px minmax(0, 1fr) 88px; }
  .lcd-time { font-size: 21px; }
}
@media (min-width: 900px) and (min-height: 521px) {
  .transport, .deck[data-mode="video"] .transport { grid-template-columns: 1fr 96px; }
  .deck[data-mode="video"] .viewfinder { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .grille { display: block; margin-top: 8px; }
  .key { height: 58px; }
  .deck .key:active:not(:disabled), .key[aria-pressed="true"] { height: 54px; }
}
@media (max-width: 359px) {
  .deck .silk { display: none; }
  .transport, .deck[data-mode="video"] .transport { grid-template-columns: 150px 1fr; }
  .deck[data-mode="video"] .viewfinder { grid-column: 1 / -1; height: 96px; }
  .key { min-width: 40px; padding: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck .reel .hub, .deck .led, .deck .lcd-tag, .deck .rec-tag, .deck .lamp, .take .dot { animation: none !important; }
}

/* ---- EA board: a row of manila folders, one per state, with the cards filed inside */
body.ea { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.board { flex: 1; display: flex; gap: 10px; padding: 14px 12px 12px; overflow-x: auto; align-items: stretch; }
.lane { flex: 1 0 215px; display: flex; flex-direction: column; min-height: 0; }
.lane > .heading { border-bottom: 0; }
.lane .stack { flex: 1; overflow-y: auto; padding: 10px 8px; display: grid; gap: 9px; align-content: start; background: var(--manila); border-top: 2px solid var(--manila-edge); box-shadow: var(--lift); }
.lane.over .stack { outline: 3px solid var(--orange); outline-offset: -3px; }
/* Intake is the in-tray: what the router wasn't sure of, waiting on a yes or no. */
.lane.intake { flex: 0 0 290px; position: sticky; left: 0; z-index: 2; }
.lane.intake > .heading .tab { background: var(--orange); }
.lane.intake .stack { border-top-color: var(--orange); }
.lane .none { font-size: 13px; line-height: 1.45; color: var(--text); }

.ecard { background: var(--paper); box-shadow: 1px 1px 0 rgba(0, 0, 0, .3); padding: 9px 10px; display: grid; gap: 6px; cursor: grab; }
.ecard:hover { background: var(--sheet); box-shadow: var(--lift); }
.ecard.dragging { opacity: .4; }
.ecard h3 { font: 700 14px/1.3 var(--type); color: var(--ink); padding-bottom: 5px; border-bottom: 1px solid #D4877C; }
.ecard .status { font-size: 13px; line-height: 1.35; color: var(--muted); }
/* Chips are rubber stamps. The loud ones went on a little crooked. */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 700 11px/1 var(--form); padding: 3px 5px 2px; border: 1.5px solid currentColor; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.chip.hot { color: var(--orange-ink); transform: rotate(-2deg); }
.chip.warn { color: var(--red); transform: rotate(1.5deg); }

.item { background: var(--pink); box-shadow: 1px 1px 0 rgba(0, 0, 0, .3); padding: 10px; display: grid; gap: 7px; }
.item .kind { font: 700 12px/1 var(--form); color: var(--ink); letter-spacing: .12em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 3px double var(--ink); }
.item blockquote { margin: 0; font-size: 14px; color: var(--ink); }
.item .why, .item .full { font-size: 13px; line-height: 1.4; color: var(--text); }
.item .choices { display: grid; gap: 5px; }
.item .choices button { text-align: left; font: 400 13px/1.3 var(--copy); letter-spacing: 0; text-transform: none; }
.item audio, .drawer audio { width: 100%; height: 32px; }
.item video, .drawer video { width: 100%; max-height: 240px; background: #000; display: block; }

/* The drawer is the card's whole file, pulled out and laid open. */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 460px); background: var(--sheet); border-left: 2px solid var(--ink); box-shadow: -6px 0 0 rgba(0, 0, 0, .2); z-index: 10; display: flex; flex-direction: column; }
.drawer header { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 14px; border-bottom: 3px double var(--ink); }
.drawer header input { font: 700 18px/1.3 var(--type); color: var(--ink); background: none; border-color: transparent; padding: 4px 6px; margin: -4px -6px; }
.drawer header input:hover { border-color: var(--line); }
.drawer .body { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 20px; align-content: start; }
.drawer section { display: grid; gap: 9px; }
.drawer label, dialog label { font: 700 11px/1 var(--form); color: var(--muted); display: grid; gap: 5px; letter-spacing: .12em; text-transform: uppercase; }
.drawer label input, .drawer label select, dialog label input, dialog label select, dialog label textarea { font: 400 15px/1.3 var(--copy); letter-spacing: 0; text-transform: none; color: var(--ink); }
.drawer .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
/* What the exec actually said goes on the yellow legal pad. */
.drawer .raw { font-size: 14px; line-height: 1.5; background: var(--legal); color: var(--ink); padding: 10px; white-space: pre-wrap; }
.note { border: 1px solid var(--line); background: var(--paper); padding: 8px 10px; display: grid; gap: 5px; font-size: 14px; white-space: pre-wrap; }
.note .by { font: 700 11px/1 var(--form); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.note.agent_result { border-color: var(--green); }
.note.agent_result .by { color: var(--green); }
.note.cancel_request { border-color: var(--red); }
.note.cancel_request .by { color: var(--red); }
.note.exec_answer { background: var(--pink); border-color: var(--ink); }
.note.exec_answer .by { color: var(--ink); }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hist b { color: var(--text); font-weight: 700; }

dialog { border: 2px solid var(--ink); background: var(--sheet); color: var(--text); padding: 18px; width: min(92vw, 440px); box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(20, 14, 8, .6); }
dialog form { display: grid; gap: 12px; }
dialog .buttons { display: flex; justify-content: flex-end; align-items: flex-end; gap: 8px; }
