/* SRF Park TLV session board. Design tokens and rules: docs/superpowers/specs/2026-09-10-surf-schedule-design.md §7 */
:root {
  --foam: #F1F6F5;
  --deck: #FFFFFF;
  --deep: #0F2B35;
  --deep-2: #244652;
  --deep-3: #17394A;
  --mist: #5F7A83;
  --mist-2: #9DB4BA;
  --line: #D8E3E2;
  --rescue: #FF5A1F;
  --sand-tint: #FBF5E6;
  --sand-line: #EBD9A8;
  --l0: #E2B860; --l1: #91C36B; --l2: #6F9B5C; --l3: #487037;
  --l4: #81ABCA; --l5: #225A8C; --l6: #8A71B2;
  --display: "Secular One", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --text: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --hpx: 56px; /* one hour in the week view; keep in sync with HOUR_PX in lib/render.mjs */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--foam); }
body { margin: 0; font-family: var(--text); color: var(--deep); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 56px; }

/* header */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.brand h1 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; margin: 0; }
.brand p { margin: 8px 0 0; color: var(--mist); font-size: 14px; }
.fresh { display: flex; align-items: center; gap: 14px; }
.fresh-text { text-align: end; font-size: 13px; color: var(--mist); line-height: 1.45; }
.fresh-text strong { display: block; color: var(--deep); font-weight: 500; font-size: 14px; }
.btn-refresh { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1.5px solid var(--deep); border-radius: 999px; font-weight: 500; font-size: 14px; transition: background-color .15s, color .15s; }
.btn-refresh:hover { background: var(--deep); color: var(--foam); }
.btn-refresh svg { width: 16px; height: 16px; }
.btn-refresh.is-busy svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

