/* ============================================================
   NORTHSET — Call Sheets
   Editorial / cinematic design system.
   Tokens & component styles. No build step.
   ============================================================ */

:root {
  /* ink / dark surfaces */
  --ink: #16171A;
  --ink-2: #1b1916;
  --ink-3: #3a352e;
  --ink-border: #4a443b;

  /* paper / light surfaces */
  --paper: #F6F3EC;
  --paper-2: #faf8f3;
  --builder-bg: #e9e5db;
  --preview-bg: #cfc8bb;
  --white: #ffffff;

  /* accent */
  --accent: #2F7D75;
  --accent-hover: #bf3d18;
  --accent-tint: #fbe9e2;

  /* functional */
  --night: #2E4A6B;
  --night-tint: #dde6f0;
  --green: #1f7a4d;
  --amber: #b8862a;

  /* text */
  --muted: #6B6358;
  --faint: #9a9082;
  --disabled: #bcb4a5;
  --disabled-2: #cfc8ba;

  /* hairlines */
  --hair: #e0dace;
  --hair-2: #efe9dd;
  --hair-3: #f0ece3;
  --hair-4: #f6f3ec;

  --shadow-block: 0 4px 14px rgba(20, 18, 16, 0.08);
  --shadow-sheet: 0 10px 40px rgba(20, 18, 16, 0.22);

  /* radius system — soften/round all edges. one scale, applied suite-wide.
     bumped past the old ~8-12px baseline so the softening actually reads. */
  --r-sm: 9px;      /* menu rows, small badges, kbd */
  --r-ctrl: 12px;   /* buttons, inputs, selects, switcher, search, tabs */
  --r-card: 16px;   /* cards, dropdowns, panels, modals */
  --r-pill: 999px;  /* status pills, round chips */

  --font-display: 'Space Grotesk', sans-serif;
  --font-title: 'Space Grotesk', system-ui, sans-serif;   /* page titles — cleaner than Bebas, pairs with Space Mono */
  --font-ui: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* keep editable surfaces from showing the browser focus ring as a rounded box */
[contenteditable] { outline: none; }
/* focus highlights the WHOLE field box, not a tight ring around the text */
.field { transition: border-color .12s, box-shadow .12s; }
.field .ce { display: block; min-height: 1.2em; }
.field:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.field:focus-within [contenteditable]:focus { box-shadow: none; }
/* standalone inline editables (library names, key contacts) get a roomy, padded highlight */
.ce { border-radius: 4px; }
[contenteditable]:focus { box-shadow: 0 0 0 1.5px var(--accent); background: var(--accent-tint); }

button { font-family: var(--font-ui); cursor: pointer; border: none; background: none; }
.mono { font-family: var(--font-mono); }
.bebas { font-family: var(--font-display);font-weight:700; letter-spacing: 0.03em; }

/* ---- screen visibility ---- */
.screen { display: none; }
.screen.active { display: block; }

/* ============================================================
   TOP BARS (shared)
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  padding: 0 22px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .dot, .brand-home .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 2.5px; transform: rotate(45deg); }
.brand .wordmark, .brand-home .wordmark { font-family: var(--font-display);font-weight:700; font-size: 24px; letter-spacing: 0.08em; }
.brand .sub {
  font-size: 11px; letter-spacing: 0.18em; color: #8b8478; font-weight: 600;
  border-left: 1px solid var(--ink-3); padding-left: 16px;
}
.brand.clickable { cursor: pointer; }
.brand-home { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-home:hover .wordmark { opacity: 0.85; }
.brand .sub.clickable { cursor: pointer; }
.brand .sub.clickable:hover { color: var(--paper); }

.topnav { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--disabled-2); }
.topnav .navlink { cursor: pointer; color: inherit; text-decoration: none; }
.topnav .navlink:hover { color: var(--paper); }
/* two-tier header: brand+switcher and the in-app section tabs live together on the left */
.tb-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sectabs { display: flex; align-items: center; gap: 3px; }
.sectab { cursor: pointer; color: var(--disabled-2); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-ctrl); white-space: nowrap; transition: background .12s, color .12s; }
.sectab:hover { color: var(--paper); background: rgba(246, 243, 236, .08); }
.sectab.on { color: var(--accent); background: rgba(214, 72, 31, .15); }
@media (max-width: 560px) { .tb-left { gap: 10px; } .sectab { padding: 6px 9px; font-size: 12px; } }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  cursor: pointer; flex-shrink: 0;
}
.avatar.signedout { background: var(--ink-3); color: var(--disabled-2); }
.signin-pill {
  background: transparent; border: 1.5px solid var(--ink-border); color: var(--paper);
  font-weight: 600; font-size: 12px; padding: 7px 13px; cursor: pointer;
}
.signin-pill:hover { border-color: var(--paper); }
.cloud-dot { color: var(--green); }

.auth-menu {
  position: fixed; top: 58px; right: 18px; z-index: 160;
  background: var(--white); border: 1px solid var(--hair); box-shadow: 0 10px 30px rgba(20,18,16,.22);
  min-width: 200px;
}
.auth-menu[hidden] { display: none; }
.am-email { padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--hair-2); word-break: break-all; }
.am-item { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--ink); background: none; }
.am-item:hover { background: var(--paper-2); }

