/* Novoa run of show workspace. Warm, calm, easy to scan under pressure. */
:root {
  --bg: #F4F4F3; --panel: #FFFFFF; --ink: #1A1A1A; --ink2: #383838; --muted: #686868; --faint: #9A9A9A;
  --line: #E2E2E0; --line2: #EBEBE9; --soft: #F9F9F8; --sec: #EFEFED;
  --bar: #0C0B0A; --side: #EDEDEB; --side-ink: #444444; --side-on: #1A1A1A;
  --accent: #B38A45; --accent-ink: #8C6A2F; --accent-soft: #F5ECDA; --accent-line: #E3CFA5; --on-accent: #FFFFFF;
  --ok: #4E7358; --ok-soft: #EAF0EA; --warn: #2E4461; --bad: #8E2F2A; --bad-soft: #F5E7E4;
  /* meaning colours: brass is the brand, these say what something is */
  --q: #2E4461; --q-ink: #2E4461; --q-soft: #FFFFFF; --q-line: #D9D9D6;          /* open question: needs attention */
  --chg: #2F6A68; --chg-soft: #E7F0EF;                                           /* changed in the latest version */
  --live: #56795E; --live-soft: #E9EFE8;                                         /* live now */
  --sect: #7A2320;                                                               /* section headings, like her red bands */
  --d-audio: #3C5F78; --d-audio-bg: #E6ECF0; --d-audio-dot: #6F8FA6;             /* her showflow colours, softened */
  --d-lx: #4E5C33; --d-lx-bg: #ECEEE3; --d-lx-dot: #8A9460;
  --d-scr: #75591C; --d-scr-bg: #F4EDDA; --d-scr-dot: #BF9A45;
  --d-fx: #4F4872; --d-fx-bg: #ECEBF2; --d-fx-dot: #7C74A6;
  --people: #34506F;
  --shadow: 0 1px 2px rgba(26,23,20,.04), 0 4px 14px rgba(26,23,20,.05);
  --shadow-lg: 0 2px 6px rgba(26,23,20,.06), 0 18px 40px rgba(26,23,20,.14);
  --serif: "Newsreader", Georgia, serif; --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif; --mono: var(--sans);   /* one family everywhere; digits line up via tabular-nums */
  --r-btn: 8px; --r-panel: 12px; --r-tag: 999px;
  color-scheme: light;
}
.dark {
  --bg: #0F0E0D; --panel: #1A1816; --ink: #F3EEE6; --ink2: #DDD6CB; --muted: #A59E94; --faint: #7D766D;
  --line: #2E2A26; --line2: #26231F; --soft: #211E1B; --sec: #24211E;
  --accent: #C9A96A; --accent-ink: #D8BD86; --accent-soft: #2E2618; --accent-line: #5A4829; --on-accent: #1A1714;
  --ok-soft: #16261A; --bad-soft: #341715;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 30px; } h2 { font-size: 19px; } h3 { font-size: 15px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons, inputs, tags */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 1px rgba(26,23,20,.04); transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
.btn .ic { color: var(--muted); }
.btn:hover { border-color: #D6CCBB; color: var(--ink); background: #FFFDF9; }
.btn:hover .ic { color: var(--ink); }
.btn.dark-btn { background: var(--ink); border-color: var(--ink); color: #FAF7F1; }
.btn.dark-btn .ic { color: var(--accent); }
.btn.dark-btn:hover { background: #2B2622; border-color: #2B2622; color: #FFFFFF; }
.btn.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.go:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn.small .ic { width: 14px; height: 14px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--sec); }
.btn.danger:hover { color: var(--bad); border-color: #E8C2BA; background: var(--bad-soft); }
.btn.danger:hover .ic { color: var(--bad); }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
.btn.block { width: 100%; justify-content: center; height: 42px; }
.btn.link { border: none; background: none; box-shadow: none; padding: 0 4px; color: var(--accent-ink); height: auto; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.pill { border-radius: 999px; background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); box-shadow: none; }
.btn.pill:hover { background: #F0E3C9; color: var(--accent-ink); }
.btn.pill .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(179,138,69,.18); }
.btn.chip { height: 32px; padding: 0 10px 0 11px; border-radius: 999px; font-size: 13px; color: var(--ink2); }
.btn.chip .ic:last-child { width: 14px; height: 14px; margin-left: -2px; }
.btn.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.btn.chip.on .ic { color: var(--accent-ink); }
/* segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--sec); border-radius: 10px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; border: none; background: transparent; cursor: pointer; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background .12s, color .12s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(26,23,20,.08), 0 0 0 1px rgba(26,23,20,.03); }
.seg.icons button .ic { width: 15px; height: 15px; }
.seg.icons button[aria-pressed="true"] .ic { color: var(--accent); }
input.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-btn); padding: 9px 12px; font-size: 14px; transition: border-color .12s, box-shadow .12s; }
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(179,138,69,.16); }
textarea.in { resize: vertical; min-height: 40px; }
label.fl { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 5px; font-weight: 500; }
.tag { display: inline-block; font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: var(--r-tag); background: var(--soft); color: var(--muted); border: 1px solid var(--line2); white-space: nowrap; font-weight: 500; }
.tag.open, .tag.changed { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.tag.ok, .tag.added { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.removed { background: var(--sec); color: var(--muted); }
.tag.kept { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.now { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.building { background: #8A8176; } .dot.waiting { background: var(--accent); } .dot.locked { background: var(--ok); } .dot.live { background: var(--accent); animation: pulse 1.4s infinite; } .dot.done { background: var(--faint); }
@keyframes pulse { 50% { opacity: .35; } }

/* popover menus */
.pop { position: relative; display: inline-flex; }
.pop-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 230px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 1px; animation: popin .12s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
.pop-menu .mh { font-size: 11.5px; font-weight: 500; color: var(--faint); padding: 6px 10px 4px; letter-spacing: .02em; }
.pop-menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; height: 36px; padding: 0 10px; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.pop-menu .mi .ic { color: var(--muted); }
.pop-menu .mi:hover { background: var(--soft); }
.pop-menu .mi.on { color: var(--accent-ink); font-weight: 500; justify-content: space-between; }
.pop-menu .mi.on .ic { color: var(--accent); }
.pop-menu .msep { height: 1px; background: var(--line2); margin: 5px 4px; }

/* shell */
.shell { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: 60px 1fr; height: 100vh; }
.top { grid-column: 1 / -1; background: var(--bar); color: #F3EEE6; display: flex; align-items: center; gap: 16px; padding: 0 22px; min-width: 0; border-bottom: 1px solid rgba(201,169,106,.22); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; font-weight: 500; width: 214px; flex: none; color: #F3EEE6; }
.brand .logo { height: 36px; width: auto; display: block; flex: none; background: #fff; padding: 3px 7px; border-radius: 3px; box-sizing: content-box; }
.crumb { color: #A89F92; font-size: 13.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved { color: #8F877B; font-size: 12.5px; white-space: nowrap; }
.saved.bad { color: #E9A58A; }
.role { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(201,169,106,.35); color: #C9A96A; letter-spacing: .02em; }
.me { display: flex; align-items: center; gap: 9px; font-size: 13.5px; white-space: nowrap; color: #E4DDD2; }
.av { width: 28px; height: 28px; border-radius: 50%; background: #2A2521; color: #F3EEE6; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; border: 1px solid rgba(201,169,106,.35); }
.menu-btn { display: none; background: none; border: 1px solid #3A3631; color: #F3EEE6; border-radius: 8px; height: 34px; width: 38px; padding: 0; cursor: pointer; place-items: center; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 10px 12px; overflow-y: auto; border-right: 1px solid var(--line); }
.side .show-name { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 10px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--side-ink); font-size: 13.5px; border-radius: 8px; position: relative; margin-bottom: 1px; }
.side a .ic { color: var(--faint); }
.side a .nl { flex: 1; min-width: 0; }
.side a:hover { color: var(--side-on); background: rgba(26,23,20,.045); }
.side a.on { color: var(--side-on); background: var(--panel); font-weight: 500; box-shadow: 0 1px 2px rgba(26,23,20,.06); }
.side a.on .ic { color: var(--accent); }
.side a.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side .grow { flex: 1; }
.side .note { margin: 12px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; font-size: 12.5px; color: var(--muted); }
.side .note b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.side .foot { padding: 4px 10px; font-size: 12.5px; }
.side .foot button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.side .foot button:hover { color: var(--ink); }
.main { overflow: auto; min-width: 0; position: relative; }
.page { padding: 32px 36px 60px; max-width: 1180px; }
.page.wide { max-width: none; padding: 0; height: 100%; display: flex; flex-direction: column; }
.phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.phead p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--panel); border-radius: var(--r-panel); box-shadow: var(--shadow); border: 1px solid var(--line2); overflow: hidden; }
.panel > .ph { padding: 13px 18px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel > .ph h2 { font-size: 16px; }
.panel + .panel { margin-top: 16px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* shows home */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r-panel); box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--ink); }
.card:hover { border-color: #D8D1C6; color: var(--ink); }
.card .ct { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.card .ct span:first-child { display: flex; align-items: center; gap: 8px; }
.card .cb { padding: 14px 16px; flex: 1; }
.card .cb h2 { font-size: 18px; margin-bottom: 4px; }
.card .cb p { margin: 0; color: var(--muted); font-size: 13px; }
.card .cb .where { margin-top: 10px; color: var(--ink2); }
.card .cf { display: flex; justify-content: space-between; padding: 10px 16px; background: var(--soft); border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.card .cf .q { color: var(--accent-ink); display: inline; padding: 0; border: 0; font-weight: 500; }
.card .cb .where .mono { font-family: var(--sans); }
.card:hover { box-shadow: var(--shadow-lg); }
.card { transition: box-shadow .15s, border-color .15s; }

/* run of show header */
.rhead { padding: 22px 28px 0; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.rhead .t1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rhead .ttl { min-width: 0; }
.rhead h1 { font-size: 28px; }
.rhead .meta { color: var(--muted); font-size: 13.5px; margin-top: 5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rhead .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.rhead .meta .v { font-family: var(--mono); font-size: 11.5px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); padding: 1px 7px; border-radius: 999px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.toolbar .tb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; }
.toolbar .tb:first-child { padding-bottom: 0; align-self: flex-end; }
.toolbar .tb:first-child .seg { margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; }
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 12px 10px; cursor: pointer; color: var(--muted); font-size: 13.5px; transition: color .12s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }
.filters { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.filters .lbl { color: var(--muted); font-size: 13px; }
.ros-wrap { flex: 1; display: grid; grid-template-columns: 1fr 360px; min-height: 0; }
.ros-wrap.nopanel { grid-template-columns: 1fr; }
.grid-scroll { overflow: auto; min-width: 0; background: var(--panel); }

/* the grid */
table.ros { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13.5px; }
table.ros th { position: sticky; top: 0; z-index: 2; background: var(--soft); color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ros td { border-bottom: 1px solid var(--line2); border-right: 1px solid var(--line2); padding: 10px 12px; vertical-align: top; min-width: 110px; max-width: 260px; white-space: pre-wrap; word-break: break-word; }
table.ros td.n, table.ros td.tm, table.ros td.dur { min-width: 0; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
table.ros td.tm.est { font-style: italic; color: var(--muted); }
table.ros td.segc { font-weight: 500; min-width: 200px; }
table.ros td.nt { min-width: 220px; color: var(--ink2); }
table.ros td.blank { color: var(--faint); }
table.ros td.clash { color: var(--warn); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
table.ros td.clash .qn { display: block; font-size: 11.5px; }
table.ros tr.row { cursor: pointer; }
table.ros tr.row:hover td { background: var(--soft); }
table.ros tr.row.sel td { background: var(--accent-soft); border-bottom-color: var(--accent-line); }
table.ros tr.row.changed td.n { box-shadow: inset 3px 0 0 var(--accent); }
table.ros tr.row.now td { background: var(--accent-soft); }
table.ros tr.sec td { background: var(--sec); color: var(--ink); padding: 8px 12px; border-right: none; font-family: var(--serif); font-weight: 600; font-size: 14.5px; max-width: none; }
table.ros tr.sec td .r { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; }
table.ros td.gap { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
table.ros td.gap .qn { display: block; font-size: 11.5px; margin-top: 2px; }
table.ros td.gap .qn::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 5px; vertical-align: 1px; }
table.ros td.edit { padding: 0; }
table.ros td.edit textarea { width: 100%; min-height: 100%; border: 2px solid var(--accent); border-radius: 0; padding: 8px 10px; background: var(--panel); resize: none; font: inherit; outline: none; display: block; }
.addrow { padding: 14px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line2); background: var(--panel); position: sticky; left: 0; }
.addrow .hint { color: var(--faint); font-size: 12.5px; }

/* side panel */
.rp { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; min-width: 0; }
.rp .rph { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.rp .rph b { font-weight: 600; flex: 1; }
.rp .rph .close { background: none; border: none; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: none; place-items: center; }
.rp .rph .close:hover { background: var(--sec); color: var(--ink); }
.rp section { padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.rp h3 { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; white-space: pre-wrap; }
.quote { background: var(--soft); border-left: 3px solid var(--line); padding: 10px 12px; font-size: 13px; color: var(--ink2); border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.cmt { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }
.cmt .w { font-weight: 600; } .cmt .d { color: var(--faint); font-size: 12px; margin-left: 6px; font-weight: 400; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.hist li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--line); margin-right: 8px; vertical-align: 2px; }
.rowtools { display: flex; gap: 6px; flex-wrap: wrap; }

/* questions */
.qgroup .ph h2 span { font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.q { padding: 14px 16px 16px; border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; border-left: 3px solid var(--accent); }
.q:last-child { border-bottom: none; }
.q.done { border-left-color: var(--line); }
.q .qt { font-size: 14.5px; }
.q .qt .num { color: var(--muted); font-size: 12.5px; margin-right: 6px; }
.q .qt .seg-l { display: block; color: var(--muted); font-size: 12.5px; }
.q .qa { grid-column: 1 / -1; display: flex; gap: 8px; }
.q .ans { grid-column: 1 / -1; background: var(--ok-soft); border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; }
.q .ans small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.q .sent { font-size: 12px; color: var(--muted); }
.qsum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* changes */
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; }
.tl .vtag { justify-self: center; font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--bg); padding: 2px 7px; border-radius: 3px; height: fit-content; margin-top: 14px; }
.tl .vtag.old { background: var(--sec); color: var(--muted); }
.tl .rail { grid-column: 1; justify-self: center; width: 1px; background: var(--line); }
.tl .panel { margin-bottom: 16px; }
.chg { display: grid; grid-template-columns: 76px 44px 1fr; gap: 10px; padding: 7px 16px; align-items: baseline; font-size: 13.5px; }
.chg .d { grid-column: 3; color: var(--muted); font-size: 12.5px; margin-top: -2px; }
.chg .tag { justify-self: start; }
.vsum { margin: 8px 16px 14px; padding: 10px 12px; background: var(--soft); border-radius: 6px; color: var(--ink2); font-size: 13.5px; }

/* documents & messages */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line2); }
.lrow:last-child { border-bottom: none; }
.lrow .ic { width: 34px; height: 34px; border-radius: 5px; background: var(--sec); color: var(--muted); font-size: 10px; font-weight: 600; display: grid; place-items: center; font-family: var(--mono); flex: none; }
.lrow .tx { flex: 1; min-width: 0; }
.lrow .tx b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .tx small { color: var(--muted); font-size: 12.5px; }
.thread { padding: 12px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.thread:hover { background: var(--soft); }
.thread .tt { display: flex; justify-content: space-between; font-weight: 600; }
.thread .tt small { font-weight: 400; color: var(--faint); }
.thread p { margin: 4px 0 0; color: var(--ink2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { padding: 12px 16px; display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.msg { max-width: 85%; background: var(--soft); border-radius: 8px; padding: 8px 11px; font-size: 13.5px; white-space: pre-wrap; }
.msg.mine { justify-self: end; background: var(--accent-soft); }
.msg small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line2); }

/* modal & toast */
#modal { position: fixed; inset: 0; background: rgba(26,23,20,.4); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 16px; }
#modal .box { background: var(--panel); color: var(--ink); border-radius: var(--r-panel); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--line2); }
#modal .box.wide { width: min(760px, 100%); }
#modal .mh { padding: 16px 20px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; }
#modal .mb { padding: 4px 20px 18px; }
#modal .mf { padding: 12px 20px; border-top: 1px solid var(--line2); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; background: var(--soft); }
#modal pre { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: 6px; font: 13px/1.55 var(--sans); max-height: 46vh; overflow: auto; }
.codebox { font-family: var(--mono); font-size: 20px; letter-spacing: .06em; background: var(--soft); border: 1px dashed var(--line); padding: 12px; border-radius: 6px; text-align: center; margin: 10px 0; word-break: break-all; }
.codebox.url { font-size: 13px; letter-spacing: 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FAF7F1; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; }
.drop { border: 1.5px dashed var(--line); border-radius: 8px; padding: 22px; text-align: center; color: var(--muted); margin-top: 8px; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.steps-l { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.steps-l li.done { color: var(--ok); } .steps-l li.now { color: var(--accent-ink); }

/* sign in */
.signin { min-height: 100vh; display: grid; grid-template-columns: 46% 1fr; }
.signin .l { background: linear-gradient(180deg, rgba(12,11,10,.55), rgba(12,11,10,.88)), url(/assets/app/signin.jpg) center/cover, var(--bar); color: #F3EEE6; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.signin .l .brand { width: auto; }
.signin .l .brand .logo { height: 46px; }
.signin .crewnote { font-size: 13px; color: #A89F92; }
.signin .l h1 { font-size: 44px; line-height: 1.1; margin-bottom: 16px; color: #F3EEE6; font-weight: 400; }
.signin .l p { color: #C9C1B5; max-width: 40ch; font-size: 15px; }
.signin .r { display: grid; place-items: center; padding: 32px 16px; }
.signin form { width: min(380px, 100%); }
.signin form h2 { font-size: 30px; margin-bottom: 6px; }
.signin .err { color: var(--bad); font-size: 13px; margin-top: 8px; }

/* show mode */
.sm { min-height: 100vh; padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); }
.sm .smh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sm .smh .brand { width: auto; color: var(--ink); font-size: 19px; }
.sm .smh .brand .mk { width: 32px; height: 32px; display: block; object-fit: contain; }
.dark .sm .smh .brand .mk { background: #fff; padding: 2px; border-radius: 3px; box-sizing: content-box; }
.sm .smh .sub { color: var(--muted); flex: 1; }
.sm .secs { display: flex; gap: 8px; }
.sm .secs div { flex: 1; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 10px 14px; min-width: 0; }
.sm .secs div.on { border-color: var(--accent); }
.sm .secs b { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; overflow: hidden; }
.sm .secs b span { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.sm .secs i { display: block; height: 3px; background: var(--line); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.sm .secs i u { display: block; height: 100%; background: var(--accent); }
.sm .secs div.past i u { background: var(--faint); }
.sm .body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; flex: 1; min-height: 0; }
.sm .now { background: var(--panel); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line2); }
.sm .now .bar { background: var(--accent); color: var(--on-accent); padding: 12px 28px; display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 500; }
.sm .now .bar b { font-family: var(--sans); font-weight: 700; margin-right: 10px; }
.sm .now.held .bar { background: var(--ink); color: var(--bg); }
.sm .now .in { padding: 22px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sm .now h1 { font-size: 44px; line-height: 1.08; }
.sm .now .who { font-size: 19px; color: var(--muted); }
.sm .prog { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sm .prog u { display: block; height: 100%; background: var(--accent); }
.sm .prog-l { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.sm .call { border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; padding: 18px 24px; flex: 1; }
.sm .call small { color: var(--muted); font-size: 13px; }
.sm .call p { font-size: 28px; line-height: 1.35; margin: 8px 0 0; white-space: pre-wrap; }
.sm .call .then { font-size: 17px; color: var(--muted); margin-top: 14px; white-space: pre-wrap; }
.sm .depts { display: flex; gap: 32px; border-top: 1px solid var(--line2); padding-top: 14px; flex-wrap: wrap; }
.sm .depts small { display: block; color: var(--muted); font-size: 12.5px; }
.sm .depts span { font-size: 17px; }
.sm .right { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.sm .clock { background: var(--panel); border-radius: var(--r-panel); padding: 18px 22px; display: flex; justify-content: space-between; align-items: flex-end; border: 1px solid var(--line2); }
.sm .clock .c { font-family: var(--mono); font-size: 46px; font-weight: 500; line-height: 1; margin-top: 4px; }
.sm .clock .ab { text-align: right; font-size: 12.5px; color: var(--muted); }
.sm .clock .ab b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; }
.sm .clock .ab b.behind { color: var(--bad); } .sm .clock .ab b.ahead { color: var(--ok); }
.sm .next { background: var(--panel); border-radius: var(--r-panel); padding: 16px 22px; border: 1px solid var(--line2); }
.sm .next .m { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.sm .next h2 { font-size: 24px; margin: 4px 0; }
.sm .next p { margin: 0; color: var(--muted); font-size: 15px; }
.sm .next .warn { color: var(--accent-ink); font-size: 13.5px; margin-top: 6px; }
.sm .up { background: var(--panel); border-radius: var(--r-panel); overflow: auto; border: 1px solid var(--line2); flex: 1; min-height: 120px; }
.sm .up .r { display: grid; grid-template-columns: 44px 76px 1fr; padding: 10px 22px; border-top: 1px solid var(--line2); font-size: 15px; }
.sm .up .r span { font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 2px; }
.sm .kbd { color: var(--faint); font-size: 12px; }

/* crew phone view */
.crew { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.crew .ch { padding: 14px 16px 10px; position: sticky; top: 0; background: var(--bg); z-index: 2; border-bottom: 1px solid var(--line); }
.crew .ch .l1 { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crew .ch h1 { font-size: 21px; margin: 4px 0 10px; }
.crew .list { padding: 12px 12px 90px; display: grid; gap: 10px; }
.crew .it { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 14px 16px; }
.crew .it.now { border-color: var(--accent); background: var(--accent-soft); }
.crew .it .m { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.crew .it h2 { font-family: var(--sans); font-weight: 600; font-size: 21px; margin: 6px 0 4px; line-height: 1.25; }
.crew .it p { margin: 0; font-size: 17px; color: var(--ink2); white-space: pre-wrap; }
.crew .it.past { opacity: .45; }
.crew .it.sec { background: none; border: none; padding: 8px 4px 0; font-family: var(--serif); font-weight: 600; color: var(--muted); }
.crew .cf { position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); max-width: 480px; margin: 0 auto; }
.crew .cf .dot { margin-right: 8px; }
.phone-frame { width: 390px; height: 760px; border: 10px solid #1A1714; border-radius: 40px; overflow: hidden; background: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.15); flex: none; }
.phone-frame .crew { min-height: 100%; height: 100%; overflow-y: auto; position: relative; }
.phone-frame .crew .cf { position: sticky; }
.crew-page { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.crew-page .ex { max-width: 340px; padding-top: 30px; }
.crew-page .ex ul { padding-left: 18px; color: var(--ink2); display: grid; gap: 8px; }

/* Cue list: the run of show as a timeline, not a spreadsheet. Fits the screen; no sideways scrolling. */
.grid-scroll.cues { background: var(--bg); overflow-x: hidden; }
.cues[data-ros] { margin: 18px 28px 6px; max-width: 1400px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); overflow: clip; }
.cue-sec { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 20px 11px 22px; background: rgba(250,247,241,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line2); cursor: default; }
.cue-sec:not(:first-child) { border-top: 1px solid var(--line2); }
.cue-sec[data-act] { cursor: pointer; }
.cue-sec .nm { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.cue-sec .nm::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); margin: 0 12px 3px 0; }
.cue-sec .r { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.cue-sec .tot { font-size: 12px; font-weight: 500; color: var(--ink2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.cue-sec .est { font-size: 11.5px; color: var(--faint); font-style: italic; }
.cue { display: grid; grid-template-columns: 92px 22px 1fr; gap: 0 14px; padding: 14px 22px 14px 20px; cursor: pointer; position: relative; border-bottom: 1px solid var(--line2); transition: background .12s; }
.cue:last-child { border-bottom: none; }
.cue:hover { background: #FDFBF7; }
.cue.sel { background: #FFFCF5; box-shadow: inset 3px 0 0 var(--accent); }
.cue.now { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cue.changed .cue-rail i { background: var(--accent); border-color: var(--accent); }
/* the rail: one thin line down the day, a dot at each start */
.cue-rail { position: relative; }
.cue-rail::before { content: ""; position: absolute; left: 50%; top: -15px; bottom: -15px; width: 1px; background: var(--line); transform: translateX(-50%); }
.cue-rail i { position: absolute; left: 50%; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent-line); transform: translateX(-50%); }
.cue.est .cue-rail i { border-style: dashed; border-color: var(--faint); }
.cue.now .cue-rail i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(179,138,69,.2); }
.cue-when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.cue-when .tm { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.cue-when .tm.est { font-style: italic; color: var(--muted); font-weight: 500; }
.cue-when .sub { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cue-when .n { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }
.cue-when .n::before { content: "#"; opacity: .7; }
.cue-when .dur { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cue-when .gap, .cue-when .clash { color: var(--accent-ink); }
.cue-when .qn { display: block; font-size: 11px; color: var(--accent-ink); font-weight: 500; }
.cue-main { min-width: 0; display: grid; gap: 7px; }
.cue-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cue-seg { font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.cue-who { font-size: 13.5px; color: var(--muted); }
.cue-who .v::before { content: "with "; color: var(--faint); }
.cue-who.is-empty .v::before { content: none; }
.cue-head .tag.now { align-self: center; }
.cue-call { font-size: 14px; color: var(--ink2); display: flex; gap: 10px; align-items: baseline; }
.cue-call i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; padding: 2px 6px; flex: none; position: relative; top: -1px; }
.cue-notes { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.cue-notes i { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); flex: none; }
.cue .v { white-space: pre-wrap; word-break: break-word; }
/* department chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { --dc: var(--faint); display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; min-width: 0; font-size: 13px; color: var(--ink2); background: var(--soft); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 10px 5px 9px; }
.dchip i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); flex: none; display: inline-flex; align-items: center; gap: 6px; }
.dchip i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dc); position: relative; top: -1px; }
.dchip[data-d="audio"] { --dc: #5B7FA6; } .dchip[data-d="lighting"] { --dc: #C09235; } .dchip[data-d="screens"] { --dc: #7D6AA8; } .dchip[data-d="fx"] { --dc: #4E8C82; }
.dchip.is-empty { background: transparent; border-style: dashed; }
.dchip.gap { background: #FCF7EE; border: 1px dashed var(--accent-line); color: var(--accent-ink); }
.dchip .qn, .cue-seg .qn, .cue-who .qn, .cue-call .qn, .cue-notes .qn { font-size: 11px; font-weight: 500; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; }
.dchip .qn::before, .cue-call .qn::before, .cue-notes .qn::before, .cue-who .qn::before { content: "?"; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }
.cue-call.gap .v, .cue-notes.gap .v, .cue-who.gap .v { color: var(--accent-ink); }
.cue .ph { color: var(--faint); font-style: italic; }
.cue.sel [data-f]:not(.editing):hover { outline: 1px dashed var(--accent-line); outline-offset: 3px; border-radius: 4px; }
.cue .editing textarea { width: 100%; min-width: 140px; border: 1.5px solid var(--accent); border-radius: 6px; padding: 4px 7px; font: inherit; background: var(--panel); resize: none; outline: none; display: block; box-shadow: 0 0 0 3px rgba(179,138,69,.15); }
.dchip.editing { flex-basis: 100%; }
.cues[data-ros] .empty { padding: 36px 16px; }
.grid-scroll.cues .addrow { background: transparent; border-top: none; padding: 10px 28px 28px; }
/* toolbar bits */
.toolbar .sum { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 2px 10px; }
.toolbar .sum .ic { width: 15px; height: 15px; color: var(--accent); }
.search { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--faint); width: 190px; transition: border-color .12s, box-shadow .12s, width .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(179,138,69,.15); width: 240px; }
.search input { border: none; outline: none; background: none; min-width: 0; flex: 1; font-size: 13px; color: var(--ink); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
/* collapsible sidebar */
.nav-toggle { background: none; border: none; color: #A89F92; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; margin-left: -8px; flex: none; }
.nav-toggle:hover { background: rgba(255,255,255,.07); color: #F3EEE6; }
.shell { transition: grid-template-columns .2s ease; }
.shell.min { grid-template-columns: 64px 1fr; }
.shell.min .side { padding: 14px 10px 12px; align-items: center; }
.shell.min .side .show-name, .shell.min .side .note, .shell.min .side .nl, .shell.min .side .foot button { font-size: 0; }
.shell.min .side .show-name, .shell.min .side .note { display: none; }
.shell.min .side a { width: 42px; height: 40px; justify-content: center; padding: 0; }
.shell.min .side a .nl { display: none; }
.shell.min .side a .ic { width: 18px; height: 18px; }
.shell.min .side a .badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.shell.min .side a.on::before { left: -10px; }
.shell.min .side .foot { padding: 4px 0; }
.shell.min .side .foot button { width: 42px; height: 36px; justify-content: center; }
.shell.min .side .foot button .ic { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .cues[data-ros] { margin: 10px 10px 4px; border-radius: 12px; }
  .cue { grid-template-columns: 64px 16px 1fr; gap: 0 10px; padding: 12px 12px 12px 10px; }
  .cue-when .tm { font-size: 14px; }
  .cue-sec { padding: 10px 12px; flex-wrap: wrap; row-gap: 2px; }
  .cue-sec .r { margin-left: 18px; }
  .cue-sec .est { display: none; }
  .chips { display: grid; gap: 3px; }
  .dchip { background: none; border: none; padding: 0; border-radius: 0; }
  .dchip.gap, .dchip.is-empty { background: none; border: none; padding: 0; }
  .dchip i { min-width: 64px; }
  .search { width: 150px; } .search:focus-within { width: 180px; }
  .toolbar .sum { display: none; }
  .nav-toggle { display: none; }
  .shell.min { grid-template-columns: 1fr; }
}

/* phones and small laptops */
@media (max-width: 1100px) {
  .ros-wrap { grid-template-columns: 1fr; }
  .rp { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72vh; border-left: none; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); z-index: 20; }
  .rp .rph .close { display: block; }
  .two { grid-template-columns: 1fr; }
  .sm .body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 52px 1fr; }
  .top { padding: 0 12px; gap: 10px; }
  .brand { width: auto; font-size: 15px; }
  .crumb, .saved, .role, .me span { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .brand .logo { height: 28px; }
  .toolbar .seg.icons span { display: none; }
  .side { position: fixed; top: 52px; left: 0; bottom: 0; width: 260px; z-index: 30; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .page { padding: 20px 16px 60px; }
  .rhead { padding: 16px 16px 0; }
  .rhead h1 { font-size: 21px; }
  .rhead .actions .btn:not(.keep) { display: none; }   /* editing and sharing happen on a laptop */
  .page.wide { height: auto; }
  .ros-wrap { display: block; }
  table.ros td { min-width: 90px; }
  .signin { grid-template-columns: 1fr; }
  .signin .l { padding: 24px 16px; gap: 20px; }
  .signin .l h1 { font-size: 28px; }
  .sm { padding: 14px 16px; }
  .sm .secs { display: none; }
  .sm .now h1 { font-size: 30px; }
  .sm .call p { font-size: 21px; }
  .sm .clock .c { font-size: 34px; }
  .chg { grid-template-columns: 70px 36px 1fr; padding: 7px 12px; }
  .tl { grid-template-columns: 1fr; }
  .tl .vtag, .tl .rail { display: none; }
  .phone-frame { width: 100%; border-width: 6px; border-radius: 24px; height: 640px; }
  .crew-page .ex { padding-top: 0; }
}

/* Google: Sheets, Calendar, Gmail */
.btn.gchip .ic { color: var(--muted); }
.btn.gchip.on { color: var(--ok); border-color: #CFE0D2; background: var(--ok-soft); }
.btn.gchip.on .ic { color: var(--ok); }
.gmodal { display: grid; gap: 12px; padding-top: 14px !important; }
.gacct { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--soft); }
.gacct > .ic { width: 22px; height: 22px; color: var(--accent); }
.gacct div { flex: 1; min-width: 0; }
.gacct b { display: block; font-weight: 600; }
.gacct small { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: block; }
.gnote { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; }
.gcard { border: 1px solid var(--line2); border-radius: 12px; padding: 14px 16px; margin: 0; }
.gcard .gh { display: flex; align-items: center; gap: 9px; }
.gcard .gh .ic { color: var(--accent); width: 18px; height: 18px; }
.gcard .gh b { flex: 1; font-weight: 600; }
.gcard p { margin: 6px 0 10px; color: var(--ink2); font-size: 13.5px; }
.gcard .gf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gchk { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gdays { display: grid; gap: 8px; margin-bottom: 12px; }
.gday { display: grid; grid-template-columns: 1fr 150px 120px; gap: 10px; align-items: end; }
.gday > span { font-weight: 500; font-size: 13.5px; padding-bottom: 9px; }
.gday label { font-size: 11.5px; color: var(--muted); display: grid; gap: 3px; }
.gday .in { padding: 6px 9px; font-size: 13.5px; }
@media (max-width: 760px) { .gday { grid-template-columns: 1fr 1fr; } .gday > span { grid-column: 1 / -1; padding: 0; } }


/* ---------------------------------------------------------------- meaning colours
   Brass stays the brand (logo, primary actions, the page you're on). Everything else says what it is. */
/* open questions: orange */
.btn.pill { background: var(--q-soft); border-color: var(--q-line); color: var(--q-ink); }
.btn.pill:hover { background: #F2E2D8; color: var(--q-ink); }
.btn.pill .pd { background: var(--q); box-shadow: 0 0 0 3px rgba(46,68,97,.14); }
.tag.open { background: var(--q-soft); color: var(--q-ink); border-color: var(--q-line); }
.side a .badge, .badge { background: var(--q); color: #fff; }
.card .cf .q { color: var(--q-ink); }
.q { border-left-color: var(--q); }
.cue-when .gap, .cue-when .clash, .cue-when .qn { color: var(--q-ink); }
.dchip.gap { background: var(--q-soft); border: 1px dashed var(--q-line); color: var(--q-ink); }
.dchip.gap i { color: var(--q-ink); }
.dchip .qn, .cue-seg .qn, .cue-who .qn, .cue-call .qn, .cue-notes .qn { color: var(--q-ink); }
.dchip .qn::before, .cue-call .qn::before, .cue-notes .qn::before, .cue-who .qn::before { background: var(--q); color: #fff; }
.cue-call.gap .v, .cue-notes.gap .v, .cue-who.gap .v { color: var(--q-ink); }
table.ros td.gap { background: var(--q-soft); color: var(--q-ink); box-shadow: inset 0 0 0 1px var(--q-line); }
table.ros td.gap .qn::before { background: var(--q); }
table.ros td.clash { background: var(--q-soft); box-shadow: inset 0 0 0 1px var(--q-line); }
.sm .next .warn { color: var(--q-ink); }
/* changed in the latest version: blue */
.tag.changed { background: var(--chg-soft); color: var(--chg); border-color: #CBD5DF; }
.cue.changed .cue-rail i { background: var(--chg); border-color: var(--chg); }
.cue.changed .cue-when .n { color: var(--chg); }
.cue.changed .cue-when .n::after { content: " · changed"; font-weight: 500; letter-spacing: 0; }
table.ros tr.row.changed td.n { box-shadow: inset 3px 0 0 var(--chg); }
/* live now: green */
.tag.now { background: var(--live); border-color: var(--live); color: #fff; }
.cue.now { background: var(--live-soft); box-shadow: inset 3px 0 0 var(--live); }
.cue.now .cue-rail i { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 4px rgba(86,121,94,.18); }
table.ros tr.row.now td { background: var(--live-soft); }
.dot.live { background: var(--live); }
.crew .it.now { border-color: var(--live); background: var(--live-soft); }
/* selected row: neutral, so it doesn't look like a question */
.cue.sel { background: #FBFAF8; box-shadow: inset 3px 0 0 var(--ink); }
table.ros tr.row.sel td { background: #F6F5F2; border-bottom-color: var(--line); }
.cue.sel [data-f]:not(.editing):hover { outline-color: #C9C5BE; }
.cue-rail i { border-color: #C9C5BE; }
/* section headings: a red edge, like her red bands */
.cue-sec { background: rgba(240,238,234,.96); box-shadow: inset 4px 0 0 var(--sect); }
.cue-sec .nm::before { background: var(--sect); }
table.ros tr.sec td { box-shadow: inset 4px 0 0 var(--sect); }
/* the show call: the line she reads out, so it's the strongest tag on the row */
.cue-call i { background: #2B2724; color: #F3EEE6; }
/* people */
.cue-who .v { color: var(--people); font-weight: 500; }
.cue-who .v::before { color: var(--faint); font-weight: 400; }
/* departments: her showflow colours */
.dchip[data-d="audio"] { background: var(--d-audio-bg); border-color: transparent; color: var(--d-audio); --dc: var(--d-audio-dot); }
.dchip[data-d="lighting"] { background: var(--d-lx-bg); border-color: transparent; color: var(--d-lx); --dc: var(--d-lx-dot); }
.dchip[data-d="screens"] { background: var(--d-scr-bg); border-color: transparent; color: var(--d-scr); --dc: var(--d-scr-dot); }
.dchip[data-d="fx"] { background: var(--d-fx-bg); border-color: transparent; color: var(--d-fx); --dc: var(--d-fx-dot); }
.dchip[data-d] i { color: inherit; opacity: .75; }
.dchip.is-empty[data-d] { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.dchip.gap[data-d] { background: var(--q-soft); border: 1px dashed var(--q-line); color: var(--q-ink); }
/* the department filter wears the colour of what it's showing */
.pop-menu .mi[data-act=dept]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.pop-menu .mi[data-v=audio]::before { background: var(--d-audio-dot); } .pop-menu .mi[data-v=lighting]::before { background: var(--d-lx-dot); }
.pop-menu .mi[data-v=screens]::before { background: var(--d-scr-dot); } .pop-menu .mi[data-v=fx]::before { background: var(--d-fx-dot); }
.pop-menu .mi[data-act=dept].on { justify-content: flex-start; }
.pop-menu .mi[data-act=dept].on .ic { margin-left: auto; }
/* neutral panels, brass only for the brand */
.rhead .meta .v { background: var(--sec); color: var(--ink2); border-color: var(--line); }
.msg.mine { background: #ECEFF2; }
.side .note { border-left: 3px solid var(--q); }
@media (max-width: 760px) { .dchip[data-d] { background: none; } }


/* ---------------------------------------------------------------- colour as marks, not fills
   Surfaces stay white and grey; colour lives in dots, edges and small labels. */
.dchip, .dchip[data-d="audio"], .dchip[data-d="lighting"], .dchip[data-d="screens"], .dchip[data-d="fx"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.dchip[data-d="audio"] i { color: var(--d-audio); } .dchip[data-d="lighting"] i { color: var(--d-lx); }
.dchip[data-d="screens"] i { color: var(--d-scr); } .dchip[data-d="fx"] i { color: var(--d-fx); }
.dchip[data-d] i { opacity: 1; }
.dchip i::before { width: 7px; height: 7px; }
.dchip.gap, .dchip.gap[data-d] { background: var(--panel); border: 1px dashed #A9B2BF; color: var(--ink2); }
.cue-call.gap .v, .cue-notes.gap .v, .cue-who.gap .v { color: var(--ink2); }
.btn.pill { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.btn.pill:hover { background: var(--soft); color: var(--ink); }
.btn.pill .pd { background: var(--q); box-shadow: none; }
.tag.open { background: var(--panel); color: var(--q-ink); border-color: var(--line); }
table.ros td.gap, table.ros td.clash { background: var(--panel); color: var(--ink2); box-shadow: inset 3px 0 0 var(--q); }
.cue.sel { background: #FAFAFA; }
.cue-sec { background: rgba(239,239,237,.96); }
.cue:hover { background: #FBFBFB; }
.btn:hover { background: var(--soft); border-color: #D0D0CD; }
.side .note { border-left-color: var(--line); }
.msg.mine { background: #EEF0F2; }
.gacct { background: var(--soft); }


/* ---------------------------------------------------------------- back to shows, done rows, intake details (Oct 20 call) */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.back .ic { width: 14px; height: 14px; }
.page > .back { margin-bottom: 12px; }
/* her done checkbox greys out the ticked row and every row above it */
.donebox { width: 16px; height: 16px; margin: 0; accent-color: var(--ink2); cursor: pointer; flex: none; }
.donebox:disabled { cursor: default; }
table.ros th.dn, table.ros td.dn { min-width: 0; width: 44px; text-align: center; padding-left: 8px; padding-right: 8px; }
table.ros td.dn .donebox { vertical-align: -3px; }
table.ros tr.row.done td, table.ros tr.row.done td.gap, table.ros tr.row.done td.clash { background: var(--soft); color: var(--faint); box-shadow: none; }
table.ros tr.row.done td .qn { color: var(--faint); }
table.ros tr.sec.done td, table.ros tr.sec.done td .r { color: var(--faint); }
.cue-when .donebox { margin-top: 8px; }
.cue.done { background: var(--soft); }
.cue.done .cue-main, .cue.done .cue-rail, .cue.done .cue-when > :not(.donebox) { opacity: .5; }
.cue-sec.done .nm, .cue-sec.done .r, .cue-sec.done .tot { color: var(--faint); }
.cue-sec.done .nm::before { background: var(--faint); }
.two-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .three-in { grid-template-columns: 1fr 1fr; } .three-in > :first-child { grid-column: 1 / -1; } }
