/* PA Book — Pinnacle design system (Apple-Store style):
   soft grey canvas, borderless white cards, black selected pills, Apple-blue
   actions, turquoise for "free / good". Light only, by design. */
:root {
  color-scheme: light;
  --ink: #1d1d1f; --muted: #6e6e73; --hint: #86868b;
  --canvas: #f5f5f7; --card: #ffffff; --line: #e8e8ed; --field-line: #d2d2d7; --head: #fbfbfd;
  --black: #1d1d1f;
  --blue: #0071e3; --blue-dark: #0062c4; --blue-soft: #e8f2fd;
  --teal: #00a8a8; --teal-dark: #007a7a; --teal-soft: #e0f5f4;
  --taken: #f0f0f3; --taken-ink: #b4b4ba;
  --ok: #007a7a; --ok-bg: #e0f5f4; --warn: #9a5b00; --warn-bg: #fff3dd; --bad: #d70015; --bad-bg: #fff0f0;
  --r-sm: 10px; --r: 18px; --r-lg: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 15px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
/* Design pass (Oct 10): an inline <svg> with no size of its own is 1em — never the full width of its box (the huge
   chevron on Settings → Emails and the teacher Conferences list was an unsized svg('chev') in a .link-list row).
   :where() keeps this at zero specificity, so every sized icon rule (.nav-item svg, .dur svg, …) still wins. */
:where(svg:not([width])) { width: 1em; height: 1em; flex: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
body.wide .wrap { max-width: 1480px; }

/* ── top bar ── */
.top { background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.brand b { font-weight: 600; font-size: 15px; }
.brand-sub { color: var(--muted); font-weight: 500; }
.brand-logo { width: 38px; height: auto; display: block; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--black); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .5px; }
.who { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.who button { font-size: 12px; padding: 4px 12px; }

main { padding: 28px 20px 80px; }
h1 { font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
h3 { font-size: 15px; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.loading { padding: 60px 0; color: var(--muted); text-align: center; }

/* ── surfaces ── */
.card { background: var(--card); border-radius: var(--r); padding: 22px; margin: 0 0 16px; }
.card.flush { padding: 6px 0 0; overflow: hidden; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--taken); color: var(--muted); line-height: 1.35; }
.pill.ok { background: var(--teal-soft); color: var(--teal-dark); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--blue-soft); color: var(--blue-dark); }

/* ── buttons: black/blue pills like the Apple Store ── */
button, .btn { font: inherit; font-size: 14px; font-weight: 500; letter-spacing: -.01em; border: 1px solid var(--blue); background: transparent; color: var(--blue); border-radius: 980px; padding: 7px 16px; cursor: pointer; display: inline-block; transition: background .15s, color .15s, border-color .15s; }
button:hover:not(:disabled), .btn:hover { background: var(--blue-soft); text-decoration: none; }
button.primary, .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
button.dark { background: var(--black); border-color: var(--black); color: #fff; }
button.dark:hover:not(:disabled) { background: #000; }
button.danger { color: var(--bad); border-color: var(--bad); }
button.danger:hover:not(:disabled) { background: var(--bad-bg); }
button.link { border-color: transparent; padding-left: 6px; padding-right: 6px; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0,113,227,.35); outline-offset: 1px; }

/* ── form controls ── */
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: var(--r-sm); padding: 7px 10px; }
input:hover, select:hover, textarea:hover { border-color: #a1a1a6; }
select { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input[type=checkbox] { accent-color: var(--blue); width: 17px; height: 17px; padding: 0; vertical-align: middle; }
input[type=search] { min-width: 230px; }
input.short { width: 76px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; align-items: start; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* The hidden attribute must win over display rules like .field's flex (2026-10-05:
   teacher From/To showed under "All day", so picked hours were silently dropped). */
[hidden] { display: none !important; }
.field .lbl { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input, .field textarea { width: 100%; }
.field textarea { resize: vertical; min-height: 44px; }
.hint-under { font-size: 12px; color: var(--hint); line-height: 1.35; }
.unsaved { color: var(--warn); font-weight: 600; }
@media (max-width: 860px) { .form-grid.cols-4, .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .form-grid.cols-4, .form-grid.cols-3 { grid-template-columns: 1fr; } }
.form-grid > label:not(.field) { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
fieldset.group { border: 0; border-radius: var(--r); padding: 18px 18px 20px; margin: 0 0 12px; background: var(--head); }
fieldset.group legend { font-weight: 700; font-size: 15px; padding: 0; float: left; width: 100%; margin-bottom: 2px; }
/* Design pass (Oct 10) root-cause fix: the legend floats (full width) so it sits inside the grey box; a grid / form
   right after it is a new formatting context and was laid out BESIDE the float in the 0 px left over — every field
   of "When" (My meetings → New meetings) and "Meetings" / "Booking rules" (My office hours) squeezed into a ~40 px
   column. Everything after the legend now starts below it. */
fieldset.group > legend ~ * { clear: both; }
.hint { margin: 0 0 12px; clear: both; }

/* switch (Attending) */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 24px; border-radius: 999px; background: #d2d2d7; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(0,113,227,.35); outline-offset: 2px; }
.switch em { font-style: normal; font-size: 13px; color: var(--muted); min-width: 22px; }

/* ── tabs: Apple segmented pills, black when selected ── */
.tabs { background: #e8e8ed; padding: 4px; border-radius: 980px; display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 22px; }
.tabs button { border: 0; background: transparent; color: var(--ink); padding: 8px 20px; font-size: 15px; }
.tabs button:hover:not(:disabled) { background: rgba(0,0,0,.05); }
.tabs button[aria-selected="true"] { background: var(--black); color: #fff; }

/* ── tables ── */
.table-wrap { overflow-x: auto; position: relative; }   /* relative: absolutely positioned bits inside (sr-only labels, switch inputs) stay inside the scroll box instead of widening the page */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; letter-spacing: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafafc; }
tr.is-sel td { background: var(--blue-soft) !important; }
tr.is-off td { opacity: .55; }
tr.is-off td:last-child { opacity: 1; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table th:first-child, table td:first-child { padding-left: 22px; }
table th:last-child, table td:last-child { padding-right: 22px; }

/* teachers toolbar */
.toolbar .bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue-soft); }
.toolbar .bulk.is-off { background: var(--head); opacity: .7; }

/* ── KPIs, bars, status ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.kpi .kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi b small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi .kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi .bar { margin-top: 6px; }
.bar { height: 6px; background: #ececf0; border-radius: 4px; overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.bar.over i { background: var(--bad); }
.statusbar { border-left: 6px solid var(--field-line); }
.statusbar.ok { border-left-color: var(--teal); }
.statusbar.warn { border-left-color: #f5a623; }
.issues li { margin-bottom: 4px; }

/* ── parent page ── */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 0 0 20px; }
.hero .sub { margin: 4px 0 0; }
.progress { min-width: 210px; font-size: 13px; color: var(--muted); background: var(--card); border-radius: var(--r); padding: 12px 16px; }
.progress b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.progress .bar { height: 8px; margin-top: 8px; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 14px; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 92px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule .when { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.schedule .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.schedule .acts button { font-size: 13px; padding: 5px 12px; }
.teacher-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.teacher-name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.dur { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; vertical-align: 3px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--canvas); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.dur svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-note { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }
.section-note b, b.ink { color: var(--ink); }
.teacher.is-booked { padding-top: 16px; padding-bottom: 16px; }
.teacher.is-booked .teacher-name { font-size: 16px; }
.slot-group { margin-top: 14px; }
.slot-group-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot { min-height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; padding: 0; }
.slot.free { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; cursor: pointer; }
.slot.free:hover { background: var(--teal); color: #fff; }
.slot.mine { background: #fff; border: 2px solid var(--teal); color: var(--teal-dark); font-weight: 700; }
.slot.taken, .slot.closed, .slot.clash { background: var(--taken); color: var(--taken-ink); cursor: not-allowed; }
.slot.taken { text-decoration: line-through; }
.change-bar { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }
.change-bar button { border-color: var(--warn); color: var(--warn); }
.foot { margin-top: 22px; }

/* bottom sheet */
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: grid; align-items: end; justify-items: center; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-box { background: var(--card); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 24px 20px 26px; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.choice button { display: grid; gap: 3px; justify-items: center; border-radius: 16px; border: 1px solid var(--field-line); color: var(--ink); padding: 16px 8px; font-weight: 600; }
.choice button .small { font-weight: 400; color: var(--muted); }
.choice button[aria-pressed="true"] { border: 2px solid var(--blue); background: var(--blue-soft); color: var(--blue); }
.choice button[aria-pressed="true"] .small { color: var(--blue); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 11px 18px; border-radius: 14px; z-index: 60; max-width: calc(100% - 32px); font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  main { padding-top: 18px; }
  .card { padding: 18px 16px; }
  .schedule li { grid-template-columns: 74px 1fr; }
  .tabs button { padding: 7px 14px; font-size: 14px; }
}
@media print {
  .top, .tabs, button, .no-print, .toolbar { display: none !important; }
  body { background: #fff; }
  .card { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.bulk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.toolbar .bulk { flex-direction: column; align-items: stretch; }
td.nowrap { white-space: nowrap; }
td select.time-sel { width: 112px; }
select.time-sel { font-variant-numeric: tabular-nums; min-width: 104px; }
.bulk-row select.time-sel { min-width: 96px; }
.sheet-box.wide-sheet { max-width: 760px; max-height: 86vh; overflow: auto; }
.conf-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conf-row button.small { font-size: 12px; padding: 4px 11px; }

.cal-link { margin-left: 6px; white-space: nowrap; }

.meetbar { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 10px; align-items: center; min-width: 220px; }
tr.total td { border-top: 2px solid var(--line); font-weight: 600; background: var(--head); }

/* progress by grade: one segmented bar per grade */
:root { --seg-done: #00a8a8; --seg-part: #7fd4d4; --seg-wait: #f5c26b; --seg-none: #e3e3e8; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grades { display: grid; gap: 2px; margin-top: 14px; }
button.grade-row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 110px 90px minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 10px; }
button.grade-row:hover { background: var(--head); }
button.grade-row:focus-visible { outline: 3px solid rgba(0,113,227,.35); }

.chev { display: inline-flex; width: 18px; color: var(--muted); }
.chev-ico, .x-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
[aria-expanded="true"] .chev-ico { transform: rotate(90deg); }
button.link .chev { width: 16px; vertical-align: -2px; }
.grade-row:last-child { border-bottom: 0; }
.g-name { font-weight: 600; }
.g-n, .g-meet { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-meet { text-align: right; }
.g-meet b { color: var(--ink); }
.segbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--seg-none); }
.segbar i { display: block; height: 100%; }
.seg-done { background: var(--seg-done); } .seg-part { background: var(--seg-part); } .seg-wait { background: var(--seg-wait); } .seg-none { background: var(--seg-none); }
@media (max-width: 640px) { .grade-row { grid-template-columns: 70px minmax(0, 1fr); } .g-n, .g-meet { grid-column: 2; text-align: left; } }

.drill { margin: 2px 0 10px 24px; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); display: grid; }
.t-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(80px, 1fr) 130px 130px; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.t-row:last-child { border-bottom: 0; }
.t-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; min-width: 0; }
.t-who .muted { flex-basis: 100%; }
.t-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.t-num b { color: var(--ink); }
.t-act { text-align: right; }
.t-missing { grid-column: 1 / -1; background: var(--head); border-radius: 10px; padding: 6px 12px; display: grid; }
.miss-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.miss-row:last-child { border-bottom: 0; }
.miss-row button.small { font-size: 12px; padding: 4px 11px; }
@media (max-width: 760px) { .t-row { grid-template-columns: minmax(0, 1fr) 110px; } .t-bar { display: none; } .t-act { grid-column: 1 / -1; text-align: left; } .drill { margin-left: 6px; } }

/* ── parent page v3: one tidy row per meeting ── */
.p-head { margin: 14px 0 22px; }
.p-head .sub { margin: 6px 0 0; }
.p-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.p-progress .bar { width: 200px; height: 6px; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.mtgs { list-style: none; margin: 0; padding: 0; }
.mtg { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mtg:last-child { border-bottom: 0; padding-bottom: 4px; }
.mtg-time { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.mtg-who { font-size: 16px; }
.mtg-who .muted { font-size: 14px; }
.mtg-facts { font-size: 14px; color: var(--muted); margin-top: 2px; }
.mtg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 8px; font-size: 14px; color: var(--hint); }
.mtg-acts button.link { padding: 2px 4px; font-size: 14px; }
.mtg-go { align-self: center; }
.mtg-go .btn { text-decoration: none; white-space: nowrap; }
.room-tag { display: inline-block; font-weight: 600; font-size: 14px; background: var(--teal-soft); color: var(--teal-dark); padding: 6px 12px; border-radius: 980px; white-space: nowrap; }
.all-set { color: var(--teal-dark); background: var(--teal-soft); border-radius: var(--r-sm); padding: 12px 14px; margin: 18px 0; font-size: 14px; }
.card.quiet { background: transparent; border: 1px solid var(--line); }
.other-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; }
.other-row .small:last-child { flex-basis: 100%; }
.p-foot { display: grid; gap: 2px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.cal-opt { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.cal-opt .primary { justify-self: start; }
.cal-links { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) {
  .mtg { grid-template-columns: 70px minmax(0, 1fr); }
  .mtg-go { grid-column: 2; margin-top: 8px; }
  .p-progress .bar { width: 120px; }
}

/* teacher day */
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t-chips > span { font-size: 13px; background: var(--card); border-radius: 980px; padding: 4px 12px; }
.mtg-parents { display: grid; gap: 2px; margin-top: 6px; font-size: 13px; color: var(--ink); }
.mtg.is-free { padding: 8px 0; }
.mtg-until { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.35; }
.mday-note { margin: 0 0 10px; }
.mtg.is-free .mtg-time { font-weight: 500; color: var(--muted); font-size: 15px; }
@media print { .mtg-go { display: none; } .t-chips > span { border: 1px solid #ccc; } }

/* class groups (Teachers tab sub-list + teacher's own card) */
button.t-name { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
button.t-name:focus-visible { outline: 3px solid rgba(0,113,227,.35); border-radius: 6px; }
.t-sub { margin-left: 18px; }
tr.sub-row td { background: var(--head) !important; padding-top: 0; }
.class-panel { padding: 6px 4px 10px; }
.cp-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cp-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 100px 90px auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.cp-row:last-of-type { border-bottom: 0; }
.cp-num { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.cp-row input:not(:checked) ~ .cp-name { color: var(--muted); text-decoration: line-through; }
.fit-ok { color: var(--teal-dark); font-weight: 600; }
.fit-bad { color: var(--warn); font-weight: 600; }
.pill.small { font-size: 11px; }
.class-panel.mine { padding: 0; }
@media (max-width: 640px) { .cp-row { grid-template-columns: 22px minmax(0, 1fr) 80px; } .cp-row > span:nth-child(4), .cp-row > span:nth-child(5) { display: none; } }

/* meeting records */
.rec-form textarea { width: 100%; }
.rec-block { margin: 0 0 14px; }
.rec-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rec-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 7px 13px; border-radius: 980px; border: 1px solid var(--field-line); font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--black); color: #fff; border-color: var(--black); }
.seg input:focus-visible + span { outline: 3px solid rgba(0,113,227,.35); }
.checks { display: grid; gap: 6px; font-size: 14px; }
.checks input[type=text], .checks input:not([type]) { margin-top: 2px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-pick span { display: inline-block; padding: 6px 12px; border-radius: 980px; background: var(--taken); font-size: 13px; cursor: pointer; }
.chips-pick input:checked + span { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--teal); }
.fu-box { display: grid; gap: 8px; margin-top: 6px; }
.fu-two { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.fu-done { margin-top: 10px; }
.fu-done summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .card { margin: 0 0 16px; }
.hbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.hbar .num { text-align: right; color: var(--muted); font-size: 13px; }
.hr { height: 1px; background: var(--line); margin: 8px 0; }
.fu-row { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.fu-row:last-child { border-bottom: 0; }
.note-card { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.note-card:last-child { border-bottom: 0; }
.note-topics { display: flex; flex-wrap: wrap; gap: 4px; }
.note-text { font-size: 14px; white-space: normal; }
.note-tr { margin: 6px 0 2px; padding: 8px 12px; border: 1px solid var(--line); background: var(--head); border-radius: var(--r-sm); display: grid; gap: 2px; }
.ai-out { background: var(--head); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .grid-2, .rec-two { grid-template-columns: 1fr; } .hbar { grid-template-columns: 100px minmax(0, 1fr) 80px; } }

/* ── /connect (Smart Grade ↔ Google Classroom) ── */
.connect-card { max-width: 560px; margin: 24px auto; }
.connect-card h1 { font-size: 28px; }
.connect-card .notice { margin-top: -6px; }

/* ── post-visit emails + message for the family (roadmap I, 2026-10-10) ── */
.notice.info-note { background: var(--blue-soft); color: var(--ink); }
.fm-help { margin: -2px 0 6px; }
.fm-count { text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fm-count.fm-over { color: var(--bad); font-weight: 600; }
.fm-prev { margin-top: 8px; }
.fm-prev-label { margin-bottom: 4px; }
.fm-mail { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.fm-card { margin-top: 6px; background: var(--canvas); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: grid; gap: 2px; }
.fm-note { border-left: 3px solid var(--blue); padding: 2px 0 2px 10px; display: grid; gap: 2px; }
.pv-frame { width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--canvas); }
.pv-list { max-height: 40vh; overflow: auto; border-top: 1px solid var(--line); }
.pv-li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
/* Cancel with a reason (roadmap G, 2026-10-10) */
.cx-err { color: var(--bad); margin: 0; min-height: 0; }
.cx-err:empty { display: none; }
.pv-frame.cx-frame { height: 46vh; }

/* ══ App shell: top bar + left menu (roadmap H1, 2026-10-10; PA-SIS docs/18) ══════════════
   Staff pages only (body.has-shell). Expanded 248 px · rail 72 px (icon + 11 px label) ·
   overlay drawer under 768 px. Teachers on phones get a bottom bar instead of the drawer.
   Selection = soft grey fill + bold ink (black pills stay for choices inside forms).
   Counts only for things that need action; red only when overdue. Parents: no menu. */
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 99; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.skip:focus { left: 8px; }
.top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
button.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); padding: 0; cursor: pointer; }
button.icon-btn:hover:not(:disabled) { background: #e8e8ed; }
.icon-btn svg, .nav-item svg, .bb-item svg, .sw-item svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root { --side: 248px; --rail: 72px; --sel: #e8e8ed; --late: #c62828; --late-bg: #ffebee; }

/* app switcher (Book · Feedback) */
.switcher { position: relative; }
button.sw-btn { border: 0; background: transparent; color: var(--muted); padding: 6px 8px; border-radius: 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
button.sw-btn:hover:not(:disabled) { background: var(--sel); }
.sw-menu { position: absolute; top: 44px; left: 0; width: 270px; background: var(--card); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 2px; z-index: 40; }
.sw-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; color: var(--ink); min-height: 44px; }
.sw-item:hover { background: var(--sel); text-decoration: none; }
.sw-item[aria-current="page"] { background: var(--sel); }
.sw-item b { display: block; font-size: 14px; }
.sw-item small { color: var(--muted); font-size: 12px; }

body.has-shell .top-row { max-width: none; padding: 0 16px 0 8px; }
body.has-shell .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 53px); }
body.has-shell.nav-rail .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
/* Oct 10 type pass: page and menu start at the same 12 px; the page title's line box is the menu row height
   (44 px), so "Home" in the menu and the page title sit on the same row. */
body.has-shell main#app { max-width: none; margin: 0; padding: 12px 28px 80px; min-width: 0; }
body.has-shell main#app:focus { outline: none; }
.page { max-width: 1200px; margin: 0 auto; }
.page.wide-page { max-width: none; }
.side { position: sticky; top: 53px; height: calc(100vh - 53px); overflow-y: auto; padding: 12px 10px 24px; border-right: 1px solid var(--line); background: var(--canvas); }
.nav-group { margin-top: 14px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 4px; }   /* group headings (Oct 10 type pass) */
a.nav-item, button.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; font-weight: 400; color: var(--ink); text-decoration: none; letter-spacing: -.01em; cursor: pointer; }
a.nav-item:hover, button.nav-item:hover:not(:disabled) { background: var(--sel); text-decoration: none; }
/* Selected = soft grey + bold ink (Oct 11 final: black pill tried, too heavy for the eye; same rule in Feedback).
   Black stays for choices on the page (filter chips, selected tabs). */
a.nav-item, button.nav-item { border-radius: 12px; }
.nav-item[aria-current="page"], .nav-item.has-current,
a.nav-item[aria-current="page"]:hover, a.nav-item.has-current:hover { background: var(--sel); color: var(--ink); font-weight: 600; }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .sub { color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-divider { border: 0; border-top: 1px solid var(--line); margin: 14px 10px; }
.nav-badge { font-size: 12px; font-weight: 600; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--taken); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.nav-badge.late { background: var(--late-bg); color: var(--late); }
.nav-dot { display: none; }
/* H11: no sub-items or expandable items in the menu (the menu holds places; conferences are opened from the Conferences list) */
/* rail: icon + short label, no groups / numbers (a dot when overdue) */
body.nav-rail .side { padding-inline: 6px; }
body.nav-rail a.nav-item { flex-direction: column; gap: 3px; min-height: 56px; padding: 8px 2px; justify-content: center; position: relative; }
body.nav-rail .nav-item .label { font-size: 11px; font-weight: 500; text-align: center; white-space: normal; line-height: 1.15; flex: none; }
body.nav-rail .nav-badge { display: none; }
body.nav-rail .nav-item[aria-current="page"] .label, body.nav-rail .nav-item.has-current .label { font-weight: 600; }
body.nav-rail .nav-dot { display: block; position: absolute; top: 8px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--late); }
.scrim[hidden] { display: none; }

/* page header: title left, the page's actions top-right (actions never live in the menu) */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 4px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip { border: 1px solid var(--field-line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 13px; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.chip:hover:not(:disabled) { background: var(--head); }
.chip[aria-pressed="true"]:hover:not(:disabled) { background: #000; }
.fu-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.fu-item:first-child { border-top: 0; }
.fu-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fu-acts button { font-size: 13px; padding: 5px 12px; }
.fu-text { font-size: 14px; }
.fu-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pill.late { background: var(--late-bg); color: var(--late); }
.pill.src { background: transparent; border: 1px solid var(--line); }
.hist { margin-top: 6px; }
.hist summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.hist ol { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.coming { text-align: center; padding: 48px 16px; }
.coming h1 { font-size: 30px; }
.sg-banner { border-left: 4px solid var(--bad); }
.case-card { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.case-card:first-child { border-top: 0; }
.case-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.case-detail { margin-top: 8px; background: var(--head); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 12px; }
.case-note { background: var(--card); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.code-box { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--head); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; white-space: pre-wrap; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 16px; }
.link-list { display: grid; gap: 2px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); background: var(--card); }
.link-list a:hover { background: var(--sel); text-decoration: none; }

/* ── Staff type scale (Oct 10, body.has-shell only — the parent page keeps its own sizes) ──
   12 caption · 13 small / menu sub-items · 14 body / menu items · 16 lead · 20 section title · 28 page title.
   Body 14 px (was 15): the menu, tables, buttons, fields and notices were already 14 px, so staff text now has
   one size instead of 15 / 14 / 13.5. */
body.has-shell { font-size: 14px; }
/* H8 review: a fixed 44 px line-height spread wrapped titles apart — the first line is aligned with the menu row by
   padding instead (line box 34 px + 5 px above and below = 44 px), and a second line sits 34 px below it */
body.has-shell main#app h1 { font-size: 28px; line-height: 34px; padding: 5px 0; letter-spacing: -.02em; }
body.has-shell main#app .crumbs + .page-head h1 { padding: 0; }
body.has-shell main#app h2, body.has-shell .section-title { font-size: 20px; }
body.has-shell main#app .sub { font-size: 16px; }
body.has-shell .tabs button, body.has-shell .tabs .tab-link { font-size: 14px; }
body.has-shell .kpi .kpi-sub, body.has-shell .legend, body.has-shell .hist summary, body.has-shell .hist ol { font-size: 13px; }
.tabs .tab-link { display: inline-block; padding: 8px 20px; border-radius: 980px; color: var(--ink); }
.tabs .tab-link:hover { background: rgba(0,0,0,.05); text-decoration: none; }
.tabs .tab-link[aria-selected="true"], .tabs .tab-link[aria-current="page"] { background: var(--black); color: #fff; }
body.has-shell .section-title { font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }   /* H8 review: staff pages only — the parent page's own .section-title margins stay */
.list-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 6px; }
details.arch { margin-top: 16px; }
details.arch > summary { cursor: pointer; margin: 0 0 6px; }
/* Home: today's attention list */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 8px; align-items: start; }
.home-card { margin: 0; }
.home-card.late { box-shadow: inset 4px 0 0 var(--late); }
.home-card.warn { box-shadow: inset 4px 0 0 var(--warn); }
.home-card.bad { box-shadow: inset 4px 0 0 var(--bad); }
.home-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.home-card-head .section-title { margin: 0; }
.home-n { font-variant-numeric: tabular-nums; }
.home-n.late { color: var(--late); }
.home-list { list-style: none; margin: 4px 0 0; padding: 0; }
.home-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.home-list li:first-child { border-top: 0; }
.home-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.home-link { font-size: 13px; font-weight: 500; white-space: nowrap; }
.home-foot { margin: 6px 0 0; }
.home-stat { margin: 4px 0 6px; font-size: 16px; }
.home-sub { margin: 24px 0 12px; }

/* bottom bar (teachers on phones) */
.bottombar { display: none; }
@media (max-width: 767px) {
  body.has-shell .shell, body.has-shell.nav-rail .shell { grid-template-columns: minmax(0, 1fr); }
  body.has-shell main#app { padding: 18px 16px 90px; }
  body.has-shell main#app h1 { font-size: 24px; line-height: 1.2; padding: 0; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 53px; left: 0; bottom: 0; height: auto; width: 280px; z-index: 35; background: var(--card); transform: translateX(-100%); transition: transform .2s ease; border-right: 0; box-shadow: 0 0 40px rgba(0,0,0,.2); visibility: hidden; }
  body.nav-open .side { transform: none; visibility: visible; }
  body.nav-open .scrim { display: block; position: fixed; inset: 53px 0 0 0; background: rgba(0,0,0,.28); z-index: 34; }
  /* the drawer always shows the full menu (no rail on phones) */
  body.nav-rail a.nav-item { flex-direction: row; min-height: 44px; padding: 8px 10px; justify-content: flex-start; }
  body.nav-rail .nav-item .label { font-size: 14px; text-align: left; white-space: nowrap; flex: 1; }
  body.nav-rail .nav-badge { display: inline-block; }
  body.nav-rail .nav-dot { display: none; }
  body.has-shell .brand-sub { display: none; }   /* staff pages only: the parent page is unchanged */
  /* teachers: bottom bar instead of the drawer */
  body.role-teacher .side, body.role-teacher .nav-toggle, body.role-teacher .scrim { display: none !important; }
  body.role-teacher .bottombar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bb-item { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 6px 0; min-height: 52px; position: relative; text-decoration: none; }
  .bb-item:hover { text-decoration: none; }
  .bb-item[aria-current="page"] { color: var(--blue); font-weight: 600; }
  .bb-item .nav-badge { position: absolute; top: 2px; left: 55%; font-size: 10px; min-width: 18px; padding: 0 5px; }
  .fu-item { grid-template-columns: minmax(0, 1fr); }
  .fu-acts { justify-content: flex-start; }
}
@media print { .side, .bottombar, .scrim, .skip, .nav-toggle { display: none !important; } body.has-shell .shell { display: block; } body.has-shell main#app { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media (max-width: 767px) { body.has-shell .who-email { display: none; } body.has-shell .brand-logo { width: 30px; } }
/* Roadmap D data points (2026-10-10): interpreter + "what would you like to discuss?" */
.opt-q { margin: 14px 0 0; display: grid; gap: 6px; }
.opt-q textarea { width: 100%; box-sizing: border-box; }
.opt-q .in-lang { gap: 8px; flex-wrap: wrap; }
.opt-q .in-lang input { flex: 1 1 160px; min-width: 0; }
.mtg-note { margin-top: 4px; overflow-wrap: anywhere; }
.pn-card { background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.note-card .pn-card { margin: 6px 0; }
.interp-line { overflow-wrap: anywhere; }

/* Roadmap A — My meetings (Oct 10): date headings on a multi-date day, form layout */
.mtgs .mtg-day { list-style: none; padding: 12px 0 4px; border: 0; font-size: 13px; color: var(--ink, #1d1d1f); }
.form-grid .span-3 { grid-column: span 3; }
@media (max-width: 860px) { .form-grid .span-3 { grid-column: 1 / -1; } }
#rdates .pill { margin: 0 4px 4px 0; }
/* Roadmap E — office hours (Oct 10): parent sign-in bar, weekly editor */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.oh-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: flex-end; color: var(--muted); margin: 0 0 6px; }
.oh-intro { background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 16px; font-size: 15px; white-space: pre-line; }
.slot.full { background: var(--taken); color: var(--taken-ink); cursor: not-allowed; text-decoration: line-through; }
.oh-day { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.oh-day:last-child { border-bottom: 0; }
.oh-blocks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oh-block { display: inline-flex; gap: 6px; align-items: center; background: var(--head); border-radius: 10px; padding: 4px 6px; }
.oh-block .time-sel { min-width: 104px; }
#ohoffs .pill { margin: 0 4px 4px 0; }
@media (max-width: 600px) { .oh-day { grid-template-columns: 1fr; } .oh-block .time-sel { min-width: 92px; } }

/* Roadmap C1 (Oct 10): "View as teacher" — read-only, clearly marked on every page */
.viewas-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 9px 16px; background: var(--warn-bg); color: var(--warn); font-size: 14px; border-bottom: 1px solid #f0d9ae; }
.viewas-bar svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.viewas-bar .btn { color: var(--warn); border-color: var(--warn); }
/* C6: one line per conference on Teachers & rooms (break menu beside it) */
.pc-row { padding: 2px 0; }
/* Oct 10 People redesign (Teachers & rooms, Families): compact one-line rows (~48 px), click for details */
.pp-table td { height: 48px; padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.pp-table .pp-main { max-width: 0; width: 46%; }
button.pp-open { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; border: 0; background: transparent; color: var(--ink); padding: 0; border-radius: 8px; text-align: left; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
button.pp-open:hover:not(:disabled) { background: transparent; color: var(--blue); }
button.pp-open .chev-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
button.pp-open[aria-expanded="true"] .chev-ico { transform: rotate(90deg); }
button.pp-open b, button.pp-open span { overflow: hidden; text-overflow: ellipsis; }
button.pp-open b { flex: none; max-width: 70%; }
button.pp-open span { min-width: 0; }
.pp-ell { max-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-row.is-open td { border-bottom-color: transparent; }
.pp-drow > td { padding: 0 12px 14px 32px; background: var(--card); }
.pp-detail { max-width: 760px; }
@media (max-width: 767px) { .pp-table .pp-main { width: auto; max-width: 52vw; } .pp-table th:nth-child(2), .pp-table td:nth-child(2) { display: none; } .pp-drow > td { padding-left: 8px; } }

/* Select arrow guard (Oct 10): a later "padding: …" shorthand on a select (e.g. the old .pc-row rule) dropped the
   28 px room for the arrow and the arrow overlapped the text ("min"). This keeps it for every single select. */
select:not([multiple]):not([size]) { padding-right: 28px; }

/* ══ Layout guard (My day redesign, Oct 10): staff pages sit next to the menu, never centred far to its right on a wide
   screen; nothing in a page may push it wider than the screen (KPI tiles, chips, long emails) — with or without the
   View-as banner. ══ */
body.has-shell .page { margin-left: 0; margin-right: auto; min-width: 0; }
body.has-shell .page > * { min-width: 0; max-width: 100%; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.t-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.t-chips > span { max-width: 100%; overflow-wrap: anywhere; }
.mtg-parents span, .ag-contacts li { overflow-wrap: anywhere; }

/* ══ My day — the teacher's agenda (Oct 10, DESIGN §25). Calm and dense: no hero, no KPI tiles (those are on the
   conference page). Source colour tokens: conference = blue, own meetings (rounds) = teal, office hours = violet. ══ */
:root { --src-conference: #0071e3; --src-conference-bg: #e8f2fd; --src-round: #007a7a; --src-round-bg: #e0f5f4; --src-officehours: #6e3fc7; --src-officehours-bg: #f1ebfc; --clash: #9a5b00; --clash-bg: #fff3dd; }
.ag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ag-bar .chip { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.ag-bar .chip[aria-current] { background: var(--black); color: #fff; border-color: var(--black); }
.ag-step { display: inline-flex; align-items: center; gap: 2px; }
.ag-step .icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink); }
.ag-step .icon-btn:hover { background: var(--sel); text-decoration: none; }
.ag-step .icon-btn:first-child svg { transform: rotate(180deg); }
.ag-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-cur { font-weight: 600; min-width: 0; padding: 0 4px; }
.ag-pick input { min-height: 36px; padding: 4px 8px; font-size: 13px; }
.ag-seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 999px; overflow: hidden; margin-left: auto; }
.ag-seg a { padding: 7px 14px; font-size: 13px; color: var(--ink); min-height: 36px; display: inline-flex; align-items: center; }
.ag-seg a:hover { background: var(--head); text-decoration: none; }
.ag-seg a[aria-current] { background: var(--black); color: #fff; }
.ag-needs { background: var(--card); border-radius: var(--r); padding: 10px 18px 6px; margin: 0 0 16px; box-shadow: inset 4px 0 0 var(--warn); }
body.has-shell main#app h2.list-head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }   /* group labels: 11 px uppercase (H8 type scale) */
.ag-needs .list-head { margin: 4px 0 2px; }
.ag-needs > ul { list-style: none; margin: 0; padding: 0; }
.ag-needs > ul > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ag-needs > ul > li:first-child { border-top: 0; }
.ag-needs > ul > li > span { flex: 1 1 260px; min-width: 0; }
.ag-more summary { cursor: pointer; color: var(--blue); font-size: 13px; margin-top: 2px; }
.ag-more ul { list-style: none; margin: 4px 0 0; padding: 0; }
.ag-more li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; }
b.late, .late { color: var(--late); }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .ag-grid:not(.is-week) { grid-template-columns: minmax(0, 1fr) 300px; } .ag-grid.is-week .ag-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .ag-grid.is-week .ag-side .card { margin: 0; } }
.ag-main { background: var(--card); border-radius: var(--r); padding: 6px 20px 10px; min-width: 0; }
.ag-list { list-style: none; margin: 0; padding: 0; }
.ag-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 0 12px 10px; border-top: 1px solid var(--line); position: relative; }
.ag-list > li:first-child { border-top: 0; }
.ag-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--src-conference); }
.ag-row.src-round::before { background: var(--src-round); }
.ag-row.src-officehours::before { background: var(--src-officehours); }
.ag-row.is-next { background: linear-gradient(90deg, var(--blue-soft), transparent 60%); border-radius: 10px; }
.ag-row.is-clash { box-shadow: inset 0 0 0 1px #f0d9ae; border-radius: 10px; }
.ag-row.st-cancelled { opacity: .62; }
.ag-row.st-cancelled .ag-who b { text-decoration: line-through; }
.ag-time { font-variant-numeric: tabular-nums; display: grid; align-content: start; }
.ag-time b { font-size: 15px; }
.ag-time span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ag-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.src-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; color: var(--src-conference); background: var(--src-conference-bg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-tag.src-round { color: var(--src-round); background: var(--src-round-bg); }
.src-tag.src-officehours { color: var(--src-officehours); background: var(--src-officehours-bg); }
.ag-next-tag { font-size: 11px; font-weight: 600; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .06em; }
.ag-who { font-size: 15px; }
.ag-who .muted { font-size: 13px; }
.ag-facts { font-size: 13px; color: var(--muted); }
.ag-warn { margin-top: 4px; font-size: 13px; color: var(--clash); background: var(--clash-bg); border-radius: 8px; padding: 4px 8px; display: flex; gap: 6px; align-items: flex-start; }
.ag-warn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; margin-top: 2px; }
.ag-hint { margin-top: 3px; font-size: 13px; color: var(--muted); }
.ag-contacts { margin-top: 4px; font-size: 13px; }
.ag-contacts summary { cursor: pointer; color: var(--ink); list-style-position: inside; min-height: 28px; display: list-item; }
.ag-contacts ul { margin: 4px 0 0; padding-left: 16px; display: grid; gap: 2px; }
.ag-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-content: start; }
.ag-act .btn { text-decoration: none; white-space: nowrap; }
.ag-act button, .ag-act .btn { font-size: 13px; padding: 5px 12px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.ag-gap { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 6px 0 6px 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.ag-gap .ag-time span { font-size: 13px; }
.ag-now { position: relative; height: 0; border: 0; margin: 2px 0; list-style: none; }
.ag-now::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px solid var(--bad); }
.ag-now span { position: absolute; left: 0; top: -9px; background: var(--card); color: var(--bad); font-size: 11px; font-weight: 600; padding: 0 6px 0 0; }
.ag-free { padding: 10px 0 6px 10px; border-top: 1px solid var(--line); }
.ag-free-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ag-free-times span { font-size: 12px; font-variant-numeric: tabular-nums; background: var(--head); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--muted); }
.ag-empty { padding: 26px 4px 18px; text-align: center; }
.ag-empty-t { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.ag-next-link { font-weight: 500; }
.ag-side { min-width: 0; }
.ag-card { padding: 14px 16px; }
.ag-card .list-head { margin: 0 0 6px; }
.ag-days { list-style: none; margin: 0; padding: 0; }
.ag-days a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); font-size: 13px; min-height: 32px; align-items: center; }
.ag-days a:hover { background: var(--sel); text-decoration: none; }
.ag-days a[aria-current] { background: var(--sel); font-weight: 600; }
.ag-cnt { font-variant-numeric: tabular-nums; }
.ag-conf { display: grid; gap: 2px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); }
.ag-conf + .ag-conf { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.ag-conf:hover { background: var(--sel); text-decoration: none; }
.ag-conf-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ag-gapline { color: var(--warn); }
.ag-oh { margin: 0 0 6px; }
b.ink { color: var(--ink); }
/* week: 7 columns on a computer, a grouped list on a phone */
.ag-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.ag-wday { border-left: 1px solid var(--line); padding: 6px 6px 10px; min-width: 0; }
.ag-wday:first-child { border-left: 0; }
.ag-wday.is-today .ag-wday-head b { background: var(--bad); color: #fff; border-radius: 999px; padding: 0 7px; }
.ag-wday-head { display: flex; gap: 6px; align-items: baseline; color: var(--ink); padding: 4px 4px 8px; border-radius: 8px; }
.ag-wday-head span:first-child { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ag-wday-head:hover { background: var(--sel); text-decoration: none; }
.ag-wn { margin-left: auto; font-size: 12px; color: var(--muted); }
.ag-wday ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ag-wi a { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; color: var(--ink); background: var(--src-conference-bg); border-left: 3px solid var(--src-conference); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-wi.src-round a { background: var(--src-round-bg); border-left-color: var(--src-round); }
.ag-wi.src-officehours a { background: var(--src-officehours-bg); border-left-color: var(--src-officehours); }
.ag-wi.st-cancelled a { opacity: .55; text-decoration: line-through; }
.ag-wi.is-clash a { box-shadow: inset 0 0 0 1px var(--clash); }
.ag-wt { font-variant-numeric: tabular-nums; color: var(--muted); }
.ag-wnone, .ag-wfree { font-size: 12px; color: var(--hint); margin: 4px; }
@media (max-width: 1099px) { .ag-week { grid-template-columns: minmax(0, 1fr); } .ag-wday { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px; } .ag-wday:first-child { border-top: 0; } .ag-wday .ag-wnone, .ag-wday .ag-wfree { grid-column: 2; } .ag-wi a { white-space: normal; } }
@media (max-width: 767px) {
  .ag-main { padding: 4px 12px 8px; }
  .ag-row { grid-template-columns: 64px minmax(0, 1fr); padding-left: 8px; }
  .ag-act { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .ag-gap { grid-template-columns: 64px minmax(0, 1fr); }
  .ag-seg { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ag-row, .ag-days a, .ag-conf { transition: none; } }
@media print { .ag-side, .ag-needs, .ag-bar { display: none; } .ag-grid { display: block; } }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   DESIGN PASS (Oct 10, product owner: "Home not professional, headings too big, Notes & AI super heavy, teacher
   pages broken"). Staff shell only (body.has-shell) — the parent booking page keeps every size it had.
   Type scale: page title 24/700 (phone 22) · card / section title 16/600 · sub-section label 12 uppercase muted ·
   body 14 · small 13 · caption 12 · KPI number 24. Nothing else is larger than 16 px. Red only for overdue /
   critical states. Components: card padding 20 · buttons 32 px (small 28) · one segmented tab style · chips 30 px.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */
body.has-shell main#app h1 { font-size: 24px; line-height: 30px; padding: 7px 0; font-weight: 700; letter-spacing: -.02em; }
body.has-shell main#app h1 .pill { font-size: 12px; vertical-align: 4px; letter-spacing: 0; font-weight: 500; }
body.has-shell main#app h2, body.has-shell .section-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
body.has-shell main#app h3 { font-size: 14px; font-weight: 600; }
body.has-shell main#app .sub { font-size: 14px; color: var(--muted); max-width: 90ch; }
body.has-shell main#app .page-head .sub { margin: 2px 0 0; }
body.has-shell main#app h2.list-head, body.has-shell .list-head { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body.has-shell .page-head { align-items: center; margin-bottom: 16px; }
body.has-shell .page-head > .row { flex-wrap: wrap; justify-content: flex-end; }
body.has-shell .card { padding: 20px; border-radius: 14px; }
body.has-shell .card.flush { padding: 6px 0 0; }
body.has-shell .card-head { margin-bottom: 10px; }
body.has-shell .card-head h2, body.has-shell .card h2 { margin: 0 0 8px; }
body.has-shell .card-head h2 { margin: 0; }
body.has-shell fieldset.group { border-radius: 12px; padding: 16px 16px 18px; }
body.has-shell fieldset.group legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
body.has-shell .kpis { gap: 10px; }
body.has-shell .kpi { padding: 12px 16px; border-radius: 12px; gap: 2px; }
body.has-shell .kpi .kpi-label { font-size: 12px; }
body.has-shell .kpi b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
body.has-shell .kpi b small { font-size: 14px; }
body.has-shell .kpi .kpi-sub { font-size: 12px; }
body.has-shell .notice { padding: 10px 12px; border-radius: 10px; }
body.has-shell .mtg-time { font-size: 15px; }
body.has-shell .mtg-who { font-size: 15px; }
body.has-shell .mtg-who .muted, body.has-shell .mtg-facts { font-size: 13px; }
body.has-shell .ag-who { font-size: 14px; }
body.has-shell .ag-time b { font-size: 14px; }
body.has-shell .coming h1 { font-size: 24px; }
/* buttons: 32 px, small 28 px (staff pages) */
body.has-shell main#app button, body.has-shell main#app .btn, body.has-shell .sheet button, body.has-shell .sheet .btn { min-height: 32px; padding: 5px 14px; font-size: 14px; line-height: 20px; }
body.has-shell main#app button.small, body.has-shell main#app .btn.small, body.has-shell main#app .small > button, body.has-shell .sheet button.small { min-height: 28px; padding: 3px 12px; font-size: 13px; line-height: 20px; }
body.has-shell main#app button.link, body.has-shell .sheet button.link { min-height: 0; padding: 2px 6px; }
body.has-shell main#app button.pp-open, body.has-shell main#app button.grade-row, body.has-shell main#app button.t-name { min-height: 0; padding: 0; line-height: inherit; }
body.has-shell main#app button.grade-row { padding: 11px 8px; }
body.has-shell main#app .chip, body.has-shell main#app button.chip { min-height: 30px; padding: 4px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
body.has-shell main#app a.chip { color: var(--ink); text-decoration: none; }
body.has-shell main#app a.chip:hover { background: var(--head); }
body.has-shell main#app .chip[aria-current], body.has-shell main#app a.chip[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
body.has-shell main#app input, body.has-shell main#app select, body.has-shell .sheet input, body.has-shell .sheet select { padding-top: 5px; padding-bottom: 5px; min-height: 32px; }
body.has-shell main#app input[type=checkbox], body.has-shell main#app input[type=radio] { min-height: 0; padding: 0; }
body.has-shell main#app input[type=search] { min-width: 200px; }
/* one tab style: segmented (Settings, conference, office hours, insights, teacher conference page) */
body.has-shell .tabs { background: #ebebef; padding: 3px; border-radius: 10px; gap: 2px; margin: 0 0 16px; }
body.has-shell main#app .tabs button, body.has-shell .tabs .tab-link { min-height: 30px; padding: 5px 14px; font-size: 13px; font-weight: 500; border-radius: 8px; color: var(--ink); line-height: 20px; border: 0; }
body.has-shell main#app .tabs button[aria-selected="true"], body.has-shell .tabs .tab-link[aria-current="page"], body.has-shell .tabs .tab-link[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); font-weight: 600; }
body.has-shell main#app .tabs button:hover:not(:disabled):not([aria-selected="true"]), body.has-shell .tabs .tab-link:hover:not([aria-current]) { background: rgba(0,0,0,.05); }
/* tables */
body.has-shell table { font-size: 14px; }
body.has-shell th, body.has-shell td { padding: 9px 10px; }
body.has-shell table th:first-child, body.has-shell table td:first-child { padding-left: 20px; }
body.has-shell table th:last-child, body.has-shell table td:last-child { padding-right: 20px; }
body.has-shell .card table th:first-child, body.has-shell .card table td:first-child { padding-left: 4px; }
body.has-shell .card table th:last-child, body.has-shell .card table td:last-child { padding-right: 4px; }
body.has-shell .card.flush table th:first-child, body.has-shell .card.flush table td:first-child { padding-left: 20px; }
body.has-shell .card.flush table th:last-child, body.has-shell .card.flush table td:last-child { padding-right: 20px; }
/* empty states: one line, muted */
.empty { color: var(--muted); font-size: 14px; margin: 0; }
/* top bar never clips the signed-in person / Sign out (defect: "sysad…" and Sign out hidden on wide admin pages) */
.top-row { min-width: 0; }
.top-left { flex: 1 1 auto; min-width: 0; }
.brand { min-width: 0; }
.brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { flex: none; max-width: 60%; }
.who-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
body.has-shell .who button { min-height: 30px; }
/* .link-list rows: a small muted chevron at the right */
.link-list a svg { width: 16px; vertical-align: -3px; height: 16px; color: var(--hint); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* text actions: quiet links in a row of actions (Due date · Reassign · Not needed) */
.qa { display: inline-flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
body.has-shell main#app button.qlink { border: 0; background: transparent; color: var(--blue); padding: 2px 6px; min-height: 28px; font-size: 13px; font-weight: 500; border-radius: 6px; }
body.has-shell main#app button.qlink:hover:not(:disabled) { background: var(--blue-soft); }
body.has-shell main#app button.qlink.danger, body.has-shell main#app a.qlink.danger { color: var(--bad); }
body.has-shell main#app button.qlink.danger:hover:not(:disabled) { background: var(--bad-bg); }
a.qlink { font-size: 13px; font-weight: 500; padding: 2px 6px; }
/* clamp long notes to 3 lines with "more" */
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3.is-open { display: block; -webkit-line-clamp: unset; }
button.more-btn { border: 0; background: none; color: var(--blue); padding: 0 2px; font-size: 13px; min-height: 0 !important; }

/* ── Home (redesign): KPI strip · Needs attention list · Live conferences table · Office hours row ── */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 0 0 16px; }
a.stat { display: grid; gap: 2px; background: var(--card); border-radius: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.stat:hover { border-color: var(--line); text-decoration: none; }
a.stat .stat-n { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
a.stat .stat-l { font-size: 12px; font-weight: 600; color: var(--muted); }
a.stat.is-late .stat-n { color: var(--late); }
a.stat.is-zero .stat-n { color: var(--hint); }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-list > li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.att-list > li:first-child { border-top: 0; padding-top: 2px; }
.att-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hint); }
.att-dot.late { background: var(--late); } .att-dot.warn { background: #e0a100; } .att-dot.info { background: var(--blue); } .att-dot.ok { background: var(--teal); }
.att-text { min-width: 0; overflow-wrap: anywhere; }
.att-text .muted { font-size: 13px; }
.att-go { font-size: 13px; font-weight: 500; white-space: nowrap; }
.all-clear { display: flex; gap: 10px; align-items: center; color: var(--muted); margin: 0; }
.all-clear .att-dot { background: var(--teal); }
.home-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lc-table td, .lc-table th { white-space: nowrap; }
.lc-table td.lc-name { white-space: normal; min-width: 180px; }
.lc-table .bar { width: 64px; display: inline-block; vertical-align: middle; margin-left: 6px; min-width: 0; }
.oh-line { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }

/* ── Conferences list (redesign): one row style, small buttons, title is the link ── */
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cl-row:first-of-type { border-top: 0; }
.cl-title { font-weight: 600; color: var(--ink); }
.cl-title:hover { color: var(--blue); }
.cl-meta { font-size: 13px; color: var(--muted); }
.cl-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.cl-hint { font-size: 12px; color: var(--warn); }
@media (max-width: 767px) { .cl-row { grid-template-columns: minmax(0, 1fr); } .cl-acts { justify-content: flex-start; } }

/* ── Room clashes: one line per room, pairs behind a disclosure ── */
.rc-list { list-style: none; margin: 0; padding: 0; }
.rc-list > li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rc-list > li:first-child { border-top: 0; }
.rc-list details summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.rc-list details ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }

/* ── Follow-up rows: one primary action, the rest quiet ── */
.fu-item { padding: 12px 0; }
.fu-acts { align-items: center; }

/* ── Insights (Notes & AI summary) ── */
.scope-bar { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; }
.scope-bar select { max-width: 200px; font-size: 13px; }
.scope-bar .scope-sep { width: 1px; height: 20px; background: var(--field-line); margin: 0 4px; }
.scope-chip-x { font-size: 12px; color: var(--muted); }
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1180px) { .ins-grid.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.ins-grid > .card { margin: 0; }
.topic-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.topic-bars button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.topic-bars button:hover { background: var(--head); }
.topic-bars button:focus-visible { outline: 3px solid rgba(0,113,227,.35); }
.topic-bars .num { text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ai-sec { margin: 0 0 12px; }
.ai-sec h3 { margin: 0 0 4px; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ai-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ai-sec li { line-height: 1.5; }
.ai-sec q { color: var(--muted); font-style: italic; }
.ai-cover { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
/* Teacher AI (DESIGN §26): quiet tools under a field, one preview panel per result, always labelled */
.ai-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ai-tools button.small, .ai-act button.small { font-size: 13px; padding: 5px 12px; }
.ai-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ai-prev { margin-top: 10px; background: var(--head); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.ai-prev .ai-tag { margin: 0; }
.ai-prev textarea { width: 100%; box-sizing: border-box; }
.ai-text { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.ai-opt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink); }
.ai-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-done { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); }
.ai-prev .ai-cover { margin-top: 0; }
.ins-note { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.ins-note:first-child { border-top: 0; }
.ins-note-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.ins-note-head .muted { font-size: 13px; }
.ins-note-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ins-group { margin: 0 0 14px; }
.ins-group > h3 { margin: 0 0 4px !important; }
.sortable th button { all: unset; cursor: pointer; }
.sortable th button:focus-visible { outline: 3px solid rgba(0,113,227,.35); }
tr.rowlink { cursor: pointer; }
.nm-list { list-style: none; margin: 0; padding: 0; }
.nm-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.nm-list li:first-child { border-top: 0; }

/* ── Teacher conference page tabs + cross-source notes ── */
.src-chip-row { margin-bottom: 12px; }
@media (max-width: 767px) {
  body.has-shell main#app h1 { font-size: 22px; line-height: 28px; padding: 0; }
  body.has-shell .card { padding: 16px; }
  .who { max-width: 70%; }
  .scope-bar select { max-width: 46%; }
  .topic-bars button { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) 36px; }
}
a.kpi { color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.kpi:hover { border-color: var(--field-line); text-decoration: none; }
/* a card that is itself the scroll box of a wide table (conference Teachers): scroll, never clip the last columns */
.card.table-wrap, .card.flush.table-wrap { overflow-x: auto; }
table.tt td:nth-child(2) { min-width: 170px; }
.filters select, .filters input[type=search] { max-width: 100%; }
@media (max-width: 640px) { button.grade-row { grid-template-columns: 70px minmax(0, 1fr); } }
@media (max-width: 767px) { .pp-teachers th:nth-child(4), .pp-teachers td:nth-child(4) { display: none; } }
.link-list a { border-bottom: 1px solid var(--line); border-radius: 0; } .link-list a:last-child { border-bottom: 0; } .link-list { background: var(--card); border-radius: 12px; padding: 4px 8px; } .card .link-list { padding: 0; }
.home-two > .card { margin: 0; }
@media (max-width: 767px) {
  .att-list > li { grid-template-columns: 10px minmax(0, 1fr); }
  .att-list > li .att-dot { align-self: start; margin-top: 7px; }
  .att-go { grid-column: 2; }
  .lc-table th:nth-child(3), .lc-table td:nth-child(3), .lc-table th:nth-child(5), .lc-table td:nth-child(5) { display: none; }
  .lc-table td.lc-name { min-width: 0; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.has-shell main#app .list-head { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scope-bar select { width: auto; max-width: 150px; }
.nm-list li { flex-wrap: nowrap; align-items: baseline; }
.nm-list li > span { min-width: 0; }
.nm-list li > a, .nm-list li > button { white-space: nowrap; flex: none; }
.filters .ag-seg { margin-left: 0; }
button.more-btn { justify-self: start; text-align: left; }
/* a checkbox inside a .field (Families may meet, Skip busy times) is 17 px beside its text, never a 100 %-wide box */
.field input[type=checkbox], .field input[type=radio] { width: 17px; flex: none; }
.checks label { display: flex; gap: 8px; align-items: center; }
.t-sched-head { margin: 0 0 14px; } .t-sched-head .t-chips { margin-top: 0; } .t-sched-head .p-progress { margin-top: 10px; }
.filters select { width: auto; max-width: 240px; } @media (max-width: 767px) { .filters select { max-width: 100%; } }
.card > .list-head:first-child, .card > h3.list-head:first-child { margin-top: 0; } .list-head + .cl-row { border-top: 0; }
.oh-admin td { vertical-align: top; } .oh-admin td:nth-child(1) { min-width: 170px; } .oh-admin td:nth-child(2) { min-width: 190px; } .oh-admin td:nth-child(3) { min-width: 150px; } .oh-admin td:nth-child(5) { min-width: 150px; }
@media (max-width: 767px) { .scope-bar .scope-sep { display: none; } }
body.has-shell main#app .sortable th button { font: inherit; color: inherit; min-height: 0; padding: 0; line-height: inherit; border: 0; background: none; }

/* ── H11 (Oct 10): lifecycle lists — ONE row + ONE section for every list of conferences / rounds ── */
.lsec { margin: 0 0 20px; }
.lsec > .list-head, .lsec > summary .list-head { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.lsec-n { font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--muted); background: #e8e8ed; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.lsec-arch > summary { cursor: pointer; margin: 0 0 8px; color: var(--muted); }
.lsec-arch > summary .list-head { margin: 0; }
.lr-list { --lrpad: 20px; }
body.has-shell .card.lr-list, .card.lr-list { padding: 4px var(--lrpad); margin: 0; }
.lr { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; margin: 0 calc(-1 * var(--lrpad)); padding: 14px var(--lrpad); border-top: 1px solid var(--line); }
.lr:first-child, .lr-search + .lr, .lr[hidden] + .lr:not([hidden]) { border-top: 0; }
.lr[hidden] { display: none; }
.lr:hover { background: var(--head); }
.lr:hover .lr-link { color: var(--blue); }
.lr-date { display: grid; justify-items: center; align-content: center; gap: 0; width: 46px; padding: 6px 0; border-radius: 10px; background: var(--canvas); line-height: 1.1; }
.lr-mon { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.lr-day { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.lr-more { font-size: 11px; color: var(--muted); }
.lr-body { min-width: 0; display: grid; gap: 3px; }
.lr-title { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.lr-title .pill { font-weight: 500; vertical-align: 1px; }
.lr-link { color: var(--ink); }
.lr-link:hover { text-decoration: none; }
/* the whole row is the link (stretched); the hint's link and the row's buttons sit above it */
.lr-link::after { content: ''; position: absolute; inset: 0; border-radius: 0; }
.lr-link:focus-visible { outline: none; }
.lr-link:focus-visible::after { outline: 3px solid rgba(0,113,227,.35); outline-offset: -3px; border-radius: 10px; }
.lr-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.lr-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lr-prog b { color: var(--ink); font-weight: 600; }
.lr-prog .bar { width: 120px; min-width: 0; height: 4px; }
.lr-hint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.lr-hint > span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hint); margin-right: 7px; vertical-align: 1px; }
.lr-hint.warn > span { color: var(--warn); } .lr-hint.warn > span::before { background: #e0a100; }
.lr-hint.ok > span { color: var(--teal-dark); } .lr-hint.ok > span::before { background: var(--teal); }
.lr-hint.bad > span { color: var(--bad); } .lr-hint.bad > span::before { background: var(--bad); }
.lr-hint.info > span { color: var(--blue-dark); } .lr-hint.info > span::before { background: var(--blue); }
.lr-go { position: relative; z-index: 1; font-weight: 500; white-space: nowrap; }
.lr-acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; align-self: center; pointer-events: none; }
.lr-acts > * { pointer-events: auto; }
.lr-acts > .lr-passive { pointer-events: none; white-space: nowrap; }
.lr.compact { padding-top: 10px; padding-bottom: 10px; align-items: center; }
.lr.compact .lr-date { padding: 4px 0; }
.lr.compact .lr-day { font-size: 16px; }
.lr-search { width: min(320px, 100%); margin: 12px 0 8px; }
.lr-nomatch { padding: 8px 0 12px; }
.lr-list:not(.card) .lr:last-child { padding-bottom: 4px; }
.back-link { font-weight: 500; }
/* the conference title is a switcher */
.h1-row { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.h1-row h1 { min-width: 0; overflow-wrap: anywhere; }
body.has-shell main#app button.csw-btn { flex: none; width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--field-line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
body.has-shell main#app button.csw-btn:hover { background: var(--sel); }
.csw-btn[aria-expanded="true"] { background: var(--sel) !important; }
.csw-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.csw-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(380px, 100%); max-height: 60vh; overflow: auto; background: var(--card); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); padding: 6px; }
.csw-head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.csw-item { display: flex; gap: 10px; align-items: baseline; min-height: 40px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.csw-item:hover, .csw-item:focus-visible { background: var(--sel); text-decoration: none; }
.csw-item[aria-current="page"] { background: var(--sel); font-weight: 600; }
.csw-date { flex: none; width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; }
.csw-name { min-width: 0; overflow-wrap: anywhere; }
.csw-all { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--blue); font-weight: 500; }
/* Insights: the conference dropdown (same look as Grade / Subject, a little wider) + How families met */
.scope-bar select.scope-ev { max-width: 280px; }
.ins-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ins-col > .card { margin: 0; }
.hm-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--taken); margin: 4px 0 10px; }
.hm-bar i { display: block; height: 100%; min-width: 3px; }
.hm-bar i + i { border-left: 2px solid var(--card); }
.hm-ip { background: var(--teal); } .hm-video { background: var(--blue); } .hm-walk { background: #a1a1a6; }
.hm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.hm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hm-legend b { font-variant-numeric: tabular-nums; }
.hm-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hm-noshow { margin: 12px 0 6px; color: var(--muted); }
.hm-noshow b { color: var(--ink); }
.hm-ghead { margin: 14px 0 6px !important; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.hm-gkey { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--hint); }
.hm-grades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 4px 24px; }
.hm-grades li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 68px; gap: 8px; align-items: center; font-size: 12px; min-height: 22px; }
.hm-g { color: var(--ink); white-space: nowrap; }
.hm-mini { display: block; height: 8px; }
.hm-mini > span { display: flex; height: 100%; border-radius: 4px; overflow: hidden; min-width: 4px; }
.hm-mini i { display: block; height: 100%; }
.hm-mini i + i { border-left: 1px solid var(--card); }
.hm-n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 767px) {
  .lr-list { --lrpad: 16px; }
  .lr { grid-template-columns: 44px minmax(0, 1fr); }
  .lr-acts { grid-column: 2; justify-content: flex-start; }
  .lr-date { width: 44px; }
  .scope-bar select.scope-ev { max-width: 100%; }
}

/* Smart Grade "Add to an existing one" (Oct 10, DESIGN §22 addendum): the add chooser — one row per meeting set */
.ac-list { padding-bottom: 6px; }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ac-row:first-of-type { border-top: 0; }
.ac-row:hover .ac-title b { text-decoration: underline; }
.ac-main { flex: 1; min-width: 0; }
.ac-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-note { margin-top: 2px; color: var(--muted); }
.ac-note.warn-text { color: var(--warn); }
.ac-row > button { flex: none; }
/* B (Oct 10): "Refresh from QuickSchools" in a conference header + when the family list was last built */
.roster-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.roster-fresh.is-old, .roster-fresh.is-never { color: var(--warn); font-weight: 600; }
.roster-fresh .link { font-weight: 500; }
.flash-ring { box-shadow: 0 0 0 3px var(--warn-bg), 0 0 0 4px var(--warn); }

/* Oct 11 — AI in View as teacher: shown, never callable (aria-disabled keeps the tooltip and keyboard focus) */
button[aria-disabled="true"], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
button[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:hover { background: var(--card); }
button.primary[aria-disabled="true"]:hover { background: var(--blue); }
/* My notes (teacher Notes & AI summary) */
.ai-off { margin: 0; font-size: 13px; color: var(--muted); }
.va-ai-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.myn-link { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.myn-link p { margin: 0; }

/* ═════ Pinnacle app frame (Oct 15, DESIGN §27 — the same frame in Feedback and every next app) ═════
   Staff pages only (body.has-shell); the parents' booking page keeps its own top bar.
   Left menu, full height: school + app name on top (click = app switcher), then the places.
   Top bar beside it: ☰ (icon strip on wide screens, drawer on phones) · path to this page · account. */
body.has-shell .shell { min-height: 100vh; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
body.has-shell .top .brand { display: none; }
.top-crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.top-crumbs[hidden] { display: none; }
.top-crumbs a { color: var(--muted); padding: 3px 6px; border-radius: 8px; text-decoration: none; flex: none; }
.top-crumbs a:hover { background: var(--sel); color: var(--ink); text-decoration: none; }
.tc-here { color: var(--ink); font-weight: 500; padding: 3px 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tc-sep { color: var(--hint); padding: 0 2px; }
/* the top of the menu: school + app (the switcher) */
.side-brand { position: relative; flex: none; box-sizing: border-box; height: 53px; padding: 0 8px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
button.sb-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
button.sb-btn:hover:not(:disabled) { background: var(--sel); }
.sb-logo { width: 32px; height: auto; flex: none; display: block; }
.sb-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.sb-school { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sb-app { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.sb-btn > svg { width: 16px; height: 16px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-brand .sw-menu { top: 50px; left: 8px; z-index: 45; }
.sw-head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.side-nav { min-height: 0; }
/* account, top-right */
.who { position: relative; }
.who button.acct-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.who button.acct-btn:hover:not(:disabled) { background: transparent; }
.acct-face { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; overflow: hidden; flex: none; }
.acct-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-face.lg { width: 40px; height: 40px; font-size: 14px; }
.who button.acct-btn:hover .acct-face, .who button.acct-btn[aria-expanded="true"] .acct-face { box-shadow: 0 0 0 3px var(--sel); }
.acct-menu { position: absolute; right: 0; top: 46px; width: 280px; background: var(--card); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 6px; z-index: 40; color: var(--ink); }
.acct-menu[hidden] { display: none; }
.acct-who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.acct-who > div { min-width: 0; }
.acct-who b { display: block; font-size: 14px; color: var(--ink); }
.acct-menu .who-email { display: block !important; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.acct-role { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--teal-dark); background: var(--teal-soft); padding: 2px 8px; border-radius: 999px; }
.who button.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; cursor: pointer; }
.who button.acct-item:hover:not(:disabled) { background: var(--sel); }
.who button.acct-item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
  body.has-shell .side { top: 0; height: 100vh; display: flex; flex-direction: column; padding: 0; overflow: visible; z-index: 25; }
  body.has-shell .side-nav { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
  body.has-shell.nav-rail .side { padding-inline: 0; }
  body.has-shell.nav-rail .side-nav { padding-inline: 6px; }
  body.nav-rail .side-brand { padding: 0 6px; }
  body.nav-rail button.sb-btn { justify-content: center; padding: 4px; }
  body.nav-rail .sb-txt, body.nav-rail button.sb-btn > svg { display: none; }
  body.nav-rail .side-brand .sw-menu { left: calc(100% - 2px); top: 4px; }
  body.has-shell main#app .crumbs { display: none; }   /* the path is in the top bar */
}
@media (max-width: 767px) {
  body.has-shell .top .brand { display: flex; }   /* phones: the menu is a drawer, so the top bar names the app */
  body.has-shell .top .brand b { display: none; }
  body.has-shell .top .brand .brand-sub { display: inline; color: var(--ink); font-weight: 600; font-size: 15px; }
  .top-crumbs { display: none !important; }
  .side { display: flex; flex-direction: column; overflow-y: auto; }
  .side-nav { padding: 12px 10px 24px; }
}
@media print { .top-crumbs, .side-brand { display: none !important; } body.has-shell main#app .crumbs { display: none; } }

/* Signed out (Oct 15, same as Feedback's sign-in page): only a centred card — no top bar, no menu */
body.signed-out header.top, body.signed-out .side, body.signed-out .bottombar, body.signed-out .scrim, body.signed-out #viewasbar { display: none !important; }
body.signed-out main#app { max-width: none; padding: 0 16px; }
.login-wrap { max-width: 400px; margin: 6rem auto 40px; padding: 48px 40px; background: #fff; border-radius: 18px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 64px rgba(0,0,0,.08); }
.login-wrap img { width: auto; height: 52px; display: block; margin: 0 auto 16px; }
.login-wrap .login-school { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e6e73; margin: 0 0 4px; }
.login-wrap h1 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; padding: 0; }
.login-wrap p { font-size: 13px; color: #86868b; line-height: 1.6; letter-spacing: 0; margin: 0 0 28px; }
.login-wrap button.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 0; padding: 13px 20px; border: 1px solid rgba(0,0,0,.08); border-radius: 980px; background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 500; line-height: normal; letter-spacing: 0; transition: all .2s; }
.login-wrap button.btn-google:hover:not(:disabled) { background: #f5f5f7; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.login-wrap .login-error { color: var(--bad); font-size: 13px; margin: 14px 0 0; }