.crumbs { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.crumbs .back { color: var(--disabled-2); cursor: pointer; }
.crumbs .back:hover { color: var(--paper); }
.crumbs .slash { color: var(--ink-3); }
.crumbs .proj { font-weight: 600; }
.crumbs .daychip {
  background: var(--ink-3); color: var(--disabled-2); font-size: 11px; font-weight: 700;
  padding: 3px 8px; letter-spacing: 0.06em;
}
.bar-actions { display: flex; align-items: center; gap: 12px; }
.saved { font-size: 12px; color: #8b8478; }
.saved .pulse { color: var(--green); }

/* buttons */
/* shared Lucide icon (icons.js) — inherits text color + size, sits inline where a glyph did */
.luc { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.btn .luc { vertical-align: -0.16em; }
.btn { font-weight: 700; font-size: 13px; padding: 9px 18px; letter-spacing: 0.01em; border-radius: var(--r-ctrl); border: 1.5px solid transparent; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost-dark { background: transparent; border: 1.5px solid var(--ink-border); color: var(--paper); font-weight: 600; padding: 9px 16px; }
.btn-ghost-dark:hover { border-color: var(--paper); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-outline-ink { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

/* ============================================================
   DASHBOARD
   ============================================================ */
#dashboard { min-height: 100vh; background: var(--paper); }
.dash-wrap { max-width: 1140px; margin: 0 auto; padding: 44px 30px 80px; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; color: var(--faint); font-weight: 700; }
.dash-title { font-family: var(--font-title); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
/* section groups on the dashboard — sentence case, normal kerning, count only informs (Active / Upcoming / Wrapped) */
.dash-group { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--muted); margin: 24px 0 10px 2px; }
.dash-group:first-of-type { margin-top: 16px; }
.dash-group .n { color: var(--faint); font-weight: 400; }
.proj-list.is-wrapped { opacity: .64; }

.start-panel { margin-top: 34px; border: 1.5px solid var(--ink); background: #fff; }
.start-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--hair-2);
}
.start-head .t { font-family: var(--font-display);font-weight:700; font-size: 26px; color: var(--ink); letter-spacing: -0.03em; }
.start-head .c { font-size: 12px; color: var(--faint); }
.template-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch; }
.tcard { padding: 22px 24px; border-right: 1px solid var(--hair-2); cursor: pointer; position: relative; }
.tcard .num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.tcard .name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.tcard .desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.tcard:hover { background: var(--paper-2); }
.tcard.selected { background: var(--accent-tint); }
.tcard.selected:hover { background: var(--accent-tint); }
.tcard.selected .num { color: var(--accent); }
.tcard.selected .desc { color: #8a5443; }
.tcard .check { position: absolute; top: 18px; right: 18px; color: var(--accent); font-weight: 700; display: none; }
.tcard.selected .check { display: block; }
.create-btn {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; padding: 0 34px;
  display: flex; align-items: center; gap: 10px;
}
.create-btn:hover { background: var(--accent-hover); }
.create-btn .arr { font-size: 18px; }

.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 44px; }
.recent-head .t { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.recent-head .s { font-size: 13px; color: var(--muted); }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }

.daycard { border: 1.5px solid var(--hair); border-radius: var(--r-card); padding: 20px; background: #fff; }
.daycard.active { border-color: var(--ink); }
.daycard .row1 { display: flex; justify-content: space-between; align-items: flex-start; }
.daycard .dl { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); font-weight: 700; }
.daycard .bignum { font-family: var(--font-display);font-weight:700; font-size: 54px; line-height: 0.82; color: var(--ink); }
.daycard.draft .bignum { color: var(--disabled); }
.daycard .bignum .of { font-size: 20px; color: var(--faint); }
.daycard.draft .bignum .of { color: var(--disabled); }
.pill { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 5px; }
.pill-sent { background: var(--green); color: #fff; }
.pill-draft { border: 1.5px solid var(--disabled-2); color: var(--faint); }
.pill-review { background: var(--amber); color: #fff; }
.daycard .date { font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 12px; }
.daycard .loc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.daycard .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair-2); }
.daycard.draft .meta { color: var(--faint); }
.daycard .acts { display: flex; gap: 8px; margin-top: 14px; }
.daycard .acts button { flex: 1; font-weight: 700; font-size: 13px; padding: 10px; }

.addcard {
  border: 1.5px dashed var(--disabled-2); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: var(--faint);
  min-height: 200px; cursor: pointer;
}
.addcard:hover { border-color: var(--accent); }
.addcard .plus { font-family: var(--font-display);font-weight:700; font-size: 44px; line-height: 1; color: var(--disabled); }
.addcard .l1 { font-size: 14px; font-weight: 600; margin-top: 6px; color: var(--muted); }
.addcard .l2 { font-size: 12px; margin-top: 4px; }

/* ============================================================
   BUILDER
   ============================================================ */
#builder { min-height: 100vh; background: var(--builder-bg); }
.progress-strip { background: var(--ink); padding: 0 26px 14px; }
.progress-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.progress-inner .lbl { font-size: 11px; letter-spacing: 0.12em; color: #8b8478; font-weight: 700; white-space: nowrap; }
.progress-track { flex: 1; height: 5px; background: var(--ink-3); }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.25s ease; }
.progress-inner .note { font-size: 11px; color: #8b8478; white-space: nowrap; }
/* fully-complete call sheet: the strip goes green so 100% reads at a glance */
.progress-strip.complete .progress-fill { background: #34c76a; }
.progress-strip.complete .lbl,
.progress-strip.complete .note { color: #5fd694; font-weight: 700; }

.builder-body { padding: 34px 26px 90px; display: grid; grid-template-columns: minmax(0, 880px) 256px; gap: 22px; justify-content: center; align-items: start; }
.blocks { max-width: 100%; margin: 0; display: flex; flex-direction: column; gap: 16px; }

.block-row { display: flex; gap: 12px; }
.block-row.dragging { opacity: 0.4; }
.block-row.drag-over-top { box-shadow: 0 -3px 0 var(--accent); }
.grip { color: var(--disabled); font-size: 20px; padding-top: 17px; cursor: grab; user-select: none; touch-action: none; }
.grip:active { cursor: grabbing; }
.card { flex: 1; background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-block); border-radius: var(--r-card); }
.card.editing { border: 1.5px solid var(--accent); }
.card.off { background: #f4f1ea; border: 1px dashed var(--disabled-2); box-shadow: none; }
.block-row.off { opacity: 0.6; }

.card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hair-3); }
.card.collapsed .card-head, .card.off .card-head { border-bottom: none; }
.card-head .ct { font-size: 11px; letter-spacing: 0.12em; font-weight: 700; color: var(--ink); }
.card.editing .card-head .ct { color: var(--accent); }
.card.off .card-head .ct { color: var(--faint); }
.card-head .ca { font-size: 13px; color: var(--faint); font-weight: 600; cursor: pointer; }
.card-head .ca:hover { color: var(--ink); }
.card.editing .card-head .ca { color: var(--faint); }
.card.off .card-head .ca { color: var(--muted); }
.card-body { padding: 18px; }

/* fields */
.field-label { font-size: 10px; letter-spacing: 0.1em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field-label.accent { color: var(--accent); }
.field { border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 11px 13px; font-size: 13px; color: var(--ink); min-height: 40px; }
.field.title { font-size: 15px; font-weight: 600; }
.field.mono { font-family: var(--font-mono); }
.field.focus { border: 1.5px solid var(--accent); display: flex; justify-content: space-between; align-items: center; }
.field.focus .caret { color: var(--accent); animation: blink 1s steps(2, start) infinite; }
.field.auto { background: var(--paper-2); color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
/* production-wide radio channels grid (settings) */
.set-grid-chan { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.chan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 9px 13px; }
.chan-row .chan-dp { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.chan-row .chan-in { font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-weight: 700; }
.chan-row .chan-in .ce { display: inline-block; min-width: 22px; color: var(--ink); text-align: center; border-bottom: 1.5px solid var(--hair); margin-left: 3px; }
.chan-row:focus-within { border-color: var(--accent); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; margin-top: 14px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 12px; margin-top: 14px; }

/* schedule rows */
.sch-row { display: grid; grid-template-columns: 50px 1fr 40px 80px; padding: 9px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; align-items: center; }
.sch-row:last-of-type { border-bottom: none; }
.sch-num { font-family: var(--font-mono); font-weight: 700; }
.dn { font-size: 10px; font-weight: 700; padding: 2px 6px; text-align: center; cursor: pointer; }
.dn.D { background: var(--hair-3); color: var(--ink); }
.dn.N { background: var(--night-tint); color: var(--night); }
.sch-pages { font-family: var(--font-mono); color: var(--muted); text-align: right; }
.banner { text-align: center; padding: 7px; margin: 4px 0; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; }
.add-row { color: var(--accent); font-weight: 600; font-size: 13px; padding-top: 8px; cursor: pointer; display: inline-block; }
.add-row:hover { color: var(--accent-hover); }
/* "Apply general/shoot call to all" — a distinct pill next to the plain "+ Add" link */
.add-row.sync-row { margin-left: 14px; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12px; }
.add-row.sync-row .luc { margin-right: 3px; }
.add-row.sync-row:hover { background: var(--accent); color: var(--white); }

/* cast rows */
.cast-row { display: grid; grid-template-columns: 30px 1.3fr 1fr 90px 90px; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; align-items: center; }
.cast-row:last-of-type { border-bottom: none; }
.cast-num { font-family: var(--font-mono); font-weight: 700; }
.cast-name { font-weight: 600; }
.cast-role { color: var(--muted); }
.cast-hmu { font-family: var(--font-mono); color: var(--muted); }
.cast-set { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }

/* locations */
.loc-grid { padding: 16px 18px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.loc-card { border: 1px solid var(--hair); padding: 14px; }
.loc-card .l { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; }
.loc-card .n { font-size: 15px; font-weight: 700; margin-top: 3px; }
.loc-card .a { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hosp-card { border: 1.5px solid var(--accent); background: var(--accent-tint); padding: 14px; }
.hosp-card .l { font-size: 10px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.hosp-card .n { font-size: 14px; font-weight: 700; margin-top: 3px; }
.hosp-card .p { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }

/* add-section divider */
.add-section { display: flex; align-items: center; gap: 12px; padding-left: 32px; color: var(--faint); }
.add-section .rule { flex: 1; height: 1px; background: var(--disabled-2); }
.add-section .lbl { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--builder-bg); padding: 0 6px; cursor: pointer; }
.add-section .lbl:hover { color: var(--accent); }

.preview-cta {
  margin: 22px 0 0 32px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.preview-cta:hover { background: #000; }

/* turn-on link */
.turn-on { font-size: 13px; color: var(--muted); font-weight: 600; cursor: pointer; }
.turn-on:hover { color: var(--accent); }

/* ============================================================
   PREVIEW (finished sheet)
   ============================================================ */
#preview { min-height: 100vh; background: var(--preview-bg); }
.sheet-wrap { padding: 36px 26px 80px; }
.sheet { max-width: 1020px; margin: 0 auto; background: var(--paper); box-shadow: var(--shadow-sheet); border: 1px solid #d8d2c6; }

.sheet-header { background: var(--ink); color: var(--paper); padding: 24px 30px; }
.sh-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sh-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--faint); }
.sh-eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.sh-eyebrow span { font-size: 11px; letter-spacing: 0.16em; font-weight: 700; }
.sh-title { font-family: var(--font-display);font-weight:700; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; margin-top: 8px; }
.sh-subtitle { font-size: 13px; color: var(--disabled-2); margin-top: 8px; }
.sh-rev { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--faint); margin-top: 6px; }
.sh-daybox { text-align: right; flex-shrink: 0; margin-left: 20px; }
.sh-daybox .box { border: 1.5px solid var(--ink-border); padding: 8px 14px; }
.sh-daybox .l { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.sh-daybox .num { font-family: var(--font-display);font-weight:700; font-size: 42px; line-height: 0.9; }
.sh-daybox .num .of { font-size: 18px; color: var(--faint); }
.sh-daybox .date { font-size: 13px; color: var(--disabled-2); margin-top: 8px; }

.calltime-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 1px; background: var(--ink-3); margin-top: 20px; }
.ct-cell { background: var(--ink-2); padding: 12px 16px; }
.ct-cell.accent { background: var(--accent); }
.ct-cell .l { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; }
.ct-cell.accent .l { color: #ffd9cc; letter-spacing: 0.12em; }
.ct-cell .big { font-family: var(--font-display);font-weight:700; font-size: 40px; line-height: 0.9; color: #fff; }
.ct-cell .mono { font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin-top: 6px; }
.ct-cell .wx { font-size: 13px; font-weight: 600; margin-top: 6px; }
.ct-cell .wx-sun { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.contacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hair); }
.contact { background: var(--paper); padding: 13px 16px; }
.contact .l { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; }
.contact .l.accent { color: var(--accent); }
.contact .n { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.contact .p { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.sheet-body { padding: 24px 30px; }
.loc-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.sheet-loc { border: 1.5px solid var(--ink); padding: 16px; }
.sheet-loc .l { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.sheet-loc .n { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.sheet-loc .a { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sheet-loc .extra { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e7e2d8; font-size: 12px; color: var(--muted); }
.sheet-loc .extra b { color: var(--faint); font-weight: 700; }
.sheet-hosp { border: 1.5px solid var(--accent); padding: 16px; background: var(--accent-tint); }
.sheet-hosp .l { font-size: 10px; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }
.sheet-hosp .n { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.sheet-hosp .a { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sheet-hosp .p { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 8px; }

.section-title { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); margin: 24px 0 10px; }
.tbl { border: 1px solid var(--hair); }
.tbl-head { background: var(--ink); color: var(--disabled-2); font-size: 10px; letter-spacing: 0.08em; font-weight: 700; padding: 9px 14px; }
.tbl-sched .tbl-head, .tbl-sched .tbl-row { display: grid; grid-template-columns: 60px 1fr 50px 60px 80px 110px; }
.tbl-cast .tbl-head, .tbl-cast .tbl-row { display: grid; grid-template-columns: 36px 1.4fr 1fr 90px 90px 90px; }
.tbl-row { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--hair-3); align-items: center; }
.tbl-row:last-child { border-bottom: none; }
.tbl-row.zebra { background: var(--paper-2); }
.tbl .mono { font-family: var(--font-mono); }
.tbl .dnp { padding: 2px 7px; font-weight: 700; font-size: 11px; }
.tbl .dnp.D { background: var(--hair-3); }
.tbl .dnp.N { background: var(--night-tint); color: var(--night); }
/* schedule banner = a grid row aligned to the table: time in START, label centered, duration in EST */
.tbl-sched .tbl-row.sheet-banner { padding: 8px 14px; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; border-bottom: 1px solid var(--hair-3); align-items: center; }
.sheet-banner .sb-start { grid-column: 1; }
.sheet-banner .sb-mid { grid-column: 2 / 8; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.sheet-banner .sb-mid svg { width: 13px; height: 13px; flex: none; }
.sheet-banner .sb-dur { grid-column: 8; text-align: right; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 24px; }
.crew-cols { columns: 2; column-gap: 22px; font-size: 12px; line-height: 1.85; }
.crew-dept { color: var(--faint); font-weight: 700; letter-spacing: 0.08em; font-size: 10px; margin-top: 6px; }
.crew-dept:first-child { margin-top: 0; }
.crew-person { color: var(--ink); }
.crew-person span { color: var(--faint); }
.notes-list { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.note-item { display: flex; gap: 8px; margin-bottom: 8px; }
.note-item .bang { color: var(--accent); font-weight: 700; }
.note-item .dot { color: var(--faint); font-weight: 700; }
.client-line { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--faint); }
.client-line b { color: var(--ink); }

.sheet-footer { background: var(--ink); color: var(--faint); padding: 12px 30px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.06em; }
.sheet-footer .mono { font-family: var(--font-mono); }

/* advance / tomorrow block (finished sheet + builder) */
.advance-block { margin-top: 18px; border: 1px solid var(--hair); border-left: 3px solid var(--night); border-radius: 6px; background: #f1f4f8; padding: 12px 16px; }
.advance-block.last { background: #f6f3ec; border-left-color: var(--accent); }
.adv-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; font-weight: 700; color: var(--night); margin-bottom: 8px; }
.advance-block.last .adv-l { color: var(--accent); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adv-grid > div { font-size: 13px; color: var(--ink); }
.adv-grid .k { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 2px; }
.adv-wrap { font-size: 13px; color: var(--ink); }
.adv-hint { margin-top: 10px; font-size: 11px; color: var(--faint); font-style: italic; }
@media (max-width: 640px) { .adv-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   MOBILE READ VIEW
   ============================================================ */
#mobile { min-height: 100vh; background: var(--builder-bg); }
.mobile-wrap { max-width: 900px; margin: 0 auto; padding: 40px 30px 80px; }
.mobile-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }
.mobile-intro .t { font-family: var(--font-display);font-weight:700; font-size: 30px; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; }
.mobile-intro .s { font-size: 13px; color: var(--muted); }
.phones { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.phone { width: 360px; background: var(--ink); border-radius: 46px; padding: 13px; box-shadow: 0 14px 40px rgba(20, 18, 16, 0.22); }
.phone-screen { background: var(--paper); border-radius: 34px; overflow: hidden; position: relative; display: flex; flex-direction: column; min-height: 740px; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 5; }

.m-hero { background: var(--ink); color: var(--paper); padding: 40px 22px 22px; }
.m-hero .eb { display: flex; align-items: center; gap: 7px; color: var(--faint); }
.m-hero .eb .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 1.5px; transform: rotate(45deg); }
.m-hero .eb span { font-size: 10px; letter-spacing: 0.14em; font-weight: 700; }
.m-hero .yourcall { font-size: 12px; color: var(--faint); margin-top: 18px; }
.m-hero .calltime { display: flex; align-items: baseline; gap: 10px; }
.m-hero .calltime .h { font-family: var(--font-display);font-weight:700; font-size: 72px; line-height: 0.85; color: #fff; }
.m-hero .calltime .ampm { font-family: var(--font-display);font-weight:700; font-size: 30px; color: var(--accent); }
.m-hero .sub { font-size: 13px; color: var(--disabled-2); }
.m-hero .wx { font-size: 12px; color: var(--faint); margin-top: 6px; }

.m-confirm { background: var(--accent); color: #fff; padding: 15px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.m-confirm.confirmed { background: var(--green); }
.m-confirm .t { font-weight: 700; font-size: 15px; }
.m-confirm .b { background: #fff; color: var(--accent); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 30px; }
.m-confirm.confirmed .b { color: var(--green); }

.m-loc { padding: 18px 20px; }
.m-map {
  height: 110px; border-radius: 6px; position: relative; display: flex; align-items: flex-end; padding: 12px;
  background: #d8d2c3 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27400%27 height=%27120%27%3E%3Crect width=%27400%27 height=%27120%27 fill=%27%23d8d2c3%27/%3E%3Crect x=%27248%27 y=%270%27 width=%27152%27 height=%2766%27 fill=%27%23cdd7c7%27/%3E%3Crect x=%270%27 y=%2782%27 width=%27150%27 height=%2738%27 fill=%27%23ccd6d7%27/%3E%3Cg stroke=%27%23efece4%27 stroke-width=%277%27 stroke-linecap=%27square%27%3E%3Cpath d=%27M-10 42 L410 56%27/%3E%3Cpath d=%27M58 -10 L108 130%27/%3E%3Cpath d=%27M-10 92 L410 80%27/%3E%3Cpath d=%27M304 -10 L262 130%27/%3E%3C/g%3E%3Cg stroke=%27%23e5e1d6%27 stroke-width=%273%27%3E%3Cpath d=%27M-10 18 L410 28%27/%3E%3Cpath d=%27M182 -10 L202 130%27/%3E%3C/g%3E%3Cg transform=%27translate(200 46)%27%3E%3Cpath d=%27M0 -19 C11 -19 17 -10 17 -2 C17 9 0 24 0 24 C0 24 -17 9 -17 -2 C-17 -10 -11 -19 0 -19 Z%27 fill=%27%23D6481F%27/%3E%3Ccircle cy=%27-2%27 r=%275%27 fill=%27%23fff%27/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}
.m-map .tag { position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 9px; color: #8a8270; background: rgba(246, 243, 236, 0.7); padding: 3px 6px; }
.m-map .dir { background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 30px; }
.m-loc .l { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; margin-top: 14px; }
.m-loc .n { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.m-loc .a { font-size: 12px; color: var(--muted); }
.m-loc .park { font-size: 12px; color: var(--muted); margin-top: 6px; }

.m-sched-head { padding: 40px 22px 16px; background: #fff; border-bottom: 1px solid var(--hair); }
.m-sched-head .t { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.m-sched-head .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.m-tl-item { display: flex; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--hair-3); }
.m-tl-item:first-child { border-top: none; }
.m-tl-item.zebra { background: var(--paper-2); }
.m-tl-item.lunch { background: var(--accent-tint); }
.m-tl-time { font-family: var(--font-mono); font-size: 13px; font-weight: 700; width: 52px; flex-shrink: 0; }
.m-tl-time.accent { color: var(--accent); }
.m-tl-body { font-size: 13px; color: var(--ink); }
.m-tl-body .sub { color: var(--faint); font-size: 12px; }
.m-tl-body .lunch-t { color: var(--accent); font-weight: 700; }
.m-dnp { padding: 1px 6px; font-size: 10px; font-weight: 700; }
.m-dnp.D { background: var(--hair-3); }
.m-dnp.N { background: var(--night-tint); color: var(--night); }

.m-tabs { display: flex; border-top: 1px solid var(--hair); font-size: 12px; text-align: center; color: var(--faint); margin-top: auto; }
.m-tab { flex: 1; padding: 13px 0; cursor: pointer; }
.m-tab.active { color: var(--ink); font-weight: 700; border-top: 2px solid var(--accent); margin-top: -1px; }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600;
  padding: 12px 20px; box-shadow: 0 6px 20px rgba(20, 18, 16, 0.3);
  animation: toastin 0.2s ease;
}
.toast .ok { color: var(--green); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .dash-title { font-size: 27px; }
  .template-grid { grid-template-columns: 1fr; }
  .tcard { border-right: none; border-bottom: 1px solid var(--hair-2); }
  .create-btn { padding: 16px; justify-content: center; }
  .recent-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .calltime-strip { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .loc-row, .two-col, .loc-grid { grid-template-columns: 1fr; }
  .tbl-sched .tbl-head, .tbl-sched .tbl-row { grid-template-columns: 44px 1fr 40px 48px; }
  .tbl-sched .tbl-head > :nth-child(5), .tbl-sched .tbl-row > :nth-child(5),
  .tbl-sched .tbl-head > :nth-child(6), .tbl-sched .tbl-row > :nth-child(6) { display: none; }
  .topnav .navlink { display: none; }
}

/* ============================================================
   v2 — PROJECTS, HUB, SETTINGS, WIDGETS
   ============================================================ */

/* status pills */
.pill-ready { background: var(--ink); color: #fff; }
.pill-progress { background: var(--amber); color: #fff; }

/* structured inputs (date / time / select) — match the .field look */
.nf {
  font-family: var(--font-ui); font-size: 13px; color: var(--ink);
  border: 1px solid var(--hair); background: #fff; padding: 10px 12px; width: 100%;
  appearance: none; -webkit-appearance: none; border-radius: 0; min-height: 40px;
}
.nf:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nf-time, .nf-date { font-family: var(--font-mono); }
.nf-sel { background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }
.field.static { color: var(--muted); background: var(--paper-2); display: flex; align-items: center; }

/* ---- DASHBOARD: productions ---- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; }
.proj-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.proj-card { border: 1px solid var(--hair); border-radius: 20px; background: #fff; padding: 22px 22px 16px; cursor: pointer; box-shadow: 0 1px 2px rgba(20,18,16,.03), 0 12px 30px rgba(20,18,16,.05); transition: box-shadow .18s, border-color .18s; }
.proj-card:hover { border-color: #d8d1c2; box-shadow: 0 2px 4px rgba(20,18,16,.05), 0 18px 44px rgba(20,18,16,.10); }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pc-type { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); font-weight: 700; }
.pc-title { font-size: 34px; line-height: 0.92; color: var(--ink); margin-top: 6px; }
.pc-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pc-meta b { color: var(--ink); }
.pc-count { text-align: right; flex-shrink: 0; }
.pc-count .mono { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink); display: block; }
.pc-count-l { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.day-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.day-chip { position: relative; border: none; background: var(--hair-2); border-radius: var(--r-ctrl); padding: 8px 12px 8px 15px; min-width: 96px; cursor: pointer; transition: background .12s; }
.day-chip::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #b9b2a3; }
.day-chip:hover { background: var(--hair); }
.day-chip.sent::before { background: var(--green); }
.day-chip.ready::before { background: #b9b2a3; }
.day-chip.progress::before { background: var(--amber); }
.dc-day { font-weight: 800; font-size: 13px; color: var(--ink); }
.dc-date { font-size: 11px; color: var(--muted); margin-left: 6px; }
.dc-status { display: block; font-size: 9px; letter-spacing: 0.1em; font-weight: 700; margin-top: 4px; }
.dc-status.sent { color: var(--green); } .dc-status.ready { color: var(--ink); }
.dc-status.progress { color: var(--amber); } .dc-status.draft { color: var(--faint); }
.pc-settings { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 10px 0 0 auto; border: none; background: var(--hair-2); color: var(--muted); border-radius: 9px; cursor: pointer; transition: color .12s, background .12s; }
.proj-card:hover .pc-settings { color: var(--ink); }
.pc-settings:hover { color: var(--accent); background: var(--accent-tint); }
.pc-settings svg { display: block; }
:root[data-theme="dark"] .pc-settings { background: var(--hair-2); }

/* PRODUCTIONS — editorial index rows (2026-07-08 redesign) */
.pl-lab { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .11em; color: var(--muted); font-weight: 700; text-transform: uppercase; margin: 26px 0 10px; }
.pl-lab .n { color: var(--faint); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.pl-colh { display: grid; grid-template-columns: 1fr 184px 116px 36px; gap: 16px; padding: 0 18px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--hair); }
.prow { position: relative; display: grid; grid-template-columns: 1fr 184px 116px 36px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 15px 18px; cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.prow:hover { border-color: #d3ccbc; box-shadow: 0 2px 4px rgba(20,18,16,.04), 0 14px 32px rgba(20,18,16,.07); }
.prow-main { min-width: 0; }
.prow-nm { font-family: var(--font-title); font-weight: 700; font-size: 16px; line-height: 1.15; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.prow-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-days { display: flex; gap: 6px; }
.pday { flex: 0 0 auto; min-width: 42px; text-align: center; border-radius: 8px; padding: 7px 6px; background: var(--paper-2); border: 1px solid var(--hair); cursor: pointer; transition: border-color .12s; }
.prow-strip { display: flex; gap: 3px; width: 100%; }
.pseg { flex: 1; min-width: 0; height: 32px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--hair); cursor: pointer; transition: border-color .12s; }
.pseg:hover { border-color: var(--ink); }
.pseg.sent { background: #dcefe4; border-color: #bfe0cd; }
.pseg.progress { background: #f6ecd4; border-color: #e9d9ac; }
.pday:hover { border-color: var(--ink); }
.pday-l { display: block; font-size: 10px; letter-spacing: .02em; color: var(--faint); }
.pday-s { display: block; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; margin-top: 2px; color: var(--muted); }
.pday.sent { background: #dcefe4; border-color: #bfe0cd; } .pday.sent .pday-s { color: var(--green); }
.pday.progress { background: #f6ecd4; border-color: #e9d9ac; } .pday.progress .pday-s { color: var(--amber); }
.pday.draft .pday-s { color: var(--faint); }
.prow-nodays { font-size: 11px; color: var(--faint); }
.prow-sent { display: flex; flex-direction: column; gap: 6px; }
.ps-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.ps-l b { color: var(--ink); font-size: 16px; }
.ps-bar { height: 5px; border-radius: 3px; background: var(--hair-2); overflow: hidden; }
.ps-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.prow-gear { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--hair); background: transparent; color: var(--muted); border-radius: 9px; cursor: pointer; transition: color .12s, border-color .12s; padding: 0; }
.prow:hover .prow-gear { color: var(--ink); }
.prow-gear:hover { color: var(--accent); border-color: var(--accent); }
.prow-gear svg { display: block; }
.addrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 13px; border: 1px dashed var(--disabled-2); border-radius: 14px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .14s, color .14s; }
.addrow:hover { border-color: var(--accent); color: var(--accent); }
.addrow .ar-plus { font-family: var(--font-display);font-weight:700; font-size: 22px; line-height: 0; }
@media (max-width: 720px) {
  .pl-colh { display: none; }
  .prow { display: block; }
  .prow-main { padding-right: 44px; }   /* clear the top-right gear */
  .prow-days { margin-top: 12px; }
  .prow-sent { flex-direction: row; align-items: center; gap: 10px; margin-top: 12px; }
  .prow-sent .ps-bar { flex: 1; }
  .prow-gear { position: absolute; top: 15px; right: 16px; }
}

/* ---- PROJECT HUB ---- */
#project { min-height: 100vh; background: var(--paper); }
.proj-hub { max-width: 980px; margin: 0 auto; padding: 36px 30px 80px; }
.ph-head .eyebrow { margin-bottom: 4px; }
.ph-title { font-size: 42px; line-height: 0.9; color: var(--ink); }
.ph-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ph-meta b { color: var(--ink); }
.ph-resources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: 24px; }
.rcell { background: #fff; padding: 16px 18px; cursor: pointer; }
.rcell:hover { background: var(--paper-2); }
.rcell .bebas { font-size: 36px; color: var(--ink); line-height: 1; display: block; }
.rcell span:last-child { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.ph-days { margin-top: 30px; }
.sec-label { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.day-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--hair); border-radius: var(--r-card); background: #fff; padding: 16px 20px; margin-bottom: 10px; cursor: pointer; }
.day-row:hover { border-color: var(--ink); }
.dr-num { font-size: 40px; line-height: 0.8; color: var(--ink); }
.dr-num span { font-size: 15px; color: var(--faint); }
.dr-line1 { display: flex; align-items: center; gap: 10px; }
.dr-date { font-size: 14px; font-weight: 600; color: var(--ink); }
.dr-line2 { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dr-missing { font-size: 12px; color: var(--accent); margin-top: 5px; }
.dr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dr-prog { display: flex; align-items: center; gap: 8px; }
.dr-bar { width: 90px; height: 5px; background: var(--hair); }
.dr-fill { height: 100%; background: var(--accent); }
.dr-prog .mono { font-size: 12px; color: var(--muted); }
/* day block fully complete → green bar + % (matches the builder's 100% cue) */
.dr-prog.complete .dr-fill { background: var(--green); }
.dr-prog.complete .mono { color: var(--green); font-weight: 700; }
.dr-conf { font-size: 12px; color: var(--green); }
.dr-acts { display: flex; gap: 8px; }
.btn-ink.sm, .btn-outline-ink.sm { font-size: 12px; padding: 8px 12px; border-radius: var(--r-sm); }

/* ---- SETTINGS ---- */
#settings { min-height: 100vh; background: var(--builder-bg); }
.settings-wrap { max-width: 860px; margin: 0 auto; padding: 30px 26px 90px; display: flex; flex-direction: column; gap: 16px; }
.settings-wrap.lib-wrap { max-width: 1360px; }
.settings-wrap.acct-wide { max-width: 1060px; }
/* library sections: no outer white box — the title sits on the page, the panel is the only box */
.lib-wrap .set-block:not(.rm-block) { background: transparent; border: none; padding: 0; }
.lib-wrap .set-block:not(.rm-block) .set-title-row { margin-bottom: 12px; padding: 0 4px; }
.set-block { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 22px; }
.set-title { font-size: 24px; color: var(--ink); }
.set-title-row { display: flex; justify-content: space-between; align-items: center; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.daycount { display: flex; align-items: center; justify-content: space-between; }
.daycount .step { width: 28px; height: 28px; border: 1px solid var(--hair); font-weight: 700; font-size: 16px; color: var(--ink); }
.daycount .step:hover { border-color: var(--accent); color: var(--accent); }
.daycount .mono { font-size: 16px; font-weight: 700; }
.db-list { margin-top: 12px; display: flex; flex-direction: column; }
.db-row { display: grid; grid-template-columns: 40px 1.2fr 1.4fr 1fr 24px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair-4); }
.db-row.db-crew { grid-template-columns: 1.2fr 1.6fr 1fr 24px; }
.db-num { font-weight: 700; }
.db-name { font-weight: 600; color: var(--ink); }
.db-sub { font-size: 12px; color: var(--muted); }
.db-role .nf-sel { padding: 6px 24px 6px 8px; min-height: 32px; font-size: 12px; }
.db-del { color: var(--disabled); font-size: 13px; padding: 4px; }
.db-del:hover { color: var(--accent); }
.db-empty { color: var(--faint); padding: 10px 0; font-size: 13px; }
.db-loc { margin-bottom: 10px; }
.db-loc-head { display: flex; justify-content: space-between; align-items: center; }
.db-loc-extra { display: flex; gap: 22px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.hosp-edit { margin-top: 16px; padding: 14px; border: 1.5px solid var(--accent); background: var(--accent-tint); }
.addr-field { position: relative; margin-top: 6px; }
.addr-input { padding-right: 30px; font-family: var(--font-ui); }

/* ===== locations: labeled editor card + separated hospital section ===== */
.loc2-card { border: 1px solid var(--hair); border-radius: var(--r-card); background: #fff; padding: 16px 18px; margin-bottom: 12px; }
.loc2-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.loc2-num { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.loc2-f { margin-bottom: 12px; }
.loc2-f > label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.loc2-f > label .dir-link { text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-weight: 700; color: var(--accent); text-decoration: none; }
.loc2-f .nf, .loc2-f .nf-sel { width: 100%; box-sizing: border-box; }
.loc2-f .addr-field { margin-top: 0; }
.loc2-frow { display: flex; gap: 16px; flex-wrap: wrap; }
.loc2-grow { flex: 1; min-width: 220px; }
.loc2-park { width: 190px; }
.loc2-div { border-top: 1px solid var(--hair-3); margin: 6px 0 14px; }
.loc2-hosp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.loc2-hosp-head label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.loc2-refind { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-tint); border: none; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.loc2-refind:hover { background: var(--accent); color: #fff; }
.loc2-hosp-info { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 12px 14px; }
.loc2-hosp-name { display: flex; align-items: center; gap: 8px; }
.loc2-hosp-name .nf { font-weight: 700; flex: 1; }
.loc2-hosp-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.nf-mini { min-height: 32px; padding: 6px 9px; font-size: 12px; font-family: var(--font-mono); flex: 1; min-width: 96px; }
.loc2-hosp-empty { border: 1px dashed var(--hair); border-radius: var(--r-ctrl); padding: 18px; text-align: center; background: var(--paper-2); }
.loc2-hosp-empty span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 11px; }
.loc2-areas { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--hair); }
/* library location card */
.db-loc-pin { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.db-loc-pin .luc { width: 16px; height: 16px; }
.db-loc-head { gap: 10px; }
.db-loc-head .nf-name { flex: 1; }
.db-loc-addr { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.db-loc-addr .addr-field { flex: 1; margin-top: 0; }
.db-loc-extra { display: flex; gap: 14px; margin-top: 10px; }
.db-loc-extra .loc2-f { flex: 1; margin-bottom: 0; }

/* ===== crew / talent contact-sheet: aligned rows, not per-person cards ===== */
.cs-panel { border: 1px solid var(--hair); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.cs-crew .cs-row, .cs-crew .cs-head { grid-template-columns: 40px minmax(180px,1.7fr) minmax(150px,1fr) minmax(210px,1.5fr) 150px 60px 60px 34px; }
.cs-talent .cs-row, .cs-talent .cs-head { grid-template-columns: 40px minmax(180px,1.6fr) minmax(140px,1fr) minmax(200px,1.5fr) 150px 60px 60px 60px 34px; }
.cs-tog.shot.on { background: var(--ink); }
.cs-row { display: grid; gap: 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--hair-4); }
.cs-deptbody .cs-row:last-child { border-bottom: none; }
.cs-head { padding: 9px 16px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; border-bottom: 1px solid var(--hair); background: var(--paper-2); }
.cs-head .cs-c { text-align: center; }
.cs-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--ink); background: var(--hair-2); cursor: grab; user-select: none; touch-action: none; }
.cs-av.miss { background: #f6ecd6; color: #a37a1e; }
.cs-row .nf { min-height: 34px; padding: 7px 9px; font-size: 13px; border-color: transparent; background: transparent; box-shadow: none; }
.cs-row .nf:hover { border-color: var(--hair); background: var(--paper-2); }
.cs-row .nf:focus { border-color: var(--accent); background: #fff; }
.cs-row .cs-name { font-weight: 700; }
.cs-row .nf-role { border-radius: 999px; background-color: var(--accent-tint); border-color: var(--accent); color: var(--accent); font-weight: 600; padding-left: 13px; min-height: 32px; }
.cs-row .nf-role.nf-role-empty { background-color: transparent; border-color: transparent; color: var(--muted); font-weight: 400; }
.cs-row .nf-role.nf-role-empty:hover { border-color: var(--hair); }
.cs-tog { position: relative; justify-self: center; width: 38px; height: 22px; border-radius: 999px; background: var(--hair); cursor: pointer; transition: background .16s; }
.cs-tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.cs-sw { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20,18,16,.25); transition: left .16s; }
.cs-tog.on { background: var(--accent); }
.cs-tog.on .cs-sw { left: 18px; }
.cs-row .db-del { justify-self: center; }
.cs-dept { display: flex; align-items: center; gap: 9px; padding: 9px 16px; background: var(--paper-2); border-bottom: 1px solid var(--hair-4); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.cs-dept-cv { display: flex; transition: transform .15s; }
.cs-dept-cv .luc { width: 15px; height: 15px; }
.cs-dept.collapsed .cs-dept-cv { transform: rotate(-90deg); }
.cs-dept-n { color: var(--faint); }
.cs-dept-add { margin-left: auto; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--accent); background: none; border: none; padding: 4px 6px; cursor: pointer; }
.cs-dept-add:hover { color: var(--accent-hover); }
.cs-deptbody.hide { display: none; }
.cs-guard { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 16px 8px 48px; padding: 9px 12px; background: #f6ecd6; border: 1px solid rgba(184,134,42,.35); border-radius: var(--r-ctrl); }
.cs-guard-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.cs-guard .nf { min-height: 32px; padding: 6px 9px; font-size: 12px; background: #fff; flex: 1; min-width: 130px; }
/* clearer separation between talent entries — each = row (+ optional guardian + contract strip) reads as one band */
.cs-talent .cs-row { border-bottom: none; }
.cs-talent .cs-deptbody > .cs-row:not(:first-child) { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 15px; }
/* contract status strip under a talent library row (Q2 Library↔Contracts) — indented + left rail so it clearly hangs off the talent above */
.cs-contract { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 16px 10px 48px; padding: 3px 0 3px 10px; border-left: 2px solid var(--hair); }
.cs-ct-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-right: 2px; }
.ct-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; line-height: 1.4; font-family: inherit; }
.ct-chip svg { width: 12px; height: 12px; }
.ct-chip.signed { background: #e4f1ea; color: var(--green); }
.ct-chip.sent { background: var(--accent-tint); color: var(--accent); }
.ct-chip.draft { background: var(--hair-2); color: var(--muted); }
.ct-chip.need { background: #f6ecd6; color: #8a6d2e; border-color: rgba(184,134,42,.3); font-weight: 700; }
.ct-chip.need:hover { background: #efe0bf; }
.ct-chip.link { background: #e7eef6; color: #2E4A6B; border-color: rgba(46,74,107,.22); font-weight: 700; }
.ct-chip.link:hover { background: #d9e5f1; }
@media (max-width: 1000px) { .cs-panel { overflow-x: auto; } .cs-crew .cs-row, .cs-crew .cs-head, .cs-talent .cs-row, .cs-talent .cs-head { min-width: 920px; } }
.addr-ico { position: absolute; right: 11px; top: 12px; color: var(--faint); font-size: 13px; pointer-events: none; }
/* new PlaceAutocompleteElement */
gmp-place-autocomplete, .addr-pac { width: 100%; margin-top: 6px; display: block; --gmp-mat-color-surface: #fff; }
/* google autocomplete dropdown — match the editorial look */
.pac-container { border: 1px solid var(--ink); box-shadow: 0 10px 30px rgba(20,18,16,.22); font-family: var(--font-ui); border-radius: 0; margin-top: 2px; }
.pac-item { padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--hair-4); cursor: pointer; }
.pac-item:hover { background: var(--accent-tint); }
.pac-item-query { font-size: 13px; color: var(--ink); }

/* ---- BUILDER widgets ---- */
.save-link { color: var(--accent) !important; font-weight: 700 !important; }
.sch-list, .cast-list, .crew-list, .bg-list { display: flex; flex-direction: column; }
.sch-row { display: grid; grid-template-columns: 46px 38px 1fr 36px 64px 22px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; align-items: center; }
.sch-row:last-child { border-bottom: none; }
.sch-ie { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--night); background: var(--night-tint); padding: 2px 4px; text-align: center; cursor: pointer; }
.sch-desc { color: var(--ink); }
.sch-desc b { font-weight: 700; }
.row-del { color: var(--disabled); font-size: 12px; padding: 2px; opacity: 0; transition: opacity .12s; }
.sch-row:hover .row-del, .cast-row:hover .row-del, .crewrow:hover .row-del, .bg-row:hover .row-del, .note-item:hover .row-del, .banner:hover .row-del { opacity: 1; }
.row-del:hover { color: var(--accent); }
.sch-add { display: flex; gap: 18px; padding-top: 8px; }
.banner-add { cursor: pointer; }
.sch-empty { color: var(--faint); padding: 10px 0; font-size: 13px; }
.banner { position: relative; text-align: center; padding: 7px 28px; margin: 4px 0; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; }
.banner .bn-grip { position: absolute; left: 8px; color: var(--disabled); cursor: grab; }
.banner .row-del { position: absolute; right: 8px; }
.banner-lunch, .banner-meal2, .banner-breakfast, .banner-grace { background: var(--accent-tint); color: var(--accent); }
.banner-move, .banner-travel { background: var(--night-tint); color: var(--night); }
.banner-cover { background: #fbf0d8; color: var(--amber); }
.banner-rehearsal { background: var(--hair-3); color: var(--muted); }
.banner-wrap { background: var(--ink); color: var(--paper); }
.banner-custom { background: var(--paper-2); color: var(--ink); border: 1px dashed var(--hair); }

.cast-row { display: grid; grid-template-columns: 26px 1.5fr 72px 1fr 1fr 1fr 22px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; align-items: center; }
.cast-row:last-child { border-bottom: none; }
.cast-num { font-weight: 700; }
.cast-name { font-weight: 600; line-height: 1.2; }
.cast-role { font-size: 11px; color: var(--faint); font-weight: 400; }
.cast-st .nf-sel { padding: 6px 22px 6px 8px; min-height: 30px; font-size: 11px; font-family: var(--font-mono); }
.cl { display: flex; flex-direction: column; gap: 2px; }
.cl label { font-size: 9px; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; }
.cl .nf { padding: 6px 8px; min-height: 30px; font-size: 12px; }

.bg-row { display: grid; grid-template-columns: 60px 1fr 90px 22px; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair-4); align-items: center; font-size: 13px; }
.bg-desc { color: var(--ink); }
/* shotlist (admin/producer-only shot plan + on-set checklist) — sits in the production hub */
.sl-wrap { margin-top: 4px; }
.sl-grp { border: 1px solid var(--hair-3); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.sl-grp.crit { border-color: #f0c9c9; background: #fdf4f2; }
.sb-acts .sl-gen { color: var(--accent); font-weight: 700; }
/* filters — compact mono segmented control, matching the hub's sec-label / mono vocabulary */
.sl-filters { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; }
.sl-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--hair-4); border-radius: var(--r-sm); }
.sl-fc { font: 700 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); background: none; border: none; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.sl-fc:hover { color: var(--muted); }
.sl-fc.on { color: var(--ink); background: #fff; box-shadow: var(--shadow-block, 0 1px 3px rgba(20,18,16,.12)); }
.sl-fc.crit.on { color: #A32D2D; }
.sl-pdf { margin-left: auto; font: 700 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); background: none; border: none; cursor: pointer; }
.sl-pdf:hover { color: var(--accent); }
/* pull-from-script picker modal */
.pfs-tools { display: flex; align-items: center; gap: 14px; padding: 4px 20px 8px; flex-wrap: wrap; }
.pfs-note { font-size: 11px; color: var(--faint); }
.pfs-list { max-height: 52vh; overflow: auto; padding: 0 12px 4px; }
.pfs-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.pfs-row:hover { background: var(--hair-4, #f3efe6); }
.pfs-ck { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.pfs-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pfs-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pfs-star { color: #A32D2D; }
.pfs-meta { font-size: 11.5px; color: var(--muted); }
.pfs-st { font-weight: 700; }
.pfs-st.new { color: #0F6E56; }
.pfs-st.upd { color: #854F0B; }
.sl-grp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sl-critmark { color: #A32D2D; font-size: 13px; }
.sl-grp-t { font-weight: 700; font-size: 14px; color: var(--ink); }
.sl-grp-n { font: 700 11px/1 var(--font-mono); color: var(--faint); margin-left: auto; }
.sl-critbtn { border: none; background: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }
.sl-critbtn.on { color: #A32D2D; }
.sl-daychip { font: 700 9px/1 var(--font-mono); letter-spacing: .05em; color: #185FA5; background: #E6F1FB; border: none; border-radius: 5px; padding: 4px 7px; cursor: pointer; }
.sl-daychip.all { color: var(--muted); background: var(--hair-3); }
.sl-grp.crit .sl-daychip.all { color: #A32D2D; background: #FCEBEB; }
.sl-it { display: grid; grid-template-columns: 54px 92px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--hair-4); }
.sl-it.drag { grid-template-columns: 16px 54px 92px minmax(0,1fr) auto; }
.sl-it:first-child { border-top: none; }
.sl-grip { cursor: grab; color: var(--faint); font-size: 13px; line-height: 1; text-align: center; user-select: none; touch-action: none; flex: none; }
.sl-grip:active { cursor: grabbing; }
.sl-it.dragging, .sl-grp.dragging { opacity: .4; }
.sl-it.done .sl-descin, .sl-it.done .sl-shin { color: var(--faint); text-decoration: line-through; }
.sl-in { font-size: 13px; padding: 7px 9px; min-height: 34px; }
.sl-shin { font-family: var(--font-mono); text-align: center; }
.sl-shin.ro, .sl-sizein.ro { font-size: 12px; color: var(--muted); }
.sl-shin.ro { font-family: var(--font-mono); text-align: center; }
.sl-descin.ro { font-size: 13.5px; color: var(--ink); }
.sl-rtools { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: flex-end; }
.sl-box { width: 24px; height: 24px; border-radius: 6px; border: 1.6px solid var(--hair); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }
.sl-box.on { background: var(--green, #1f7a4d); border-color: var(--green, #1f7a4d); }
.sl-box svg { width: 14px; height: 14px; }
.sl-asn { width: 24px; height: 24px; border-radius: 50%; background: #e2d6cf; color: #8a5a45; font: 600 9px/1 var(--font-sans); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex: none; }
.sl-asn.add { background: none; border: 1px dashed var(--hair); color: var(--faint); }
.sl-mob { font: 600 9.5px/1 var(--font-mono); letter-spacing: .03em; color: var(--green, #1f7a4d); background: #e7f2ec; border-radius: var(--r-pill); padding: 4px 8px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.sl-del { color: var(--faint); background: none; border: none; cursor: pointer; padding: 2px 3px; display: flex; }
.sl-del:hover { color: #A32D2D; }
.sl-del svg { width: 15px; height: 15px; }
.sl-tg { font: 700 8.5px/1 var(--font-mono); letter-spacing: .05em; border-radius: 4px; padding: 3px 5px; }
.sl-tg.plate, .sl-tgtog.plate.on { background: #E6F1FB; color: #185FA5; }
.sl-tg.vfx, .sl-tgtog.vfx.on { background: #EEEDFE; color: #534AB7; }
.sl-tg.song, .sl-tgtog.song.on { background: #FAEEDA; color: #854F0B; }
.sl-tg.insert, .sl-tgtog.insert.on { background: #F1EFE8; color: #444441; }
.sl-tg.safety, .sl-tgtog.safety.on { background: #FCEBEB; color: #A32D2D; }
.sl-tgtog { font: 700 8.5px/1 var(--font-mono); letter-spacing: .04em; border: 1px solid var(--hair-3); background: #fff; color: var(--faint); border-radius: 4px; padding: 3px 5px; cursor: pointer; }
.sl-by { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.sl-tools { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.sl-critwarn { color: #A32D2D; }
/* department notes — a sub-block inside Notes & Safety (not a separate section) */
.dn-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair-3); }
.dn-sub-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dn-sub-t { font: 700 11px/1 var(--font-mono); letter-spacing: .09em; color: var(--ink); }
.dn-sub-opt { font-size: 12px; color: var(--faint); }
.dn-head { display: grid; grid-template-columns: 72px 168px 1fr 24px; gap: 10px; padding: 0 0 6px; font: 700 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--faint); }
.dn-row { display: grid; grid-template-columns: 72px 168px 1fr 24px; gap: 10px; padding: 6px 0; align-items: center; }
.dn-row .nf { min-height: 34px; }
.dn-sc-in { font-family: var(--font-mono); text-align: center; }
.dn-row:hover .row-del { opacity: 1; }
.dn-list + .add-row { margin-top: 6px; }
/* Pull-from-breakdown (Design B) */
.dn-pull { margin-left: auto; font: 700 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--accent, #8a6d3b); cursor: pointer; padding: 4px 8px; border: 1px solid var(--hair); border-radius: var(--r-pill, 999px); background: #fff; white-space: nowrap; transition: background .12s, border-color .12s; }
.dn-pull:hover { background: #faf7f1; border-color: var(--accent, #c9b48a); }
.dn-sugg { margin: 2px 0 10px; padding: 10px 12px; background: #faf8f3; border: 1px solid var(--hair); border-radius: var(--r-ctrl, 12px); }
.dn-sugg-h { font: 700 9.5px/1 var(--font-mono); letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.dn-sugg-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dn-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-sm, 9px); font-size: 12px; color: var(--ink); cursor: pointer; line-height: 1.35; transition: border-color .12s, box-shadow .12s; }
.dn-chip:hover { border-color: var(--accent, #c9b48a); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dn-chip b { font: 700 10px/1 var(--font-mono); letter-spacing: .04em; }
.dn-chip-sc { font: 600 10px/1 var(--font-mono); color: var(--faint); }
.dn-chip-add { font-size: 13px; color: var(--accent, #8a6d3b); margin-left: 2px; }
.dn-sugg-note { margin-top: 8px; font-size: 11px; color: var(--faint); }
.dn-sheet { margin-top: 4px; }
.dn-sheet-row { font-size: 12px; color: var(--ink); padding: 4px 0; line-height: 1.5; }
.dn-sc-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--accent); border: 1px solid var(--hair-3); border-radius: 4px; padding: 1px 5px; margin-right: 7px; }

.crew-dept-h { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; margin: 10px 0 4px; display: flex; align-items: center; gap: 6px; }
.crewrow { display: grid; grid-template-columns: 18px 1.3fr 1.2fr 90px 22px; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair-4); align-items: center; font-size: 13px; }
.crew-nm { font-weight: 600; }
.crew-rl { color: var(--muted); }
.crew-grip { display: inline-flex; align-items: center; justify-content: center; color: var(--disabled); cursor: grab; touch-action: none; }
.crew-grip:hover { color: var(--muted); }
.crew-grip:active { cursor: grabbing; }
.crew-grip svg { display: block; }
.cd-lifted { opacity: .35; }

.wx-field { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wx-city { border: 1px solid var(--hair); border-radius: var(--r-sm); background: #fff; padding: 6px 8px; font-size: 12px; width: 100%; font-family: var(--font-mono); }

/* loc select in builder */
.loc-card .l .nf-sel { display: inline-block; width: auto; min-height: 26px; padding: 3px 22px 3px 8px; font-size: 11px; margin-left: 8px; }

/* ---- float menus (banner picker / db picker) ---- */
.float-menu { position: fixed; z-index: 250; background: #fff; border: 1px solid var(--ink); box-shadow: 0 10px 30px rgba(20,18,16,.22); min-width: 200px; max-height: 320px; overflow-y: auto; }
.float-menu.wide { min-width: 280px; }
.float-menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 13px; color: var(--ink); background: none; border-bottom: 1px solid var(--hair-4); }
.float-menu button:hover { background: var(--accent-tint); }
.float-menu button b { font-weight: 600; }
.float-menu button span { color: var(--faint); font-size: 12px; }
.float-menu .fm-new { color: var(--accent); font-weight: 700; }
.float-menu .fm-empty { padding: 10px 14px; color: var(--faint); font-size: 12px; }

.bg-line { font-size: 12px; color: var(--muted); margin-top: 12px; padding: 8px 0; border-top: 1px solid var(--hair-3); }

/* ---- time-based schedule (start + duration) ---- */
.sch-row { grid-template-columns: 16px 50px 38px 30px 1fr 26px 50px 54px 18px; }
.sch-grip { color: var(--disabled); font-size: 14px; cursor: grab; user-select: none; touch-action: none; text-align: center; line-height: 1; }
.sch-grip:active { cursor: grabbing; }
.sch-row.dragging, .banner.dragging { opacity: .35; }
/* talent rows: the number badge doubles as a drag handle to reorder cast */
.cast-num[data-dragcast] { cursor: grab; touch-action: none; user-select: none; }
.cast-num[data-dragcast]:active { cursor: grabbing; }
.cast-row.dragging { opacity: .35; }
.sch-start { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.nf-dur, .nf-pages { font-family: var(--font-mono); padding: 5px 6px; min-height: 30px; font-size: 12px; text-align: center; }

/* ===== schedule: calm summary rows that expand into a labeled editor ===== */
.sc2-list { display: flex; flex-direction: column; }
.sc2-row { border-bottom: 1px solid var(--hair-4); }
.sc2-row:last-child { border-bottom: none; }
.sc2-row.open { border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--paper-2); margin: 6px 0; box-shadow: var(--shadow-block); }
.sc2-sum { display: grid; grid-template-columns: 18px 122px 30px 54px minmax(90px,1.1fr) minmax(0,1.6fr) auto 92px 18px; gap: 11px; align-items: center; padding: 12px 8px; cursor: pointer; font-size: 13px; }
.sc2-row.open .sc2-sum { border-bottom: 1px solid var(--hair); }
.sc2-sum:hover { background: var(--hair-4); }
.sc2-row.open .sc2-sum, .sc2-row.open .sc2-sum:hover { background: transparent; }
.sc2-grip { color: var(--disabled); font-size: 14px; cursor: grab; text-align: center; touch-action: none; user-select: none; }
.sc2-start { color: var(--accent); font-weight: 700; font-size: 12px; }
.sc2-num { font-weight: 700; color: var(--ink); }
.sc2-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: var(--r-sm); text-align: center; white-space: nowrap; }
.sc2-tag.d { background: var(--hair-3); color: var(--ink); }
.sc2-tag.n { background: var(--night-tint); color: var(--night); }
.sc2-set { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc2-untitled { color: var(--faint); font-weight: 500; }
.sc2-desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc2-cast { display: flex; gap: 4px; justify-content: flex-end; }
.sc2-cc { font-size: 10px; font-weight: 700; background: var(--accent-tint); color: var(--accent); border-radius: 999px; padding: 2px 7px; }
.sc2-metasm { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.sc2-chev { color: var(--faint); display: flex; justify-content: center; }
.sc2-chev .luc { width: 16px; height: 16px; }
.sc2-form { padding: 6px 16px 16px; }
.sc2-frow { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 4px; }
.sc2-f { margin-bottom: 14px; }
.sc2-frow .sc2-f { margin-bottom: 14px; }
.sc2-f > label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.sc2-f .nf { width: 100%; box-sizing: border-box; }
.sc2-fnum .nf, .sc2-fnarrow .nf { width: 88px; text-align: center; font-family: var(--font-mono); }
.sc2-ta { min-height: 56px; resize: vertical; line-height: 1.5; }
.sc2-seg { display: inline-flex; border: 1px solid var(--hair); border-radius: var(--r-ctrl); overflow: hidden; }
.sc2-seg button { border: none; background: transparent; font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 15px; cursor: pointer; }
.sc2-seg button.on { background: var(--ink); color: #fff; }
.sc2-casts { display: flex; flex-wrap: wrap; gap: 8px; }
.sc2-castchip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; border: 1px solid var(--hair); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 13px 6px 7px; cursor: pointer; }
.sc2-castchip.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.sc2-ck { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.sc2-castchip.on .sc2-ck { background: var(--accent); border-color: var(--accent); }
.sc2-castnone { font-size: 12.5px; color: var(--muted); }
.sc2-formfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.sc2-remove { background: none; border: none; color: var(--faint); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sc2-remove:hover { color: #b3261e; }
.sc2-remove .luc { width: 14px; height: 14px; }
.sc2-banner { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-bottom: 1px solid var(--hair-4); }
.sc2-banner .sc2-grip { width: 16px; flex: none; }
.sc2-banner .sc2-start { flex: none; }
.sc2-banner .banner-ce { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.sc2-banner .nf-dur { width: 58px; flex: none; }
.banner-icbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; background: rgba(255,255,255,.55); border-radius: 7px; cursor: pointer; padding: 0; }
.banner-icbtn.on { outline: 1.5px solid currentColor; }
.banner-icbtn svg { width: 15px; height: 15px; }
.banner-style { display: flex; flex-wrap: wrap; gap: 20px; padding: 10px 14px 12px 40px; border-bottom: 1px solid var(--hair-4); background: var(--paper-2); }
.bsp-grp { display: flex; align-items: center; gap: 10px; }
.bsp-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.bsp-icons { display: flex; gap: 5px; }
.bsp-ic { width: 30px; height: 30px; border: 1px solid var(--hair); background: #fff; border-radius: 7px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.bsp-ic svg { width: 15px; height: 15px; }
.bsp-ic.on { border-color: var(--ink); border-width: 2px; color: var(--ink); }
.bsp-cols { display: flex; gap: 7px; }
.bsp-col { width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; padding: 0; }
.bsp-col.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
@media (max-width: 720px) { .sc2-sum { grid-template-columns: 16px 112px 26px 48px 1fr auto 16px; } .sc2-desc, .sc2-metasm { display: none; } }
.banner { display: flex; align-items: center; gap: 10px; text-align: left; padding: 7px 12px; }
.banner .sch-start { flex-shrink: 0; }
.banner .banner-ce { flex: 1; text-align: center; }
.banner .nf-dur { width: 58px; flex-shrink: 0; background: rgba(255,255,255,.5); }
.banner .row-del { position: static; }
.dir-link { color: var(--accent); text-decoration: none; font-size: 0.85em; font-weight: 700; }
.dir-link:hover { color: var(--accent-hover); }

/* ---- cast row now: #, name, status, PU, CALL, HMU, SET ---- */
.cast-row { grid-template-columns: 24px 1.25fr 58px 1fr 1fr 1fr 1fr 20px; }

/* ---- key contacts row in settings ---- */
.db-row.db-kc { grid-template-columns: 1fr 1.4fr 1fr 24px; }

/* ---- preview tables: 8 cols + TOTAL ---- */
.tbl-sched .tbl-head, .tbl-sched .tbl-row { grid-template-columns: 54px 42px 1fr 40px 58px 52px 46px 50px; column-gap: 8px; }
.tbl-sched .tbl-row > div { min-width: 0; }
.sc-cast { letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-loc { display: flex; justify-content: center; }
.sc-dash { color: var(--faint); font-family: var(--font-mono); }
.locpin { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--night-tint); color: var(--night); font-family: var(--font-mono); font-weight: 700; font-size: 11px; }
.tbl-cast .tbl-head, .tbl-cast .tbl-row { grid-template-columns: 28px 1.2fr 1fr 48px 60px 60px 60px 60px; }
.tbl-row.tbl-total { background: #efe9dd; font-weight: 700; border-top: 1.5px solid var(--ink); }
.sb-start { color: var(--accent); margin-right: 6px; font-weight: 700; }

/* ---- SEND / TRACK modals ---- */
.modal-host { position: fixed; inset: 0; background: rgba(20,18,16,.55); z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 50px 20px; overflow-y: auto; }
.modal-card { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-card); width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(20,18,16,.4); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 12px; }
.mh-title { font-size: 26px; color: var(--ink); }
.modal-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.modal-x { font-size: 16px; color: var(--faint); padding: 4px 8px; }
.modal-x:hover { color: var(--accent); }
.send-warn { margin: 0 22px; padding: 9px 12px; background: #fbf0d8; color: var(--amber); font-size: 12px; font-weight: 600; }
.send-tools { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 8px; border-bottom: 1px solid var(--hair-3); }
.send-all { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.send-count { font-size: 12px; color: var(--muted); }
.send-count b { color: var(--accent); font-size: 14px; }
.send-list { max-height: 320px; overflow-y: auto; }
.send-row { display: grid; grid-template-columns: 22px 44px 1fr 160px auto; gap: 10px; align-items: center; padding: 9px 22px; border-bottom: 1px solid var(--hair-4); cursor: pointer; }
.send-row:hover { background: var(--paper-2); }
.sr-kind { font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 5px; text-align: center; }
.sr-kind.cast { background: var(--accent-tint); color: var(--accent); }
.sr-kind.crew { background: var(--hair-3); color: var(--muted); }
.sr-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.sr-role { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.sr-open { display: block; font-size: 10.5px; color: var(--green, #1f7a4d); font-weight: 600; margin-top: 2px; }
.sr-email { padding: 6px 8px; min-height: 30px; font-size: 12px; }
.send-note { padding: 14px 22px; }
.send-note textarea { resize: vertical; }
.send-empty { padding: 24px 22px; color: var(--faint); font-size: 13px; text-align: center; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--hair-3); }
.btn-ghost-ink { background: #fff; border: 1.5px solid var(--hair); color: var(--ink); font-weight: 600; }
.btn-ghost-ink:hover { border-color: var(--ink); }

/* Contacts import / export modal */
.ie-body { padding: 4px 22px 18px; }
.ie-body .field-label { margin: 16px 0 8px; }
.ie-export { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 13px 15px; background: var(--paper-2); }
.ie-ex-ttl { font-size: 14px; font-weight: 600; color: var(--ink); }
.ie-ex-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ie-chips { display: flex; gap: 6px; margin-left: auto; }
.ie-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: #fff; color: var(--muted); cursor: pointer; }
.ie-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ie-divider { height: 1px; background: var(--hair-2); margin: 18px 0 0; }
.ie-file { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--hair); border-radius: var(--r-card); padding: 20px; font-size: 14px; font-weight: 600; color: var(--night); cursor: pointer; background: var(--paper-2); }
.ie-file:hover { border-color: var(--night); }
.ie-filehint { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.ie-fileline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ie-fileline b { color: var(--ink); font-weight: 600; }
.ie-rechoose { margin-left: auto; color: var(--night); text-decoration: underline; cursor: pointer; }
.ie-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ie-stat { font-size: 12px; color: var(--muted); }
.ie-stat b { color: var(--ink); font-weight: 700; }
.ie-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ie-mini { font-size: 12px; color: var(--night); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 2px 3px; }
.ie-seg { display: flex; gap: 3px; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 3px; background: #fff; }
.ie-seg button { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; border: none; background: none; padding: 4px 9px; border-radius: 5px; cursor: pointer; color: var(--muted); }
.ie-seg button.on { background: var(--ink); color: #fff; }
.ie-list { max-height: 300px; border: 1px solid var(--hair); border-radius: var(--r-card); }
.ie-row { display: grid; grid-template-columns: 20px 32px 1fr auto; gap: 11px; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--hair-4); cursor: pointer; }
.ie-row:last-child { border-bottom: none; }
.ie-row.dup { background: var(--paper-2); cursor: default; }
.ie-row.dup .sr-name { color: var(--muted); }
.ie-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; background: var(--hair-2); color: var(--muted); }
.ie-av.t { background: var(--night-tint); color: var(--night); }
.ie-dupb { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); }
.ie-foot-note { flex: 1; font-size: 12px; color: var(--muted); }

.rec-pill { font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; text-transform: uppercase; }
.rec-confirmed { background: var(--green); color: #fff; }
.rec-viewed { background: var(--night-tint); color: var(--night); }
.rec-pending { border: 1px solid var(--disabled-2); color: var(--faint); }
.rec-pill.clickable { cursor: pointer; }

.track-live { font-size: 12px; color: var(--muted); padding: 12px 22px 0; line-height: 1.5; }
.track-live b { color: var(--green); }
.track-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.track-stat .ts { background: #fff; padding: 14px 12px; text-align: center; }
.track-stat .ts .bebas { font-size: 32px; color: var(--ink); line-height: 1; display: block; }
.track-stat .ts span:last-child { font-size: 9px; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.track-stat .ts:first-child .bebas { color: var(--green); }
.track-list { max-height: 300px; overflow-y: auto; }
.track-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 22px; border-bottom: 1px solid var(--hair-4); }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 14px 18px; margin: 16px 0 4px; }
.pb-t { font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--ink); }
.pb-s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pb-acts { display: flex; gap: 8px; flex-shrink: 0; }
.copy-link { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--hair); border-radius: var(--r-ctrl); background: #fff; padding: 4px 9px; cursor: pointer; }
.copy-link:hover { border-color: var(--accent); background: var(--accent-tint); }
.dr-conf[data-tracksheet] { cursor: pointer; }
.dr-conf[data-tracksheet]:hover { color: var(--accent); }

/* ---- ACCOUNT · people library ---- */
#account { min-height: 100vh; background: var(--builder-bg); }
.acct-intro { padding: 4px 2px 6px; }
.acct-title { font-size: 42px; color: var(--ink); line-height: 0.9; }
.acct-sub { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 640px; }
.db-people-head { display: grid; grid-template-columns: 34px 1.3fr 1.3fr 1.3fr 1fr 26px 26px; gap: 11px; padding: 6px 2px; font-size: 10px; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.db-row.db-person { grid-template-columns: 34px 1.3fr 1.3fr 1.3fr 1fr 26px 26px; gap: 11px; align-items: center; padding: 8px 0; }
.db-row.hide, .db-loc.hide, .db-dept.hide, .db-list.hide { display: none; }
.db-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--ink); background: var(--hair-2); border: 2px solid transparent; cursor: grab; user-select: none; touch-action: none; }
.db-av:active { cursor: grabbing; }
.db-av.miss { border-color: var(--accent); color: var(--accent); }
.db-row.db-person.dragging { opacity: 0.35; }
.db-dept { display: flex; align-items: center; gap: 8px; padding: 9px 2px 7px; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--hair); cursor: pointer; user-select: none; }
.db-dept:hover { color: var(--ink); }
.db-dept-n { color: var(--faint); margin-left: auto; }
.db-dept-cv { display: flex; color: var(--faint); transition: transform .15s ease; }
.db-dept-cv .luc { width: 14px; height: 14px; }
.db-dept.collapsed .db-dept-cv { transform: rotate(-90deg); }
.db-icon { color: var(--faint); font-size: 15px; justify-self: center; cursor: pointer; background: none; }
.db-icon:hover { color: var(--accent); }
.db-person .nf { min-height: 38px; padding: 9px 11px; font-size: 13px; }
.db-person .nf-sel { padding: 9px 26px 9px 11px; }
.db-person .nf.mono { font-family: var(--font-mono); font-size: 12px; }
.db-person .db-del { justify-self: center; }
/* ===== Library rounded cards — soft fields, clear per-person divisions, role pill ===== */
.db-list { gap: 0; }
.db-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 12px 14px; margin-bottom: 9px; transition: border-color .12s ease, box-shadow .12s ease; }
.db-card:hover { border-color: var(--disabled-2, #d3d1c7); box-shadow: 0 2px 10px rgba(20,18,16,.05); }
.db-card.incomplete { border-color: var(--hair); }
.db-cmain { display: grid; grid-template-columns: 34px minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,1fr) 28px; gap: 10px; align-items: center; }
.db-csub { display: flex; align-items: center; gap: 24px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--hair-4); flex-wrap: wrap; }
.db-card .nf { border: 1px solid var(--hair); border-radius: var(--r-ctrl); background-color: var(--paper-2); min-height: 38px; padding: 9px 12px; font-size: 13px; box-shadow: none; transition: border-color .12s, background-color .12s; }
.db-card .nf:focus { border-color: var(--accent); background-color: var(--white); box-shadow: none; }
.db-card .nf.mono { font-family: var(--font-mono); font-size: 12px; }
.db-card .db-name { font-weight: 700; }
/* role rendered as an amber pill (still a full role picker) */
.db-card .nf-role { border-radius: 999px; background-color: var(--accent-tint); border-color: var(--accent); color: var(--accent); font-weight: 600; padding-left: 14px; }
.db-card .nf-role.nf-role-empty { background-color: var(--paper-2); border-color: var(--hair); color: var(--muted); font-weight: 400; }
/* location card */
.db-card.db-loc { padding: 13px 15px; }
.db-card.db-loc .db-loc-head .db-name { font-size: 15px; }
@media (max-width: 620px) {
  .db-cmain { grid-template-columns: 1fr; gap: 8px; }
  .db-cmain .db-av { justify-self: start; }
  .db-cmain .db-del { justify-self: end; }
}
.lib-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 0 14px; margin: 14px 0 18px; }
.lib-search-ic { color: var(--faint); font-style: normal; font-size: 16px; }
.lib-search input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14px; color: var(--ink); padding: 12px 0; }
.lib-search input::placeholder { color: var(--faint); }
.lib-missing { color: var(--accent); font-weight: 700; }
.lib-noresults { color: var(--faint); font-size: 13px; padding: 14px 2px; }
.lib-link { cursor: pointer; }
.lib-link:hover { box-shadow: var(--shadow-block); }
.lib-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Library toolbar: search + "Group by Type|Production" toggle */
.lib-toolrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
.lib-toolrow .lib-search { flex: 1 1 260px; margin: 0; }
.lib-groupseg { display: flex; align-items: center; gap: 7px; flex: none; }
.lib-groupseg .lgs-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin-right: 1px; }
.lib-groupseg .lgs { border: 1px solid var(--hair); background: #fff; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 15px; cursor: pointer; }
.lib-groupseg .lgs:first-of-type { border-radius: 8px 0 0 8px; }
.lib-groupseg .lgs:last-of-type { border-radius: 0 8px 8px 0; border-left: none; }
.lib-groupseg .lgs.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* sub-headers inside a production group */
.lib-subhead { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; margin: 18px 0 6px; }
.set-block > .lib-subhead:first-of-type { margin-top: 6px; }
.lib-go { color: var(--accent); font-weight: 700; font-size: 13px; }
.fm-head { padding: 9px 14px; font-size: 10px; letter-spacing: 0.1em; font-weight: 700; color: var(--faint); border-bottom: 1px solid var(--hair-3); background: var(--paper-2); }

/* ---- #4 schedule banners: align start (col1) + EST (col7) with scene rows ---- */
.banner { display: grid; grid-template-columns: 16px 50px 38px 30px 1fr 26px 50px 54px 18px; gap: 8px; align-items: center; text-align: left; padding: 8px 0; margin: 3px 0; }
.banner .sch-grip { grid-column: 1; }
.banner .sch-start { grid-column: 2; }
.banner .banner-ce { grid-column: 3 / 8; text-align: center; }
.banner .nf-dur { grid-column: 8; }
.banner .row-del { grid-column: 9; position: static; opacity: 0; }
.banner:hover .row-del { opacity: 1; }

/* ---- #5 cast status dropdown aligned to the time fields (label + 30px input) ---- */
.cast-row { grid-template-columns: 24px 1.25fr 64px 1fr 1fr 1fr 1fr 20px; }
.cl .nf-sel { min-height: 30px; padding: 6px 20px 6px 8px; font-size: 12px; font-family: var(--font-mono); width: 100%; }

/* ---- #2 Places autocomplete: light, not a black bar ---- */
gmp-place-autocomplete, .addr-pac { color-scheme: light; background: #fff; border: 1px solid var(--hair); }
gmp-place-autocomplete::part(input) { background: #fff; color: var(--ink); font-family: var(--font-ui); border: none; }

/* ---- #3 section header controls: [Hide] + Edit/Done ---- */
.head-ctrls { display: flex; align-items: center; gap: 14px; }
.hide-link { font-size: 12px; color: var(--faint); cursor: pointer; }
.hide-link:hover { color: var(--accent); }
.off-head .turn-on { color: var(--accent); }
.ws-edit { border-bottom: 1px dashed transparent; }
.ws-edit:hover { border-bottom-color: var(--disabled-2); }
.ws-edit:focus { box-shadow: none; border-bottom: 1px solid var(--accent); }

/* ---- strip board (script → scenes) ---- */
.stripboard { margin-top: 28px; }
.stripboard.empty { border: 1.5px dashed var(--disabled-2); border-radius: var(--r-card); padding: 26px; text-align: center; cursor: pointer; }
.stripboard.empty:hover { border-color: var(--accent); }
.sb-empty-t { font-size: 26px; color: var(--ink); }
.sb-empty-s { font-size: 13px; color: var(--muted); max-width: 480px; margin: 6px auto 16px; line-height: 1.5; }
/* project media (mp3/mp4) — empty state mirrors the strip-board upload look */
.media-block.empty { border: 1.5px dashed var(--disabled-2); padding: 26px; text-align: center; cursor: pointer; }
.media-block.empty:hover { border-color: var(--accent); }
.media-prog { font-family: var(--font-mono); font-size: 11px; color: var(--accent); min-height: 0; }
.media-prog:not(:empty) { min-height: 16px; margin-bottom: 8px; }
.media-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.media-card { border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 12px 14px; background: var(--paper-2); }
.media-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.media-name { font-weight: 700; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { font-size: 11px; color: var(--muted); flex: none; letter-spacing: .04em; }
.media-head .db-del { flex: none; opacity: 1; }
.media-player { width: 100%; display: block; }
audio.media-player { height: 40px; }
video.media-player { max-height: 320px; border-radius: 8px; background: #000; }
/* compact expandable media rows — project view + call-sheet References section */
.ph-media { margin-top: 26px; }
.sec-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.media-rows { display: flex; flex-direction: column; }
.media-drow { border: 1px solid var(--hair); border-radius: var(--r-ctrl); margin-bottom: 8px; background: var(--paper-2); overflow: hidden; }
.media-drow[open] { border-color: var(--accent); }
.media-dsum { display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer; list-style: none; }
.media-dsum::-webkit-details-marker { display: none; }
.media-dplay { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.media-dplay .luc { width: 13px; height: 13px; }
.media-drow[open] .media-dplay { background: var(--accent); }
.media-dic { color: var(--muted); flex: none; display: flex; }
.media-dic .luc { width: 16px; height: 16px; }
.media-drow .media-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-drow .media-meta { font-size: 10.5px; color: var(--muted); flex: none; letter-spacing: .03em; }
.media-dbody { padding: 0 13px 13px; }
.media-dbody audio { width: 100%; height: 40px; }
.media-dbody video { width: 100%; max-height: 300px; border-radius: 8px; background: #000; }
.ref-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
/* streaming-link media (Vimeo / Drive / Dropbox) */
.media-acts { display: flex; gap: 8px; }
.media-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; }
.media-link-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.media-link-ic .luc { width: 17px; height: 17px; }
.media-link-main { flex: 1; min-width: 0; }
.media-link-main .media-name { flex: none; }
.media-link-url { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-link-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; flex: none; }
.media-link-open { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; color: var(--accent); text-decoration: none; white-space: nowrap; flex: none; }
.media-link-open .ext-ic, .media-ext .ext-ic { width: 14px; height: 14px; }
.media-link-row { display: flex; align-items: center; gap: 11px; text-decoration: none; cursor: pointer; padding: 11px 13px; }
.media-link-row:hover { border-color: var(--accent); }
.media-link-row .media-name { flex: none; color: var(--ink); }
.media-link-row .media-link-url { flex: 1; }
.media-ext { flex: none; display: flex; }
/* add-link modal body */
.link-modal-body { padding: 16px 22px 6px; display: flex; flex-direction: column; }
.lm-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 6px; }
.lm-lab:not(:first-child) { margin-top: 14px; }
.lm-opt { color: var(--disabled); }
.link-modal-body .nf { width: 100%; box-sizing: border-box; }
.lm-hint { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); min-height: 20px; margin-top: 10px; }
.lm-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
/* editable "Sent as" + "Subject" in the send modals */
.send-meta { padding: 14px 22px 2px; display: flex; flex-direction: column; gap: 10px; }
.send-meta .field-label { margin-bottom: 5px; }
.send-meta .nf { width: 100%; box-sizing: border-box; }
/* travel send confirmation modal */
.tsend-body { padding: 16px 22px 6px; }
.tsend-to { display: flex; align-items: center; gap: 11px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 10px 13px; margin-bottom: 14px; }
.tsend-av { width: 32px; height: 32px; border-radius: 50%; background: var(--hair-2); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; flex: none; }
.tsend-tn { font-weight: 700; font-size: 14px; color: var(--ink); }
.tsend-te { font-size: 12px; color: var(--muted); }
.tsend-body .sm-f { margin-bottom: 12px; }
.tsend-body .sm-f .field-label { margin-bottom: 5px; }
.tsend-body .nf { width: 100%; box-sizing: border-box; }
.tsend-glance { margin-top: 6px; }
.tsend-grow { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; }
.tsend-grow:last-child { border-bottom: none; }
.tsend-gd { font-weight: 700; font-size: 11px; color: var(--accent); width: 62px; flex: none; }
.tsend-gt { color: var(--ink); }
.tsend-sms { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair-3); }
.tsend-mob { font-size: 13px; color: var(--muted); margin: 4px 0 9px; }
.tsend-mob b { color: var(--ink); }
.tsend-consent { display: flex; gap: 10px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 11px 13px; cursor: pointer; }
.tsend-consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.tsend-consent span { font-size: 12px; color: var(--ink-2, #2a251f); line-height: 1.45; }
.tsend-nomob { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair-3); font-size: 12.5px; color: var(--faint); }
/* Travel Messages inbox (AI concierge) */
.tmsg-card { max-width: 560px; width: 96vw; }
.tmsg-body { padding: 8px 18px 16px; max-height: 66vh; overflow: auto; }
.tmsg-thread { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 13px; margin-top: 12px; background: #fff; }
.tmsg-thread.esc { border-color: var(--accent); background: #fffaf7; }
.tmsg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.tmsg-del { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--faint); cursor: pointer; flex: none; opacity: .5; transition: opacity .12s, color .12s, background .12s; }
.tmsg-del:hover { opacity: 1; color: #c8563f; background: var(--paper-2); }
.tmsg-del svg { width: 15px; height: 15px; }
.tmsg-nm { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.tmsg-ph { font-size: 11px; color: var(--faint); }
.tmsg-st { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.tmsg-st.esc { color: var(--accent); }
.tmsg-stream { display: flex; flex-direction: column; gap: 5px; }
.tmsg-b { max-width: 85%; padding: 7px 11px; border-radius: 13px; font-size: 12.5px; line-height: 1.4; }
.tmsg-b.them { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--hair-3); color: var(--ink); border-bottom-left-radius: 4px; }
.tmsg-b.ai { align-self: flex-end; background: #e9efea; color: #1e4d33; border-bottom-right-radius: 4px; }
.tmsg-b.human { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.tmsg-empty { font-size: 12px; color: var(--faint); }
.tmsg-answer { margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--hair); }
.tmsg-pend { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.tmsg-pend b { color: var(--ink); }
.tmsg-input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hair); border-radius: 9px; padding: 8px 10px; font-size: 13px; font-family: var(--ui, inherit); resize: vertical; color: var(--ink); }
.tmsg-input:focus { outline: none; border-color: var(--accent); }
.tmsg-acts { display: flex; gap: 8px; margin-top: 8px; }
/* Test concierge */
.ctest-card { max-width: 500px; width: 96vw; }
.ctest-body { padding: 14px 18px 6px; }
.ctest-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ctest-chip { font-size: 11.5px; font-weight: 600; color: var(--ink); background: var(--paper-2); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.ctest-chip:hover { border-color: var(--accent); color: var(--accent); }
.ctest-out { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; min-height: 8px; }
.ctest-think { font-size: 12.5px; color: var(--faint); }
.ctest-lab { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ctest-lab.ok { color: var(--green); }
.ctest-lab.esc { color: var(--accent); }
.ctest-escnote { font-size: 12.5px; color: var(--muted); line-height: 1.5; background: #fffaf7; border: 1px solid var(--accent-tint, #fbe9e2); border-radius: 10px; padding: 10px 12px; }
.ctest-escnote b { color: var(--ink); }
.sheet-refs { margin-top: 18px; }
.strip-grid { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.dash-head-acts { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.strip { background: #fff; border: 1px solid var(--hair); border-left: 4px solid var(--amber); border-radius: var(--r-ctrl); font-size: 13px; }
.strip-row { display: grid; grid-template-columns: 40px 44px 1fr 30px 16px; gap: 12px; align-items: center; padding: 11px 14px; }
.strip[data-stripexpand] .strip-row { cursor: pointer; }
.strip[data-stripexpand]:hover { background: var(--hair-4, #faf8f3); }
.strip.strip-N { border-left-color: var(--night); }
.strip-num { font-family: var(--font-mono); font-weight: 700; }
.strip-ie { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.strip-set { color: var(--ink); font-weight: 600; }
.strip-dn { font-size: 10px; font-weight: 700; padding: 2px 6px; text-align: center; }
.strip-dn.D { background: var(--hair-3); }
.strip-dn.N { background: var(--night-tint); color: var(--night); }
.strip-caret { font-size: 11px; color: var(--faint); transition: transform .15s ease; justify-self: center; }
.strip.open .strip-caret { transform: rotate(90deg); }
.strip-body { display: none; margin: 0 14px; padding: 12px 0 14px 42px; white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; color: var(--muted); border-top: 1px dashed var(--hair); }
.strip.open .strip-body { display: block; }
.strip-body-meta { font-size: 10px; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; margin-bottom: 8px; }
.sb-hint { font-size: 12px; color: var(--faint); margin-top: 10px; }
.sb-hint b { color: var(--accent); }
.sb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sb-acts { display: flex; gap: 16px; flex-shrink: 0; }
.sb-link { font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sb-link:hover { color: var(--accent); }
.strip.strip-setup { border-left-style: dashed; }
.strip.strip-setup .strip-num { color: var(--accent); }
/* montage / intercut headings — keyword doesn't fit the mono I/E slot, so shrink it + tint */
.strip.strip-montage .strip-ie { font-size: 8.5px; letter-spacing: .01em; color: var(--night); }
.float-menu button[disabled] { opacity: .5; cursor: default; }
.float-menu button em { color: var(--green); font-style: normal; font-size: 11px; }

/* ---- global avatar menu header ---- */
/* ---- production delete (moved into Project settings danger zone) ---- */
.proj-card { position: relative; }
.btn-danger { background: #fff; color: var(--muted); border: 1.5px solid var(--hair); font-weight: 700; }
.btn-danger:hover { background: #fff; color: #b3261e; border-color: #b3261e; }
.danger-block { border-color: var(--hair); }
.danger-block .set-title { color: var(--muted); }
.danger-block .set-title-row { align-items: center; }

.am-header { padding: 13px 16px; border-bottom: 1px solid var(--hair-2); }
.am-name { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.am-header .am-email { padding: 2px 0 0; border: none; }

/* ============================================================
   PRINT (Download PDF)
   ============================================================ */
@media print {
  body * { visibility: hidden; }
  #preview, #preview * { visibility: visible; }
  #preview { position: absolute; inset: 0; background: #fff; }
  .preview-actionbar { display: none !important; }
  .sheet-wrap { padding: 0; }
  .sheet { box-shadow: none; border: none; max-width: 100%; }
  @page { margin: 12mm; }
}

/* ============ IMPORT FROM DOCUMENT ============ */
.imp-wrap { max-width: 1000px; margin: 0 auto; padding: 26px 22px 90px; }
.imp-intro .t, .imp-prev-head .t { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 34px; letter-spacing: .01em; }
.imp-intro .s, .imp-prev-head .s { color: var(--muted); font-size: 14px; max-width: 640px; margin-top: 4px; line-height: 1.5; }
.imp-intro { margin-bottom: 18px; }
.imp-card { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 18px; }
.imp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.imp-tab { border: 1px solid var(--hair); background: #fff; border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.imp-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.imp-input, .imp-textarea { width: 100%; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 11px 13px; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.imp-textarea { min-height: 160px; resize: vertical; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; }
.imp-file { display: flex; align-items: center; justify-content: center; min-height: 96px; border: 1.5px dashed var(--hair); border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.imp-file:hover { border-color: var(--accent); color: var(--accent); }
.imp-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.imp-err { color: var(--accent); font-size: 13px; }
/* preview */
.imp-prev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.imp-prev-acts, .imp-prev-foot { display: flex; gap: 10px; flex-shrink: 0; }
.imp-prev-foot { justify-content: flex-end; margin-top: 22px; }
.imp-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.imp-stat { background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 8px 16px; font-size: 12px; color: var(--muted); }
.imp-stat b { display: block; font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 26px; color: var(--ink); letter-spacing: .02em; }
.imp-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.imp-gaps { background: var(--night-tint, #eef2f7); border: 1px solid var(--hair); border-left: 3px solid var(--night); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.imp-gap { font-size: 13px; color: var(--ink); padding: 2px 0; }
.imp-section { margin-bottom: 22px; }
.imp-proj { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.imp-proj-h { background: var(--ink); color: #fff; padding: 11px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.imp-proj-t { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 22px; letter-spacing: .02em; }
.imp-proj-meta { font-size: 12px; color: rgba(255,255,255,.6); }
.imp-day { padding: 12px 16px; border-top: 1px solid var(--hair); }
.imp-day:first-of-type { border-top: none; }
.imp-day-h { display: flex; align-items: baseline; gap: 10px; }
.imp-day-n { font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.imp-day-meta { font-size: 13px; color: var(--muted); }
.imp-day-times { font-size: 11px; color: var(--accent); margin: 3px 0 8px; }
.imp-sched { display: flex; flex-direction: column; gap: 3px; }
.imp-srow { display: grid; grid-template-columns: 34px 38px 1fr 22px 130px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.imp-scn { font-weight: 700; }
.imp-sie { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--muted); }
.imp-sdn { font-size: 10px; font-weight: 700; text-align: center; background: var(--hair-3); border-radius: 3px; }
.imp-sdn.N { background: var(--night-tint, #dde6f0); color: var(--night); }
.imp-scast { color: var(--muted); font-size: 11px; }
.imp-day-cast { font-size: 12px; color: var(--muted); margin-top: 8px; }
.imp-day-cast b { color: var(--ink); }
.imp-faint { color: var(--faint); font-size: 12px; }
.imp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.imp-people { display: flex; flex-wrap: wrap; gap: 8px; }
.imp-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 5px 10px 5px 12px; font-size: 12.5px; background: #fff; }
.imp-chip.new { border-color: #cfe3cf; background: #f3f8f3; }
.imp-chip-name { font-weight: 600; }
.imp-chip-sub { color: var(--muted); font-size: 11.5px; }
.imp-badge { font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: var(--r-sm); }
.imp-badge.new { background: var(--green, #2e7d32); color: #fff; }
.imp-badge.exist { background: var(--hair-3); color: var(--muted); }
.imp-dept { margin-bottom: 12px; }
.imp-dept-h { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 720px) { .imp-cols { grid-template-columns: 1fr; } .imp-srow { grid-template-columns: 30px 32px 1fr 20px; } .imp-scast { display: none; } }

/* import — selective controls + training */
.imp-opts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.imp-opts-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.imp-opt { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.imp-opt input { width: 16px; height: 16px; accent-color: var(--accent); }
.imp-willadd { margin-left: auto; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.imp-dim { opacity: .42; pointer-events: none; }
.imp-cb { width: 15px; height: 15px; accent-color: var(--green, #2e7d32); margin-right: 2px; flex: none; }
.imp-chip.new.off { opacity: .45; }
.imp-chip.new.off .imp-badge.new { background: var(--faint); }
.imp-remap { border: none; background: none; color: var(--night); font-size: 11px; font-weight: 700; cursor: pointer; padding: 0 2px; text-decoration: underline; }
.imp-remap:hover { color: var(--accent); }
.imp-proj.off { opacity: .5; }
.imp-proj-cb { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.imp-proj-cb input { width: 16px; height: 16px; accent-color: #fff; flex: none; }
.imp-history { margin-top: 22px; }
.imp-hrow { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.imp-hsrc { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--ink); border-radius: 4px; padding: 2px 6px; }
.imp-hsum { flex: 1; color: var(--ink); }
.imp-hmeta { color: var(--muted); font-size: 12px; }

/* ============ ACCOUNT & SETTINGS / AVATAR MENU ============ */
.auth-menu .am-header { display: flex; align-items: center; gap: 12px; }
.am-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; font-family: var(--font-mono); }
.am-usage { display: flex; flex-direction: column; gap: 1px; padding: 8px 16px; margin: 0; border-bottom: 1px solid var(--hair-2); font-size: 12px; }
.am-usage:empty { display: none; }
.am-usage span { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.am-usage b { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 22px; color: var(--ink); letter-spacing: .02em; }
.am-usage .am-usage-sub { text-transform: none; letter-spacing: 0; color: var(--faint); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field-static { font-size: 14px; color: var(--ink); padding: 6px 0; }
.field-static .ok { color: var(--green, #2e7d32); font-weight: 600; }
.field-static .muted, .acct-sub .muted { color: var(--faint); }
.acct-sub .lnk, .lnk { color: var(--accent); cursor: pointer; font-weight: 600; }
.acct-model { font-size: 11px; color: var(--faint); }
.acct-meters { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.acct-stat { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 10px 18px; min-width: 120px; }
.acct-stat .bebas { font-size: 30px; display: block; line-height: 1; }
.acct-stat span:last-child { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.acct-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 12px; }
.acct-note b { color: var(--ink); }
.acct-list-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.acct-list { display: flex; flex-direction: column; }
.acct-row { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.acct-row-l { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--ink); border-radius: 4px; padding: 2px 6px; flex: none; }
.acct-row-m { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row-r { color: var(--muted); font-size: 12px; flex: none; }
.acct-empty { font-size: 13px; color: var(--faint); padding: 8px 0; }
.acct-actions { margin-top: 12px; }
.btn.sm { padding: 6px 14px; font-size: 13px; }

/* testers & error log (Account, owner-only) */
.tester-add { display: flex; gap: 8px; margin: 4px 0 10px; max-width: 460px; }
.tester-add .imp-input { flex: 1; }
.acct-row .row-del { margin-left: auto; }

/* ============ BOOT SPLASH + LANDING / LOGIN ============ */
html.ns-boot .screen { display: none !important; }
#splash { display: none; position: fixed; inset: 0; background: #182122; z-index: 9999; align-items: center; justify-content: center; }
.splash-logo { height: 42px; width: auto; display: block; }
/* animated Ct loader (ct-loader.svg) — the boot/transition splash mark, 3.6s draw+retract loop.
   Wider than the old wordmark because it's a square-ish monogram, not a lockup. */
.splash-loader { width: 116px; height: auto; display: block; overflow: visible; }
html.ns-boot #splash { display: flex; }
.splash-brand { display: flex; align-items: center; gap: 10px; }
.splash-brand .dot { width: 10px; height: 10px; border-radius: 2.5px; transform: rotate(45deg); background: var(--accent); animation: splashpulse 1s ease-in-out infinite; }
.splash-brand .wordmark { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 32px; letter-spacing: .04em; color: var(--ink); }
@keyframes splashpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.landing { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 24px 24px; background: var(--paper); }
.landing-brand { display: flex; align-items: center; gap: 9px; }
.landing-brand .dot { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.landing-brand .wordmark { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 26px; letter-spacing: .04em; }
.landing-brand .sub { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-left: 4px; }
.landing-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 680px; margin: 0 auto; width: 100%; }
.landing-h1 { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: clamp(44px, 8vw, 84px); line-height: .95; letter-spacing: .01em; margin: 0 0 18px; }
.landing-sub { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.landing-cta { font-size: 16px; padding: 13px 26px; align-self: flex-start; }
.landing-note { font-size: 13px; color: var(--faint); margin-top: 14px; }
.landing-foot { text-align: center; font-size: 11px; letter-spacing: .06em; color: var(--faint); padding-top: 16px; }

/* ============ LANDING / LOGIN — split layout (design v2) ============ */
.login-split { display: flex; min-height: 100vh; }
.login-left { flex: 1.45; background: var(--ink); color: var(--paper); position: relative; padding: 42px 4.5vw; display: flex; flex-direction: column; overflow: hidden; }
.login-right { flex: 1; background: var(--paper); padding: 42px 4vw; display: flex; flex-direction: column; }
.login-logo { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.login-mark { width: 26px; height: 26px; background: var(--accent); border-radius: 4px; transform: rotate(45deg); flex: none; }
.login-logo .wordmark { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-size: 30px; letter-spacing: .06em; color: var(--paper); }
.login-logo-img { height: 30px; width: auto; display: block; }
.login-logo .logo-on-light { display: none; }
:root[data-theme="dark"] .login-logo .logo-on-dark { display: none; }
:root[data-theme="dark"] .login-logo .logo-on-light { display: block; }
.login-left-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 620px; position: relative; z-index: 2; }
.login-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: rgba(246,243,236,.5); margin-bottom: 24px; text-transform: uppercase; }
.login-h1 { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-weight: 400; font-size: clamp(50px, 6.8vw, 108px); line-height: .9; letter-spacing: .01em; margin: 0 0 28px; }
.login-h1 .login-accent { color: var(--accent); }
.login-h1 .login-hl { color: inherit; }
.login-desc { font-size: 18px; line-height: 1.55; color: rgba(246,243,236,.72); max-width: 470px; text-wrap: pretty; }
.login-left-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(246,243,236,.4); position: relative; z-index: 2; }
.login-steps { display: flex; gap: 24px; }
.login-diamond { position: absolute; right: -140px; top: 50%; width: 540px; height: 540px; transform: translateY(-50%) rotate(45deg); border: 1px solid rgba(246,243,236,.07); z-index: 1; }
.login-diamond::after { content: ''; position: absolute; inset: 70px; border: 1px solid rgba(246,243,236,.05); }
.login-corner { position: absolute; width: 24px; height: 24px; border: 2px solid rgba(246,243,236,.22); z-index: 2; }
.login-corner.tl { left: 18px; top: 18px; border-right: none; border-bottom: none; }
.login-corner.bl { left: 18px; bottom: 18px; border-right: none; border-top: none; }
.login-right-top { text-align: right; font-size: 14px; color: var(--muted); }
.lnk-u { color: var(--accent); text-decoration: underline; font-weight: 700; cursor: pointer; }
.login-right-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 380px; width: 100%; align-self: flex-start; }
.login-signin-h { font-family: 'Space Grotesk';font-weight:700, sans-serif; font-weight: 400; font-size: 46px; letter-spacing: .04em; margin: 0 0 8px; }
.login-signin-sub { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 24px; }
.login-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 9px; padding: 15px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.login-google:hover { opacity: .92; }
.login-google svg { width: 22px; height: 22px; background: #fff; border-radius: 4px; padding: 2px; box-sizing: border-box; }
.login-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--faint); font-size: 12px; letter-spacing: .14em; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.login-email-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.login-email-row { display: flex; }
.login-email-row input { flex: 1; border: 1px solid var(--hair); border-right: none; border-radius: 9px 0 0 9px; padding: 14px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); }
.login-email-row input:focus { outline: none; border-color: var(--ink); }
.login-email-go { background: var(--accent); color: #fff; border: none; border-radius: 0 9px 9px 0; padding: 0 20px; font-size: 18px; cursor: pointer; }
.login-terms { font-size: 12.5px; color: var(--faint); margin-top: 16px; line-height: 1.5; }
.login-terms .tlink { color: var(--muted); text-decoration: underline; cursor: pointer; }
.login-right-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); text-align: right; }
.login-right-foot .g-dot { color: var(--green, #2e7d32); }
.login-legal { display: flex; align-items: center; gap: 8px; }
.login-legal a { color: var(--muted); text-decoration: none; text-transform: uppercase; }
.login-legal a:hover { color: var(--accent); text-decoration: underline; }
.login-legal .sep { color: var(--disabled); }
@media (max-width: 820px) {
  .login-split { flex-direction: column; min-height: 100dvh; }
  .login-left, .login-right { padding: 26px 22px; }
  .login-left { min-height: 62vh; }
  .login-diamond { display: none; }
  .login-right-body { justify-content: flex-start; padding-top: 6px; }
}

/* ============ DASHBOARD · UPCOMING SHOOTS AGENDA ============ */
/* Upcoming shoots — compact horizontal strip (one row tall, scrolls sideways) */
.ushoots { margin-top: 26px; margin-bottom: 24px; }
.ush-h { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .11em; color: var(--muted); font-weight: 700; margin-bottom: 9px; }
.ush-sub { color: var(--faint); font-weight: 400; letter-spacing: .04em; }
/* Upcoming shoots = mini month calendar + "next up" agenda (2026-07-09) */
.cc-grid { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 26px; align-items: start; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-mo { font-size: 22px; letter-spacing: .5px; line-height: 1; color: var(--ink); }
.cal-nav { display: flex; gap: 7px; }
.cal-nav button { border: 1px solid var(--hair); background: transparent; width: 24px; height: 24px; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.cal-nav button:hover { border-color: var(--ink); color: var(--ink); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-family: var(--font-mono); font-size: 9px; color: var(--faint); text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-c { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.cal-c.mut { color: var(--faint); opacity: .4; }
.cal-c.shoot { background: var(--accent-tint); color: var(--accent); font-weight: 700; cursor: pointer; transition: background .12s; }
.cal-c.shoot:hover { background: #f5d3c5; }
.cal-c.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.nx-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin-bottom: 8px; }
.nx-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.nx-row:last-child { border-bottom: none; }
.nx-row:hover .nm { color: var(--accent); }
.nx-dt { text-align: center; min-width: 32px; line-height: 1; }
.nx-dt .d { font-family: var(--font-display);font-weight:700; font-size: 21px; color: var(--ink); }
.nx-dt .m { font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em; color: var(--faint); text-transform: uppercase; }
.nx-b { min-width: 0; }
.nx-b .nm { font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .12s; }
.nx-b .lo { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-c { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.nx-empty { font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding: 8px 0; }
@media (max-width: 640px) { .cc-grid { grid-template-columns: 1fr; gap: 18px; } .cal-panel { max-width: 340px; } }

/* ============ COLLABORATION (shared productions) ============ */
.collab-badge { display: inline-block; vertical-align: middle; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 3px; margin-left: 8px; transform: translateY(-2px); }
.collab-badge.shared-out { background: #e7eef6; color: var(--night); }
.collab-badge.shared-in { background: #fbeede; color: var(--accent); }
.ph-collab { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.ph-collab b { color: var(--ink); }
.ph-travel { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.ph-travel b { color: var(--ink); font-weight: 700; }
.ph-travel .pht-ic { color: var(--night); }
.ph-travel.muted .pht-ic { color: var(--faint); }
.pht-go, .pht-add { color: var(--accent); font-weight: 600; cursor: pointer; }
.pht-go { margin-left: 6px; }
.pht-go:hover, .pht-add:hover { text-decoration: underline; }
.collab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.modal-overlay { position: fixed; inset: 0; background: rgba(20,18,16,.55); z-index: 420; display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto; }
.share-modal { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-card); width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(20,18,16,.4); }
.share-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px 12px; }
.share-modal-title { font-size: 24px; color: var(--ink); line-height: 1; }
/* Reports hub — clearly-tappable report rows */
.nsrep-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line-2, #e0dace); border-radius: 11px; padding: 12px 13px; margin-bottom: 9px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.nsrep-opt:hover { border-color: var(--ink); background: var(--paper-2, #faf8f3); box-shadow: 0 4px 14px rgba(20, 18, 16, .06); }
.nsrep-opt .nsrep-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-tint, #fbe9e2); color: var(--accent, #2F7D75); display: flex; align-items: center; justify-content: center; flex: none; }
.nsrep-opt .nsrep-ic svg { width: 18px; height: 18px; }
.nsrep-opt .nsrep-tx { flex: 1; min-width: 0; }
.nsrep-opt .nsrep-tx b { font-size: 13.5px; display: block; color: var(--ink); }
.nsrep-opt .nsrep-tx span { font-size: 11.5px; color: var(--muted); }
.nsrep-opt .nsrep-ch { color: var(--faint); font-size: 20px; flex: none; transition: transform .12s, color .12s; }
.nsrep-opt:hover .nsrep-ch { color: var(--accent); transform: translateX(2px); }
.share-note { font-size: 13px; color: var(--muted); line-height: 1.6; padding: 0 30px 20px; }
.share-note b { color: var(--ink); }
.share-add { display: flex; gap: 10px; padding: 0 30px 20px; }
.share-add .imp-input { flex: 1; }
.share-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--faint); padding: 0 30px; margin-bottom: 12px; border-top: 1px solid var(--hair-4); padding-top: 22px; }
.share-list { padding: 0 30px 12px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair-4); }
.share-row:last-child { border-bottom: none; }
.share-em { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; flex: none; }
.share-tag.owner { color: var(--accent); }
.share-row .row-del { opacity: 1; flex: none; }
.share-foot { padding: 20px 30px 24px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hair-4); margin-top: 4px; }
/* the Re-sync button sits on the white/paper modal, not a dark surface — .btn-ghost-dark's
   cream text is nearly invisible here, so give it readable ink text + a visible border
   (var(--ink) flips correctly in dark mode, where the modal bg is dark) */
.share-foot .btn-ghost-dark { color: var(--ink); border-color: var(--hair); }
.share-foot .btn-ghost-dark:hover { color: var(--ink); border-color: var(--ink); background: var(--paper-2); }
.share-role-sel { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
/* Share modal — "add from your team" pick-list (accounts that have signed in) */
.sharepick-list { padding: 0 30px 20px; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.sharepick { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 13px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 10px; cursor: pointer; font-family: var(--font-ui); transition: border-color .12s, background .12s; }
.sharepick:hover { border-color: var(--ink); background: var(--white); }
.sharepick .sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); flex: none; }
.sharepick .sp-dot.on { background: #2fae5f; box-shadow: 0 0 0 3px rgba(47,174,95,.18); }
.sharepick .sp-body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.sharepick .sp-name { font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sharepick .sp-em { font-family: var(--font-mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sharepick .sp-add { font-size: 17px; font-weight: 700; color: var(--accent); flex: none; opacity: 0; transition: opacity .12s; }
.sharepick:hover .sp-add { opacity: 1; }
.sharepick-empty { font-size: 12.5px; color: var(--muted); padding: 4px 2px 2px; line-height: 1.5; }
.share-role-sel.sm { font-size: 12px; padding: 5px 8px; flex: none; }
.share-row .share-role-sel.sm { margin-left: auto; }

/* ============ CUSTOM DROPDOWNS (uiselect.js) ============ */
/* closed state: kill the OS chrome, draw our own caret */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%239a9082' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 26px !important; cursor: pointer; }
select::-ms-expand { display: none; }
select.uisel-open { border-color: var(--accent); }
/* the custom popup panel */
.uisel-panel { position: fixed; z-index: 9999; background: var(--white); border: 1px solid var(--ink); border-radius: var(--r-ctrl);
  box-shadow: 0 14px 40px rgba(20,18,16,.28); padding: 5px; overflow-y: auto; min-width: 120px; }
.uisel-opt { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink); padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; line-height: 1.2; }
.uisel-opt:hover { background: var(--paper-2); }
.uisel-opt.on { background: var(--accent-tint); color: var(--accent); }
.uisel-opt.dis { color: var(--disabled); cursor: default; }
.uisel-opt.dis:hover { background: none; }
/* searchable dropdown (role picker) — fixed search box + scrollable grouped list */
.uisel-panel.uisel-searchable { overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.uisel-search { padding: 6px; border-bottom: 1px solid var(--hair); flex: none; }
.uisel-sinput { width: 100%; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 8px 10px; font-family: var(--font-ui); font-size: 13px; color: var(--ink); background: var(--paper-2); outline: none; box-sizing: border-box; }
.uisel-sinput:focus { border-color: var(--accent); }
.uisel-searchable .uisel-list { overflow-y: auto; padding: 5px; }
.uisel-grp { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 9px 12px 4px; }
/* role chips + the producer view-only banner */
.role-chip { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border-radius: var(--r-sm); padding: 4px 8px; align-self: center; }
.role-banner { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; background: var(--accent-tint); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 8px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.role-banner .role-chip { flex: none; }
:root[data-theme="dark"] .role-banner { background: var(--accent-tint); }

/* ============ CHANGE REQUESTS (Phase 2) ============ */
/* rail approval queue (admin/manager) */
.rail-req .rail-lab { display: flex; align-items: center; gap: 8px; }
.req-count { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 10px; padding: 1px 7px; }
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-card { background: var(--white); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 8px; padding: 11px 12px; }
.req-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.req-who { font-size: 12px; font-weight: 700; color: var(--ink); }
.req-when { font-family: var(--font-mono); font-size: 10px; color: var(--faint); margin-left: auto; }
.req-about { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.req-summary { font-size: 13px; color: var(--ink); line-height: 1.45; margin-bottom: 10px; }
.req-acts { display: flex; gap: 7px; }
.req-acts .btn { flex: 1; }
/* producer compose modal */
.req-modal { background: #fff; border: 1.5px solid var(--ink); width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(20,18,16,.4); }
.req-field { padding: 4px 22px 12px; }
.req-flabel { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--faint); margin-bottom: 6px; }
.req-about-static { font-size: 14px; color: var(--ink); font-weight: 600; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px; padding: 9px 12px; }
.req-textarea { width: 100%; font-family: var(--font-ui); font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 11px 12px; line-height: 1.5; resize: vertical; }
.req-textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.req-foot { gap: 8px; }
/* producer's own request statuses on the preview */
.myreq-strip { max-width: 980px; margin: 14px auto 0; padding: 12px 16px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 10px; }
.myreq-lab { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--faint); margin-bottom: 8px; }
.myreq-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.myreq-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.myreq-dot.pend { background: var(--amber); } .myreq-dot.ok { background: var(--green); } .myreq-dot.no { background: var(--disabled); }
.myreq-t { font-size: 13px; color: var(--ink); flex: 1; }
.myreq-st { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.myreq-st.pend { color: var(--amber); } .myreq-st.ok { color: var(--green); } .myreq-st.no { color: var(--faint); }
/* producer-mode builder: lock every block except Notes & Safety */
.builder-body.producer-mode .grip,
.builder-body.producer-mode .add-section,
.builder-body.producer-mode [data-send] { display: none; }
/* locked block: nothing inside is interactive (producers read it, request via the panel) */
.builder-body.producer-mode .ro-block { position: relative; pointer-events: none; }
.builder-body.producer-mode .ro-block input:disabled,
.builder-body.producer-mode .ro-block select:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; background: var(--paper-2); }
.prod-edit-banner { display: flex; align-items: center; gap: 10px; background: var(--accent-tint); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: var(--r-ctrl); padding: 11px 14px; margin-bottom: 16px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.prod-edit-banner .role-chip { flex: none; }
/* producer rail: request-a-change block */
.rail-req-intro { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.rail-req-btn { width: 100%; justify-content: center; }
.myreq-inline { margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 8px; display: flex; flex-direction: column; }
/* producer schedule proposal editor */
.prop-sec { margin-top: 18px; border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--paper-2); padding: 16px 18px; }
.prop-sec.proposing { border-color: var(--accent); }
.prop-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.prop-lab { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.prop-sub { font-family: var(--font-mono); font-size: 10px; color: var(--faint); margin-left: auto; }
.prop-intro { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.prop-pending { font-size: 12px; font-weight: 600; color: #8a6416; background: #f6ecd6; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.prop-status { margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 8px; }
.prop-add { display: flex; gap: 16px; padding: 10px 0 4px; }
.prop-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 12px; }
.prop-sec .sch-row, .prop-sec .banner { grid-template-columns: 26px 50px 38px 30px 1fr 26px 50px 54px 18px; }
.prop-mv { display: flex; flex-direction: column; gap: 1px; align-items: center; }
.prop-mv button { font-size: 8px; line-height: 1; color: var(--faint); background: none; border: none; cursor: pointer; padding: 1px 2px; }
.prop-mv button:hover { color: var(--ink); }
/* owner: review-proposed-schedule modal */
.review-modal { background: #fff; border: 1.5px solid var(--ink); width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(20,18,16,.4); }
.rv-sched { padding: 4px 22px 10px; max-height: 52vh; overflow-y: auto; }
.rv-srow { display: grid; grid-template-columns: 54px 42px 1fr 26px 46px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hair-4); font-size: 13px; }
.rv-snum { font-weight: 700; }
.rv-spg { color: var(--muted); text-align: right; }
.rv-sbanner { padding: 7px 0; font-size: 12px; font-weight: 700; color: var(--accent); border-bottom: 1px solid var(--hair-4); }

/* ============ GLOBAL SEARCH (⌘K) ============ */
.topsearch { display: flex; align-items: center; gap: 8px; background: rgba(246,243,236,.08); border: 1px solid rgba(246,243,236,.16); color: var(--disabled-2); border-radius: var(--r-ctrl); padding: 7px 11px; font-size: 13px; cursor: pointer; transition: background .12s, border-color .12s; }
.topsearch:hover { background: rgba(246,243,236,.14); border-color: rgba(246,243,236,.3); color: var(--paper); }
.topsearch .ts-ic { font-size: 14px; line-height: 1; }
.topsearch .ts-kbd { font-size: 10px; letter-spacing: .04em; background: rgba(246,243,236,.12); border-radius: 5px; padding: 2px 5px; color: var(--disabled-2); }
@media (max-width: 640px) { .topsearch .ts-lbl, .topsearch .ts-kbd { display: none; } .topsearch { padding: 7px 9px; } }

.search-overlay { position: fixed; inset: 0; background: rgba(20,18,16,.5); z-index: 460; display: flex; align-items: flex-start; justify-content: center; padding: 84px 20px 40px; overflow-y: auto; }
.search-box { width: 100%; max-width: 600px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 24px 70px rgba(20,18,16,.45); }
.search-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1.5px solid var(--ink); }
.search-ic { font-size: 20px; color: var(--muted); line-height: 1; }
#searchInput { flex: 1; border: none; outline: none; font-family: inherit; font-size: 18px; color: var(--ink); background: transparent; }
#searchInput::placeholder { color: var(--faint); }
.search-esc { font-size: 10px; letter-spacing: .08em; color: var(--faint); border: 1px solid var(--hair); border-radius: 4px; padding: 3px 6px; }
.search-results { max-height: 56vh; overflow-y: auto; }
.search-empty { padding: 30px 22px; text-align: center; font-size: 13px; color: var(--muted); }
.search-group-l { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 18px 5px; }
.search-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 18px; cursor: pointer; border-left: 3px solid transparent; }
.search-row.sel, .search-row:hover { background: var(--hair-4); border-left-color: var(--accent); }
.search-row-ic { font-size: 14px; color: var(--muted); width: 18px; text-align: center; flex: none; margin-top: 2px; }
.search-row-main { min-width: 0; flex: 1; }
.search-row-1 { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row-2 { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.search-results mark { background: rgba(214,72,31,.18); color: inherit; font-weight: 700; border-radius: 2px; padding: 0 1px; }
.flash-row { animation: flashRow 1.7s ease; }
@keyframes flashRow { 0%, 30% { background: rgba(214,72,31,.18); box-shadow: inset 3px 0 0 var(--accent); } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent; } }

/* ============ DASHBOARD EMPTY STATE (clean new workspace) ============ */
.dash-empty { border: 1.5px dashed var(--hair); border-radius: var(--r-card); background: #fff; padding: 64px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dash-empty-mark { font-size: 40px; color: var(--accent); line-height: 1; }
.dash-empty-t { font-size: 32px; color: var(--ink); letter-spacing: .01em; }
.dash-empty-s { font-size: 14px; color: var(--muted); max-width: 460px; line-height: 1.55; }
.dash-empty-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ============================================================
   APPEARANCE TOGGLE (avatar menu) + DARK MODE (UI chrome only)
   The finished call sheet (.sheet) and the crew mobile view (#mobile)
   are reset to the light palette so they render identically in both themes.
   ============================================================ */
.am-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--hair-2); }
.am-theme-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.am-seg { display: inline-flex; border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.am-seg button { font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 5px 11px; background: none; color: var(--muted); cursor: pointer; border: none; }
.am-seg button.on { background: var(--accent); color: #fff; }

/* ============================================================
   HOME (top-level module launcher) — design_handoff_home
   ============================================================ */
#home { min-height: 100vh; background: var(--paper); }

.home-grid { display: grid; grid-template-columns: 1fr 360px; max-width: 1320px; margin: 0 auto; align-items: start; }
.home-main { padding: 32px 30px 48px; border-right: 1px solid var(--hair); }
.home-greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.home-eyebrow { font-size: 12px; letter-spacing: 0.16em; color: var(--faint); font-weight: 700; }
.home-h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin-top: 4px; }
.home-newbtn { flex-shrink: 0; }

.home-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }   /* 2-up 172px cards -> compact 3-up 2026-07-21 */
@media (max-width: 1100px) { .home-tiles { grid-template-columns: 1fr 1fr; } }
.htile { text-decoration: none; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 15px 17px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .12s; }
.htile:hover { border-color: var(--ink); }
.htile-headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.htile-titles { display: flex; flex-direction: column; align-items: flex-start; }
.htile-idx { display: none; }
.htile-name { font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); margin-top: 0; }
.htile-desc { display: none; }
.htile-link { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.htile-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; white-space: nowrap; border-radius: var(--r-sm); }
.htile-badge.tone-accent { background: var(--accent-tint); color: var(--accent); }
.htile-badge.tone-amber { background: #f6ecd6; color: #b8862a; }
.htile-badge.tone-green { background: #e4f1ea; color: #1f7a4d; }
.htile-badge.tone-night { background: #dde6ef; color: #2E4A6B; }
.htile-badge.tone-neutral { background: var(--hair-2); color: var(--muted); }

.home-rail { padding: 32px 26px 48px; background: var(--paper-2); }
.home-shoot { background: #16171A; color: #F6F3EC; padding: 20px 24px; margin-bottom: 26px; border-radius: var(--r-card); }   /* moved rail -> main 2026-07-21 */
.home-main .hs-call { font-size: 30px; }
.home-prods { display: flex; flex-direction: column; gap: 10px; }
.home-prods .prow { grid-template-columns: 1fr auto auto 0; }
.hs-label { font-size: 10px; letter-spacing: 0.1em; color: #8b8478; font-weight: 700; }
.hs-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4px; }
.hs-call { font-size: 26px; line-height: 0.95; }
.hs-stat { font-size: 11px; color: #cfc8ba; text-align: right; }
.home-sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.home-sec-h2 { margin-top: 26px; }
.home-sec-n { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.needs-list { display: flex; flex-direction: column; gap: 9px; }
.nu-card { display: flex; gap: 11px; align-items: center; text-decoration: none; background: var(--white); border: 1px solid var(--hair); border-radius: 13px; padding: 11px 12px; cursor: pointer; transition: box-shadow .14s, border-color .14s; }
.nu-card:hover { border-color: #d8d1c2; box-shadow: 0 6px 16px rgba(20,18,16,.06); }
.nu-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; font-size: 17px; }
.nu-body { flex: 1; min-width: 0; }
.nu-top { display: flex; align-items: center; gap: 7px; }
.nu-title { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-day { font-size: 9.5px; font-weight: 700; color: var(--muted); background: var(--hair-2); border-radius: 4px; padding: 1px 5px; flex: none; }
.nu-sub { margin-top: 2px; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.nu-ask { color: var(--accent); font-weight: 600; }
.nu-dot { color: var(--disabled); }
.nu-due { color: var(--faint); font-size: 11px; }
.nu-chev { color: var(--disabled); flex: none; font-size: 16px; display: flex; align-items: center; }
:root[data-theme="dark"] .nu-card { background: var(--hair-2); }
:root[data-theme="dark"] .nu-card:hover { border-color: var(--ink-border); box-shadow: none; }
:root[data-theme="dark"] .nu-day { background: var(--ink-3); }
/* assigned tasks + grouping in Needs You */
.nu-grp { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; font-weight: 700; color: var(--faint); margin: 0 0 8px; }
.needs-list .nu-grp:not(:first-child) { margin-top: 14px; }
.nu-task { display: flex; gap: 11px; align-items: center; background: var(--white); border: 1px solid var(--hair); border-radius: 13px; padding: 11px 12px; cursor: pointer; margin-bottom: 9px; transition: box-shadow .14s, border-color .14s; }
.nu-task:hover { border-color: #d8d1c2; box-shadow: 0 6px 16px rgba(20,18,16,.06); }
:root[data-theme="dark"] .nu-task { background: var(--hair-2); }
:root[data-theme="dark"] .nu-task:hover { border-color: var(--ink-border); box-shadow: none; }
.nu-check { width: 20px; height: 20px; border: 2px solid var(--disabled-2); border-radius: 6px; background: transparent; flex: none; cursor: pointer; padding: 0; transition: border-color .12s, background .12s; }
.nu-check:hover { border-color: var(--accent); background: var(--accent-tint); }
.nu-by { color: var(--muted); } .nu-by b { color: var(--ink); font-weight: 700; }
.nu-gap { display: flex; align-items: center; padding: 0; gap: 0; }
.nu-gapbody { flex: 1; min-width: 0; display: flex; gap: 11px; align-items: center; text-decoration: none; padding: 11px 12px; }
.nu-assign { flex: none; margin-right: 10px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px; padding: 6px 11px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.nu-assign:hover { color: var(--accent); border-color: var(--accent); }
.nu-hdr-r { display: flex; align-items: center; gap: 8px; }
.nu-assignnew { background: none; border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.nu-assignnew:hover { color: var(--accent); border-color: var(--accent); }
.nu-assignnew .luc { width: 12px; height: 12px; }
.asn-f { padding: 0 22px; margin: 12px 0; } .asn-lbl { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.sharepick.sel { border-color: var(--accent); background: var(--accent-tint); }
.sharepick.sel .sp-add { opacity: 1; }
.needs-empty { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 4px 0; }
.home-viewall { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 10px; cursor: pointer; }
.home-viewall:hover { color: var(--accent); }
.activity-list { display: flex; flex-direction: column; }
.av-row { display: flex; gap: 11px; padding: 9px 0; align-items: flex-start; }
.av-ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; margin-top: 1px; }
.av-ic.sent { background: var(--accent-tint); color: var(--accent); }
.av-ic.import { background: var(--night-tint); color: var(--night); }
.av-ic.edit { background: var(--hair-2); color: var(--muted); }
.av-ic.create { background: var(--hair-2); color: var(--green); }
.av-ic.done { background: var(--hair-2); color: var(--green); }
.av-ic.lib { background: var(--hair-2); color: var(--night); }
.av-ic.delete { background: var(--hair-2); color: #b3261e; }
:root[data-theme="dark"] .av-ic.import { color: #8fb0d9; }
:root[data-theme="dark"] .av-ic.lib { color: #8fb0d9; }
:root[data-theme="dark"] .av-ic.delete { color: #e08b7f; }
.av-body { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.av-when { display: block; font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); margin-top: 2px; }
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-main { border-right: none; }
  .home-tiles { grid-template-columns: 1fr; }
  .home-rail { border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .home-h1 { font-size: 40px; }
  .home-greet { flex-direction: column; align-items: flex-start; gap: 12px; }
}

:root[data-theme="dark"] {
  --paper: #16140f;
  --paper-2: #211d17;
  --builder-bg: #100e0a;
  --preview-bg: #0c0b08;
  --white: #211d17;
  --ink: #ece7db;
  --ink-2: #211d17;
  --ink-3: #3a352e;
  --ink-border: #4a443b;
  --accent-tint: #3a2018;
  --night-tint: #22344c;
  --muted: #a89e8d;
  --faint: #7d7565;
  --disabled: #5d574c;
  --disabled-2: #6f6757;
  --hair: #322e27;
  --hair-2: #2a2620;
  --hair-3: #252118;
  --hair-4: #1e1b15;
  --shadow-block: 0 4px 14px rgba(0,0,0,.45);
  --shadow-sheet: 0 10px 40px rgba(0,0,0,.55);
}

/* Group A — surfaces designed to be dark-with-light-text in BOTH themes:
   reset them to the light palette so they look identical to light mode. */
:root[data-theme="dark"] .sheet,
:root[data-theme="dark"] #mobile,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .progress-strip,
:root[data-theme="dark"] .banner-wrap,
:root[data-theme="dark"] .imp-proj-h,
:root[data-theme="dark"] .ush-chip,
:root[data-theme="dark"] .btn-ink,
:root[data-theme="dark"] .btn-accent,
:root[data-theme="dark"] .preview-cta,
:root[data-theme="dark"] .pill-ready,
:root[data-theme="dark"] .pill-sent,
:root[data-theme="dark"] .pill-review,
:root[data-theme="dark"] .pill-progress,
:root[data-theme="dark"] .imp-tab.on,
:root[data-theme="dark"] .imp-hsrc,
:root[data-theme="dark"] .acct-row-l,
:root[data-theme="dark"] .login-google {
  --paper: #F6F3EC; --paper-2: #faf8f3; --white: #fff; --builder-bg: #e9e5db; --preview-bg: #cfc8bb;
  --ink: #16171A; --ink-2: #1b1916; --ink-3: #3a352e; --ink-border: #4a443b;
  --accent-tint: #fbe9e2; --night-tint: #dde6f0;
  --muted: #6B6358; --faint: #9a9082; --disabled: #bcb4a5; --disabled-2: #cfc8ba;
  --hair: #e0dace; --hair-2: #efe9dd; --hair-3: #f0ece3; --hair-4: #f6f3ec;
}
:root[data-theme="dark"] .sheet, :root[data-theme="dark"] #mobile { color: #16171A; }

/* Group B — white card / panel / input surfaces → dark surface */
:root[data-theme="dark"] .start-panel,
:root[data-theme="dark"] .daycard,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .proj-card,
:root[data-theme="dark"] .prow,
:root[data-theme="dark"] .rcell,
:root[data-theme="dark"] .day-row,
:root[data-theme="dark"] .set-block,
:root[data-theme="dark"] .nf,
:root[data-theme="dark"] .wx-city,
:root[data-theme="dark"] .float-menu,
:root[data-theme="dark"] .modal-card,
:root[data-theme="dark"] .track-stat .ts,
:root[data-theme="dark"] .strip,
:root[data-theme="dark"] .imp-card,
:root[data-theme="dark"] .imp-tab:not(.on),
:root[data-theme="dark"] .imp-input,
:root[data-theme="dark"] .imp-textarea,
:root[data-theme="dark"] .imp-stat,
:root[data-theme="dark"] .imp-proj,
:root[data-theme="dark"] .imp-chip,
:root[data-theme="dark"] .imp-opts,
:root[data-theme="dark"] .agenda,
:root[data-theme="dark"] .share-modal,
:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] .lib-search,
:root[data-theme="dark"] .dash-empty { background: var(--paper-2); }
:root[data-theme="dark"] .lib-groupseg .lgs { background: var(--paper-2); border-color: var(--ink-border); }
:root[data-theme="dark"] .lib-groupseg .lgs.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Group C — explicit tweaks */
:root[data-theme="dark"] .btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--ink-border); }
:root[data-theme="dark"] .btn-outline-ink:hover { background: var(--ink-2); color: var(--ink); }
:root[data-theme="dark"] .btn-ghost-ink { background: var(--paper-2); color: var(--ink); }
:root[data-theme="dark"] .copy-link { background: var(--paper-2); }
:root[data-theme="dark"] .btn-danger { background: transparent; color: var(--muted); border-color: var(--ink-border); }
:root[data-theme="dark"] .btn-danger:hover { color: #e8796d; border-color: #e8796d; }
:root[data-theme="dark"] .preview-bar { background: var(--paper-2); }
/* HOME — softer badge/tag tints in dark (the featured WRITE tile + shoot banner stay ink by design) */
:root[data-theme="dark"] .htile-badge.tone-amber, :root[data-theme="dark"] .needs-tag.tone-amber { background: #3a2f18; color: #d8a850; }
:root[data-theme="dark"] .htile-badge.tone-green, :root[data-theme="dark"] .needs-tag.tone-green { background: #14301f; color: #6fb98c; }
:root[data-theme="dark"] .htile-badge.tone-night { background: #22344c; color: #9fb6cf; }
:root[data-theme="dark"] .strip[data-stripexpand]:hover { background: #2a2620; }
:root[data-theme="dark"] .am-item:hover { background: var(--paper-2); }
:root[data-theme="dark"] .field.auto, :root[data-theme="dark"] .field.static { background: var(--paper-2); }
:root[data-theme="dark"] gmp-place-autocomplete, :root[data-theme="dark"] .addr-pac { color-scheme: dark; background: var(--paper-2); border-color: var(--hair); }
:root[data-theme="dark"] gmp-place-autocomplete::part(input) { background: var(--paper-2); color: var(--ink); }

/* ============ NOTES & SAFETY — categories + quick-add (#builder) ============ */
#builder .note-item { align-items: center; border-left: 3px solid var(--hair); padding: 7px 0 7px 11px; border-radius: 0; margin-bottom: 6px; }
#builder .note-item.nc-safety { border-left-color: #b8862a; }
#builder .note-item.nc-weather { border-left-color: #2E4A6B; }
#builder .note-item.nc-medical { border-left-color: #1f7a4d; }
#builder .note-item.nc-parking { border-left-color: #5f5e5a; }
#builder .note-item.flagged { background: #faf3e3; }
.note-cat { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 3px 6px; border: 1px solid; border-radius: 4px; background: transparent; cursor: pointer; flex: none; min-width: 48px; text-align: center; }
.note-txt { flex: 1; }
.note-flag { color: var(--disabled); font-size: 14px; background: none; cursor: pointer; flex: none; padding: 2px 7px; }
.note-flag.on { color: #b8862a; }
.note-presets-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); margin: 16px 0 8px; }
.note-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.note-preset { font-size: 12px; padding: 6px 10px; border: 1px dashed var(--disabled-2); background: #fff; border-radius: 6px; color: var(--muted); cursor: pointer; }
.note-preset:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme="dark"] .note-preset { background: var(--paper-2); }
:root[data-theme="dark"] #builder .note-item.flagged { background: #2c2410; }

/* ---- finished sheet: prominent flagged safety + category tags (stays light) ---- */
.safety-callout { border: 1px solid #ecdab0; border-left: 3px solid #b8862a; background: #faf3e3; padding: 8px 11px; margin-bottom: 10px; border-radius: 0; }
.safety-callout-h { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #7a5710; margin-bottom: 5px; }
.sc-line { font-size: 12px; color: #5a4309; line-height: 1.5; margin-bottom: 2px; }
.ncat-tag { font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .04em; color: #fff; padding: 1px 5px; border-radius: 3px; flex: none; align-self: flex-start; margin-top: 2px; }

/* ============ BUILDER SIDE RAIL — live weather & advisories (#4) ============ */
.builder-rail { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.rail-c { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 15px; }
.rail-lab { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); margin-bottom: 11px; }
.rail-refresh { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; }
.rail-refresh:hover { color: var(--accent); }
.rail-empty { font-size: 12px; color: var(--muted); line-height: 1.5; }
.rail-wx { display: flex; align-items: center; gap: 12px; }
.rail-temp { font-family: var(--font-display);font-weight:700; font-size: 44px; line-height: .85; color: var(--ink); }
.rail-cond { font-size: 13px; color: var(--muted); line-height: 1.35; }
.rail-lo { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.rail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 11px; font-size: 12px; color: var(--muted); }
.rail-meta b { color: var(--ink); }
.aqi-ok { color: var(--green); } .aqi-warn { color: var(--amber); } .aqi-bad { color: var(--accent); }
.rail-sun { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 10px; border-top: 1px solid var(--hair-2); padding-top: 9px; line-height: 1.5; }
.rail-tl { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--hair-2); font-size: 13px; }
.rail-tl:last-child { border: none; }
.rail-tl b { font-family: var(--font-mono); }
.rail-adv { padding: 9px 0; border-bottom: 1px solid var(--hair-2); border-left: 3px solid transparent; padding-left: 10px; margin-left: -10px; }
.rail-adv:last-child { border-bottom: none; }
.rail-adv.flag { border-left-color: var(--amber); }
.rail-adv-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.rail-adv-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rail-adv-add { background: none; border: 1px solid var(--hair); border-radius: 5px; color: var(--accent); font-weight: 700; font-size: 11px; padding: 2px 8px; cursor: pointer; flex: none; }
.rail-adv-add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.rail-adv-t { font-size: 12px; line-height: 1.45; color: var(--muted); }
:root[data-theme="dark"] .rail-c { background: var(--paper-2); }
@media (max-width: 1000px) {
  .builder-body { display: block; }
  .builder-rail { position: static; max-width: 820px; margin: 20px auto 0; }
}

/* ============ MULTI-LOCATION editor + hospital picker (#2) ============ */
.loc-stack { padding: 14px 18px; }
.loc-stack .loc-grid { padding: 0; }
.loc-card-full { padding: 12px; border: 1px solid var(--hair-2); border-radius: 0; margin-bottom: 14px; }
.loc-card-full:last-of-type { margin-bottom: 10px; }
.loc-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.loc-num { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.loc-card-h .row-del { opacity: .6; }
.loc-card-h:hover .row-del { opacity: 1; }
.hosp-find { font-size: 11px; color: var(--accent); background: none; border: none; cursor: pointer; font-weight: 700; }
.hosp-find:hover { text-decoration: underline; }
.loc-stack .add-row { padding-top: 4px; }
.loc-row + .loc-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair-2); }
.hosp-list { max-height: 360px; overflow-y: auto; padding: 6px 0; }
.hosp-pick { display: block; width: 100%; text-align: left; padding: 12px 22px; background: none; border: none; border-bottom: 1px solid var(--hair-4); cursor: pointer; }
.hosp-pick:hover { background: var(--paper-2); }
.hp-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.hp-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
:root[data-theme="dark"] .loc-card-full { background: var(--paper-2); }

/* ============ finished-sheet ADVISORIES ribbon (#1) ============ */
.sheet-adv { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; background: #faf3e3; border-bottom: 1px solid #ecdab0; padding: 9px 30px; font-size: 12px; line-height: 1.4; }
.sheet-adv-h { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #b8862a; }
.sheet-adv-i { color: #5a4309; }
.sheet-adv-i:not(:last-child)::after { content: '·'; margin-left: 10px; color: #d8c08a; }

/* ============================================================
   Suite app-switcher (Northset / Northwrite / Budget)
   ============================================================ */
/* switcher trigger — a rounded pill (sub label + chevron), matching the nsheader style */
.suite-btn { display: flex; align-items: center; gap: 8px; background: transparent; color: var(--paper); border: 1px solid var(--ink-3); border-radius: var(--r-ctrl); padding: 7px 11px; height: 34px; cursor: pointer; margin-left: 2px; }
.suite-btn:hover { border-color: var(--ink-border); background: var(--ink-2); }
.suite-btn .suite-sub { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #8b8478; font-weight: 700; white-space: nowrap; }
.suite-btn .suite-chev { display: inline-flex; color: #8b8478; }
.suite-btn .suite-chev svg, .suite-btn .suite-chev .bic { width: 13px; height: 13px; }
.suite-menu { position: fixed; top: 54px; left: 18px; z-index: 160; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--shadow-sheet); min-width: 250px; padding: 6px; }
.suite-menu[hidden] { display: none; }
.sm-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 9px 12px 6px; }
.sm-app { display: flex; align-items: center; gap: 11px; padding: 11px 12px; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.sm-app:hover { background: var(--paper-2); }
.sm-app .sm-d { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.sm-app .sm-n { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 14px; }
.sm-app .sm-n small { font-weight: 500; font-size: 11px; color: var(--muted); }
.sm-app .sm-cur { margin-left: auto; color: var(--accent); font-size: 10px; }
.sm-app.current { background: var(--accent-tint); }
.sm-app.soon { opacity: .5; cursor: default; }
.sm-app.soon .sm-d { background: var(--disabled-2); }

/* ---- strip board: two-source empty state + live-sync chip + Northwrite picker ---- */
.sb-empty-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sb-sync { color: var(--green); font-weight: 700; letter-spacing: .04em; }
.nw-pick-ov { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.34); display: none; align-items: center; justify-content: center; }
.nw-pick-ov.show { display: flex; }
.nw-pick { background: var(--white); width: 460px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-sheet); border: 1px solid var(--hair); }
.nw-pick-h { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); padding: 20px 22px 2px; }
.nw-pick-sub { font-size: 13px; color: var(--muted); padding: 0 22px 14px; border-bottom: 1px solid var(--hair-2); }
.nw-pick-list { overflow-y: auto; padding: 8px; flex: 1; }
.nw-pick-empty { color: var(--faint); font-size: 13px; padding: 26px 14px; text-align: center; }
.nw-pick-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--hair); background: #fff; margin-bottom: 6px; cursor: pointer; }
.nw-pick-item:hover { border-color: var(--ink); background: var(--paper-2); }
.nw-pick-t { font-weight: 700; font-size: 14px; color: var(--ink); }
.nw-pick-tag { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); padding: 2px 6px; margin-left: 6px; }
.nw-pick-m { font-size: 12px; color: var(--faint); white-space: nowrap; }
.nw-pick-f { padding: 12px 22px; border-top: 1px solid var(--hair-2); display: flex; justify-content: flex-end; }

.brand-wrap { display: flex; align-items: center; gap: 8px; }

/* ============ ON-SITE AREAS (what3words) — editor + modal ============ */
.loc-areas { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--hair-2); }
.la-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.la-lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.la-add { font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; font-weight: 700; }
.la-add:hover { text-decoration: underline; }
.la-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair-2); }
.la-row:last-child { border-bottom: none; }
.la-name { font-size: 13px; font-weight: 600; color: var(--ink); flex: none; min-width: 120px; }
.la-words { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-decoration: none; }
.la-words:hover { text-decoration: underline; }
.la-near { font-size: 11px; color: var(--faint); flex: 1; }
.la-row .row-del { margin-left: auto; }
.la-empty { font-size: 12px; color: var(--faint); line-height: 1.5; }
.w3w-inrow { display: flex; align-items: center; gap: 8px; }
.w3w-slashes { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 17px; }
.w3w-inrow .imp-input { flex: 1; }
.w3w-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.w3w-hint.w3w-err { color: var(--accent); font-weight: 600; }
/* finished sheet (stays light) */
.sheet-areas { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--hair); }
.sheet-areas .sa-h { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 5px; }
.sheet-areas .sa-row { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.sheet-areas .sa-row b { color: var(--ink); }
.sheet-areas .sa-w { font-family: var(--font-mono); color: var(--accent); }

/* structured strip-body lines (cleaner than flat text) */
.strip-body .sb-char { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; margin-top: 9px; }
.strip-body .sb-paren { display: block; color: var(--faint); font-style: italic; font-size: 12px; margin: 1px 0 1px 14px; }
.strip-body .sb-act { display: block; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.strip-body .sb-char + .sb-act { margin-top: 1px; }
:root[data-theme="dark"] .strip-body .sb-char { color: #f3ede1; }

/* per-tester Northwrite access toggle (admin) */
.nw-acc { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--faint); border: 1px solid var(--hair); background: #fff; border-radius: 30px; padding: 4px 11px; cursor: pointer; flex: none; }
.nw-acc:hover { border-color: var(--ink); }
.nw-acc .nw-acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--disabled-2); }
.nw-acc.on { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.nw-acc.on .nw-acc-dot { background: var(--accent); }
.acct-row { align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.acct-row .acct-row-m { flex: 1 1 180px; }

/* ============================================================
   TRAVEL — per-production traveler itineraries
   ============================================================ */
.trav-wrap { max-width: 920px; margin: 0 auto; padding: 26px 22px 80px; }
.trav-intro { margin-bottom: 22px; }
/* Trips dashboard (2026-07-09) */
.trav-backlink { color: var(--night); cursor: pointer; font-weight: 700; }
.trav-backlink:hover { color: var(--accent); }
.trip-sec { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--faint); text-transform: uppercase; margin: 22px 0 10px; display: flex; align-items: center; gap: 9px; }
.trip-sec::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.trip-card { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: 13px; padding: 15px 17px; margin-bottom: 9px; cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.trip-card:hover { border-color: #d3ccbc; box-shadow: 0 2px 4px rgba(20,18,16,.04), 0 14px 32px rgba(20,18,16,.07); }
.trip-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trip-nm { font-size: 27px; letter-spacing: .4px; line-height: 1; margin: 5px 0 6px; color: var(--ink); }
.trip-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.trip-right { position: absolute; top: 15px; right: 17px; display: flex; align-items: center; gap: 8px; }
.trip-pill { font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.trip-pill.p-active { background: #dcefe4; color: var(--green); }
.trip-pill.p-up { background: var(--night-tint); color: var(--night); }
.trip-pill.p-plan { background: var(--hair-2); color: var(--muted); }
.trip-pill.p-wrap { background: var(--hair-2); color: var(--faint); }
.trip-gear { border: none; background: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 2px 4px; line-height: 1; }
.trip-gear:hover { color: var(--ink); }
.trip-menu { position: absolute; top: 30px; right: 0; z-index: 20; background: #fff; border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 12px 30px rgba(20,18,16,.18); padding: 5px; min-width: 168px; }
.trip-menu button { display: block; width: 100%; text-align: left; background: none; border: none; font-family: var(--font-ui, 'Archivo'), sans-serif; font-size: 13px; font-weight: 500; color: var(--ink); padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.trip-menu button:hover { background: var(--paper-2); }
.trip-foot { display: flex; gap: 16px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--hair-2); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.trip-foot b { color: var(--ink); font-weight: 400; }
.trip-arch-h { display: flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--faint); text-transform: uppercase; margin: 22px 0 8px; }
.trip-arch-h:hover { color: var(--muted); }
.trip-arow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--paper-2); border: 1px solid var(--hair-2); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.trip-arow:hover { border-color: var(--hair); }
.trip-atag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; color: var(--faint); text-transform: uppercase; }
.trip-anm { font-size: 19px; letter-spacing: .3px; color: var(--muted); }
.trip-ameta { font-family: var(--font-mono); font-size: 10px; color: var(--faint); margin-left: auto; }
.trav-title { font-size: 42px; line-height: .95; margin: 4px 0 8px; }
.trav-sub { font-size: 14px; color: var(--muted); max-width: 640px; line-height: 1.5; }
.trav-cards { display: flex; flex-direction: column; gap: 18px; }
.trav-empty { border: 1.5px dashed var(--hair); border-radius: var(--r-card); background: var(--paper-2); padding: 40px 24px; text-align: center; }
.trav-empty .te-t { font-size: 26px; color: var(--ink); }
.trav-empty .te-s { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* Productions linked to a trip (Phase 2) */
.trip-prods { margin: 4px 0 22px; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-card); }
.tprod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tprod-lab { font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tprod-add { font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; border: none; cursor: pointer; padding: 0; }
.tprod-add:hover { text-decoration: underline; }
.tprod-list { display: flex; flex-direction: column; }
.tprod-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--hair-3); }
.tprod-row:last-child { border-bottom: none; }
.tprod-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--night); flex: 0 0 auto; }
.tprod-nm { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.tprod-dt { font: 400 12px var(--font-mono); color: var(--faint); flex: 0 0 auto; }
.tprod-x { background: none; border: none; color: var(--faint); cursor: pointer; padding: 2px 6px; font-size: 13px; line-height: 1; }
.tprod-x:hover { color: var(--accent); }
.tprod-empty { font-size: 13px; color: var(--faint); }
.trav-scopewarn { font-size: 13px; color: var(--muted); background: var(--accent-tint); border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 10px 14px; margin: 0 0 14px; }
.trav-scopewarn b { color: var(--ink); }
.scopelnk { background: none; border: none; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.scopelnk:hover { text-decoration: underline; }
.trav-add-sec { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trav-addbtn { padding: 10px 18px; }
.trav-addhint2 { font-size: 12.5px; color: var(--faint); }
.trav-addhint2 .lnk { color: var(--ink); border-bottom: 1px solid var(--hair); cursor: pointer; }
/* Add-travelers picker */
.at-card { max-width: 540px; display: flex; flex-direction: column; max-height: 86vh; }
.at-tools { padding: 14px 18px 4px; border-bottom: 1px solid var(--hair); }
.at-search { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hair); border-radius: var(--r-ctrl); padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--white); }
.at-search:focus { outline: none; border-color: var(--ink); }
.at-segs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; padding-bottom: 4px; }
.at-seg { background: var(--white); border: 1.5px solid var(--hair); border-radius: var(--r-pill); padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--faint); }
.at-seg:hover { border-color: var(--ink); color: var(--ink); }
.at-seg.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.at-list { flex: 1; overflow-y: auto; padding: 6px 0; min-height: 120px; }
.at-dep { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .12em; color: var(--faint); padding: 12px 18px 5px; }
.at-row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; cursor: pointer; border-left: 3px solid transparent; }
.at-row:hover { background: var(--hair-3); }
.at-row.sel { background: var(--accent-tint); border-left-color: var(--accent); }
.at-row.on { cursor: default; opacity: .55; }
.at-cb { width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid var(--hair); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.at-row.sel .at-cb { background: var(--accent); border-color: var(--accent); }
.at-row.on .at-cb { background: var(--night); border-color: var(--night); }
.at-who { flex: 1; min-width: 0; }
.at-nm { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-star { color: var(--accent); }
.at-rl { font-size: 12px; color: var(--faint); }
.at-rt { display: flex; gap: 5px; align-items: center; flex: 0 0 auto; }
.at-tag { font-size: 10.5px; font-weight: 600; color: var(--faint); background: var(--hair-2); border-radius: 5px; padding: 2px 7px; }
.at-onlab { font-size: 11px; font-weight: 700; color: var(--night); font-family: 'Space Mono', monospace; }
.at-empty { padding: 34px 18px; text-align: center; color: var(--faint); font-size: 13px; }
.at-foot { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--hair); }
.at-note { flex: 1; font-size: 12px; color: var(--faint); }
.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--hair); border-radius: var(--r-ctrl); padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.tv-chip:hover { border-color: var(--ink); }
.tv-chip-d { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.tv-chip-d.talent { background: var(--accent); } .tv-chip-d.crew { background: var(--night); }
.tv-chip-r { color: var(--faint); font-weight: 400; }

.trav-card { background: #fff; border: 1.5px solid var(--ink); }
.tv-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 1px solid var(--hair-3); }
.tv-name { font-size: 28px; line-height: .9; }
.tv-role { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tv-role .mono { color: var(--accent); }
.tv-x { background: none; border: none; color: var(--faint); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.tv-x:hover { color: var(--accent); }
.tv-legs { padding: 4px 0; }
.tv-leg { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--hair-3); cursor: pointer; }
.tv-leg:first-child { border-top: none; }
.tv-leg:hover { background: var(--paper-2); }
.tv-leg.shoot { cursor: default; background: #fbfaf6; }
.tv-leg.shoot:hover { background: #fbfaf6; }
.tv-lico { width: 28px; height: 28px; flex: none; border-radius: 7px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tv-lico.shoot { background: var(--ink); color: #fff; }
.tv-lico.note { background: var(--hair-3); color: var(--muted); }
.tv-lico.hotel { background: #e7efe9; color: var(--green); }
.tv-ld { font-family: var(--mono, monospace); font-size: 12px; color: var(--faint); width: 50px; flex: none; }
.tv-lb { flex: 1; min-width: 0; font-size: 14px; }
.tv-lb b { font-weight: 700; }
.tv-lm { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.tv-conf { color: var(--accent); }
.tv-ledit { font-size: 11px; color: var(--faint); font-weight: 600; }
.tv-leg:hover .tv-ledit { color: var(--accent); }
.tv-lshoot { font-size: 9px; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.tv-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.tv-add { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--hair-3); }
.tv-addbtn { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl); font-size: 12px; font-weight: 600; padding: 7px 12px; cursor: pointer; color: var(--ink); }
.tv-addbtn:hover { border-color: var(--ink); }
.tv-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px 16px; background: var(--paper-2); border-top: 1px solid var(--hair-3); }

/* leg editor + import modal */
.tl-card { max-width: 480px; }
.tl-tabs { display: flex; gap: 6px; padding: 14px 18px 0; flex-wrap: wrap; }
.tl-tab { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl); font-size: 12px; font-weight: 600; padding: 7px 12px; cursor: pointer; color: var(--ink); }
.tl-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-tab:disabled { opacity: .4; cursor: default; }
.tl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; }
.tl-f { display: flex; flex-direction: column; gap: 4px; }
.tl-f:nth-child(1), .tl-f.full { grid-column: 1 / -1; }
.tl-f > span { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.tl-f input, .tl-f select.tl-sel { border: 1.5px solid var(--hair); padding: 9px 11px; font-size: 14px; font-family: var(--ui, inherit); }
.tl-f select.tl-sel { background: #fff; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6358' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 30px; }
.tl-f input:focus, .tl-f select.tl-sel:focus { outline: none; border-color: var(--accent); }
.tl-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--hair-3); }
/* address lookup (hotel/transfer legs) */
.tl-addr { display: flex; gap: 8px; }
.tl-addr input { flex: 1; }
.tl-find { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--night-tint); color: var(--night); border: 1.5px solid #c3d3e6; font-weight: 700; font-size: 12.5px; padding: 0 12px; cursor: pointer; white-space: nowrap; font-family: var(--ui, inherit); }
.tl-find:disabled { opacity: .6; cursor: default; }
.tl-find .luc, .tl-find svg { width: 14px; height: 14px; }
.tl-sug { border: 1.5px solid var(--hair); border-top: none; background: var(--paper-2); }
.tl-sug-h { font-family: var(--font-mono, 'Space Mono', monospace); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 9px 11px 6px; display: flex; align-items: center; justify-content: space-between; }
.tl-sug-h .g { color: var(--night); }
.tl-sugrow { padding: 9px 11px; border-top: 1px solid var(--hair-3); cursor: pointer; }
.tl-sugrow:hover { background: var(--accent-tint); }
.tl-sugrow b { display: block; font-size: 13px; color: var(--ink); }
.tl-sugrow span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.tl-sug-msg { padding: 10px 11px; font-size: 12.5px; color: var(--muted); }
/* "needs address" flag on roster/person lodging legs */
.tl-flag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono, 'Space Mono', monospace); font-size: 10px; letter-spacing: .04em; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fbf0d8; color: var(--amber); }
.tl-flag .luc, .tl-flag svg { width: 11px; height: 11px; }
.tv-prev { padding: 6px 18px 4px; max-height: 50vh; overflow-y: auto; }
.tv-grp-l { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--faint); text-transform: uppercase; margin: 14px 0 6px; }
.tv-prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair-3); font-size: 14px; }
.tv-pn { font-weight: 700; flex: 1; }
.tv-pm { font-size: 12px; color: var(--green); } .tv-pm.muted { color: var(--faint); }
.tv-prow.ok .tv-pm { color: var(--green); }
.tv-pl { font-family: var(--mono, monospace); font-size: 11px; color: var(--muted); }
.tv-gaps { margin-top: 6px; } .tv-gap { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .tl-fields { grid-template-columns: 1fr; } }

/* Travel — people-first roster + person detail */
.trav-list { display: flex; flex-direction: column; border: 1.5px solid var(--ink); background: #fff; }
.trav-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--hair-3); padding: 14px 18px; cursor: pointer; font: inherit; color: var(--ink); }
.trav-row:first-child { border-top: none; }
.trav-row:hover { background: var(--paper-2); }
.tr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.tr-dot.talent { background: var(--accent); } .tr-dot.crew { background: var(--night); }
.tr-main { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.tr-name { font-weight: 700; font-size: 15px; }
.tr-role { font-size: 12px; color: var(--muted); }
.tr-win { font-size: 12px; color: var(--accent); width: 120px; flex: none; }
.tr-route { font-size: 13px; color: var(--ink-2, #1b1916); flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-tags { font-size: 11px; color: var(--faint); width: 200px; flex: none; text-align: right; }
.tr-pub { color: var(--green); }
.tr-opened { color: var(--green); font-weight: 600; }
.tr-go { color: var(--faint); font-size: 18px; flex: none; }
.tvp-head { margin-bottom: 18px; }
.tvp-head .trav-title { font-size: 42px; line-height: .95; margin: 4px 0 6px; }
.trav-card.open { border: 1.5px solid var(--ink); }
.tv-addbtn.warn { margin-left: auto; color: var(--accent); border-color: var(--accent-tint); }
.tv-addbtn.warn:hover { border-color: var(--accent); }
@media (max-width: 760px) {
  .tr-route, .tr-win { display: none; }
  .tr-tags { width: auto; }
}

/* Travel import — mode toggle, hints, add-new rows */
.tl-fields.one { grid-template-columns: 1fr; }
.tv-seg { display: flex; gap: 0; margin: 14px 18px 0; border: 1.5px solid var(--ink); width: fit-content; }
.tv-segb { background: #fff; border: none; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.tv-segb + .tv-segb { border-left: 1.5px solid var(--ink); }
.tv-segb.on { background: var(--ink); color: var(--paper); }
.tv-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.tv-prow.add { cursor: pointer; }
.tv-prow.add .tv-pm { color: var(--accent); }
.tv-addck { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }

/* People library — per-person travel sub-row */
.db-travel-sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 2px 12px 44px; margin-top: -4px; border-bottom: 1px solid var(--hair-4, #efe9dd); }
.db-travel-sub.hide { display: none; }
/* iOS-style toggle for Handle travel / Minor */
.db-tog { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.db-tog input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.db-tog-sw { width: 40px; height: 23px; border-radius: 999px; background: var(--hair); position: relative; transition: background .18s ease; flex: none; }
.db-tog-sw::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s ease; box-shadow: 0 1px 2px rgba(20,18,16,.25); }
.db-tog.on { color: var(--accent); }
.db-tog.on .db-tog-sw { background: var(--accent); }
.db-tog.on .db-tog-sw::after { left: 19.5px; }
/* Manage roles panel — star essentials + add custom titles */
.rm-head { cursor: pointer; }
.rm-panel { padding-top: 6px; }
.rm-intro { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; max-width: 620px; }
.rm-add { display: flex; gap: 8px; margin-bottom: 12px; }
.rm-add .nf { flex: 1; max-width: 280px; }
.rm-dept { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 15px 0 7px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rm-chipwrap { display: inline-flex; align-items: center; }
.rm-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.rm-chip:hover { border-color: var(--ink); }
.rm-chip .rm-star { display: flex; }
.rm-chip .rm-star .luc { width: 13px; height: 13px; }
.rm-chip.on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.rm-cdel { border: none; background: none; color: var(--faint); cursor: pointer; padding: 2px 4px; display: flex; margin-left: 1px; }
.rm-cdel .luc { width: 13px; height: 13px; }
.rm-cdel:hover { color: var(--accent); }
.rm-chip.rm-off { color: var(--faint); border-style: dashed; text-decoration: line-through; }
.rm-chip.rm-off:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.db-guardian { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.db-glbl { font-size: 10px; letter-spacing: .08em; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.db-guardian .nf { min-height: 32px; padding: 6px 9px; font-size: 12px; }

/* Travel roster row v2 (open area + delete) + detail back/guardian */
.trav-row { padding: 0; cursor: default; align-items: stretch; }
.trav-row:hover { background: none; }
.tr-open { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 14px 18px; background: none; border: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.tr-open:hover { background: var(--paper-2); }
.tr-del { flex: none; border: none; border-left: 1px solid var(--hair-3); background: none; color: var(--faint); font-size: 14px; padding: 0 16px; cursor: pointer; }
.tr-del:hover { color: var(--accent); background: var(--accent-tint); }
.tr-minor { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--accent); background: var(--accent-tint); padding: 2px 6px; border-radius: 3px; margin-left: 7px; vertical-align: middle; }
.trav-backbtn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-ctrl); color: var(--ink); font-weight: 600; font-size: 13px; padding: 7px 14px; cursor: pointer; margin-bottom: 16px; }
.trav-backbtn:hover { background: var(--ink); color: var(--paper); }
.tvp-guardian { font-size: 13px; color: var(--ink-2, #1b1916); margin-top: 10px; background: var(--accent-tint); border-radius: 8px; padding: 9px 13px; }
.tvp-with { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-width: 420px; }
.tvp-with > span { font-size: 10px; letter-spacing: .09em; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.tvp-with input { border: 1.5px solid var(--hair); border-radius: 8px; padding: 8px 11px; font-size: 13px; font-family: var(--ui, inherit); color: var(--ink); background: #fff; }
.tprep { border-top: 1px solid var(--hair-3); margin-top: 14px; padding-top: 12px; }
.tprep-t { font: 700 10px/1 var(--font-mono, monospace); letter-spacing: .08em; color: var(--faint); }
.tprep-t span { font-weight: 400; text-transform: none; letter-spacing: 0; }
/* redesigned traveler-detail admin cards */
.trav-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tvd-chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.tvd-chip.ok { background: #E1F5EE; color: #0F6E56; }
.tvd-chip.warn { background: #FAEEDA; color: #854F0B; }
.tvd-chip.bad { background: #FCEBEB; color: #A32D2D; }
.tvd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 720px) { .tvd-cards { grid-template-columns: 1fr; } }
.tvd-card { background: #fff; border: 1px solid var(--hair, #e0dace); border-radius: 14px; padding: 14px 16px; }
.tvd-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tvd-ct { font: 700 11px/1 var(--font-mono, monospace); letter-spacing: .09em; color: var(--muted); }
.tvd-ch .tvd-ct { margin: 0; }
.tvd-card > .tvd-ct { display: block; margin-bottom: 12px; }
.tvd-pull { font: 700 11px/1 var(--ui, inherit); color: var(--accent); background: none; border: 1px solid var(--hair, #e0dace); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.tvd-pull:hover { border-color: var(--accent); }
.tvd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; }
.tvd-grid .tvp-with { margin-top: 0; max-width: none; }
.tvd-grid .tvp-with.wide { grid-column: 1 / -1; }
.tvd-card .tvp-party { margin-top: 0; }
.tvd-card .tvp-with { max-width: none; }
.tvd-foot { font-size: 11px; color: var(--faint); margin-top: 11px; }
.tvd-d { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair-3); font-size: 13px; }
.tvd-d:last-child { border-bottom: none; }
.tvd-dk { color: var(--faint); font-size: 11.5px; }
.tvp-with input:focus { outline: none; border-color: var(--accent); }
/* Travel party — linked travelers who share transfers */
.tvp-party { margin-top: 12px; max-width: 460px; }
.tvp-plab { display: block; font-size: 10px; letter-spacing: .09em; font-weight: 700; color: var(--faint); text-transform: uppercase; margin-bottom: 7px; }
.tvp-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tvp-chip { display: inline-flex; align-items: center; gap: 7px; background: #ebeef4; color: #2b3f5c; font-size: 12.5px; font-weight: 600; padding: 4px 5px 4px 9px; border-radius: 999px; }
.tvp-cav { width: 20px; height: 20px; border-radius: 50%; background: #3b4a63; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tvp-crm { border: none; background: #d9dfe8; color: #3b4a63; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; line-height: 0; }
.tvp-crm svg { width: 11px; height: 11px; }
.tvp-crm:hover { background: var(--accent); color: #fff; }
.tvp-addsel { border: 1.5px dashed var(--hair); background: var(--paper-2); color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; font-family: var(--ui, inherit); }
.tvp-addsel:focus { outline: none; border-color: var(--accent); }
.tvp-none { font-size: 12px; color: var(--faint); }
.tvp-pnote { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--green); }
.tvp-pnote svg { width: 14px; height: 14px; }
.tvp-with-ro { font-size: 13px; color: var(--muted); margin-top: 8px; }
.tv-addhint { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 560px; }
.tv-addhint .lnk, .lnk { color: var(--accent); cursor: pointer; font-weight: 600; }

/* People rows: one divider per person (row + travel sub-row = one block) */
.db-row.db-person { border-bottom: none; padding-bottom: 4px; }
.db-travel-sub { border-bottom: 1px solid var(--hair-4); }

/* Leg editor note textareas */
.tl-ta { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hair); padding: 9px 11px; font-size: 14px; font-family: var(--ui, inherit); line-height: 1.5; resize: vertical; color: var(--ink); }
.tl-ta:focus { outline: none; border-color: var(--accent); }

/* Arrivals & Departures board */
.arr-card { max-width: 760px; width: 96vw; }
.arr-wrap { max-height: 62vh; overflow: auto; padding: 4px 18px; }
.arr-tbl { width: 100%; border-collapse: collapse; }
.arr-tbl th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 9.5px; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 9px 10px; border-bottom: 1.5px solid var(--hair); }
.arr-tbl td { padding: 11px 10px; border-top: 1px solid var(--hair-3); font-size: 12.5px; color: var(--ink); vertical-align: top; }
.arr-nm { font-weight: 700; }
.arr-minor { font-size: 8.5px; font-weight: 700; letter-spacing: .05em; background: #fbeee8; color: #8a3517; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.arr-sub { font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.arr-conf { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--muted); }
.arr-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.arr-pill.ok { background: #e7f2ea; color: #1f7a4d; }
.arr-pill.warn { background: #fbe7df; color: #a5401e; }
.arr-pill.none { background: var(--paper-2); color: var(--faint); }
.arr-empty { text-align: center; color: var(--faint); padding: 22px; }
.arr-legend { font-size: 10.5px; color: var(--faint); }

/* Travel roster — board-style table (people list) */
.trav-tblcard { background: #fff; border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.trav-tbl { width: 100%; border-collapse: collapse; }
.trav-tbl thead th { text-align: left; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--hair-3); }
.trm-row { cursor: pointer; transition: background .1s; }
.trm-row:hover { background: var(--paper-2); }
.trm-row > td { padding: 12px; border-top: 1px solid var(--hair-3); font-size: 12.5px; color: var(--ink); vertical-align: middle; }
.trm-row:first-child > td { border-top: none; }
.trm-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.trm-av { width: 32px; height: 32px; border-radius: 50%; background: #ebeef4; color: #3b4a63; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; flex: none; }
.trm-av.minor { background: #f3e2d8; color: #8a3517; }
.trm-id { display: flex; flex-direction: column; min-width: 0; }
.trm-nm { font-weight: 700; color: var(--ink); }
.trm-minor { font-size: 8.5px; font-weight: 700; letter-spacing: .05em; background: #fbeee8; color: #8a3517; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.trm-sub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.trm-dates { color: var(--muted); white-space: nowrap; }
.trm-route { color: var(--ink); }
.trm-itin { color: var(--muted); font-size: 11.5px; }
.trm-dim { color: var(--faint); }
.trm-pill { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.trm-pill.ok { background: #e7f2ea; color: #1f7a4d; }
.trm-pill.wait { background: #f4efe6; color: #9a8f7a; }
.trm-pill.none { background: #faf1ea; color: #b06a2c; }
.trm-x { text-align: right; width: 34px; }
.trm-del { background: none; border: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.trm-del:hover { color: var(--accent); background: var(--paper-2); }
@media (max-width: 720px) { .trav-tbl thead th.hcol, .trm-dates, .trm-route, .trm-itin, .trav-tbl thead th:nth-child(2), .trav-tbl thead th:nth-child(3), .trav-tbl thead th:nth-child(4) { display: none; } }

/* Travel itinerary — board-style leg rows (one traveler) */
.tvl-tbl { width: 100%; border-collapse: collapse; }
.tvl-row > td { padding: 12px 13px; border-top: 1px solid var(--hair-3); vertical-align: middle; }
.tvl-row:first-child > td { border-top: none; }
.tvl-row[data-travact] { cursor: pointer; transition: background .1s; }
.tvl-row[data-travact]:hover { background: var(--paper-2); }
.tvl-icocell { width: 44px; }
.tvl-tile { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; background: var(--paper-2); color: var(--muted); }
.tvl-tile.flight { background: #e9eef7; color: #2b5b8f; }
.tvl-tile.ground { background: #ebeef4; color: #3b4a63; }
.tvl-tile.hotel { background: #e7f2ea; color: #1f7a4d; }
.tvl-tile.shoot { background: var(--ink); color: #fff; }
.tvl-main { min-width: 0; }
.tvl-date { display: block; font-size: 10.5px; color: var(--faint); }
.tvl-title { display: block; font-weight: 700; color: var(--ink); font-size: 13px; margin-top: 1px; }
.tvl-mini { font-size: 8.5px; font-weight: 700; letter-spacing: .05em; background: #e7f2ea; color: #1f7a4d; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; margin-left: 4px; }
.tvl-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.tvl-rightcell { text-align: right; white-space: nowrap; }
.tvl-conf { font-size: 10.5px; font-weight: 700; background: #faf0ec; color: #a5401e; padding: 3px 8px; border-radius: 999px; }
.tvl-edit { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.tvl-chip { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.tvl-chip.shoot { background: var(--ink); color: #fff; }
a.tvl-chip.shoot:hover { background: var(--accent); }
.tvl-chip.pending { background: var(--paper-2); color: var(--faint); border: 1px solid var(--hair); }

/* Travel import — live status line */
.tv-status { display: flex; align-items: center; gap: 9px; margin: 14px 18px 2px; font-size: 13px; color: var(--muted); }
.tv-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: tvpulse 1s ease-in-out infinite; }
@keyframes tvpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- multi-add picker (stay open, tap to stack) ---- */
.float-menu.pick-multi { display: flex; flex-direction: column; max-height: 400px; }
.float-menu.pick-multi .fm-scroll { overflow-y: auto; flex: 1 1 auto; }
.float-menu .fm-head b { color: var(--accent); }
.float-menu .fm-done { text-align: center; color: var(--accent); font-weight: 700; background: var(--accent-tint); border-top: 1px solid var(--hair); border-bottom: none; }
.float-menu .fm-done:hover { background: var(--accent); color: #fff; }

/* Travel — collaborator (shared) banner */
.trav-shband { background: var(--night-tint, #dde6f0); color: var(--night, #2E4A6B); border: 1px solid #c3d3e6; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.trav-shband b { color: var(--night, #2E4A6B); }

/* Travel share — team picker */
.ts-team { margin-top: 14px; }
.ts-teamrow { display: flex; align-items: center; gap: 9px; width: 100%; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 9px 12px; margin-bottom: 6px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.ts-teamrow:hover { border-color: var(--ink); }
.ts-tm-em { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ts-tm-role { font-size: 11px; color: var(--faint); }
.ts-tm-add { font-size: 12px; font-weight: 700; color: var(--accent); }
.ts-manual { margin-top: 16px; }

/* Travel — Download PDF dropdown */
.tb-dd { position: relative; }
.tb-menu { position: absolute; right: 0; top: calc(100% + 5px); z-index: 60; width: 260px; background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(20,18,16,.22); }
.tb-menu[hidden] { display: none; }
.tb-menu button { display: block; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--hair-3); padding: 11px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.tb-menu button:first-child { border-top: none; }
.tb-menu button:hover { background: var(--paper-2); }
.tb-menu button b { display: block; font-size: 13px; font-weight: 700; }
.tb-menu button span { display: block; font-size: 11.5px; color: var(--muted); }


/* ============ MOBILE PASS (2026-07-03 · from Lowell's phone screenshots) ============ */
/* Root cause of the "desktop header on a phone" screenshots: one block wider than the
   screen makes iOS grow the layout viewport to fit it, and then every media query on
   the page evaluates against that inflated width and stops matching. Clipping page-level
   horizontal overflow means a single wide block can never break the whole page again. */
html { overflow-x: hidden; overflow-x: clip; }

@media (max-width: 700px) {
  /* builder cast grid (num + name + 5 time fields ≈ 720px): keep the desktop shape and
     scroll it INSIDE the card — same pattern the library already uses (.cs-panel) */
  .cast-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cast-row { min-width: 640px; }
  /* travel roster: drop the date-window/route columns; the legs · days · shared meta
     rides under the name instead of clipping at the screen edge */
  .tr-win, .tr-route { display: none; }
  .tr-open { flex-wrap: wrap; }
  .tr-tags { width: auto; text-align: left; }
  /* dashboard hero: actions wrap under the title instead of running off-screen */
  .dash-head { flex-wrap: wrap; gap: 12px; }
  .dash-head-acts { flex-wrap: wrap; }
}

/* ============ ORG CONSOLE (Home · Account, Day 5 hybrid) ============ */
.org-id { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.org-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 16px; }
.org-tile { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px; }
.ot-lab { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--faint); }
.ot-num { font-size: 22px; font-weight: 700; color: var(--ink); margin: 4px 0 1px; }
.ot-cap { font-size: 11px; font-weight: 600; color: var(--faint); }
.ot-sub { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.ot-bar { height: 4px; border-radius: 2px; background: var(--hair); margin-top: 7px; overflow: hidden; }
.ot-bar i { display: block; height: 100%; background: #1f7a4d; border-radius: 2px; transition: width .25s; }
/* team roster — member cards (Option C) */
.org-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.orgm-cardwrap { background: #fff; border: 1px solid var(--hair-2); border-radius: 12px; overflow: hidden; transition: border-color .12s; }
.orgm-cardwrap.orgm-click { cursor: pointer; }
.orgm-cardwrap.orgm-click:hover { border-color: var(--hair); }
.orgm-cardwrap.open { border-color: var(--ink); }
.orgm-cardhead { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.orgm-cardhead[data-orgopen] { cursor: pointer; }
.orgm-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; background: #ebeef4; color: #3b4a63; letter-spacing: .02em; }
.orgm-av.own { background: #fbeee8; color: #8a3517; }
.orgm-id { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.orgm-name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgm-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.orgm-appcount { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--paper-2); padding: 3px 9px; border-radius: 999px; flex: none; }
.orgm-chev { color: var(--faint); font-weight: 700; flex: none; }
.orgm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 14px 65px; cursor: pointer; }
.lvl-tag { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.lvl-full { background: #fbe7df; color: #a5401e; }
.lvl-edit { background: #e7f2ea; color: #1f7a4d; }
.lvl-propose { background: #fbf0da; color: #8a5a10; }
.lvl-view { background: #e6eef7; color: #2b5b8f; }
.orgm-noapps { font-size: 11.5px; color: var(--faint); }
.perm-wrap { background: var(--paper-2); border-top: 1px solid var(--hair-3); padding: 12px 15px 15px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; }
.perm-cell { background: #fff; border: 1px solid var(--hair); border-radius: 9px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.perm-cell.perm-locked { background: var(--paper-2); border-style: dashed; }
.perm-lab { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.perm-locked .perm-lab, .perm-static { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.perm-sel { border: none; background: transparent; font-size: 12px; font-weight: 700; color: var(--accent); text-align: right; cursor: pointer; padding-right: 2px; }
.perm-sel:focus { outline: none; }
.perm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 9px; font-size: 10.5px; color: var(--faint); }
.perm-remove { color: var(--accent); font-size: 10.5px; font-weight: 700; cursor: pointer; }
.org-foot { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.org-foot b { color: var(--ink); }
.org-editlim { font-size: 10.5px; color: var(--accent); cursor: pointer; font-weight: 700; }
.om-lim { width: 66px; border: 1px solid var(--hair); border-radius: 6px; padding: 2px 6px; font-size: 12px; background: #fff; color: var(--ink); }
@media (max-width: 700px) { .orgm-tags { padding-left: 15px; } .perm-wrap { padding-left: 15px; } }

/* hub: hidden strip-board / media sections collapse to a one-line label + Show */
.ph-hidden-sec { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; margin-top: 22px; border-top: 1px dashed var(--hair); }
.ph-hidden-sec + .ph-hidden-sec { margin-top: 0; }
.sec-acts { display: flex; gap: 14px; align-items: center; }

/* ============ SCHEDULE OWNS THE DAY (2026-07-04) ============ */
.sched-anchor { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; margin-right: 12px; }
.sched-anchor label { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.sched-anchor .nf-time { min-height: 28px; padding: 4px 8px; font-size: 12px; font-family: var(--font-mono); border: 1.5px solid var(--ink); border-radius: 8px; }
.auto-tag { font-size: 8px; font-weight: 700; letter-spacing: .08em; color: #1f7a4d; }
.hdr-auto { display: flex; align-items: baseline; gap: 7px; border: 1px dashed var(--hair); background: var(--paper-2); border-radius: 9px; padding: 8px 10px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.hdr-auto .ha-sub { font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 500; color: var(--faint); }
.hdr-auto:hover { border-color: var(--ink); color: var(--ink); }
.sc2-dropgap { border: 2px dashed var(--accent); border-radius: 9px; background: rgba(214, 72, 31, .06); margin: 4px 0; }
.sc2-lifted { opacity: .35; }
/* banner delete: always visible, filled circle (was invisible on the tinted rows) */
.sc2-banner .row-del { opacity: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sc2-banner .row-del:hover { background: var(--accent); color: #fff; }
.sc2-startedit { min-height: 28px; padding: 3px 6px; font-size: 12px; font-family: var(--font-mono); font-weight: 700; color: var(--accent); border: 1px solid var(--hair); border-radius: 7px; width: auto; justify-self: start; box-sizing: border-box; flex: none; background: #fff; text-align: left; }
.sc2-startedit::-webkit-date-and-time-value { text-align: left; margin-inline: 0; }
.sc2-startedit::-webkit-datetime-edit { text-align: left; }
.sc2-startedit::-webkit-datetime-edit-fields-wrapper { justify-content: flex-start; }
.sc2-banner .sc2-startedit { width: auto; margin: 0; }
.sc2-startedit:hover, .sc2-startedit:focus { border-color: var(--ink); }
.sc2-startmid { color: var(--ink); border-color: transparent; background: transparent; }
.sc2-startmid:hover, .sc2-startmid:focus { border-color: var(--hair); background: #fff; }

/* ============ LIBRARY · LOCATIONS quarter cards (2026-07-04, approved) ============ */
.db-locgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
@media (max-width: 1000px) { .db-locgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .db-locgrid { grid-template-columns: 1fr; } }
.loc-mini { padding: 16px 17px 14px; cursor: pointer; margin-bottom: 0; min-height: 108px; display: flex; flex-direction: column; border-radius: 11px; transition: border-color .12s, box-shadow .12s; }
.loc-mini:hover { border-color: var(--ink); box-shadow: 0 5px 16px rgba(20, 18, 16, .07); }
.lm-name { font-weight: 700; font-size: 15.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.lm-addr { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.lm-chips { display: flex; gap: 6px; margin-top: auto; padding-top: 13px; flex-wrap: wrap; }
.lm-chip { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .05em; border-radius: 5px; padding: 3px 7px; text-decoration: none; }
.lm-chip.ok { color: #1f7a4d; background: #e9f2ec; }
.lm-chip.miss { color: #b3a58c; background: var(--paper-2); }
.lm-chip.camp { color: #7a5f2a; background: #f7efdd; }
.lm-chip.map { color: #3a6ea5; background: #e8eef5; }
.db-locgrid .loc-open { grid-column: 1 / -1; border-width: 1.5px; border-color: var(--ink); margin-bottom: 0; }

/* ===== Library V2 — department jump-rail + inline-editor rows (2026-07-09) ===== */
.lbv-grid { display: grid; grid-template-columns: 152px 1fr; gap: 18px; align-items: start; }
.lbv-rail { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 12px; }
.lbv-ri { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 13px; border-radius: var(--r-ctrl); font-size: 13.5px; color: var(--muted); cursor: pointer; }
.lbv-ri:hover { background: var(--hair-4); }
.lbv-ri.on { background: var(--ink); color: #fff; font-weight: 700; }
.lbv-ri .lbv-rn2 { font: 700 11px/1 var(--font-mono); color: var(--faint); }
.lbv-ri.on .lbv-rn2 { color: rgba(255,255,255,.6); }
.lbv-ri.warn { color: #9c4a33; }
.lbv-ri.warn .lbv-rn2 { color: #c98a72; }
.lbv-ri.warn.on { background: #9c4a33; color: #fff; font-weight: 700; }
.lbv-ri.warn.on .lbv-rn2 { color: rgba(255,255,255,.72); }
.lbv-rsep { height: 1px; background: var(--hair); margin: 8px 4px; }
.lbv-main { min-width: 0; }
.lbv-prodsec { margin-bottom: 18px; }
.lbv-subhead { font: 700 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--faint); margin: 14px 0 6px; }
.lbv-grp { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; margin-bottom: 12px; }
.lbv-grp.hide { display: none; }
.lbv-gh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 15px; background: var(--paper-2); border-bottom: 1px solid var(--hair); cursor: pointer; }
.lbv-gh.col { border-bottom: none; }
.lbv-glab { font: 700 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.lbv-gadd { font-size: 11px; font-weight: 600; color: var(--faint); cursor: pointer; }
.lbv-gadd:hover { color: var(--accent); }
.lbv-gbody.db-locgrid { padding: 12px; }
.lbv-item { border-top: 1px solid var(--hair-4); }
.lbv-item:first-child { border-top: none; }
.lbv-item.hide { display: none; }
.lbv-row { display: flex; align-items: center; gap: 11px; padding: 9px 15px; cursor: pointer; }
.lbv-row:hover { background: var(--paper-2); }
.lbv-av { width: 27px; height: 27px; border-radius: 50%; background: var(--hair-3); color: var(--muted); font: 700 9px/27px var(--font-ui); text-align: center; flex: none; cursor: grab; touch-action: none; user-select: none; }
.lbv-av.miss { background: #FCEBEB; color: #A32D2D; }
.lbv-av.gold { background: #FAEEDA; color: #BA7517; }
.lbv-row.dragging { opacity: .4; }
.lbv-rn { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbv-rn b { font-weight: 700; }
.lbv-sub { color: var(--faint); }
.lbv-flag { color: #A32D2D; font-weight: 600; font-size: 12px; }
.lbv-chev { color: var(--faint); font-size: 12px; flex: none; }
.lbv-ed { padding: 4px 15px 15px 53px; background: var(--paper-2); border-top: 1px solid var(--hair-4); }
.lbv-flds { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.lbv-f { display: flex; flex-direction: column; min-width: 0; }
.lbv-f.wide { grid-column: 1 / 3; }
.lbv-f > label { font: 600 9px/1 var(--font-mono); letter-spacing: .05em; color: var(--faint); text-transform: uppercase; margin-bottom: 4px; }
.lbv-f.req > label { color: #A32D2D; }
.lbv-f .nf { min-height: 34px; }
.lbv-f.req .nf { border-color: var(--accent); }
.lbv-guard { margin-top: 10px; background: #fff7ec; border: 1px solid #f0dcae; border-radius: var(--r-ctrl); padding: 10px 12px; }
.lbv-guard-l { font: 700 9px/1 var(--font-mono); letter-spacing: .05em; color: #BA7517; margin-bottom: 7px; }
.lbv-togs { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.lbv-tw { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lbv-done { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); padding: 8px 15px; cursor: pointer; }
.lbv-delrow { margin-top: 12px; }
.lbv-del { font-size: 12px; font-weight: 600; color: #A32D2D; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.lbv-del svg { width: 13px; height: 13px; }
.lbv-empty { padding: 16px; text-align: center; color: var(--faint); font-size: 12px; }
@media (max-width: 720px) { .lbv-grid { grid-template-columns: 1fr; } .lbv-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; } .lbv-ri { border: 1px solid var(--hair); } .lbv-flds { grid-template-columns: 1fr; } .lbv-ed { padding-left: 15px; } }

/* Library V2 revisions (2026-07-09): collapsed category headers + compact bottom role manager */
.lbv-gh.sel { border-bottom: none; }
.lbv-gh.sel:hover { background: var(--hair-4); }
.lbv-gh.open { cursor: default; }
.lbv-gchev { color: var(--faint); font-size: 16px; font-weight: 700; line-height: 1; }
.rm-below { margin-top: 26px; border-top: 1px solid var(--hair); padding-top: 12px; }
.rm-below .rm-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 4px 2px; }
.rm-below .rm-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.rm-below .rm-hint { font-weight: 400; color: var(--faint); font-size: 12px; }
.rm-below .lib-go { font-size: 12px; }

/* Library V2: per-person production tags (2026-07-09) */
.lbv-ptags { display: flex; gap: 5px; flex: none; align-items: center; }
.lbv-ptag { font: 600 10px/1 var(--font-mono); color: #185FA5; background: #E6F1FB; border-radius: var(--r-pill); padding: 4px 8px; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv-ptag.more { color: var(--muted); background: var(--hair-3); }
.lbv-noprod { font: 400 11px/1 var(--font-mono); color: #c3bbac; }
@media (max-width: 720px) { .lbv-ptag { max-width: 74px; } }
/* Library Phase A — favorites, tags, archive (2026-07-09) */
.lbv-fav { flex: none; font-size: 15px; line-height: 1; color: var(--disabled); cursor: pointer; padding: 0 1px; }
.lbv-fav:hover, .lbv-fav.on { color: var(--amber); }
.lbv-tag { font: 700 9px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--night); background: var(--night-tint); border-radius: var(--r-pill); padding: 4px 8px; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbv-tag:hover { background: var(--accent-tint); color: var(--accent); }
.lbv-rlab { font: 700 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 4px 13px 2px; }
.lbv-taghint { font-weight: 400; color: var(--faint); text-transform: none; letter-spacing: 0; }
.lbv-tagedit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 7px 9px; min-height: 40px; background: #fff; }
.lbv-tagx { display: inline-flex; align-items: center; gap: 3px; font: 700 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--night); background: var(--night-tint); border-radius: var(--r-pill); padding: 4px 4px 4px 8px; }
.lbv-tagx button { border: none; background: none; color: var(--night); cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; opacity: .6; }
.lbv-tagx button:hover { opacity: 1; }
.lbv-taginput { flex: 1; min-width: 90px; border: none; background: none; outline: none; font-size: 13px; color: var(--ink); font-family: var(--font-ui); }
.lbv-arch { font-size: 12px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; margin-right: 16px; padding: 0; }
.lbv-arch:hover { color: var(--ink); }

/* ===== Schedule board (Phase 1) — day-broken stripboard ===== */
.sb2-daygroup { border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; margin-bottom: 12px; background: #fff; }
.sb2-day { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: var(--ink); color: #fff; }
.sb2-dl { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; }
.sb2-dm { font: 700 10px/1 var(--font-mono); color: rgba(255,255,255,.62); }
.sb2-x { color: #F09595; cursor: pointer; }
.sb2-strip { display: grid; grid-template-columns: 4px 18px 42px minmax(0,1fr) 24px 58px 42px; gap: 10px; align-items: center; padding: 8px 14px 8px 6px; border-top: 1px solid var(--hair-4); border-left: none; position: relative; }
.sb2-strip:first-child { border-top: none; }
.sb2-strip.strip-N { background: #f7f9fb; }
.sb2-strip.dragging { opacity: .4; }
.sb2-accent { align-self: stretch; width: 4px; min-height: 20px; border-radius: 3px; }
.sb2-actions { display: inline-flex; gap: 2px; justify-content: flex-end; align-items: center; }
.sb2-act { opacity: .32; cursor: pointer; color: var(--muted); font-size: 15px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; transition: opacity .12s, color .12s, background .12s; }
.sb2-strip:hover .sb2-act { opacity: .75; }
.sb2-act:hover { opacity: 1 !important; color: var(--accent); background: var(--paper-2); }
.sb2-act[data-schedomit]:hover { color: var(--crit,#c15b4a); }
.sb2-strip.dim { opacity: .2; }
/* P8 split parts */
.sb2-part { font: 800 8.5px/1 var(--font-mono); letter-spacing: .06em; color: #fff; background: var(--accent,#8a6d3b); padding: 3px 5px; border-radius: 4px; margin-right: 2px; }
.sb2-pg.split { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.sb2-pg.split .pgval { font: 700 11px/1 var(--font-mono); color: var(--ink); min-width: 22px; text-align: center; }
.pgstep { cursor: pointer; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 5px; color: var(--muted); font: 700 13px/1 var(--font-ui); user-select: none; flex: none; }
.pgstep:hover { border-color: var(--accent); color: var(--accent); background: var(--paper-2); }
/* P8 color-by + isolate controls */
.sched-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 2px 10px; }
.sc-color { font: 600 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sc-color select { font-family: var(--font-ui); font-size: 13px; padding: 6px 26px 6px 9px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; color: var(--ink); }
.sc-filter { position: relative; flex: 1; min-width: 220px; max-width: 480px; display: flex; align-items: center; }
.sc-fi { position: absolute; left: 11px; color: var(--faint); display: inline-flex; align-items: center; pointer-events: none; }
.sc-fi svg { width: 14px; height: 14px; }
.sc-filter input { width: 100%; padding: 8px 30px; border: 1px solid var(--hair); border-radius: var(--r-pill,999px); font-size: 13px; background: #fff; color: var(--ink); }
.sc-filter input:focus { outline: none; border-color: var(--accent); }
.sc-fx { position: absolute; right: 11px; cursor: pointer; color: var(--faint); font-size: 12px; }
.sc-fx:hover { color: var(--ink); }
/* P8 omitted archive */
.sb2-omitted { opacity: .92; }
.sb2-omithead .sb2-dl { color: var(--faint); }
.sb2-strip.omit-row { grid-template-columns: 42px minmax(0,1fr) 26px 42px auto; padding-left: 14px; opacity: .72; }
.sb2-strip.omit-row .sb2-set { text-decoration: line-through; }
.sb2-restore { cursor: pointer; font: 600 11px/1 var(--font-mono); color: var(--accent,#8a6d3b); white-space: nowrap; }
.sb2-restore:hover { text-decoration: underline; }
/* P4 conflicts & turnaround */
.sb-link.warn { color: #A32D2D; }
.sb2-sync.conflict { color: #A32D2D; background: #FCEBEB; }
.sb2-cf { font-size: 12px; line-height: 1; color: #A32D2D; cursor: default; }
.sb2-cf.warn { color: #854F0B; }
.sched-cf { border: 1px solid #f0c9c9; background: #fdf3f3; border-radius: var(--r-card, 16px); padding: 12px 16px; margin-bottom: 14px; }
.sched-cf-h { display: flex; align-items: center; gap: 9px; }
.sched-cf-h .cf-ic { font-size: 14px; }
.sched-cf-h b { font-size: 14px; color: var(--ink); }
.cf-open { margin-left: auto; font: 700 11px/1 var(--font-mono); letter-spacing: .03em; color: var(--accent); cursor: pointer; }
.cf-open:hover { text-decoration: underline; }
.sched-cf-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.cf-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink); }
.cf-row .cf-dot { flex: none; font-size: 8px; line-height: 1.7; }
.cf-row.cf-crit .cf-dot { color: #C15B4A; } .cf-row.cf-warn .cf-dot { color: #B5701F; }
.cf-txt i { color: var(--muted); font-style: italic; }
.turnbar { display: flex; align-items: center; gap: 9px; padding: 9px 14px; font-size: 12.5px; background: #fdf3f3; color: #A32D2D; border: 1px solid #f0c9c9; border-radius: var(--r-ctrl, 12px); margin: -4px 0 12px; }
.turnbar b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; }
/* Availability editor */
.av-turn { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-ctrl, 12px); margin: 4px 0 16px; }
.av-turn label { font: 700 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.av-turn input { width: 64px; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; font-family: var(--font-mono); font-size: 13px; background: #fff; }
.av-turn-u { font-size: 12px; color: var(--muted); }
.av-turn-h { flex: 1 1 100%; font-size: 11.5px; color: var(--faint); }
.av-head { display: grid; grid-template-columns: 108px 158px 130px 128px 128px 1fr 22px; gap: 8px; padding: 0 0 5px; font: 700 9px/1 var(--font-mono); letter-spacing: .08em; color: var(--faint); }
.av-head span:nth-child(1) { grid-column: 1 / 3; } .av-head span:nth-child(2) { grid-column: 3; } .av-head span:nth-child(3) { grid-column: 4 / 6; }
.av-row { display: grid; grid-template-columns: 108px 158px 130px 128px 128px 1fr 22px; gap: 8px; align-items: center; padding: 5px 0; }
.av-row select, .av-row input { padding: 7px 8px; border: 1px solid var(--hair); border-radius: 8px; font-family: var(--font-ui); font-size: 12.5px; background: #fff; color: var(--ink); min-width: 0; }
.av-row select:focus, .av-row input:focus { outline: none; border-color: var(--accent); }
.av-row .row-del { cursor: pointer; color: var(--faint); text-align: center; font-size: 12px; }
.av-row .row-del:hover { color: var(--crit, #c15b4a); }
.av-adds { display: flex; gap: 8px; margin-top: 12px; }
.av-add { cursor: pointer; font: 600 12px/1 var(--font-mono); color: var(--muted); border: 1px dashed var(--hair); border-radius: var(--r-pill, 999px); padding: 6px 11px; }
.av-add:hover { color: var(--accent); border-color: var(--accent); }
/* P8 banners on the board */
.sb2-banner { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-top: 1px solid var(--hair-4); background: repeating-linear-gradient(45deg, #faf7f0, #faf7f0 8px, #f5f1e8 8px, #f5f1e8 16px); }
.sb2-banner:first-child { border-top: none; }
.bn-ico { font-size: 13px; line-height: 1; }
.bn-k { font: 800 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.bn-text { flex: 1; min-width: 0; border: none; background: transparent; font-size: 12.5px; color: var(--ink); padding: 3px 4px; }
.bn-text:focus { outline: none; background: #fff; border-radius: 6px; }
.bn-text::placeholder { color: var(--faint); font-style: italic; }
.bn-text-ro { flex: 1; font-size: 12.5px; color: var(--ink); }
.bn-del { cursor: pointer; color: var(--faint); font-size: 12px; opacity: 0; transition: opacity .12s; }
.sb2-banner:hover .bn-del { opacity: .6; }
.bn-del:hover { opacity: 1 !important; color: var(--danger,#c15b4a); }
.bn-meal { background: repeating-linear-gradient(45deg, #f3f8f2, #f3f8f2 8px, #e9f2e7 8px, #e9f2e7 16px); }
.bn-meal .bn-k { color: #3B6D11; }
.bn-move { background: repeating-linear-gradient(45deg, #fdf4ec, #fdf4ec 8px, #f7e8d8 8px, #f7e8d8 16px); }
.bn-move .bn-k { color: #b5701f; }
.sb2-dayfoot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px dashed var(--hair-3); }
.sb2-foot-sep { color: var(--hair); }
.sb2-addbanner { cursor: pointer; font: 600 11px/1 var(--font-mono); color: var(--muted); opacity: .8; transition: opacity .12s, color .12s; }
.sb2-addbanner:hover { opacity: 1; color: var(--accent,#8a6d3b); }
.sb2-grip { cursor: grab; color: var(--faint); font-size: 12px; text-align: center; touch-action: none; user-select: none; }
.sb2-num { font-weight: 700; font-size: 12px; text-align: center; }
.sb2-ie { font: 700 9px/1 var(--font-mono); color: var(--muted); }
.sb2-set { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb2-dn { font: 700 9px/1 var(--font-mono); text-align: center; padding: 3px 0; border-radius: 4px; }
.sb2-dn.D { background: var(--hair-3); color: var(--muted); }
.sb2-dn.N { background: var(--night-tint,#dde6f0); color: var(--night,#2E4A6B); }
.sb2-pg { font: 700 11px/1 var(--font-mono); color: var(--faint); text-align: right; }
.sb2-empty { padding: 12px 14px; color: var(--faint); font-size: 12px; text-align: center; }
.sb2-addbreak { font: 600 11px/1 var(--font-mono); color: var(--faint); cursor: pointer; letter-spacing: .02em; }
.sb2-addbreak:hover { color: var(--accent); }

/* Dedicated Schedule screen + hub summary card */
.sched-wrap { max-width: 1000px; margin: 0 auto; padding: 18px 20px 60px; }
.sb-summary { cursor: pointer; }
.sb-summary:hover { border-color: var(--ink); }
.sb-sumhint { font-size: 12px; color: var(--muted); padding: 8px 2px 0; }

/* ===== Schedule screen (dedicated workspace) ===== */
.sched-wrap { padding: 16px 20px 40px; max-width: 1100px; margin: 0 auto; }
.sched-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 2px; margin-bottom: 6px; }
.sched-sum { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.sched-grid { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 16px; align-items: start; }
.sched-board { min-width: 0; }
.sched-rail { position: sticky; top: 12px; background: #fdf6ee; border: 1px solid #e6d6c2; border-radius: var(--r-card); overflow: hidden; }
.sched-rail-h { font: 700 9px/1 var(--font-mono); letter-spacing: .1em; color: #BA7517; padding: 11px 13px 8px; }
.sched-rail-body { padding: 0 8px 10px; min-height: 60px; }
.sched-rail-body .sb2-strip { border-left-width: 4px; border-radius: 7px; border: 1px solid var(--hair); border-left: 4px solid var(--hair-3); margin-bottom: 6px; background: #fff; grid-template-columns: 16px 34px 34px minmax(0,1fr) 22px; }
.sched-rail-body .sb2-strip.strip-N { border-left-color: var(--night,#2E4A6B); }
.sched-rail-body .sb2-pg { display: none; }
.sb2-dhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb2-date { font: 600 11px/1 var(--font-mono); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: 4px 6px; color-scheme: dark; }
.sb2-loc { font-size: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: 4px 8px; width: 150px; }
.sb2-loc::placeholder { color: rgba(255,255,255,.5); }
.sb2-dl2 { font: 600 11px/1 var(--font-mono); color: rgba(255,255,255,.75); }
.sb2-dmeta { display: flex; align-items: center; gap: 8px; }
.sb2-x { cursor: pointer; color: #F09595; font-size: 12px; }
.sb-daychips { display: flex; gap: 7px; flex-wrap: wrap; padding: 4px 2px 2px; }
.sb-daychip { font: 600 11px/1 var(--font-mono); color: var(--muted); background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 6px 10px; }
.sb-daychip b { color: var(--ink); }
.sb-daychip.more { color: var(--faint); }

/* ===== Schedule board — Phase 2 style bump: robust strips + element chips + real toolbar ===== */
.sched-wrap { max-width: 1240px; padding: 18px 24px 64px; }
.sched-toolbar { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-ctrl); padding: 11px 15px; margin-bottom: 14px; gap: 8px; }
.sched-sum { font: 700 11px/1.5 var(--font-mono); letter-spacing: .05em; color: var(--ink); margin-right: auto; }
.sched-toolbar .sb-link { font-size: 12.5px; padding: 7px 11px; border-radius: var(--r-sm); }
.sched-toolbar .sb-link:hover { background: var(--hair-4); color: var(--ink); }
.sched-toolbar .sb-link.accent { color: #fff; background: var(--accent); font-weight: 700; }
.sched-toolbar .sb-link.accent:hover { background: var(--accent); filter: brightness(.94); color: #fff; }
.sched-toolbar .sb-link.danger { color: #A32D2D; }
.sched-toolbar .sb-link.danger:hover { background: #FCEBEB; color: #A32D2D; }
.sb2-daygroup { margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20,18,16,.05); }
.sb2-day { padding: 12px 16px; }
.sb2-dl { font-family: var(--font-display);font-weight:700; font-size: 17px; line-height: 1; letter-spacing: .03em; }
.sb2-strip { grid-template-columns: 4px 22px 40px minmax(0,1fr) 26px 74px 46px; gap: 12px; align-items: center; padding: 9px 16px 9px 10px; min-height: 48px; border-left: none; }
.sb2-strip:hover { background: var(--paper-2); }
.sb2-strip.strip-N:hover { background: #eef3f8; }
.sb2-num { font: 700 15px/1 var(--font-mono); text-align: center; color: var(--ink); }
.sb2-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb2-line1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sb2-ie { font: 700 9px/1 var(--font-mono); color: var(--faint); letter-spacing: .05em; flex: none; }
.sb2-set { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb2-els { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.sb2-el { font: 700 9px/1 var(--font-mono); letter-spacing: .02em; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.sb2-dn { width: 26px; height: 22px; line-height: 16px; padding: 3px 0; font-size: 10px; align-self: center; }
.sb2-pg { font: 700 12px/1 var(--font-mono); color: var(--muted); }
.sched-rail-body .sb2-strip { grid-template-columns: 16px 30px minmax(0,1fr) 24px; padding: 8px 11px; min-height: 42px; }
.sched-rail-body .sb2-strip .sb2-pg { display: none; }

/* ===== AI breakdown progress overlay ===== */
.bd-ov { position: fixed; inset: 0; background: rgba(20,18,16,.45); display: flex; align-items: center; justify-content: center; z-index: 400; padding: 20px; }
.bd-ov-card { background: #fff; border-radius: 16px; padding: 30px 32px; max-width: 410px; text-align: center; box-shadow: 0 22px 55px rgba(0,0,0,.32); }
.bd-spin { width: 36px; height: 36px; border: 3px solid var(--hair); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 18px; animation: bdspin .8s linear infinite; }
@keyframes bdspin { to { transform: rotate(360deg); } }
.bd-ov-check { width: 42px; height: 42px; border-radius: 50%; background: var(--green,#1f7a4d); color: #fff; font-size: 22px; line-height: 42px; margin: 0 auto 14px; }
.bd-ov-err { width: 42px; height: 42px; border-radius: 50%; background: #A32D2D; color: #fff; font: 700 24px/42px var(--font-ui); margin: 0 auto 14px; }
.bd-ov-t { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.bd-ov-s { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.bd-ov-acts { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

/* ===== Per-scene breakdown editor panel ===== */
.bde-ov { position: fixed; inset: 0; background: rgba(20,18,16,.45); display: flex; align-items: center; justify-content: center; z-index: 400; padding: 20px; }
.bde-card { background: #fff; border-radius: 16px; width: 520px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 22px 55px rgba(0,0,0,.32); overflow: hidden; }
.bde-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid var(--hair); }
.bde-eyebrow { font: 700 9px/1 var(--font-mono); letter-spacing: .1em; color: var(--faint); }
.bde-title { font-family: var(--font-display);font-weight:700; font-size: 26px; letter-spacing: -0.03em; line-height: 1; margin-top: 5px; }
.bde-close { font-size: 18px; color: var(--faint); cursor: pointer; }
.bde-body { padding: 8px 22px; overflow: auto; }
.bde-cat { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--hair-4); }
.bde-cat:first-child { border-top: none; }
.bde-cl { font: 700 10px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding-top: 5px; }
.bde-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bde-chip { font: 600 11px/1 var(--font-ui); padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.bde-x { cursor: pointer; font-weight: 700; opacity: .55; }
.bde-x:hover { opacity: 1; }
.bde-empty { color: var(--faint); font-size: 12px; }
.bde-add { border: 1px dashed var(--hair); border-radius: 999px; padding: 4px 10px; font-size: 12px; min-width: 78px; background: var(--paper-2); font-family: var(--font-ui); }
.bde-add:focus { outline: none; border-style: solid; border-color: var(--accent); background: #fff; }
.bde-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--hair); }
.bde-foot .btn:first-child { margin-right: auto; }
.sb2-main[data-bdscene] { cursor: pointer; }

/* ===== Breakdown panel breathing room + drop the redundant strip color bar (2026-07-09) ===== */
.sb2-strip { border-left: none; padding-left: 10px; }
.sched-rail-body .sb2-strip { border-left: none; padding-left: 11px; }
.bde-head { padding: 22px 26px; }
.bde-body { padding: 10px 26px 16px; }
.bde-cat { grid-template-columns: 116px 1fr; gap: 14px; padding: 15px 0; }
.bde-cl { padding-top: 6px; }
.bde-chips { gap: 7px; row-gap: 8px; }
.bde-chip { padding: 6px 11px; }
.bde-add { padding: 6px 12px; }
.bde-foot { padding: 16px 26px; }

/* ===== Breakdown category manager (Multi-Category List) ===== */
.cm-row { display: grid; grid-template-columns: 26px 24px 1fr 1fr 24px 22px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hair-4); }
.cm-row:first-child { border-top: none; }
.cm-colhead { display: grid; grid-template-columns: 26px 24px 1fr 1fr 24px 22px; gap: 10px; padding: 0 0 4px; font: 700 9px/1 var(--font-mono); letter-spacing: .09em; color: var(--faint); }
.cm-dept { border: 1px solid var(--hair-4); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; color: var(--muted); background: var(--paper-2); font-family: var(--font-ui); }
.cm-dept:focus { outline: none; border-color: var(--accent); background: #fff; color: var(--ink); }
.cm-dept::placeholder { color: var(--faint); font-style: italic; }
.cm-mv { display: flex; flex-direction: column; line-height: .65; }
.cm-arw { font-size: 9px; color: var(--faint); cursor: pointer; }
.cm-arw:hover { color: var(--ink); }
.cm-arw.off { opacity: .22; pointer-events: none; }
.cm-sw { font-size: 18px; text-align: center; cursor: pointer; }
.cm-label { border: 1px solid transparent; border-radius: 8px; padding: 7px 9px; font-size: 13px; font-weight: 600; background: var(--paper-2); font-family: var(--font-ui); }
.cm-label:focus { outline: none; border-color: var(--accent); background: #fff; }
.cm-vis { cursor: pointer; text-align: center; color: var(--faint); font-size: 13px; }
.cm-vis.on { color: var(--green,#1f7a4d); }
.cm-del { cursor: pointer; color: var(--faint); text-align: center; font-weight: 700; }
.cm-del:hover { color: var(--accent); }
.cm-add { margin-top: 12px; padding: 10px; text-align: center; border: 1px dashed var(--hair); border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-add:hover { border-color: var(--ink); color: var(--ink); }
.cm-hide { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink); cursor: pointer; }
.cm-note { font-size: 11.5px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

/* ===== Schedule Option B — single full-width flow + Unscheduled holding bucket ===== */
.sched-wrap { max-width: 1200px; }
.sched-board { min-width: 0; }
.sb2-unsched { border-color: #e6d6c2; background: #fdf7ef; }
.sb2-unschead { background: #fbe4cf; }
.sb2-unschead .sb2-dl { color: #8a5a0b; }
.sb2-unschead .sb2-dm { color: #a9772e; }
.sb2-unsched.empty { background: transparent; border-style: dashed; margin-bottom: 16px; }
.sb2-unsched.empty .sb2-unschead { background: #f6ede0; }
.sb2-unsched.empty .sb2-dl { font-size: 13px; }

/* ===== Schedule ↔ call-sheet sync status (Option A) ===== */
.sb2-dmeta { gap: 10px; }
.sb2-sync { font: 700 9px/1 var(--font-mono); letter-spacing: .04em; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.sb2-sync.ok { color: #9fe1cb; background: rgba(159,225,203,.15); }
.sb2-sync.ahead { color: #FAC775; background: rgba(250,199,117,.16); }
.sb2-sync.new { color: rgba(255,255,255,.62); background: rgba(255,255,255,.08); }
.sb2-sync.locked { color: #cdbfa6; background: rgba(205,191,166,.14); }
.nsh-primary.ghost { background: transparent; color: var(--muted); border: 1px solid var(--hair); font-weight: 600; }
/* board per-day lock */
.sb2-lock { cursor: pointer; font-size: 12px; line-height: 1; opacity: .5; padding: 2px 3px; border-radius: 6px; transition: opacity .12s, background .12s; }
.sb2-lock:hover { opacity: 1; background: rgba(255,255,255,.1); }
.sb2-lock.on { opacity: 1; }
.sb2-daygroup.locked { opacity: .72; }
.sb2-daygroup.locked .sb2-strips { filter: saturate(.7); }
/* Push-review modal (Design A) */
.pr-day { border: 1px solid var(--hair); border-radius: var(--r-ctrl, 12px); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.pr-day.locked { background: #f7f4ee; opacity: .8; }
.pr-day-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pr-day-id { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pr-daynum { font: 700 12px/1 var(--font-mono); letter-spacing: .05em; color: var(--ink); }
.pr-date { font-size: 12px; color: var(--muted); }
.pr-loc { font-size: 12px; color: var(--faint); }
.pr-lock { cursor: pointer; font: 600 11px/1 var(--font-mono); color: var(--muted); padding: 4px 8px; border: 1px solid var(--hair); border-radius: var(--r-pill, 999px); white-space: nowrap; transition: background .12s, border-color .12s; }
.pr-lock:hover { background: #faf7f1; border-color: var(--accent, #c9b48a); }
.pr-locked-msg { font-size: 12px; color: var(--faint); font-style: italic; }
.pr-line { display: flex; align-items: center; gap: 9px; padding: 3px 0; cursor: pointer; }
.pr-line.dim { opacity: .55; cursor: default; }
.pr-line input, .pr-note input { width: 15px; height: 15px; accent-color: var(--accent, #8a6d3b); flex: none; }
.pr-line-t { font-size: 13px; color: var(--ink); }
.pr-diff { display: inline-flex; gap: 8px; font: 600 11px/1 var(--font-mono); }
.pr-add { color: #2f8f6b; } .pr-rem { color: #c15b4a; } .pr-mv { color: #b5892f; } .pr-ok { color: var(--faint); }
.pr-notes-h { margin: 10px 0 5px; font: 700 9.5px/1 var(--font-mono); letter-spacing: .1em; color: var(--faint); }
.pr-note { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.pr-note-d { font: 700 10px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); min-width: 92px; }
.pr-note-t { font-size: 12.5px; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-note-sc { font: 600 10px/1 var(--font-mono); color: var(--faint); white-space: nowrap; }
.pr-hint { margin-top: 6px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* ===== Production calendar modal (Phase 3) ===== */
.cal-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hair-4); }
.cal-row:first-child { border-top: none; }
.cal-row > label { font: 600 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.cal-row input[type=date] { font-size: 13px; border: 1px solid var(--hair); border-radius: 8px; padding: 8px 10px; font-family: var(--font-mono); background: #fff; }
.cal-wds { display: flex; gap: 5px; flex-wrap: wrap; }
.cal-wd { font: 700 10px/1 var(--font-mono); padding: 7px 9px; border-radius: 7px; background: var(--ink); color: #fff; cursor: pointer; }
.cal-wd.off { background: var(--hair-3); color: var(--faint); }
.cal-note { font-size: 11.5px; color: var(--faint); padding: 8px 0 2px; line-height: 1.5; }
.cal-holrow { align-items: flex-start; }
.cal-holwrap { display: flex; flex-direction: column; gap: 8px; }
.cal-hols { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-hol { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font-mono); background: var(--paper-2); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 9px; }
.cal-holx { cursor: pointer; color: var(--faint); font-weight: 700; }
.cal-holx:hover { color: var(--accent); }
.cal-holadd { align-self: flex-start; font-size: 12px; border: 1px dashed var(--hair); border-radius: 8px; padding: 6px 9px; font-family: var(--font-mono); background: #fff; }

/* ===== Elements index (Phase 2 finale) ===== */
.eli-cat { margin-top: 6px; }
.eli-cl { font: 700 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 6px; }
.eli-row { display: grid; grid-template-columns: 190px 46px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--hair-4); }
.eli-row:first-child { border-top: none; }
.eli-name { border: 1px solid transparent; border-radius: 7px; padding: 6px 9px; font-size: 13px; font-weight: 600; background: var(--paper-2); font-family: var(--font-ui); }
.eli-name:focus { outline: none; border-color: var(--accent); background: #fff; }
.eli-n { font: 700 10px/1 var(--font-mono); color: var(--faint); text-align: right; }
.eli-scs { display: flex; gap: 4px; flex-wrap: wrap; }
.eli-sc { font: 600 9px/1 var(--font-mono); color: var(--muted); background: var(--hair-4); border-radius: 999px; padding: 3px 7px; }
.eli-sc.more { color: var(--faint); }
/* P7 — Elements & cast tabs + dossiers */
.eli-tabs { display: flex; gap: 4px; padding: 0 22px; margin-top: -4px; border-bottom: 1px solid var(--hair); }
.eli-tab { font: 700 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--faint); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.eli-tab:hover { color: var(--muted); }
.eli-tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.eli-ov { background: var(--paper-2); border: 1px solid var(--hair-3); border-radius: 12px; padding: 14px 16px; margin: 4px 0 16px; }
.eli-log { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--ink); margin: 0 0 9px; border-left: 3px solid var(--accent); padding-left: 13px; }
.eli-osyn { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.55; }
.eli-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.eli-tag { font: 700 9.5px/1 var(--font-mono); letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: var(--violet-bg, #EEEDFE); color: var(--violet, #453c9c); }
.eli-cast { display: flex; flex-direction: column; gap: 10px; }
.eli-char { display: grid; grid-template-columns: 42px 1fr; gap: 13px; border: 1px solid var(--hair); border-radius: 12px; padding: 13px; background: var(--paper-2); }
.eli-av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-display); }
.eli-av.n { background: var(--night, #2E4A6B); } .eli-av.g { background: #3B6D11; }
.eli-chbody { min-width: 0; }
.eli-ch-h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.eli-ch-name { font-size: 15px; font-weight: 700; }
.eli-tier { font: 700 8.5px/1 var(--font-mono); letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: var(--night-tint, #dde6f0); color: var(--night, #2E4A6B); }
.eli-tier.lead { background: #fbe0d8; color: var(--accent); }
.eli-ch-stats { display: flex; gap: 15px; flex-wrap: wrap; margin: 7px 0; font: 600 11px/1 var(--font-mono); color: var(--muted); }
.eli-ch-stats b { color: var(--ink); }
.eli-ch-arc { font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.eli-ch-arc b { color: var(--ink); font-weight: 600; }
.eli-traits { display: flex; gap: 5px; flex-wrap: wrap; }
.eli-trait { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--hair-2); color: var(--muted); }
.eli-rel { font: 600 10.5px/1.5 var(--font-mono); color: var(--faint); margin-top: 8px; }
.eli-rel b { color: var(--muted); }
.eli-castfoot, .eli-castempty { margin-top: 16px; display: flex; justify-content: center; }
/* scene panel synopsis */
.bde-syn { background: var(--paper-2); border: 1px solid var(--hair-3); border-radius: 10px; padding: 12px 14px; margin-bottom: 6px; }
.bde-syn-h { font: 700 9px/1 var(--font-mono); letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.bde-syn-t { font-size: 13.5px; color: var(--ink); margin: 0 0 10px; line-height: 1.5; }
.bde-beats { display: flex; flex-direction: column; gap: 0; }
.bde-beat { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--hair-4); }
.bde-bk { color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.bde-bv { font-weight: 600; text-align: right; color: var(--ink); }
/* board synopsis subline + toggle */
.sb2-synl { font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 3px; line-height: 1.4; }
.sc-syn { font: 600 11px/1 var(--font-mono); letter-spacing: .03em; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.sc-syn input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ===== Dashboard: 2-month calendar + tighter Next up (2026-07-09) ===== */
.cc-grid { grid-template-columns: 1fr; }   /* Next-up rail removed 2026-07-21 — calendar is the feature */
.cal2-lab { font: 600 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.cal2-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
/* light divider so each month reads as its own calendar */
.cal2-months > * + * { border-left: 1px solid var(--hair-3); padding-left: 22px; }
@media (max-width: 1599px) { .cal2-months { grid-template-columns: repeat(3, 1fr); } .cal2-mo:nth-child(4) { display: none; } }
.cal2-mh { font-size: 18px; line-height: 1; margin-bottom: 6px; }
.cal2-mo:not(:first-child) .cal2-mh { color: var(--muted); }   /* current month leads; the rest are secondary */
.cal2-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; margin-bottom: 3px; }
.cal2-dow span { text-align: center; font: 700 8px/1 var(--font-mono); color: var(--faint-2, #c3bbac); }
.cal2-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal2-c { text-align: center; padding: 5px 0; min-height: 22px; font: 600 10.5px/1 var(--font-mono); color: var(--muted); border-radius: 5px; }
.cal2-c.mut { visibility: hidden; }
.cal2-c.sent { background: var(--accent); color: #fff; cursor: pointer; }
.cal2-c.sched { background: var(--accent-tint); color: var(--accent); cursor: pointer; }
.cal2-c.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal2-legend { display: flex; gap: 14px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--hair-3); font: 600 9px/1 var(--font-mono); color: var(--faint); }
.cal2-legend i.lg { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; }
.cal2-legend i.lg.sent { background: var(--accent); }
.cal2-legend i.lg.sched { background: var(--accent-tint); border: 1px solid var(--accent); }
.cal2-legend i.lg.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.nx2-row { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; cursor: pointer; }
.nx2-row:hover { background: var(--paper-2); }
.nx2-row.soon { background: #fff; border: 1px solid var(--hair); }
.nx2-dt { text-align: center; flex: none; width: 30px; }
.nx2-dt .d { font: 700 15px/1 var(--font-mono); display: block; }
.nx2-dt .m { font: 700 8px/1 var(--font-mono); color: var(--faint); }
.nx2-b { flex: 1; min-width: 0; }
.nx2-b .nm { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx2-b .nm .dn { font-weight: 400; color: var(--faint); }
.nx2-b .lo { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx2-c { font: 700 10px/1 var(--font-mono); color: var(--muted); flex: none; }
.nx2-row.soon .nx2-c { color: var(--accent); }
@media (max-width: 760px) { .cc-grid { grid-template-columns: 1fr; } .cal2-months { grid-template-columns: 1fr 1fr; gap: 14px; } .cal2-mo:nth-child(n+3) { display: none; } .cal2-months > * + * { border-left: none; padding-left: 0; } }

/* Calendar panel: the light white card frame from the approved design */
.cal-panel { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; }
