/* ─────────────────────────────────────────────────────────────
   Director app — design handoff "Guardian Redesign v3" (2026-09-22).
   Shell (side panel, live bar, header) + Overview · Child alone · Trends ·
   Observations + the drawers. Values are the handoff's; tokens.css supplies
   the fonts and the neutral scale, the rest is stated here so a page cannot
   drift from the design by inheriting an older rule.
   ───────────────────────────────────────────────────────────── */

/* ─── Shell ─── */
.dir-app { grid-template-columns: 260px 1fr; background: #FAFAFB; }
.dir-main { min-width: 0; display: flex; flex-direction: column; position: relative; }
.dir-main > .page { padding: 24px 28px 60px; max-width: none; flex: 1 1 auto; min-width: 0; }
.dir-main > .page--flush { padding: 0; display: flex; align-items: stretch; }

.dsb { padding: 18px 12px 12px; gap: 0; overflow-y: auto; }
.dsb-brand { display: flex; align-items: center; gap: 8px; padding: 6px 8px 16px; letter-spacing: -0.02em; }
.dsb-brand .brand-mark { border-radius: 8px; }
.dsb-brand .brand-name { font-size: 16px; }
.dsb-board {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px;
  border-radius: 8px; background: #4E5BD6; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
}
.dsb-board .icon { color: #fff; }
.dsb-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #B0B2BA; padding: 16px 10px 6px; }
.dsb-schools { display: flex; flex-direction: column; gap: 2px; }
.dsb-school {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 8px;
  color: #4F525C; font-size: 13px; font-weight: 500; text-decoration: none;
}
.dsb-school:hover { background: #F4F4F6; }
.dsb-school span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsb-school .icon { color: #B0B2BA; }
.dsb-school--current { background: #ECECEF; color: #111319; font-weight: 600; }
.dsb-school--current .icon { color: #8B8D97; }
.dsb-nav { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 17px; padding-left: 8px; border-left: 1px solid rgba(17,19,25,0.08); }
.dsb-item {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #4F525C; text-decoration: none;
}
.dsb-item:hover { background: #F4F4F6; }
.dsb-item .icon { width: 15px; height: 15px; color: #8B8D97; }
.dsb-item > span:first-of-type { flex: 1; }
.dsb-item.is-active { background: #EEF0FB; color: #111319; font-weight: 600; }
.dsb-item.is-active .icon { color: #4E5BD6; }
.dsb-count { font-size: 11px; color: #8B8D97; }
.dsb-count--alert { color: #B53A2E; }
.dsb-empty { padding: 6px 10px; font-size: 13px; color: #8B8D97; }
.dsb-prog {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px;
  color: #4F525C; font-size: 13px; font-weight: 500; text-decoration: none;
}
.dsb-prog:hover { background: #F4F4F6; }
.dsb-prog .icon { color: #8B8D97; }
.dsb-prog.is-active { background: #EEF0FB; color: #111319; font-weight: 600; }
.dsb-prog.is-active .icon { color: #4E5BD6; }
.dsb-rule { height: 1px; background: rgba(17,19,25,0.06); margin: 12px 4px; }
.dsb-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.06); }
.dsb-user .account-avatar { background: linear-gradient(135deg, #B0B2BA, #4F525C); }
.dsb-user .account-email { font-size: 13px; }
.dsb-role { font-size: 11px; color: #B0B2BA; }
.dsb-logout { margin: 6px 0 0; }
.dsb-logout-btn { appearance: none; border: 0; background: transparent; padding: 6px 10px; font: 500 12px/1 var(--font-sans); color: #B0B2BA; cursor: pointer; border-radius: 8px; }
.dsb-logout-btn:hover { background: #F4F4F6; color: #4F525C; }

/* live bar */
.dtb-live {
  min-height: 56px; padding: 10px 28px; display: flex; align-items: center; gap: 20px;
  background: #FFFFFF; border-bottom: 1px solid rgba(17,19,25,0.08); flex: 0 0 auto;
}
.dtb-watch { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1F6B41; flex: 0 0 auto; }
.dtb-watch-dot { width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; animation: dtb-livepulse 2s ease-in-out infinite; }
.dtb-watch--quiet { color: #8B8D97; }
.dtb-watch--quiet .dtb-watch-dot { background: #B0B2BA; animation: none; }
.dtb-watch--down { color: #8B2A20; }
.dtb-watch--down .dtb-watch-dot { background: #B53A2E; animation: none; }
.dtb-sep { width: 1px; height: 26px; background: rgba(17,19,25,0.10); flex: 0 0 auto; }
.dtb-figs { display: flex; align-items: baseline; gap: 26px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.dtb-fig { display: flex; align-items: baseline; gap: 5px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.dtb-num { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.012em; color: #111319; }
.dtb-den { font-size: 13px; font-weight: 500; color: #8B8D97; }
.dtb-unit { font-size: 13px; color: #4F525C; margin-left: 3px; }
.dtb-alert {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
  background: #FBECEA; color: #8B2A20; font: 600 12px/1 var(--font-sans); letter-spacing: 0.02em; flex: 0 0 auto; border: 0; cursor: pointer;
}
.dtb-alert[hidden] { display: none; }
.dtb-alert-dot { width: 6px; height: 6px; border-radius: 50%; background: #B53A2E; animation: dtb-alertpulse 1.4s ease-in-out infinite; }
@keyframes dtb-livepulse { 0%,100% { box-shadow: 0 0 0 3px rgba(46,139,87,0.26); } 50% { box-shadow: 0 0 0 7px rgba(46,139,87,0.07); } }
@keyframes dtb-alertpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(181,58,46,0.28); } 50% { box-shadow: 0 0 0 8px rgba(181,58,46,0.07); } }

/* header */
.dtb-head {
  height: 60px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(17,19,25,0.08); background: #FAFAFB; flex: 0 0 auto;
}
.dtb-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dtb-school { font-size: 20px; font-weight: 600; letter-spacing: -0.014em; white-space: nowrap; }
.dtb-meta { font-size: 13px; color: #8B8D97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtb-right { display: flex; align-items: center; gap: 10px; }
.dtb-picker select { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.10); background: #fff; font: 500 13px/1 var(--font-sans); color: #4F525C; }
.dtb-right .account-pill { background: linear-gradient(135deg, #8B8D97, #383A43); font-size: 12px; }

/* ─── Shared pieces ─── */
.d-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.012em; }
.d-sub { font-size: 13px; color: #4F525C; margin-top: 3px; }
.d-h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.d-h3-sub { margin: 3px 0 0; font-size: 13px; color: #4F525C; text-wrap: pretty; }
.d-card { background: #fff; border: 1px solid rgba(17,19,25,0.07); border-radius: 12px; box-shadow: 0 1px 2px rgba(17,19,25,0.04); }
.d-card--list { overflow: hidden; }
.d-stack { display: flex; flex-direction: column; gap: 22px; }
.d-stack--18 { gap: 18px; }
.d-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.d-page-head > div:first-child { min-width: 0; }
.d-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.d-card-head { padding: 17px 20px 13px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.d-card-head > div { min-width: 0; }
.d-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 16px; }

.d-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: #F4F4F6; color: #4F525C;
}
.d-pill--red { background: #FBECEA; color: #8B2A20; }
.d-pill--amber { background: #FBF3E3; color: #7E5518; }
/* The zoning heatmap's third tone (rust, 208,100,59) for 5+ minute stretches. */
.d-pill--rust { background: #F9E9E1; color: #8A3B1E; }
.d-pill--green { background: #E8F4ED; color: #1F6B41; }
.d-pill--indigo { background: #EEF0FB; color: #333C9E; }
.d-pill--neutral { background: #F4F4F6; color: #4F525C; }
.d-count { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #ECECEF; color: #4F525C; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.d-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: #F4F4F6; color: #4F525C; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.d-badge--indigo { background: #EEF0FB; color: #333C9E; }
.d-head-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 100%; }
.d-fresh { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 10px; border-radius: 999px; background: #F4F4F6; color: #4F525C; font: 500 12px/1 var(--font-sans); white-space: nowrap; border: 0; }
.d-fresh--none { color: #8B8D97; }
.d-fresh--link { background: #FBF3E3; color: #7E5518; cursor: pointer; }
.d-fresh--link:hover { background: #F6E7C8; }
.d-fresh .icon { width: 11px; height: 11px; }
.d-feed-fresh { margin-left: auto; }
.d-more { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #F4F4F6; color: #4F525C; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }

.d-seg { display: inline-flex; padding: 3px; background: #ECECEF; border-radius: 8px; gap: 2px; }
.d-seg-btn {
  appearance: none; border: 0; height: 30px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--font-sans); background: transparent; color: #4F525C; cursor: pointer; white-space: nowrap;
}
.d-seg-btn.is-on { background: #fff; color: #111319; font-weight: 600; box-shadow: 0 1px 2px rgba(17,19,25,0.10); cursor: default; }
.d-seg-btn .n { font-family: var(--font-mono); font-size: 11px; color: #8B8D97; }
.d-seg--fill { display: flex; }
a.d-seg-btn { text-decoration: none; }
.d-grid-row > .d-pill { justify-self: start; }
.d-seg--fill .d-seg-btn { flex: 1; justify-content: center; }

.d-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px;
  border: 1px solid rgba(17,19,25,0.10); background: #fff; font: 500 13px/1 var(--font-sans); color: #4F525C; cursor: pointer; text-decoration: none;
}
.d-btn:hover { background: #F4F4F6; color: #111319; }
.d-btn:disabled { color: #C5C7CE; cursor: default; background: #fff; }
.d-btn--icon { width: 32px; padding: 0; }
.d-btn--dark { color: #111319; }
.d-btn24 { height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; gap: 4px; }
.d-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 500; color: #4E5BD6; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; text-decoration: none; }
.d-link:hover { color: #333C9E; }
.d-link .icon { width: 13px; height: 13px; }

.d-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid rgba(17,19,25,0.06); cursor: pointer; text-align: left; width: 100%; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; }
.d-row:hover { background: #FAFAFB; }
.d-row:first-child { border-top: 0; }
.d-row--static { cursor: default; }
.d-row--static:hover { background: transparent; }
.d-grid-head { display: grid; gap: 14px; align-items: end; padding: 0 20px 7px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B0B2BA; }
.d-grid-head--dark { color: #8B8D97; }
.d-grid-row { display: grid; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid rgba(17,19,25,0.06); }
.d-grid-row.is-click { cursor: pointer; }
.d-grid-row.is-click:hover { background: #FAFAFB; }
.d-chev { width: 15px; height: 15px; color: #B0B2BA; flex: 0 0 auto; justify-self: end; }
.d-expander { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid rgba(17,19,25,0.06); cursor: pointer; font: 500 13px/1 var(--font-sans); color: #4E5BD6; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.d-expander:hover { background: #FAFAFB; }
.d-expander .icon { width: 13px; height: 13px; transition: transform 160ms; }
.d-expander.is-open .icon { transform: rotate(180deg); }
.d-empty { padding: 20px 20px; font-size: 13px; color: #4F525C; }
.d-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.d-r { text-align: right; }
.d-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-foot { margin: 0; padding: 2px 20px 14px; max-width: 820px; font-size: 12px; line-height: 1.5; color: #8B8D97; text-wrap: pretty; }
.d-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 20px 4px; font-size: 12px; color: #4F525C; }
.d-legend span { display: inline-flex; align-items: center; gap: 7px; }
.d-legend i { display: inline-block; }
.d-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: #B0B2BA; }
.d-skel { background: linear-gradient(90deg, #F4F4F6 0%, #ECECEF 50%, #F4F4F6 100%); background-size: 200% 100%; border-radius: 6px; animation: skel-pulse 1.2s ease-in-out infinite; color: transparent !important; }
@keyframes skel-pulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ─── Overview ─── */
.d-tl { position: relative; height: 52px; border-radius: 8px; background: #F4F4F6; overflow: hidden; }
.d-tl-past { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(78,91,214,0.16), rgba(78,91,214,0.06)); }
.d-tl-future { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(17,19,25,0.045) 0 6px, transparent 6px 12px); }
.d-tl-mark { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; }
.d-tl-mark--confirmed { background: #B53A2E; }
.d-tl-mark--live { background: #B53A2E; box-shadow: 0 0 0 3px rgba(181,58,46,0.22); animation: dtb-alertpulse 1.4s ease-in-out infinite; }
.d-tl-mark--dismissed { background: #fff; border: 1.5px solid #B0B2BA; }
.d-tl-axis { margin-top: 6px; color: #8B8D97; }
.d-open-pill { flex: 0 0 240px; justify-content: center; } /* fits the longest category name ('Child reaches out to an adult', 237px measured 2026-09-28); 176px cut off nine of eighteen */
.d-open-when { font-family: var(--font-mono); font-size: 12px; color: #8B8D97; flex: 0 0 144px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* fixed, so every row's description starts at the same x ('Sep 10 · 12:44–14:15' fits) */
.d-open-text { font-size: 14px; font-weight: 600; letter-spacing: -0.008em; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.d-open-room { font-size: 12px; color: #4F525C; flex: 0 0 132px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sections: one per product, same small shape each (Scott, 2026-09-28/29).
   A section whose headline is a problem gets an amber edge on its header row
   only, never down the moments under it. */
.d-lanes { display: grid; gap: 10px; }
.d-lane-group .d-sec-head { margin-bottom: 10px; }
.d-lane-group-day { font-weight: 500; color: #8B8D97; }
.d-lane-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.d-lane.is-attn > .d-lane-head { box-shadow: inset 3px 0 0 #B47B2B; }
.d-lane-name { margin: 0; flex: 0 0 132px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.d-lane-verdict { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.008em; }
.d-lane-verdict .d-lane-mark { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; }
.d-lane-verdict .d-lane-mark .icon { width: 11px; height: 11px; }
.d-lane-mark--ok { background: #E8F4ED; color: #1F6B41; }
.d-lane-mark--problem { background: #FBF3E3; color: #7E5518; }
.d-lane-mark--open { background: #F4F4F6; color: #8B8D97; }
.d-lane-verdict.is-problem { color: #7E5518; }
.d-lane-day { font-family: var(--font-mono); font-size: 11.5px; color: #8B8D97; white-space: nowrap; }
.d-lane-all { white-space: nowrap; }
.d-lane-tl { padding: 0 20px 16px; }
.d-lane-tl .d-h3-sub { margin: 0 0 10px; }
.d-tl-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(17,19,25,0.08); font-size: 12px; color: #4F525C; }
.d-tl-legend span { display: inline-flex; align-items: center; gap: 7px; }
.d-tl-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.d-tl-legend .tail { margin-left: auto; font-family: var(--font-mono); color: #8B8D97; white-space: nowrap; }
.d-row.is-seen .d-open-text { font-weight: 500; color: #4F525C; }

/* ─── Child alone ─── */
.d-recip { display: flex; align-items: center; gap: 16px; padding: 12px 18px; flex-wrap: wrap; }
.d-recip-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.d-recip-dot { width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; }
.d-recip-dot--none { background: #B53A2E; }
.d-recip-names { color: #4F525C; }
.d-recip .d-btn { margin-left: auto; }
.d-act-card { padding: 20px 24px 18px; }
.d-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(17,19,25,0.08); }
.d-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-fig-v { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.d-fig-num { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: #111319; font-variant-numeric: tabular-nums; }
.d-fig-unit { font-size: 14px; color: #8B8D97; }
.d-fig-label { font-size: 13px; color: #4F525C; line-height: 1.4; text-wrap: pretty; }
.d-act-line { margin: 14px 0 0; font-size: 14px; color: #111319; }
.d-act-line b { font-weight: 600; }
.d-det-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px 12px; }
.d-det-head .d-seg { align-self: center; }
.d-det-grid { grid-template-columns: 150px minmax(0, 1fr) 130px 150px 16px; }
.d-det-when { font-family: var(--font-mono); font-size: 12px; color: #4F525C; white-space: nowrap; }
.d-det-room { font-size: 13px; font-weight: 500; color: #111319; }
.d-det-room span { font-weight: 400; color: #8B8D97; }
.d-det-alert { font-size: 13px; white-space: nowrap; }
.d-det-foot { padding: 12px 20px; border-top: 1px solid rgba(17,19,25,0.06); font-size: 13px; color: #4F525C; }

/* ─── Trends ─── */
.d-tr-staff { grid-template-columns: 104px 1fr 132px 112px 20px; }
.d-tr-tx { grid-template-columns: 104px 1fr 150px 20px; }
.d-tr-day { min-width: 0; }
.d-tr-day b { display: block; font-size: 13px; font-weight: 600; color: #111319; }
.d-tr-day i { display: block; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: #8B8D97; }
.d-tr-day--quiet b { color: #B0B2BA; }
.d-strip { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 18px; border-radius: 4px; overflow: hidden; background: #F4F4F6; box-shadow: inset 0 0 0 1px rgba(17,19,25,0.05); }
.d-strip i { display: block; }
.d-strip i.ok { background: #8F98E8; }
.d-strip i.look { background: #333C9E; }
/* Outdoor concerns and other unresolved checks share the Unclear legend color. */
.d-strip i.prov, .d-strip i.unc { background: #C5C8D6; }
.d-strip i.d-strip-open { cursor: pointer; }
.d-strip i.d-strip-open:hover, .d-strip i.d-strip-open:focus-visible { background: #1F2670; outline: none; }
.d-strip i.prov.d-strip-open:hover, .d-strip i.prov.d-strip-open:focus-visible { background: #A6AABD; }
.d-badge--prov { background: #F4F4F6; color: #4F525C; }
.d-strip i.none { background: #F4F4F6; }
.d-tx-track { position: relative; height: 30px; border-radius: 4px; background: #F4F4F6; box-shadow: inset 0 0 0 1px rgba(17,19,25,0.05); }
.d-tx-track > i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(17,19,25,0.08); }
.d-tx-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 0; height: 0; }
.d-tx-mark i { display: block; flex: 0 0 auto; border-radius: 999px; }
.d-tx-mark--walked i { width: 10px; height: 10px; background: #8F98E8; }
.d-tx-mark--stayed i { width: 10px; height: 10px; background: #fff; box-shadow: inset 0 0 0 2px #8F98E8; }
.d-tx-mark--absent i { width: 14px; height: 14px; background: #333C9E; box-shadow: 0 0 0 3px #EEF0FB; }
.d-tx-mark--unknown i { width: 10px; height: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px #B0B2BA; }
.d-tx-mark span { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; color: #333C9E; white-space: nowrap; line-height: 1; }
.d-tx-ticks { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.d-tx-tick { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; }
.d-tx-tick .icon { width: 11px; height: 11px; }
.d-tx-tick--walked { background: #E8F4ED; color: #1F6B41; }
.d-tx-tick--stayed { background: #EEF0FB; color: #333C9E; }
.d-tx-tick--absent { background: #FBECEA; color: #B3261E; }
.d-tx-tick--unknown { background: #F4F4F6; color: #8B8D97; }
.d-tx-notes { display: flex; flex-direction: column; gap: 8px; margin: 8px 20px 16px; }
.d-tx-notes:empty { height: 12px; margin: 0; }
.d-tx-note { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px; border-radius: 8px; background: #EEF0FB; cursor: pointer; border: 0; width: 100%; text-align: left; font: inherit; }
.d-tx-note > i { width: 10px; height: 10px; border-radius: 999px; background: #333C9E; flex: 0 0 auto; }
.d-tx-note > span { flex: 1; min-width: 0; font-size: 13px; color: #111319; line-height: 1.45; text-wrap: pretty; }
.d-tx-note .icon { width: 15px; height: 15px; color: #4E5BD6; flex: 0 0 auto; }
/* Zoning (design 4a "room first", 2026-09-28): a rail of rooms, the chosen
   room's heatmap over an empty photo of it, and the week and each day below. */
.zt-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 560px; border-top: 1px solid rgba(17,19,25,0.06); }
.zt-rooms { border-right: 1px solid rgba(17,19,25,0.06); padding: 10px; display: flex; flex-direction: column; gap: 2px; background: #FCFCFD; }
.zt-rooms-lab { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B0B2BA; padding: 6px 10px; }
.zt-room { appearance: none; border: 0; font: inherit; color: inherit; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; background: transparent; }
.zt-room:hover { background: #F4F4F6; }
.zt-room.is-on { background: #EEF0FB; }
.zt-room:focus-visible, .zt-day:focus-visible { outline: 2px solid #4E5BD6; outline-offset: 2px; }
.zt-room-name { display: block; font-size: 13.5px; font-weight: 500; color: #111319; }
.zt-room.is-on .zt-room-name { font-weight: 600; }
.zt-room-sub { display: block; font-size: 12px; color: #8B8D97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zt-room-pct { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: #4F525C; font-variant-numeric: tabular-nums; }
.zt-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.zt-main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.zt-main-head h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
.zt-main-sub { font-size: 13px; color: #4F525C; margin-top: 2px; }
.zt-main-sub b { font-family: var(--font-mono); font-weight: 600; color: #111319; }
.zt-showing { font-size: 12.5px; color: #8B8D97; }
.zt-frame { position: relative; border-radius: 10px; overflow: hidden; background: #0E0F12; aspect-ratio: 16/9; }
.zt-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.55); }
.zt-frame canvas, .zt-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zt-tag { position: absolute; left: 10px; top: 10px; background: rgba(14,15,18,0.72); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.zt-frame-none { position: absolute; inset: 0; display: grid; place-items: center; background: #F4F4F6; font-size: 13px; color: #8B8D97; text-align: center; padding: 16px; }
.zt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #4F525C; }
.zt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zt-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.zt-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zt-day { appearance: none; font: inherit; color: inherit; text-align: left; border: 1px solid rgba(17,19,25,0.10); background: #fff; border-radius: 9px; padding: 4px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; min-width: 0; }
.zt-day:hover { border-color: rgba(17,19,25,0.22); }
.zt-day.is-on { border-color: #4E5BD6; box-shadow: 0 0 0 1px #4E5BD6; }
.zt-day[disabled] { cursor: default; }
.zt-day[disabled]:hover { border-color: rgba(17,19,25,0.10); }
.zt-thumb { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #0E0F12; display: grid; place-items: center; font-size: 10.5px; color: #8B8D97; text-align: center; line-height: 1.25; padding: 2px; }
.zt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.55); }
.zt-thumb--none { background: #F4F4F6; }
.zt-day-lab { display: flex; justify-content: space-between; gap: 4px; padding: 0 3px 2px; font-size: 11.5px; white-space: nowrap; color: #4F525C; font-weight: 500; }
.zt-day.is-on .zt-day-lab { color: #111319; font-weight: 600; }
.zt-day[disabled] .zt-day-lab { color: #B0B2BA; }
.zt-notes { margin-top: 14px; font-size: 12.5px; font-style: italic; line-height: 1.5; color: #8B8D97; text-wrap: pretty; }
.zt-notes p { margin: 0; }
@container (max-width: 820px) {
  .zt-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .zt-rooms { border-right: 0; border-bottom: 1px solid rgba(17,19,25,0.06); flex-direction: row; flex-wrap: wrap; }
  .zt-rooms-lab { display: none; }
  .zt-room { flex: 1 1 180px; }
  .zt-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
button.d-tr-tx { width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; }
.d-grid-row.d-tr-tx:hover { background: #EEF0FB; }
#tr-body { container-type: inline-size; }
/* Screen-sized labels are measured and placed clear of zones and the card. */

/* ─── Observations ─── */
.d-obs { flex: 1 1 auto; display: flex; align-items: stretch; min-width: 0; }
.d-filters { flex: 0 0 272px; width: 272px; border-right: 1px solid rgba(17,19,25,0.08); background: #fff; display: flex; flex-direction: column; align-self: stretch; }
.d-filters-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 16px 18px 14px; border-bottom: 1px solid rgba(17,19,25,0.06); display: flex; flex-direction: column; gap: 12px; }
.d-filters-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.d-filters-title span { flex: 1; }
.d-filters-clear { font-size: 13px; font-weight: 500; color: #4E5BD6; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.d-datenav { display: flex; flex-direction: column; gap: 8px; }
.d-datenav-row { display: flex; align-items: center; gap: 6px; }
.d-datenav-row .d-seg { flex: 1; }
.d-datenav-label { font-size: 13px; font-weight: 600; color: #111319; text-align: center; }
.d-roomsel { position: relative; display: flex; align-items: center; height: 34px; background: #F4F4F6; border-radius: 12px; }
.d-roomsel select { appearance: none; -webkit-appearance: none; width: 100%; height: 100%; padding: 0 34px 0 12px; border: 0; background: transparent; font: 600 13px/1 var(--font-sans); color: #111319; cursor: pointer; outline: none; }
.d-roomsel .icon { position: absolute; right: 11px; width: 13px; height: 13px; color: #4F525C; pointer-events: none; }
.d-filters-body { padding: 10px 18px 40px; display: flex; flex-direction: column; gap: 6px; }
.d-fsec { padding-bottom: 8px; border-bottom: 1px solid rgba(17,19,25,0.06); }
.d-fsec-head { display: flex; align-items: center; gap: 8px; height: 30px; }
.d-fsec-head b { font-size: 13px; font-weight: 600; color: #111319; flex: 1; }
.d-fsec-head .d-filters-clear { font-size: 12px; }
.d-fsec-head .d-filters-clear.is-quiet { color: #8B8D97; cursor: default; }
.d-fsec-head--toggle { cursor: pointer; margin: 0 -6px; padding: 0 6px; border-radius: 8px; }
.d-fsec-head--toggle:hover { background: #F4F4F6; }
.d-fsec-head--toggle .icon { width: 12px; height: 12px; color: #8B8D97; transition: transform 140ms; }
.d-fsec-head--toggle.is-open .icon { transform: rotate(90deg); }
.d-fsec-head .n { font-family: var(--font-mono); font-size: 11px; color: #4F525C; }
.d-kinds { display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.d-kind { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 3px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; background: transparent; border: 0; font: inherit; text-align: left; width: calc(100% + 16px); }
.d-kind:hover { background: #F4F4F6; }
.d-kind-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.d-kind-dot--zero { background: #fff; box-shadow: inset 0 0 0 1.5px #C5C7CE; }
.d-kind-name { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: #111319; font-weight: 500; }
.d-kind-n { font-family: var(--font-mono); font-size: 11px; color: #A0A2AA; }
.d-kind.is-zero .d-kind-name { color: #A0A2AA; }
.d-kind.is-on .d-kind-name { font-weight: 600; }
.d-routine { margin-left: 5px; padding-left: 12px; border-left: 1px solid rgba(17,19,25,0.09); display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.d-routine-row { display: flex; align-items: center; gap: 9px; min-height: 28px; padding: 3px 8px; border-radius: 8px; }
.d-routine-row span:first-child { flex: 1; min-width: 0; font-size: 13px; color: #111319; }
.d-routine-row .n { font-family: var(--font-mono); font-size: 11px; color: #8B8D97; }
.d-feed { flex: 1 1 auto; min-width: 0; padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 16px; }
.d-feed-title { display: flex; align-items: baseline; gap: 12px; }
.d-feed-sec { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.d-feed-day { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.d-feed-day-head { margin: 4px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #111319; }
.d-feed-sec-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(17,19,25,0.10); }
.d-feed-sec-head span { font-size: 13px; color: #4F525C; }
.d-feed-group { display: flex; flex-direction: column; gap: 10px; }
.d-feed-group-head { display: flex; align-items: baseline; gap: 8px; padding-top: 4px; font-size: 13px; font-weight: 600; color: #4F525C; }
.d-obs-card { display: grid; grid-template-columns: 232px minmax(0, 1fr); overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; width: 100%; }
.d-obs-card:hover { border-color: rgba(17,19,25,0.22); box-shadow: 0 4px 14px rgba(17,19,25,0.07); }
.d-obs-thumb { position: relative; aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, #23262E 0 8px, #1C1F26 8px 16px); display: grid; place-items: center; }
.d-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d-obs-thumb .d-play, .d-obs-thumb .d-obs-clock, .d-obs-thumb .d-obs-len { position: relative; z-index: 1; }
.d-obs-thumb .d-obs-clock, .d-obs-thumb .d-obs-len { position: absolute; text-shadow: 0 1px 2px rgba(0,0,0,0.7); }
.d-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.94); color: #111319; display: grid; place-items: center; }
.d-play .icon { width: 13px; height: 13px; }
.d-play--lg { width: 52px; height: 52px; }
.d-play--lg .icon { width: 20px; height: 20px; }
.d-obs-clock { position: absolute; left: 10px; bottom: 9px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.86); }
.d-obs-len { position: absolute; right: 10px; bottom: 9px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.86); }
.d-obs-body { padding: 14px 18px 13px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-obs-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4F525C; }
.d-obs-meta > span:last-child { white-space: nowrap; }
.d-obs-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; text-wrap: pretty; }
.d-obs-what { margin-top: 4px; padding-left: 10px; border-left: 2px solid #ECECEF; font-size: 13px; color: #111319; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d-obs-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.d-ai { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #333C9E; white-space: nowrap; min-width: 0; }
.d-ai i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 6px; background: #4E5BD6; }
.d-ai .icon { width: 10px; height: 10px; color: #fff; }
.d-obs-pos { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: #8B8D97; white-space: nowrap; }
.d-obs-pos i { width: 6px; height: 6px; border-radius: 50%; background: #C5C7CE; }
.d-nomatch { padding: 20px 0; font-size: 13px; color: #4F525C; line-height: 1.6; max-width: 62ch; }

/* ─── Drawers (extends drawer.css) ─── */
.drawer { width: min(560px, 100%); box-shadow: -14px 0 40px rgba(17,19,25,0.16); }
.drawer-head { gap: 12px; }
.drawer-head .meta .drawer-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8D97; }
.drawer-head .meta .t-h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.drawer-meta { font-family: var(--font-mono); font-size: 12px; color: #8B8D97; }
.drawer-meta[hidden] { display: none; }
.drawer-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.drawer-actions:empty { display: none; }
.drawer-nav { appearance: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.12); background: #fff; display: grid; place-items: center; color: #4F525C; cursor: pointer; }
.drawer-nav:hover { background: #F4F4F6; }
.drawer-nav:disabled { color: #C5C7CE; cursor: default; background: #fff; }
.drawer-nav .icon { width: 14px; height: 14px; }
.drawer-close { border-color: rgba(17,19,25,0.12); margin-left: 0; }
.drawer-close .icon { width: 14px; height: 14px; }
.drawer-scrim { cursor: pointer; }
.drawer-body { padding: 22px 24px 40px; gap: 22px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.drawer-body.drawer-body--list { padding: 18px 22px 40px; gap: 12px; }
/* The body scrolls; its cards keep their height instead of shrinking to fit. */
.drawer-body > * { flex-shrink: 0; }
.dd-top { display: flex; flex-direction: column; gap: 10px; }
.dd-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.014em; line-height: 1.3; color: #111319; text-wrap: pretty; }
.dd-clip { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, #23262E 0 12px, #1C1F26 12px 24px); display: grid; place-items: center; }
.dd-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.dd-clip .d-play { position: relative; z-index: 1; cursor: pointer; border: 0; }
.dd-clip-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(0deg, rgba(14,15,18,0.72), rgba(14,15,18,0)); pointer-events: none; }
.dd-clip-bar .t { font-family: var(--font-mono); font-size: 12px; color: #fff; }
.dd-clip-bar .bar { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.dd-clip-bar .bar i { position: absolute; top: -3px; bottom: -3px; border-radius: 3px; background: rgba(255,255,255,0.7); }
.dd-clip-bar .silent { font-size: 11px; color: rgba(255,255,255,0.7); }
.dd-clip-note { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.85); }
.dd-card { background: #fff; border: 1px solid rgba(17,19,25,0.07); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,19,25,0.04); }
.dd-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; }
.dd-card-head .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8D97; }
.dd-card-head .d-ai { margin-left: auto; }
.dd-card-head .mono-note { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: #8B8D97; }
.dd-account { margin: 0 16px 14px; padding: 0 0 0 12px; border-left: 2px solid #ECECEF; font-size: 15px; line-height: 1.65; color: #111319; text-wrap: pretty; }
.dd-feedback-row { display: flex; gap: 8px; padding: 0 16px 10px; }
.dd-thumb { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(17,19,25,0.12); background: #fff; color: #111319; cursor: pointer; }
.dd-thumb .icon { width: 16px; height: 16px; }
.dd-thumb:hover { border-color: rgba(17,19,25,0.3); }
.dd-thumb.on[data-answer="useful"] { background: #E7F4EC; border-color: #1F6F43; color: #17533A; }
.dd-thumb.on[data-answer="not_useful"] { background: #FBEDE8; border-color: #A33A1D; color: #7C2C16; }
.dd-feedback-note { display: block; width: calc(100% - 32px); margin: 0 16px; box-sizing: border-box; min-height: 56px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.12); color: #111319; }
.dd-feedback-foot { display: flex; justify-content: flex-end; padding: 8px 16px 14px; }
.dd-feedback-save { font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; border: 1px solid #111319; background: #111319; color: #fff; cursor: pointer; }
.dd-feedback-save:disabled { border-color: rgba(17,19,25,0.12); background: #F4F4F6; color: #8B8D97; cursor: default; }
.d-answered { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.d-answered .icon { width: 13px; height: 13px; }
.d-answered--useful { color: #17533A; }
.d-answered--not_useful { color: #7C2C16; }
.dd-also-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.dd-also-list button { font: inherit; font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.12); background: #fff; color: #111319; cursor: pointer; }
.dd-also-list button.on { background: #111319; border-color: #111319; color: #fff; }
.dd-krow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-top: 1px solid rgba(17,19,25,0.06); }
.dd-krow .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8D97; padding-top: 2px; }
.dd-krow .v { font-size: 13px; line-height: 1.5; color: #111319; text-wrap: pretty; }
.dd-cite { display: flex; flex-direction: column; gap: 3px; }
.dd-cite span { font-size: 12px; line-height: 1.45; color: #4F525C; }
.dd-cite span i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: #8B8D97; }
.dd-about-tier { font-size: 13px; color: #4F525C; }
.dd-about-meaning { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: #111319; text-wrap: pretty; }
.dd-about-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8D97; padding-top: 14px; border-top: 1px solid rgba(17,19,25,0.08); }
.dd-src { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; border-left: 2px solid rgba(17,19,25,0.10); }
.dd-src b { font-size: 13px; font-weight: 600; color: #111319; }
.dd-src b i { font-style: normal; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: #4F525C; }
.dd-about-foot { margin: 0; font-size: 12px; line-height: 1.5; color: #8B8D97; text-wrap: pretty; }
.dd-note { margin: 0 0 4px; font-size: 13px; color: #8B8D97; line-height: 1.5; }
.dd-group { background: #fff; border: 1px solid rgba(17,19,25,0.07); border-radius: 12px; overflow: hidden; }
.dd-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 9px 14px; background: #FAFAFB; border-bottom: 1px solid rgba(17,19,25,0.06); }
.dd-group-head b { font-size: 13px; font-weight: 600; }
.dd-group-head i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: #8B8D97; }
.dd-group-head .tally { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: #4F525C; white-space: nowrap; }
.dd-grow { display: grid; grid-template-columns: 82px 1fr 56px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(17,19,25,0.05); cursor: pointer; width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; font: inherit; text-align: left; color: inherit; }
.dd-grow:hover { background: #FAFAFB; }
.dd-grow .clock { font-family: var(--font-mono); font-size: 12px; color: #4F525C; white-space: nowrap; }
.dd-grow .what { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dd-grow .what .d-pill { padding: 0 8px; flex: 0 0 auto; }
.dd-grow .what b { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-grow .sub { display: block; font-size: 12px; color: #8B8D97; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-grow .clipbtn { display: flex; justify-content: flex-end; }
.dd-grow .clipbtn .icon { width: 11px; height: 11px; }
.dd-grow .d-btn24:hover { background: #fff; color: #4F525C; }
.dd-gclip { padding: 4px 14px 14px; border-bottom: 1px solid rgba(17,19,25,0.05); }
.dd-gclip .clip { border-radius: 8px; }
.dd-gclip .clip-caption { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: #8B8D97; }
.dd-inc-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.dd-status { padding: 11px 16px; border-radius: 12px; background: #FBF3E3; color: #6E4A12; font-size: 13px; line-height: 1.5; }
.drawer .reasoning { border: 1px solid rgba(17,19,25,0.06); }
.drawer .frames-note { display: none; }
.drawer .frames-details > summary { pointer-events: none; }


/* A review remains an evidence link at every screen size. */
.d-staff-reviews { border-top: 1px solid rgba(17,19,25,.08); }
.d-staff-review { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 20px; background: #fff; border: 0; border-bottom: 1px solid rgba(17,19,25,.06); color: #111319; font: inherit; cursor: pointer; }
.d-staff-review:hover { background: #EEF0FB; }
.d-staff-review > span:first-child { flex: 1; min-width: 0; }
.d-staff-review b, .d-staff-review > span > span { display: block; font-size: 13px; }
.d-staff-review > span > span { margin-top: 4px; color: #4F525C; }
/* A stretch's clip still; the dark tile is the placeholder when there is none. */
.d-staff-review > span.d-staff-thumb { position: relative; flex: 0 0 96px; aspect-ratio: 16/9; border-radius: 6px; background: #1B1D24; overflow: hidden; }
.d-staff-thumb .d-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d-mobile-nav { display: none; }
.d-page-head, .d-actions { flex-wrap: wrap; }
.dtb-head { min-height: 60px; height: auto; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.dtb-title { flex-wrap: wrap; }
.dtb-picker select { max-width: 100%; }
.d-seg { max-width: 100%; }
@media (max-width: 1100px) {
  .d-obs { flex-direction: column; }
  .d-filters { flex: 0 0 auto; width: auto; border-right: 0; border-bottom: 1px solid rgba(17,19,25,.08); }
  .d-filters-head { position: static; }
  .d-filters-body { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding-bottom: 16px; }
  .d-obs-card { grid-template-columns: 190px minmax(0,1fr); }
}
@media (max-width: 850px) {
  .dir-app { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 45px); }
  .d-mobile-nav { display: block; width: 100%; min-height: 45px; padding: 10px 18px; border: 0; border-bottom: 1px solid rgba(17,19,25,.1); background: #fff; text-align: left; font: 600 14px/1.5 var(--font-sans); color: #333C9E; }
  .dir-app > .dsb { display: none; position: static; height: auto; }
  .d-nav-open .dir-app > .dsb { display: flex; }
  .dir-main > .page { padding: 20px 18px 40px; }
  .dir-main > .page--flush { padding: 0; }
  .dtb-live { flex-wrap: wrap; gap: 12px; padding: 12px 18px; }
  .dtb-figs { gap: 14px; }
  .dtb-head { padding: 12px 18px; flex-wrap: wrap; }
  .dtb-school { white-space: normal; }
  .dtb-meta { white-space: normal; }
  .drawer { width: min(560px, 100vw); max-width: 100vw; }
  .d-feed { padding: 20px 18px 40px; }
  .d-figs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .dtb-live { gap: 8px; }
  .dtb-sep { display: none; }
  .dtb-watch { width: 100%; }
  .dtb-figs { gap: 10px; }
  .dtb-num { font-size: 17px; }
  .dtb-unit, .dtb-den { font-size: 11px; }
  .d-actions { gap: 6px; }
  .d-title { font-size: 19px; }
  .d-lane-name { flex-basis: 100%; }
  .d-lanes .d-row, #ov-alone-rows .d-row { flex-wrap: wrap; gap: 6px 10px; }
  .d-lanes .d-open-pill, #ov-alone-rows .d-open-pill { flex-basis: auto; }
  .d-lanes .d-open-when, #ov-alone-rows .d-open-when { flex-basis: auto; }
  .d-lanes .d-open-text, #ov-alone-rows .d-open-text { flex-basis: 100%; order: 5; }
  #tr-tabs { flex-wrap: wrap; }
  .d-grid-head.d-tr-staff, .d-grid-head.d-tr-tx, .d-grid-head.d-det-grid { display: none; }
  .d-grid-row.d-tr-staff { grid-template-columns: minmax(80px,1fr) minmax(74px,1fr) minmax(74px,1fr); gap: 10px; }
  .d-tr-staff > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .d-tr-staff > :nth-child(3)::before { content: 'No concern flagged'; display: block; font: 10px var(--font-sans); color: #8B8D97; }
  .d-tr-staff > :nth-child(4)::before { content: 'Concern flagged'; display: block; font: 10px var(--font-sans); color: #8B8D97; }
  .d-tr-staff > :nth-child(5) { display: none; }
  .d-grid-row.d-tr-tx { grid-template-columns: 90px minmax(0,1fr) 16px; }
  .d-tr-tx > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .d-grid-row.d-det-grid { grid-template-columns: minmax(0,1fr) auto; }
  .d-det-grid > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .d-det-grid > :nth-child(5) { display: none; }
  .d-filters-body { grid-template-columns: minmax(0,1fr); }
  .d-obs-card { grid-template-columns: minmax(0,1fr); }
  .d-obs-meta, .d-obs-foot { flex-wrap: wrap; }
  .d-staff-review { flex-wrap: wrap; }
  .dd-krow { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .dd-grow { grid-template-columns: 65px minmax(0,1fr) 42px; }
  .drawer-head { padding: 16px; }
  .drawer-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dtb-watch-dot, .dtb-alert-dot { animation: none; }
}

.d-tl-mark--incomplete { background: #FBF3E3; border: 1.5px solid #B47B2B; }

/* Supervision › Export PDF: every tab for the period, print-only (2026-09-24). */
.tr-export { display: none; }
@media print {
  body.is-exporting .sidebar, body.is-exporting .d-mobile-nav, body.is-exporting .dtb-live, body.is-exporting .dtb-head,
  body.is-exporting .drawer, body.is-exporting #tr-root > :not(#tr-export) { display: none !important; }
  body.is-exporting .dir-app, body.is-exporting .dir-main, body.is-exporting .page { display: block; margin: 0; padding: 0; }
  body.is-exporting .tr-export { display: block; }
  .tr-export * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tr-export-head { margin-bottom: 14px; }
  .tr-export-head h1 { font-size: 20px; margin: 0 0 4px; }
  .tr-export-head p { margin: 0 0 2px; font-size: 11px; color: #4F525C; }
  .tr-export section { margin-bottom: 14px; }
  .tr-export-page { break-before: page; }
  .tr-export .d-chev, .tr-export .d-fresh svg { display: none; }
  .tr-export .d-card { box-shadow: none; }
  .tr-export-map { break-inside: avoid; margin: 14px 0 0; }
  .tr-export-map figcaption { font-size: 10px; color: #4F525C; margin-top: 4px; }
}

/* ── Zoning stretches (design handoff 28 Sept, adapted to Scott's 2-minute rule) ──
   Band colours follow the heatmap: amber 2-5 min, rust 5+ min, green under 2 min. */
.zt-sub { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.zt-sub i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.zt-sub--amber { color: #7E5518; } .zt-sub--amber i { background: #E3A33B; }
.zt-sub--rust { color: #8A3B1E; } .zt-sub--rust i { background: #D0643B; }
.zt-sub--green { color: #1F6B41; font-weight: 500; } .zt-sub--green i { background: #3FB68B; }
.zt-sub--wait { color: #8A5D1F; font-weight: 500; }
.d-head-tags .d-pill + .d-fresh { margin-left: 8px; }
.zt-n--amber { background: #B47B2B; color: #fff; }
.zt-n--rust { background: #B8502C; color: #fff; }
.zt-spot { position: absolute; border: 2px dashed rgba(255,255,255,0.9); border-radius: 50%; pointer-events: none; }
.zt-pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 4px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.35); cursor: pointer; white-space: nowrap; font: inherit; font-size: 12px; font-weight: 600; color: #111319; }
.zt-pin:hover { background: #EEF0FB; }
.zt-pin:focus-visible, .zt-srow:focus-visible, .zd-bar:focus-visible { outline: 2px solid #4E5BD6; outline-offset: 2px; }
.zt-pin .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.zt-pin .icon { width: 10px; height: 10px; color: #333C9E; }
.zt-badge { position: absolute; right: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.zt-day-sub { color: #8B8D97; font-weight: 400; }
.zt-list { border: 1px solid rgba(17,19,25,0.07); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.zt-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #FAFAFB; }
.zt-list-head b { font-size: 13px; font-weight: 600; }
.zt-list-head span { font-size: 12px; color: #8B8D97; }
.zt-srow { appearance: none; font: inherit; color: inherit; text-align: left; width: 100%; background: transparent; border: 0; border-top: 1px solid rgba(17,19,25,0.06); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 16px; cursor: pointer; }
.zt-srow:hover { background: #FAFAFB; }
.zt-srow-pin { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.zt-srow-pin--ring { background: #fff; box-shadow: inset 0 0 0 1.5px #B0B2BA; }
.zt-srow-main { min-width: 0; }
.zt-srow-main .when { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.zt-srow-main .what { display: block; font-size: 12.5px; color: #4F525C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Rows select the large player; the rail and map use the same stretch order. */
.zt-srow-play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #4F525C; box-shadow: inset 0 0 0 1px rgba(17,19,25,0.12); }
.zt-srow:hover .zt-srow-play { color: #111319; box-shadow: inset 0 0 0 1px rgba(17,19,25,0.28); }
.zt-srow-play .icon { width: 10px; height: 10px; }
.zt-list-rule { padding: 0 16px 10px; background: #FAFAFB; font-size: 12px; color: #8B8D97; }
.zt-list-day { padding: 8px 16px 6px; border-top: 1px solid rgba(17,19,25,0.06); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #8B8D97; }
.zt-list-more { appearance: none; font: inherit; width: 100%; background: transparent; border: 0; border-top: 1px solid rgba(17,19,25,0.06); padding: 11px 16px; font-size: 13px; font-weight: 600; color: #4E5BD6; cursor: pointer; text-align: left; }
.zt-list-more:hover { background: #FAFAFB; }
.zt-list-head .d-link { font-size: 12px; }
.zt-list-empty { padding: 14px 16px; border-top: 1px solid rgba(17,19,25,0.06); font-size: 13px; color: #4F525C; text-wrap: pretty; }
.zt-list-empty b { color: #111319; font-weight: 600; }
.tr-export-stretches { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 12px; }
.tr-export-stretches th, .tr-export-stretches td { text-align: left; padding: 5px 8px; border-bottom: 1px solid rgba(17,19,25,0.10); vertical-align: top; }
.tr-export-stretches th { font-weight: 600; color: #4F525C; }

/* The stretch drawer */
.zd-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.zd-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.014em; line-height: 1.3; color: #111319; text-wrap: pretty; }
.zd-video { position: relative; background: #0E0F12; aspect-ratio: 16/9; }
.zd-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.zd-video .clip-placeholder-caption { aspect-ratio: 16/9; display: grid; place-items: center; color: rgba(255,255,255,0.8); font-size: 13px; padding: 16px; text-align: center; }
.zd-ctl, .zd-silent { position: absolute; top: 12px; background: rgba(14,15,18,0.72); border-radius: 8px; pointer-events: none; }
.zd-ctl { left: 12px; display: inline-flex; gap: 8px; align-items: center; color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 5px 10px; }
.zd-ctl .icon { width: 11px; height: 11px; }
.zd-silent { right: 12px; color: rgba(255,255,255,0.8); font-size: 11px; padding: 5px 9px; }
.zd-clip-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; }
.zd-views { display: flex; flex-wrap: wrap; gap: 6px; }
.zd-views button { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.12); background: #fff; color: #111319; cursor: pointer; }
.zd-views button.on { background: #111319; border-color: #111319; color: #fff; }
.zd-overlay-key, .zd-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #4F525C; }
.zd-overlay-key span, .zd-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.zd-overlay-key i, .zd-key i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.zd-k-staff { box-shadow: inset 0 0 0 2px #4E5BD6; }
.zd-k-group { box-shadow: inset 0 0 0 2px #B47B2B; background: rgba(227,163,59,0.35); }
.zd-overlay-key i.zd-k-line { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed #4F525C; }
.zd-tracker { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.zd-tr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.zd-tr-head b { font-size: 13.5px; font-weight: 600; }
.zd-tr-head span { font-size: 12.5px; color: #4F525C; }
.zd-tr-plot { position: relative; height: 112px; }
.zd-band { position: absolute; top: 14px; height: 74px; border-radius: 4px; background: #EEF0FB; box-shadow: inset 0 0 0 1px #4E5BD6; }
.zd-band-lab { position: absolute; z-index: 2; top: -2px; margin-left: 4px; padding: 0 4px; background: #fff; border-radius: 3px; font-size: 11px; font-weight: 600; color: #4E5BD6; white-space: nowrap; }
.zd-bars { position: absolute; left: 0; right: 0; top: 22px; height: 66px; display: flex; align-items: flex-end; gap: 1.5px; border-bottom: 1px solid rgba(17,19,25,0.18); }
.zd-bar { appearance: none; position: relative; flex: 1; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.zd-bar:hover { background: rgba(17,19,25,0.05); }
.zd-bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px 2px 0 0; }
.zd-bar i.k { background: #CDCED4; }
.zd-bar i.o { background: #B47B2B; }
.zd-clipline { position: absolute; top: 95px; height: 3px; border-radius: 2px; background: #111319; }
.zd-play { position: absolute; top: 6px; height: 95px; width: 2px; margin-left: -1px; background: #111319; pointer-events: none; }
.zd-play-dot { position: absolute; top: 2px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #111319; pointer-events: none; }
.zd-axis { display: flex; justify-content: space-between; font-size: 11px; color: #8B8D97; margin-top: -6px; }
.zd-key i.zd-key-band { background: #EEF0FB; box-shadow: inset 0 0 0 1px #4E5BD6; }
.zd-key i.zd-key-clip { width: 16px; height: 0; border-radius: 0; border-top: 2.5px solid #111319; }
@media (max-width: 600px) {
  .zt-srow { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
  .zt-srow > .d-pill { display: none; }
  .zt-pin > span:not(.n) { display: none; }
  .zt-pin { padding: 0 4px; }
}

/* Zoning review: room navigation owns the clip list; the selected clip gets the canvas. */
.zt-body { grid-template-columns: 248px minmax(0, 1fr); }
.zt-room-group { min-width: 0; }
.zt-room { width: 100%; }
.zt-room > .icon { width: 14px; height: 14px; flex: 0 0 auto; color: #8B8D97; }
.zt-room-sub { white-space: normal; }
.zt-rail-clips { padding: 4px 0 12px 9px; }
.zt-rail-day { padding: 9px 8px 4px; color: #737682; font-size: 11.5px; font-weight: 500; }
.zt-rail-state { display: block; padding: 8px; color: #737682; font-size: 12px; }
.zt-rail-clip { appearance: none; width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #111319; font: inherit; cursor: pointer; padding: 9px 7px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 12px; align-items: center; gap: 8px; text-align: left; }
.zt-rail-clip:hover { background: #F1F2F7; }
.zt-rail-clip[aria-pressed="true"] { background: #EEF0FB; border-color: #D4D8F5; }
.zt-rail-clip b { display: block; font-size: 12.5px; font-weight: 600; }
.zt-rail-clip b i { font-style: normal; font-weight: 400; color: #626675; }
.zt-rail-clip small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11.5px; line-height: 1.4; color: #626675; margin-top: 3px; }
.zt-rail-clip > .icon { width: 11px; height: 11px; color: #4E5BD6; }
.zt-main-period { margin-top: 3px; font-size: 11.5px; color: #737682; }
.zt-view-switch { display: flex; flex-wrap: wrap; gap: 3px; border-radius: 9px; padding: 3px; background: #F4F4F6; }
.zt-view-switch button { appearance: none; border: 0; border-radius: 7px; background: transparent; font: 500 12px var(--font-sans); color: #626675; padding: 7px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.zt-view-switch button[aria-pressed="true"] { color: #111319; background: #fff; box-shadow: 0 1px 4px rgba(17,19,25,.09); }
.zt-view-switch .icon { width: 13px; height: 13px; }
.zt-view-switch button span { font-family: var(--font-mono); color: #737682; }
.zt-review { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 14px; }
.zt-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zt-review-position { display: block; margin-bottom: 4px; color: #737682; font-size: 11.5px; }
.zt-review-head h5 { margin: 0; font-size: 14px; font-weight: 600; }
.zt-review-head h5 span { font-family: var(--font-mono); font-size: 13px; color: #626675; font-weight: 400; white-space: nowrap; }
.zt-review-nav { display: flex; gap: 5px; flex: 0 0 auto; }
.zt-review-nav button { appearance: none; border: 1px solid #E2E3E8; border-radius: 8px; width: 34px; height: 34px; background: #fff; color: #4F525C; cursor: pointer; display: grid; place-items: center; }
.zt-review-nav button:disabled { color: #B0B2BA; cursor: default; background: #FAFAFB; }
.zt-review-nav .icon { width: 15px; height: 15px; }
.zt-review-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.zt-review-title h5 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.zt-review .zd-player { margin: 0; border: 1px solid #E8E9EE; border-radius: 10px; overflow: hidden; }
.zt-review-note { margin: 0; font-size: 13px; color: #626675; }
.zt-review-details { border-top: 1px solid #ECECF0; padding-top: 12px; font-size: 13px; color: #4F525C; }
.zt-review-details summary { font-weight: 500; color: #333C9E; cursor: pointer; padding: 3px 0; }
.zt-review-details p { margin: 10px 0 0; line-height: 1.6; }
.zt-rail-clip:focus-visible, .zt-view-switch button:focus-visible, .zt-review-nav button:focus-visible, .zt-review-details summary:focus-visible { outline: 2px solid #4E5BD6; outline-offset: 2px; }
.zt-image-unavailable img, .zt-image-unavailable canvas, .zt-image-unavailable .zt-pin, .zt-image-unavailable .zt-spot { visibility: hidden; }
.zt-image-error { position: absolute; inset: 0; display: grid; place-items: center; background: #F4F4F6; color: #626675; font-size: 12px; padding: 12px; text-align: center; }
@container (max-width: 820px) {
  .zt-body { grid-template-columns: minmax(0, 1fr); }
  .zt-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .zt-room-group.is-on { grid-column: 1 / -1; order: -1; }
  .zt-rail-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 4px 0 8px; }
  .zt-rail-day, .zt-rail-state, .zt-rail-clips .zt-list-more { grid-column: 1 / -1; }
  .zt-rail-clip { min-height: 58px; }
}
@media (max-width: 480px) {
  .zt-main { padding: 15px 12px; }
  .zt-main-head { gap: 12px; }
  .zt-review-head h5 span { display: block; margin-top: 2px; }
  .zt-rail-clips { grid-template-columns: minmax(0, 1fr); }
  .zt-review .zd-tracker { padding: 12px 10px; }
  .zt-review-nav button, .zt-view-switch button { min-height: 40px; }
}

/* Overview rows lead with a thumbnail (design "Overview Redesign", 2026-09-29). */
.d-row--thumb { padding-top: 10px; padding-bottom: 10px; }
/* Clips play silent (Scott, 2026-10-02), so players offer no sound control (Chrome, Edge, Safari). */
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-control-container { display: none !important; }
.d-row-thumb { position: relative; flex: 0 0 112px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #1B1D24; display: grid; place-items: center; }
.d-row-thumb .d-thumb-img, .d-row-thumb .d-thumb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.d-row-play { position: relative; width: 0; height: 0; margin-left: 3px; border-left: 11px solid rgba(255,255,255,0.88); border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.d-row.is-seen .d-row-thumb { opacity: 0.55; }
@media (max-width: 600px) {
  .d-row-thumb { flex-basis: 88px; }
}

/* Supervision > Child alone (design "Supervision Child Alone", 2026-09-29): Today, then History. */
#tr-root.is-alone #tr-title, #tr-root.is-alone #tr-sub, #tr-root.is-alone #tr-prev, #tr-root.is-alone #tr-next,
#tr-root.is-alone .d-page-head .d-seg { display: none; }
.ca-tab-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #B53A2E; vertical-align: middle; }
.ca-today { padding: 0; overflow: hidden; }
.ca-today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 22px 16px; border-bottom: 1px solid rgba(17,19,25,0.06); }
.ca-today-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ca-today-title { display: flex; align-items: baseline; gap: 10px; }
.ca-today-date { font-size: 13px; color: #8B8D97; }
.ca-now { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ca-now-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.ca-now-dot--green { background: #2E8B57; }
.ca-now-dot--grey { background: #B0B2BA; }
.ca-now-dot--red { background: #B53A2E; }
.ca-now-dot--live { background: #B53A2E; animation: dtb-alertpulse 1.4s ease-in-out infinite; }
.ca-now-text { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ca-now-sub { font-size: 13px; color: #4F525C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-recipients { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: #4F525C; white-space: nowrap; flex: 0 0 auto; }
.ca-recipients.is-none { color: #8B2A20; font-weight: 500; }
.ca-manage { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.ca-manage .icon { width: 12px; height: 12px; }
.ca-track-wrap { padding: 14px 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.ca-track { position: relative; height: 84px; }
.ca-rail, .ca-watched { position: absolute; left: 0; top: 38px; height: 8px; border-radius: 4px; }
.ca-rail { right: 0; background: #F3F3F6; }
.ca-watched { background: #DEDFE5; }
.ca-ev { position: absolute; top: 0; bottom: 0; width: 0; }
.ca-dot { position: absolute; top: 42px; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px #fff; }
.ca-dot--confirmed { background: #B53A2E; }
.ca-dot--live { background: #B53A2E; animation: dtb-alertpulse 1.4s ease-in-out infinite; }
.ca-dot--dismissed { background: #fff; border: 1.5px solid #B0B2BA; }
.ca-dot--incomplete { background: #FBF3E3; border: 1.5px solid #B47B2B; }
.ca-dot:focus-visible { outline: 2px solid #4E5BD6; outline-offset: 2px; }
.ca-lab { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; line-height: 1.25; text-align: center; color: #4F525C; pointer-events: none; }
.ca-lab .t { font-family: var(--font-mono); color: #8B8D97; }
.ca-lab--top { top: 0; }
.ca-lab--bottom { top: 58px; }
.ca-axis { position: relative; height: 14px; font-family: var(--font-mono); font-size: 10.5px; color: #B0B2BA; }
.ca-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ca-axis span.is-now { color: #111319; font-weight: 600; }
.ca-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.ca-hist-nav { display: flex; align-items: center; gap: 8px; }
.ca-period { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(17,19,25,0.10); background: #fff; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ca-sub-h { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #4F525C; }
.d-act-card.ca-act .d-figs { padding-bottom: 0; border-bottom: 0; }
.ca-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
@media (max-width: 600px) {
  .ca-today-head, .ca-hist-head { flex-direction: column; align-items: flex-start; }
  .ca-lab { display: none; }
  .ca-filter-row { overflow-x: auto; }
}


/* Overview, the daily edition (design "Overview Redesign", 2026-09-29). */
.ov-edition { gap: 22px; }
.ov-head .d-title { margin: 0; font-size: 20px; }
.ov-head .d-sub { margin-top: 3px; font-size: 13px; color: #4F525C; }
.ov-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid rgba(17,19,25,0.07); border-radius: 12px; box-shadow: 0 1px 2px rgba(17,19,25,0.04); overflow: hidden; }
.ov-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-left: 1px solid rgba(17,19,25,0.08); color: inherit; text-decoration: none; min-width: 0; }
.ov-tile:first-child { border-left: 0; }
a.ov-tile:hover { background: #FAFAFB; color: inherit; }
.ov-tile-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: #4E5BD6; }
.ov-tile-name > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.ov-tile-day { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: #8B8D97; white-space: nowrap; }
.ov-tile-name .icon { width: 12px; height: 12px; }
.ov-tile-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ov-tile-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.ov-tile-headline { font-size: 15px; font-weight: 600; color: #111319; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile.is-off .ov-tile-headline { color: #8B8D97; }
.ov-tile-short { font-size: 12px; color: #8B8D97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.ov-feed { display: flex; flex-direction: column; gap: 14px; }
.ov-feed-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ov-feed-head .d-h3 { margin: 0; font-size: 16px; }
.ov-feed-summary { font-size: 13px; color: #4F525C; }
.ov-feed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.ov-card { appearance: none; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
.ov-card:focus-visible { outline: 2px solid #4E5BD6; outline-offset: 3px; border-radius: 8px; }
.ov-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; border-radius: 8px; background: #1B1D24; overflow: hidden; }
.ov-thumb.d-skel { background: #F4F4F6; }
.ov-thumb .d-thumb-img, .ov-thumb .d-thumb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ov-kicker { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ov-card-text { font-size: 14px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.4; color: #111319; }
.ov-card-meta { font-size: 12px; color: #4F525C; }
.ov-card-meta .t { font-family: var(--font-mono); color: #8B8D97; }
.ov-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.ov-all .icon { width: 13px; height: 13px; }
.ov-first { background: #fff; border: 1px dashed rgba(17,19,25,0.16); border-radius: 12px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ov-first b { font-size: 16px; font-weight: 600; }
.ov-first span { font-size: 14px; color: #4F525C; max-width: 460px; }
.ov-error { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: #4F525C; }
@media (max-width: 900px) {
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-tile { border-left: 0; border-top: 1px solid rgba(17,19,25,0.08); }
  .ov-tile:nth-child(even) { border-left: 1px solid rgba(17,19,25,0.08); }
  .ov-tile:nth-child(-n+2) { border-top: 0; }
  .ov-tile:nth-child(5) { grid-column: span 2; }
  .ov-feed-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ov-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: start; }
  .ov-card .ov-thumb { grid-row: span 3; border-radius: 6px; }
}
