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

:root {
  /* ink / dark surfaces */
  --ink: #141210;
  --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: #D6481F;
  --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);

  --font-display: 'Bebas Neue', sans-serif;
  --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); 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 26px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .dot { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.brand .wordmark { font-family: var(--font-display); 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; }

.topnav { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--disabled-2); }
.topnav span.navlink { cursor: pointer; }
.topnav span.navlink:hover { color: var(--paper); }
.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 */
.btn { font-weight: 700; font-size: 13px; padding: 9px 18px; letter-spacing: 0.01em; }
.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-display); font-size: 52px; line-height: 0.9; color: var(--ink); margin-top: 6px; }

.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-size: 26px; color: var(--ink); letter-spacing: 0.02em; }
.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-size: 30px; 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); 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-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; }
.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); 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-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; }

.builder-body { padding: 34px 26px 90px; display: grid; grid-template-columns: minmax(0, 820px) 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); }
.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); 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; } }
.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); }

/* 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: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.sh-eyebrow span { font-size: 11px; letter-spacing: 0.16em; font-weight: 700; }
.sh-title { font-family: var(--font-display); font-size: 60px; line-height: 0.88; margin-top: 8px; }
.sh-subtitle { font-size: 13px; color: var(--disabled-2); margin-top: 8px; }
.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-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-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-size: 26px; 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); }
.sheet-banner { display: flex; justify-content: center; gap: 8px; padding: 7px; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; border-bottom: 1px solid var(--hair-3); }

.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-size: 40px; color: var(--ink); line-height: 0.9; }
.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: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.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-size: 72px; line-height: 0.85; color: #fff; }
.m-hero .calltime .ampm { font-family: var(--font-display); 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: linear-gradient(135deg, #dcd6c8 25%, #d2ccbd 25% 50%, #dcd6c8 50% 75%, #d2ccbd 75%);
}
.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-size: 32px; 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: 40px; }
  .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; }
.newproj { font-size: 14px; padding: 12px 20px; }
.proj-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.proj-card { border: 1.5px solid var(--ink); background: #fff; padding: 22px; cursor: pointer; transition: box-shadow .15s; }
.proj-card:hover { box-shadow: var(--shadow-block); }
.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: 18px; flex-wrap: wrap; }
.day-chip { border: 1px solid var(--hair); padding: 8px 12px; min-width: 96px; cursor: pointer; transition: border-color .12s; }
.day-chip:hover { border-color: var(--ink); }
.day-chip.sent { border-color: var(--green); }
.day-chip.ready { border-color: var(--ink); }
.day-chip.progress { border-color: 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-actions { display: flex; gap: 8px; margin-top: 18px; }
.pc-actions button { flex: 1; font-weight: 700; font-size: 13px; padding: 10px; }

/* ---- 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: 52px; 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); 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); }
.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; }

/* ---- 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; }
.set-block { background: #fff; border: 1px solid var(--hair); 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 { border-bottom: 1px solid var(--hair-4); padding: 12px 0; }
.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); }
.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); }

.crew-dept-h { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; margin: 10px 0 4px; }
.crewrow { display: grid; grid-template-columns: 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); }

.wx-field { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wx-city { border: 1px solid var(--hair); 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: 52px 40px 32px 1fr 28px 52px 58px 18px; }
.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; }
.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); 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-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); }

.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-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); 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); 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: 44px; 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 { 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; justify-content: space-between; align-items: center; 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); }
.db-dept-n { color: var(--faint); }
.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; }
.lib-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--hair); border-radius: 9px; 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; }
.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: 52px 40px 32px 1fr 28px 52px 58px 18px; gap: 8px; align-items: center; text-align: left; padding: 8px 0; margin: 3px 0; }
.banner .sch-start { grid-column: 1; }
.banner .banner-ce { grid-column: 2 / 7; text-align: center; }
.banner .nf-dur { grid-column: 7; }
.banner .row-del { grid-column: 8; 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); 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; }
.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); 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-preview { margin: 0 14px 11px 66px; font-size: 12px; line-height: 1.5; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip.open .strip-preview { display: none; }
.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 ---- */
.proj-card { position: relative; }
.proj-del { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border: 1px solid var(--hair); background: #fff; color: var(--disabled); font-size: 12px; opacity: 0; transition: opacity .12s; z-index: 3; }
.proj-card:hover .proj-del { opacity: 1; }
.proj-del:hover { color: var(--accent); border-color: var(--accent); }

.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: 'Bebas Neue', 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: 8px; 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: 'Bebas Neue', 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: 'Bebas Neue', 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: 20px; 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: 10px; }
.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: 'Bebas Neue', 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: 8px; 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: var(--paper); z-index: 9999; align-items: center; justify-content: center; }
html.ns-boot #splash { display: flex; }
.splash-brand { display: flex; align-items: center; gap: 10px; }
.splash-brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: splashpulse 1s ease-in-out infinite; }
.splash-brand .wordmark { font-family: 'Bebas Neue', 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: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.landing-brand .wordmark { font-family: 'Bebas Neue', 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: 'Bebas Neue', 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: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: .06em; color: var(--paper); }
.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: 'Bebas Neue', 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; }
.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: 'Bebas Neue', 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 { 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); }
@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 ============ */
.agenda { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.agenda-h { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.agenda-h-sub { color: var(--faint); font-weight: 400; }
.agenda-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.agenda-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 9px; cursor: pointer; background: var(--paper); }
.agenda-row:hover { border-color: var(--accent); }
.agenda-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; flex: none; background: var(--ink); color: #fff; border-radius: 7px; padding: 6px 0; line-height: 1; }
.ad-dow { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.ad-day { font-family: 'Bebas Neue', sans-serif; font-size: 24px; margin: 1px 0; }
.ad-mon { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.agenda-info { flex: 1; min-width: 0; }
.agenda-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-dn { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--accent); margin-left: 2px; }
.agenda-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-rel { font-size: 11px; color: var(--faint); flex: none; }

/* ============ 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); }
.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); width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(20,18,16,.4); }
.share-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 10px; }
.share-modal-title { font-size: 24px; color: var(--ink); line-height: 1; }
.share-note { font-size: 13px; color: var(--muted); line-height: 1.5; padding: 0 22px 14px; }
.share-note b { color: var(--ink); }
.share-add { display: flex; gap: 8px; padding: 0 22px 16px; }
.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 22px; margin-bottom: 6px; border-top: 1px solid var(--hair-4); padding-top: 14px; }
.share-list { padding: 0 22px 8px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 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: 14px 22px 20px; display: flex; justify-content: flex-end; border-top: 1px solid var(--hair-4); margin-top: 4px; }

/* ============ 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: 8px; 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: 4px; 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); 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: 7px; 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; }

: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"] .agenda-date,
: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: #141210; --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: #141210; }

/* 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"] .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); }

/* 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"] .proj-del { background: transparent; }
:root[data-theme="dark"] .preview-bar { background: var(--paper-2); }
: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); 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-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; }