/* notices: refresh result, stale data, load failure */
.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: var(--deck); border: 1px solid var(--line); border-inline-start: 4px solid var(--rescue); }
.notice a, .notice button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* controls */
.controls { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--deck); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mist); }
.seg button[aria-pressed="true"] { background: var(--deep); color: var(--foam); }
.levels { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.levels-label { font-size: 13px; color: var(--mist); margin-inline-end: 6px; }
.lv-toggle { padding: 3px; border-radius: 8px; border: 1.5px solid transparent; }
.lv-toggle[aria-pressed="true"] { border-color: var(--deep); }

/* level chip + spots */
.chip { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1; color: #fff; direction: ltr; flex: none; }
.chip.lv0, .chip.lv1, .chip.lv2, .chip.lv4 { color: var(--deep); }
.lv0 { background: var(--l0); } .lv1 { background: var(--l1); } .lv2 { background: var(--l2); } .lv3 { background: var(--l3); }
.lv4 { background: var(--l4); } .lv5 { background: var(--l5); } .lv6 { background: var(--l6); }
.lv7 { background: var(--mist); } /* internal special events (L7) */
.spot { min-width: 20px; text-align: center; font-size: 13px; font-weight: 600; line-height: 20px; }
.spot.few { background: var(--rescue); color: var(--deep); border-radius: 4px; padding: 0 5px; }
.spot.full { font-size: 12px; font-weight: 400; color: var(--mist); }
.spot.none { color: var(--mist-2); font-weight: 400; }
.pier { display: inline-flex; align-items: center; }
.pier-line { width: 1px; height: 14px; background: var(--line); margin: 0 5px; }
.sess { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.past { opacity: .38; filter: grayscale(1); }
.off { opacity: .16; }

/* week: calendar blocks */
.week-scroll { overflow-x: auto; }
.week { display: grid; grid-template-columns: 48px repeat(7, minmax(140px, 1fr)); min-width: 1028px; }
.corner { position: sticky; right: 0; background: var(--foam); z-index: 5; }
.dh { display: flex; flex-direction: column; align-items: flex-start; padding: 10px; border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--line); }
.dh:hover .dd { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dh .dn { font-size: 13px; color: var(--mist); }
.dh .dd { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.dh .hrs { font-size: 13px; font-weight: 500; }
.hours { position: sticky; right: 0; z-index: 5; background: var(--foam); }
.hours div { height: var(--hpx); border-top: 1px solid var(--line); font-size: 12px; color: var(--mist); padding-top: 2px; }
.col { position: relative; }
.gl { position: absolute; inset-inline: 0; border-top: 1px solid var(--line); }
.is-today { background: var(--deep); color: var(--foam); }
.dh.is-today { border-bottom-color: var(--deep-2); }
.dh.is-today .dn { color: var(--foam); font-weight: 600; }
.col.is-today { border-radius: 0 0 12px 12px; }
.col.is-today .gl { border-top-color: var(--deep-2); }
.blk { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 3px 5px; overflow: hidden; background: var(--deck); border: 1px solid var(--line); border-radius: 7px; }
.blk.bay { background: var(--sand-tint); border-color: var(--sand-line); }
.bay-spots { display: flex; flex-wrap: wrap; column-gap: 3px; }
.blk.bay .bay-spots .spot { min-width: 0; }
.blk .bt { font-size: 11px; font-weight: 500; line-height: 15px; }
.blk .sess { gap: 4px; }
.blk .chip { min-width: 26px; height: 18px; padding: 0 4px; font-size: 11px; }
.blk .spot { min-width: 16px; font-size: 12px; line-height: 18px; }
.blk .spot.full { font-size: 11px; }
.blk .pier-line { margin: 0 3px; }
.is-today .blk { background: var(--deep-3); border-color: var(--deep-2); }
.is-today .spot.full { color: var(--mist-2); }
.is-today .pier-line { background: var(--deep-2); }
.now { position: absolute; inset-inline: 0; height: 0; border-top: 2px solid var(--foam); pointer-events: none; z-index: 4; }
.now::before { content: ""; position: absolute; inset-inline-start: -1px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--foam); }
.now span { position: absolute; inset-inline-end: 4px; top: -9px; font-size: 11px; font-weight: 600; line-height: 16px; background: var(--foam); color: var(--deep); padding: 0 6px; border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: 13px; color: var(--mist); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.bay-swatch { display: inline-block; width: 22px; height: 14px; border-radius: 4px; background: var(--sand-tint); border: 1px solid var(--sand-line); }

/* month */
.month-title { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 4px 0 12px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mh { font-size: 13px; color: var(--mist); padding: 0 10px 2px; }
.mh .s { display: none; }
.mc { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-height: 112px; padding: 9px 10px 10px; border-radius: 12px; background: var(--deck); border: 1px solid var(--line); }
button.mc:hover { border-color: var(--deep); }
.mc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mc .dd { font-family: var(--display); font-size: 22px; line-height: 1; }
.mc .tag { font-size: 12px; font-weight: 600; }
.mc .meta { font-size: 12px; color: var(--mist); }
.mc .hrs { font-size: 13px; font-weight: 500; }
.mc .free { font-size: 13px; font-weight: 500; margin-top: auto; }
.strip { display: flex; gap: 2px; height: 8px; }
.strip i { flex: 1; border-radius: 2px; }
.mc.is-past { background: transparent; border-color: transparent; color: var(--mist-2); }
.mc.is-empty, .mc.is-closed { background: transparent; }
.mc.is-unpub { background: transparent; border: 1px dashed var(--mist-2); }
.mc .closed { font-weight: 600; font-size: 14px; }
.mc.is-today { background: var(--deep); border-color: var(--deep); color: var(--foam); }
.mc.is-today .meta { color: var(--mist-2); }

/* day */
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.day-head .kicker { font-size: 14px; font-weight: 600; }
.day-head .dd { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 0; }
.day-head .open { font-size: 16px; font-weight: 500; margin-top: 6px; }
.day-head .sub { font-size: 14px; color: var(--mist); }
.past-toggle { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nav { display: flex; gap: 8px; }
.nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--deck); display: inline-grid; place-items: center; }
.nav button:hover { border-color: var(--deep); }
.nav svg { width: 18px; height: 18px; }
.list { background: var(--deck); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: 110px 36px minmax(0, 1fr) minmax(250px, 320px); gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.head { padding-block: 9px; font-size: 12px; color: var(--mist); }
.row .time { display: flex; flex-direction: column; line-height: 1.25; }
.row .st { font-size: 18px; font-weight: 600; }
.row .en { font-size: 12px; color: var(--mist); }
.row .name { font-size: 15px; font-weight: 500; line-height: 1.35; }
.row .name small { display: block; font-size: 12px; font-weight: 400; color: var(--mist); }
.row.is-now { background: #E6F0EF; }
.now-tag { align-self: flex-start; margin-top: 3px; font-size: 11px; font-weight: 600; background: var(--deep); color: var(--foam); padding: 1px 6px; border-radius: 4px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sides.bay { grid-template-columns: 1fr; }
.side { display: flex; align-items: center; gap: 8px; }
.side-l { display: none; font-size: 12px; color: var(--mist); min-width: 34px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: #E4ECEB; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.empty { padding: 28px; text-align: center; color: var(--mist); background: var(--deck); border: 1px solid var(--line); border-radius: 14px; }

/* token panel */
dialog { max-width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 22px 24px; color: var(--deep); background: var(--deck); }
dialog::backdrop { background: rgb(15 43 53 / .45); }
dialog h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
dialog p { margin: 0 0 8px; font-size: 14px; }
dialog ol { padding-inline-start: 20px; margin: 0 0 12px; line-height: 1.8; font-size: 14px; }
dialog a { font-weight: 600; }
dialog label { display: block; font-size: 13px; color: var(--mist); margin: 12px 0 4px; }
dialog input { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.token-error { color: #B3261E; font-size: 13px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog-actions button { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--deep); font-weight: 500; }
.btn-primary { background: var(--deep); color: var(--foam); }

@media (max-width: 720px) {
  .wrap { padding: 20px 14px 44px; }
  .brand h1 { font-size: 30px; }
  .fresh { width: 100%; justify-content: space-between; }
  .fresh-text { text-align: start; }
  .row { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 10px; padding: 12px 14px; }
  .row .time { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
  .row .now-tag { align-self: center; margin-top: 0; }
  .row .sides { grid-column: 1 / -1; }
  .row.head { display: none; }
  .side-l { display: inline; }
  .mh .l { display: none; }
  .mh .s { display: inline; }
  .mh { padding: 0 4px 2px; }
  .month { gap: 4px; }
  .mc { min-height: 76px; padding: 6px 6px 7px; border-radius: 9px; }
  .mc .dd { font-size: 18px; }
  .mc .meta, .mc .tag, .mc .hrs { display: none; }
  .mc.is-closed .meta, .mc.is-unpub .meta, .mc.is-empty .meta { display: block; font-size: 11px; }
  .mc .free { font-size: 11px; }
  .day-head .dd { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* ---------- analysis tab (analysis spec section 7) ---------- */
:root {
  --rescue-ink: #B23A0C; /* text for changes in the bad direction; Rescue itself is too light for text */
  --h0: #EEF3F2; --h1: #D3E3E3; --h2: #A8C6CA; --h3: #6F9AA4; --h4: #3B6B79; --h5: #0F2B35;
}
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; }
.tabs button { position: relative; padding: 6px 2px 10px; font-family: var(--display); font-size: 20px; color: var(--mist); }
.tabs button[aria-selected="true"] { color: var(--deep); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--deep); }
.seg button { white-space: nowrap; }
.seg.sm button { padding: 3px 12px; font-size: 13px; }
.compare-note { margin: -4px 0 8px; font-size: 13px; color: var(--mist); }
.compare-note b { color: var(--deep); font-weight: 500; }
.sec { margin-top: 30px; scroll-margin-top: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; }
.sec-sub { margin: 2px 0 0; font-size: 13px; color: var(--mist); }
.card { background: var(--deck); border: 1px solid var(--line); border-radius: 14px; }
.foot { margin: 10px 2px 0; font-size: 12px; color: var(--mist); }
.lvcell { display: inline-flex; align-items: center; gap: 6px; }
.lvcell small { color: var(--mist); font-size: 12.5px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi .k { font-size: 13px; color: var(--mist); }
.kpi .v { font-family: var(--display); font-size: 32px; line-height: 1.1; }
.kpi .d { font-size: 12.5px; line-height: 1.4; }
.kpi .d .ar { font-weight: 600; }
.kpi .d.bad .ar { color: var(--rescue-ink); }
.kpi .d .ly { color: var(--mist); }
.kpi.lead { background: var(--deep); border-color: var(--deep); color: var(--foam); }
.kpi.lead .k, .kpi.lead .d .ly { color: var(--mist-2); }
.kpi.lead .d.bad .ar { color: #FF9A70; }

/* insights */
.ins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ins li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-inline-start: 4px solid var(--line); }
.ins li.bad { border-inline-start-color: var(--rescue); }
.ins li.good { border-inline-start-color: var(--deep); }
.ins .n { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--mist-2); }
.ins .t { font-size: 15px; font-weight: 500; line-height: 1.45; }
.ins .m { grid-column: 2; display: flex; gap: 14px; font-size: 12.5px; color: var(--mist); }
.ins .m button { font-weight: 500; color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

/* heatmap */
.heat-wrap { padding: 14px 14px 12px; overflow-x: auto; }
.heat { display: grid; grid-template-columns: 44px repeat(7, minmax(44px, 1fr)); gap: 3px; min-width: 360px; }
.heat .hd { font-size: 12.5px; color: var(--mist); text-align: center; padding-bottom: 2px; }
.heat .hd b { display: block; font-weight: 500; color: var(--deep); }
.heat .hr { font-size: 12px; color: var(--mist); display: flex; align-items: center; }
.heat .c { height: 30px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.heat .c.x { background: transparent; border: 1px dashed var(--line); }
.c.s0 { background: var(--h0); } .c.s1 { background: var(--h1); } .c.s2 { background: var(--h2); }
.c.s3 { background: var(--h3); color: #fff; } .c.s4 { background: var(--h4); color: #fff; } .c.s5 { background: var(--h5); color: #fff; }
.scale { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--mist); }
.scale .c { width: 26px; height: 12px; border-radius: 3px; display: inline-block; }

/* level table */
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-weight: 400; font-size: 12.5px; color: var(--mist); text-align: start; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:first-child td { border-top: 0; }
.tbl small { color: var(--mist); }
.occ { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.occ .bar { flex: 1; height: 8px; border-radius: 4px; background: #E4ECEB; overflow: hidden; position: relative; }
.occ .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--deep); border-radius: 4px; }
.occ .bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--rescue); }
.occ span { min-width: 34px; font-weight: 600; }
.dlt { font-size: 12.5px; }
.dlt.bad { color: var(--rescue-ink); font-weight: 600; }
.sd { display: grid; gap: 3px; min-width: 120px; }
.sd div { height: 6px; border-radius: 3px; }
.sd .cap { background: var(--mist-2); }
.sd .bk { background: var(--deep); }

/* strongest and weakest slots */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slots h3, .risk h3 { margin: 0; padding: 12px 16px 8px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
.slots h3 small, .risk h3 small { font-weight: 400; color: var(--mist); font-size: 12.5px; margin-inline-start: 6px; }
.slot { display: grid; grid-template-columns: 22px 104px 76px minmax(0, 1fr) 64px; gap: 8px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.slot:first-of-type { border-top: 0; }
.slot .rk { color: var(--mist-2); font-size: 12.5px; }
.slot .wh { font-weight: 500; }
.slot .v { text-align: end; font-size: 12.5px; color: var(--mist); }
.slot .occ { min-width: 0; }

/* charts */
.trend, .example { padding: 14px 14px 8px; }
.trend svg, .example svg { width: 100%; height: auto; display: block; }
svg text { direction: ltr; unicode-bidi: plaintext; font-size: 11px; fill: var(--mist); } /* charts are laid out in code; RTL would flip text anchors */
svg .grid { stroke: var(--line); }
svg .bar-cur { fill: var(--deep); }
svg .line-cmp { fill: none; stroke: var(--rescue); stroke-width: 2; }
svg .dot-cmp { fill: var(--rescue); }
svg .closed-mark { stroke: var(--mist-2); stroke-width: 3; stroke-dasharray: 4 3; }
.lg { display: flex; gap: 18px; font-size: 12.5px; color: var(--mist); margin: 4px 4px 0; flex-wrap: wrap; }
.lg span { display: inline-flex; align-items: center; gap: 6px; }
.lg i { display: inline-block; }
.sw-cur { width: 14px; height: 10px; border-radius: 2px; background: var(--deep); }
.sw-cmp { width: 14px; height: 2px; background: var(--rescue); }
.sw-closed { width: 14px; border-top: 3px dashed var(--mist-2); }

/* fill speed */
.pace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.collect { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.collect .k { font-size: 13px; color: var(--mist); }
.collect .big { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.collect ul { margin: 0; padding-inline-start: 18px; color: var(--mist); }
.collect .facts { color: var(--deep); display: grid; gap: 6px; }
.meter { height: 8px; border-radius: 4px; background: #E4ECEB; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--deep); }

/* coming up */
.up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; }
.days { padding: 14px 14px 10px; }
.days .bars { display: flex; align-items: stretch; gap: 6px; height: 132px; }
.days .b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.days .b em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.days .b small { font-size: 10.5px; color: var(--mist); }
.days .b small.behind { color: var(--rescue-ink); font-weight: 600; }
.days .col { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; }
.days .col i { display: block; width: 100%; background: var(--deep); border-radius: 4px 4px 0 0; }
.days .col u { position: absolute; inset-inline: -2px; height: 2px; background: var(--rescue); }
.days .lbl { display: flex; gap: 6px; margin-top: 4px; }
.days .lbl span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--mist); line-height: 1.25; }
.days .lbl span b { display: block; color: var(--deep); font-weight: 500; }
.rrow { display: grid; grid-template-columns: 92px 44px minmax(0, 1fr) 88px; gap: 10px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.risk h3 + .rrow { border-top: 0; }
.rrow .when b { display: block; font-weight: 600; }
.rrow .when span { font-size: 12px; color: var(--mist); }
.rrow .nm { font-size: 13px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .fill { text-align: end; font-weight: 600; }
.rrow .fill small { display: block; font-weight: 400; font-size: 12px; color: var(--mist); }
.more summary { cursor: pointer; padding: 8px 16px 12px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.more[open] summary { border-bottom: 1px solid var(--line); }
.risk .empty, .sec > .empty { border: 0; background: transparent; padding: 18px; }

/* operations */
.ops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.op { padding: 14px; }
.op .v { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.op .k { display: block; font-size: 13px; font-weight: 500; }
.op p { margin: 4px 0 0; font-size: 12.5px; color: var(--mist); line-height: 1.45; }
.coverage { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mist); }

@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .v { font-size: 28px; }
  .ins, .slots, .pace, .up { grid-template-columns: 1fr; }
  .ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 2px; min-width: 0; }
  .heat .c { font-size: 10.5px; height: 26px; }
  .slot { grid-template-columns: 18px 88px 70px minmax(0, 1fr) 56px; gap: 6px; padding: 7px 12px; }
  .rrow { grid-template-columns: 78px 40px minmax(0, 1fr) 70px; gap: 8px; padding: 7px 12px; }
  .days .lbl span { font-size: 10px; }
  .days .b em { font-size: 10px; }
}

/* hidden bookings (CMS import) */
.kpis.hid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.hid-when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 720px) {
  .kpis.hid, .hid-when { grid-template-columns: 1fr; }
}
.up, .pace { align-items: start; }

/* ---------- code screen (asked on every visit; a curtain, not a lock) ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(340px, 100%); padding: 32px 28px 28px; background: var(--deck); border: 1px solid var(--line); border-radius: 20px; text-align: center; box-shadow: 0 12px 32px rgb(15 43 53 / .08); }
.gate-mark { font-size: 34px; line-height: 1; }
.gate h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; margin: 12px 0 4px; }
.gate p { margin: 0; color: var(--mist); font-size: 14px; }
.gate label { display: block; margin: 24px 0 8px; font-size: 14px; font-weight: 500; }
.gate input { width: 100%; font: inherit; font-size: 26px; letter-spacing: .5em; text-align: center; padding: 10px 12px 10px calc(12px + .5em); border: 1.5px solid var(--line); border-radius: 12px; background: var(--foam); color: var(--deep); }
.gate input:focus { outline: none; border-color: var(--deep); background: var(--deck); }
.gate input.is-wrong { border-color: var(--rescue); animation: shake .35s; }
.gate .gate-error { margin-top: 10px; color: var(--rescue-ink); font-weight: 500; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wrap:not([hidden]) { animation: fade-in .3s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
