/* Public student pages. Mobile first; same palette as the staff site. */
:root {
  /* Same tokens as the staff site (static/css/citron.css) - owner, 2026-11-13 */
  --maroon: #7A0019; --maroon-2: #5E0013; --maroon-bg: #FBEFF2;
  --ink: #1C1417; --mid: #43373B; --dim: #5F5257;
  --line: #E4DCDF; --bg: #F6F3F4; --card: #FFFFFF;
  --ok: #13703f; --ok-bg: #e3f4ea; --warn: #96430a; --warn-bg: #fff2e0;
  --bad: #b1203a; --bad-bg: #fdecef; --info: #7A0019; --info-bg: #f6e9ec;
  --office: #2f4290; --office-bg: #eaeefb; --none: #4a3b41; --none-bg: #efeced;
  --focus: #1c1417;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
a { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }

/* ── header ─────────────────────────────────────────────── */
.site { background: var(--maroon); color: #fff; }
.site-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; background: #fff; flex: none; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-t strong { font-size: 17px; }
.brand-t span { font-size: 14px; opacity: .9; }
.nav { display: flex; width: 100%; gap: 4px; }
.nav a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px;
  padding: 8px 6px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: #fff; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a:focus-visible { outline-color: #fff; outline-offset: -3px; }
@media (min-width: 768px) {
  .site-in { padding: 10px 24px; flex-wrap: nowrap; }
  .nav { width: auto; margin-left: auto; }
  .nav a { flex: none; padding: 8px 14px; border-radius: 8px; border-bottom: 0; }
  .nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
}

/* ── top navigation: same as the staff / instructor portals ──────────── */
.cx-topnav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 20px;
  min-height: 64px; padding: 8px 24px; background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28, 20, 23, .04); }
.cx-tn-brand { display: flex; align-items: center; flex: none; border-radius: 8px; }
.cx-tn-brand img { display: block; height: 42px; width: auto; }
.cx-tn-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.cx-tn-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; color: var(--dim); text-decoration: none; white-space: nowrap; }
.cx-tn-link:hover { background: var(--maroon-bg); color: var(--ink); }
.cx-tn-link.active { color: var(--maroon); background: var(--maroon-bg); }
.cx-tn-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--maroon); }
.cx-tn-right { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.cx-tn-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--maroon-bg); color: var(--maroon); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.cx-tn-avatar.active { border-color: var(--maroon); }
.cx-tn-signout, .cx-tn-ghost, .cx-tn-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.cx-tn-signout svg { width: 16px; height: 16px; color: var(--bad); }
.cx-tn-signout:hover { border-color: var(--bad); color: var(--bad); }
.cx-tn-ghost:hover { border-color: var(--maroon); color: var(--maroon); }
.cx-tn-primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.cx-tn-primary:hover { background: var(--maroon-2); border-color: var(--maroon-2); }
.cx-tn-menu { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.cx-tn-menu svg { width: 20px; height: 20px; }
.cx-topnav :is(a, button):focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
@media (max-width: 900px) {
  .cx-topnav { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .cx-tn-brand img { height: 36px; }
  .cx-tn-menu { display: inline-flex; }
  .cx-tn-signout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cx-tn-signout { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cx-tn-ghost, .cx-tn-primary { min-height: 44px; }
  .cx-tn-links { order: 3; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 4px; }
  .cx-topnav.menu-open .cx-tn-links { display: flex; }
  .cx-tn-link { min-height: 48px; font-size: 16px; }
  .cx-tn-link.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
}
@media (max-width: 400px) { .cx-tn-ghost { display: none; } }
html[data-theme="dark"] .cx-topnav { box-shadow: none; }
html[data-theme="dark"] .cx-tn-brand { background: #fff; padding: 3px 8px; }
html[data-theme="dark"] .cx-tn-link.active, html[data-theme="dark"] .cx-tn-avatar { color: #ffb3c1; }
html[data-theme="dark"] .cx-tn-link.active::after { background: #ffb3c1; }

/* ── layout ─────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
main > section, main > div.wrap { margin-top: 20px; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
@media (min-width: 768px) { h1 { font-size: 32px; } }
.lead { margin-top: 6px; color: var(--mid); }
.sec-h { font-size: 19px; margin-bottom: 10px; }
.sub-h { font-size: 16px; margin: 16px 0 6px; }
.note { font-size: 14px; color: var(--dim); margin-top: 8px; }
.muted { color: var(--dim); font-size: 14px; }
.label { font-size: 14px; font-weight: 600; color: var(--mid); margin-top: 8px; }
.empty { color: var(--mid); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* Round 3 (owner, 2026-11-18): a slim "updated" note on the right; the full warning only when offline */
.live-bar { max-width: 1200px; margin: 0 auto; padding: 6px 16px 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; color: var(--mid); }
.live-bar .live-dot { width: 7px; height: 7px; }
.is-offline .live-bar { justify-content: flex-start; font-size: 14px; }
.is-offline .live-bar .live-dot { width: 10px; height: 10px; }
@media (min-width: 768px) { .live-bar { padding: 12px 24px 0; } }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.is-offline .live-dot { background: var(--warn); }
.is-offline .live-bar { color: var(--warn); font-weight: 600; }

/* ── buttons / pills ───────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--maroon); }
.btn-primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-2); }
.btn-icon { padding: 0; width: 44px; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cta .btn { flex: 1 1 200px; }
@media (min-width: 768px) { .cta .btn { flex: none; } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tone-occ { color: #fff; background: var(--maroon); }
.tone-ok { color: var(--ok); background: var(--ok-bg); }
.tone-info { color: var(--info); background: var(--info-bg); }
.tone-bad { color: var(--bad); background: var(--bad-bg); }
.tone-warn { color: var(--warn); background: var(--warn-bg); }
.tone-mute { color: var(--mid); background: var(--none-bg); }

/* ── home ──────────────────────────────────────────────── */
.hero { padding-top: 4px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: 30px; font-weight: 700; color: var(--maroon); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14px; color: var(--mid); }
.list { display: grid; gap: 10px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.row > .pill { grid-column: 2; justify-self: start; }
@media (min-width: 768px) { .row { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; } .row > .pill { grid-column: 3; } }
.row-time { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; font-size: 15px; }
.row-time span { font-weight: 400; color: var(--dim); font-size: 14px; }
.row-t { font-size: 16px; }
.row-s { font-size: 14px; color: var(--mid); }

/* ── faculty ───────────────────────────────────────────── */
.filters { margin-top: 16px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { min-height: 46px; width: 100%; padding: 10px 14px; border: 1px solid #b9adb2; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--card); }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-inline { margin-bottom: 12px; max-width: 420px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 1px solid #b9adb2;
  background: var(--card); font-size: 15px; font-weight: 500; cursor: pointer; }
.chip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.count { margin-top: 14px; font-size: 14px; color: var(--mid); }
.cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; align-content: start; }
.card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--maroon-bg); color: var(--maroon);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; border: 1px solid var(--line); }
.card-id { min-width: 0; }
.card-n { font-size: 17px; line-height: 1.25; }
.card-p { font-size: 14px; color: var(--mid); }
.card-st { display: grid; gap: 6px; justify-items: start; }
.card-d { font-size: 14px; color: var(--mid); }
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }

/* ── map ───────────────────────────────────────────────── */
.map-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.floor-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #b9adb2; background: var(--card); color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--mid); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 2px solid; flex: none; }
.sw-occ { background: var(--maroon); border-color: var(--maroon-2); }
.sw-free { background: var(--ok-bg); border-color: var(--ok); }
.sw-office { background: var(--office-bg); border-color: var(--office); }
.sw-none { background: var(--none-bg); border-color: #b3a9ad; }

.map-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; overflow: hidden; }
.map-box > .empty { border: 0; }
.map { display: block; width: 100%; height: auto; font-family: 'Geist', system-ui, sans-serif; }
.map .rm rect { vector-effect: non-scaling-stroke; stroke-width: 1.2; fill: var(--none-bg); stroke: #c9c1c4; }
.map .rm text { fill: var(--mid); }
.map .rm .n { font-weight: 700; }
.map .rm .s { font-weight: 500; }
.map .rm.bg rect { fill: #faf8f9; stroke: #e7e1e3; }
.map .rm.t-lobby rect { fill: #f4f0f1; }
.map .rm.t-entrance rect { fill: #f1e6e9; stroke: #d9c3ca; }
.map .rm.t-staircase.st-none rect { fill: #ddd7d9; stroke: #9d9397; }
.map .rm.t-staircase text { fill: #3a3034; }
.map .rm.st-occ rect { fill: var(--maroon); stroke: var(--maroon-2); stroke-width: 1.6; }
.map .rm.st-occ text { fill: #fff; }
.map .rm.st-free rect { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 1.6; }
.map .rm.st-free text { fill: #0d4a2a; }
.map .rm.st-office rect { fill: var(--office-bg); stroke: var(--office); stroke-width: 1.6; }
.map .rm.st-office text { fill: #1f2b5c; }
.map .rm.overlay rect { stroke-dasharray: 6 3; }
.map .rm.hit { cursor: pointer; }
.map .rm.hit:hover rect { stroke: var(--ink); stroke-width: 2; }
.map .rm.hit:focus { outline: none; }
.map .rm.hit:focus-visible rect { stroke: var(--focus); stroke-width: 4; }
.map .rm.sel rect { stroke: var(--ink); stroke-width: 3.5; }

.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .room-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .room-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.room-btn { width: 100%; min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1.3;
  text-align: left; cursor: pointer; }
.room-btn:hover { border-color: var(--maroon); }
.room-btn-t { min-width: 0; display: flex; flex-direction: column; }
.room-btn-t small { font-size: 14px; color: var(--dim); }
.room-btn-s { font-size: 14px; color: var(--mid); text-align: right; }

/* Room panel: bottom sheet on phones, right drawer on wide screens. */
.panel { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 72vh; background: var(--card);
  border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(17,17,17,.18); display: flex; }
.panel[hidden] { display: none; }
.panel-in { overflow-y: auto; overscroll-behavior: contain; min-width: 0; padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); width: 100%; }
.panel-in:focus { outline: none; }
.panel-in:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.panel-top { position: sticky; top: 0; z-index: 2; background: var(--card); display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; padding: 14px 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.panel-top > .btn { flex: none; }
.panel-top h2 { font-size: 19px; line-height: 1.25; padding-top: 8px; }
.panel p + p { margin-top: 8px; }
.people, .classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.p-n { font-weight: 600; }
.classes li { font-size: 15px; }
body.panel-open main { padding-bottom: 72vh; }
/* owner 2026-11-24: the panel opened under the top bar, hiding its close button; on phones the sheet sits above
   the bottom tab bar (the sheet is 72% of the screen high from the bottom, so it never reaches the top bar) */
@media (max-width: 1023.98px) { .panel { z-index: 66; } }
@media (min-width: 1024px) {
  .panel { top: var(--topnav-h, 72px); left: auto; width: 400px; max-height: none; border-top: 0; border-left: 1px solid var(--line);
    border-radius: 0; box-shadow: -8px 0 30px rgba(17,17,17,.14); }
  .panel-in { padding: 0 24px 24px; }
  .panel-top { padding-top: 20px; }
  body.panel-open main { padding-bottom: 32px; margin-right: 400px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .tab, .chip span, .room-btn { transition: background-color .15s, border-color .15s; }
}

/* ── account (sign in / sign up / my classes) ─────────────── */
.acct { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.acct-name { font-weight: 600; font-size: 15px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; font: 600 15px inherit;
  font-family: inherit; text-decoration: none; cursor: pointer; }
.acct-btn[aria-current="page"] { background: #fff; color: var(--maroon); }
.form-wrap { max-width: 520px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.form-card h1 { font-size: 24px; margin-bottom: 6px; }
.form-card .lead { color: var(--mid); margin-bottom: 16px; }
.form-card .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-card .field label { font-weight: 600; font-size: 15px; }
.form-card .field .hint { color: var(--dim); font-size: 14px; }
.form-card .field input, .field select { min-height: 48px; padding: 10px 12px; border: 1px solid #cbbfc4; border-radius: 10px;
  font: 400 16px inherit; font-family: inherit; background: var(--card); color: var(--ink); width: 100%; }
.form-card .field input:focus, .field select:focus { outline: 3px solid rgba(122,0,25,.25); border-color: var(--maroon); }
.form-card .field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); }
.form-card .field .err { color: var(--bad); font-size: 14px; font-weight: 600; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-card .row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .form-card .row3 { grid-template-columns: 1fr 1fr; } .form-card .row3 .field:first-child { grid-column: 1 / -1; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--maroon); background: var(--maroon); color: #fff;
  font: 600 16px inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn.secondary { background: var(--card); color: var(--maroon); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-weight: 500; }
.form-msg.bad { background: var(--bad-bg); color: var(--bad); }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.info { background: var(--info-bg); color: var(--maroon); }
.form-foot { margin-top: 14px; text-align: center; color: var(--mid); }
.code-input { font: 600 26px/1 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .4em; text-align: center; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 12px; }
.linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--maroon); font-family: inherit; font-size: 15px; font-weight: 600;
  font-family: inherit; text-decoration: underline; cursor: pointer; }
.class-day { margin: 18px 0 8px; font-size: 18px; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.class-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  display: grid; gap: 4px; }
.class-item.now { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon-bg); }
.class-item .t { font-weight: 700; color: var(--maroon); }
.class-item .s { font-weight: 600; }
.class-item .m { color: var(--mid); font-size: 15px; }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }

/* ── account, notes, updates, help ─────────────────────── */
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.set-card { margin-bottom: 16px; }
.set-card h2 { font-size: 19px; margin-bottom: 6px; }
.form-card .ro { margin: 0; padding: 10px 0; color: var(--mid); }
.form-card textarea, .note-search input { width: 100%; padding: 10px 12px; border: 1px solid #cbbfc4; border-radius: 10px;
  font: 400 16px inherit; font-family: inherit; background: var(--card); color: var(--ink); min-height: 48px; }
.opt { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.opt legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.opt label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--maroon); flex: none; }
.opt .hint { margin: 0; color: var(--bad); font-size: 14px; }
.note-search { display: grid; gap: 4px; margin: 4px 0 12px; }
.note-search label { font-weight: 600; }
.note-list, .update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.note-list > .note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.note-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.note-body { margin: 6px 0 0; white-space: pre-wrap; }
.updates { margin: 14px 0 6px; }
.updates-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.updates-head h2 { font-size: 18px; }
.update { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: grid; gap: 2px; }
.update.k-time_in { border-left-color: var(--ok); }
.update.k-time_out { border-left-color: var(--mid); }
.update.k-no_instructor { border-left-color: var(--warn); }
.update.new { background: var(--maroon-bg); }
.nav a { position: relative; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  margin-left: 4px; border-radius: 999px; background: #fff; color: var(--maroon); font-size: 12px; font-weight: 700; }
.faq { margin: 12px 0 16px; display: grid; gap: 8px; }
.faq h2 { font-size: 19px; margin-bottom: 4px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.faq summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 12px; color: var(--mid); }
a.acct-name { color: #fff; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* ── display & accessibility preferences (prefs.js sets these on <html>) ── */
html[data-text="lg"] body { font-size: 18px; }
html[data-text="xl"] body { font-size: 20px; }
html[data-text="lg"] h1 { font-size: 29px; }
html[data-text="xl"] h1 { font-size: 32px; }
html[data-theme="dark"] {
  --ink: #f3eef0; --mid: #d6cbd0; --dim: #b9adb3; --line: #3b3034; --bg: #141012; --card: #1f191c;
  --maroon-bg: #3a1620; --ok: #6fd39b; --ok-bg: #12301f; --warn: #f2b26b; --warn-bg: #3a2810;
  --bad: #ff8fa3; --bad-bg: #3d1820; --info: #ffb3c1; --info-bg: #3a1620; --office: #9fb0ff; --office-bg: #1b2240;
  --none: #d6cbd0; --none-bg: #2a2326; --focus: #ffffff; color-scheme: dark;
}
html[data-theme="dark"] a { color: #ffb3c1; }
html[data-theme="dark"] .skip { background: #f3eef0; color: #141012; }   /* 2026-11-29: was pink on light */
html[data-theme="dark"] .set-signout { color: #141012; }                  /* 2026-11-29: was white on light pink */
html[data-theme="dark"] .site a, html[data-theme="dark"] .site { color: #fff; }
html[data-theme="dark"] .btn.secondary { background: transparent; color: #ffb3c1; border-color: #ffb3c1; }
html[data-theme="dark"] .form-card .field input, html[data-theme="dark"] .form-card .field select { background: #151012; color: var(--ink); border-color: #5a4a50; }
html[data-theme="dark"] .map .rm.st-free text { fill: #d8f5e4; }
html[data-theme="dark"] .map .rm.st-office text { fill: #dfe4ff; }
html[data-contrast="high"] { --mid: var(--ink); --dim: var(--ink); --line: #6b5c62; }
html[data-contrast="high"] .form-card .field input, html[data-contrast="high"] .form-card .field select,
html[data-contrast="high"] .form-card textarea { border-width: 2px; border-color: var(--ink); }
html[data-contrast="high"] a { text-decoration-thickness: 2px; }
html[data-cb="1"] { --maroon-cb: #0b5cad; }
html[data-cb="1"] .map .rm.st-occ rect, html[data-cb="1"] .sw-occ { fill: #0b5cad; background: #0b5cad; stroke: #073b70; border-color: #073b70; }
html[data-cb="1"] .map .rm.st-free rect, html[data-cb="1"] .sw-free { fill: #ffe8c2; background: #ffe8c2; stroke: #b35900; border-color: #b35900; }
html[data-cb="1"] .map .rm.st-free text { fill: #5c2e00; }
html[data-cb="1"] .tone-occ { background: #0b5cad; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* ── walking directions on the map ─────────────────────── */
.map .route path { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.map .route .route-casing { stroke: #fff; }
.map .route .route-line { stroke: #0b5cad; stroke-dasharray: 2 0; }
.map .route .route-start { fill: #fff; stroke: #0b5cad; stroke-width: 4; }
.map .route .route-end { fill: #0b5cad; stroke: #fff; stroke-width: 4; }
.dir { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--card); }
.dir summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; color: var(--maroon); }
.dir-form { display: grid; gap: 6px; margin-bottom: 10px; }
.dir-form label { font-weight: 600; font-size: 15px; }
.dir-form select { min-height: 48px; padding: 8px 10px; border: 1px solid #cbbfc4; border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.dir-steps { margin: 6px 0 10px; padding-left: 22px; display: grid; gap: 6px; }
.dir-steps:focus { outline: none; }
.dir-floors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.dir-floor { min-height: 44px; padding: 0 12px; font-size: 15px; }
.dir-floor[aria-pressed="true"] { background: var(--maroon); color: #fff; }
html[data-theme="dark"] .map .rm rect { stroke: #4a3d42; }
html[data-theme="dark"] .map .rm.bg rect { fill: #241d20; stroke: #3b3034; }
html[data-theme="dark"] .map .rm.t-lobby rect { fill: #2a2326; }
html[data-theme="dark"] .map .rm.t-entrance rect { fill: #3a2228; stroke: #5a3a43; }
html[data-theme="dark"] .map .rm.t-staircase.st-none rect { fill: #3a3034; stroke: #6b5c62; }
html[data-theme="dark"] .map .rm.t-staircase text { fill: #e8dfe3; }
html[data-theme="dark"] .map .rm.st-occ rect { fill: #a3143a; }
html[data-theme="dark"] .panel { box-shadow: 0 -8px 24px rgba(0,0,0,.6); }
.dir-form { grid-template-columns: minmax(0, 1fr); }
.dir-form select { width: 100%; max-width: 100%; min-width: 0; }
.dir summary { color: var(--info); }
html[data-theme="dark"] .dir-floor[aria-pressed="true"] { background: #ffb3c1; color: #2a0a12; border-color: #ffb3c1; }

/* ── sign in / create account (owner, 2026-11-13) ─────────────────────── */
main { padding-bottom: 8px; }
.auth { max-width: 460px; margin: 40px auto 0; padding: 0 16px; }
.auth-wide { max-width: 640px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 24px;
  box-shadow: 0 1px 2px rgba(28, 20, 23, .04), 0 8px 24px rgba(28, 20, 23, .05); }
.auth-card[hidden] { display: none; }
.auth-mark { display: block; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.01em; margin-bottom: 6px; }
.auth-card .lead { color: var(--dim); margin-bottom: 20px; max-width: 60ch; text-wrap: pretty; }
.auth-card .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-card .field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.auth-card .field .hint { color: var(--dim); font-size: 13px; }
.auth-card .field .err { color: var(--bad); font-size: 13px; font-weight: 600; }
.auth-card .field .err:empty { display: none; }
.auth-card .field input, .auth-card .field select { min-height: 46px; padding: 10px 12px; border: 1px solid #d3c8cc; border-radius: 10px;
  font: 400 16px inherit; font-family: inherit; background: var(--card); color: var(--ink); width: 100%; }
.auth-card .field input::placeholder { color: #6f6267; }   /* 2026-11-29 audit: >= 4.5:1 on white and on #f6f3f4 */
.auth-card .field input:focus, .auth-card .field select:focus { outline: 3px solid rgba(122,0,25,.18); outline-offset: 0; border-color: var(--maroon); }
.auth-card .field input[aria-invalid="true"], .auth-card .field select[aria-invalid="true"] { border-color: var(--bad); }
.auth-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-card .row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) {
  .auth { margin-top: 20px; }
  .auth-card { padding: 22px 18px 18px; }
  .auth-card .row2 { grid-template-columns: 1fr; }
  .auth-card .row3 { grid-template-columns: 1fr 1fr; }
  .auth-card .row3 .field:first-child { grid-column: 1 / -1; }
}
.fgroup { border: 0; margin: 0 0 6px; padding: 16px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: capitalize; color: var(--dim); }
.fgroup legend + * { clear: both; }
.section-preview { margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--maroon-bg); color: var(--mid); font-size: 14px; }
.section-preview strong { color: var(--maroon); font-variant-numeric: tabular-nums; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
/* The labelled CITron toggle replaces Edge's duplicate password reveal control. */
.pw-wrap input::-ms-reveal { display: none; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--maroon); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pw-toggle:hover { background: var(--maroon-bg); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .pw-eye-off, .pw-toggle.is-shown .pw-eye-open { display: none; }
.pw-toggle.is-shown .pw-eye-off { display: inline; }
.auth-card .btn.block { margin-top: 6px; min-height: 48px; font-size: 16px; }
.auth-card .btn[disabled] { cursor: not-allowed; }
.auth-card .form-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: 15px; }
.auth-card .form-foot a { font-weight: 600; }
.auth-note { margin: 16px 4px 0; text-align: center; font-size: 14px; color: var(--dim); }
.auth-note a { font-weight: 600; white-space: nowrap; }
.form-msg { line-height: 1.45; }
.form-msg strong { display: block; margin-bottom: 2px; }
.form-msg.info { background: var(--info-bg); color: var(--ink); border: 1px solid #ecd3da; }
html[data-theme="dark"] .form-msg.info { color: var(--ink); border-color: #5a2a36; }
html[data-theme="dark"] .auth-card .field input, html[data-theme="dark"] .auth-card .field select { background: #151012; border-color: #5a4a50; }
html[data-theme="dark"] .section-preview strong { color: #ffb3c1; }
html[data-theme="dark"] .pw-toggle { color: #ffb3c1; }
html[data-theme="dark"] .auth-mark { background: #fff; }

/* ── student dashboard (owner, 2026-11-13) ─────────────────────────────── */
.btn-secondary { background: var(--card) !important; color: var(--maroon) !important; border: 1px solid var(--line) !important; }
.btn-secondary:hover { border-color: var(--maroon) !important; }
.btn-sm { min-height: 40px !important; padding: 0 14px !important; font-size: 14px !important; }
main > section.wrap + section.wrap { margin-top: 28px; }
.sec-h { font-size: 18px; letter-spacing: -.005em; }
.dash-head { margin-top: 28px !important; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--maroon); margin-bottom: 4px; }
.dash-head h1 { font-size: 30px; letter-spacing: -.02em; }
.dash-head .lead strong { color: var(--ink); }
.dash-grid { display: grid; gap: 16px; margin-top: 20px !important; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
.dash-main, .dash-side { display: grid; gap: 16px; min-width: 0; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(28, 20, 23, .04); }
.card-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: capitalize; color: var(--dim); margin-bottom: 10px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title { font-size: 17px; }
.card-more { font-weight: 600; font-size: 14px; white-space: nowrap; }
.next-card { border-top: 4px solid var(--maroon); }
.next-when { font-weight: 700; color: var(--maroon); font-variant-numeric: tabular-nums; }
.next-when.live::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px var(--ok-bg); }
.next-title { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; margin: 4px 0 12px; text-wrap: balance; }
.next-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.next-meta li { display: grid; gap: 2px; }
.next-meta .k { font-size: 13px; color: var(--dim); }
.next-meta li span:last-child { font-weight: 600; }
.next-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.next-empty { color: var(--mid); }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #efe9eb, #f7f3f4, #efe9eb); margin: 8px 0; width: 70%; }
.skeleton-line.short { width: 40%; }
/* today's timeline */
.tl { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-empty { color: var(--mid); padding: 4px 0; }
.tl-item { display: grid; grid-template-columns: 72px 16px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 10px 0;
  border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; padding-top: 2px; }
.tl-time { font-weight: 700; font-variant-numeric: tabular-nums; display: grid; font-size: 15px; }
.tl-time small { font-weight: 400; color: var(--dim); font-size: 13px; }
.tl-dot { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.tl-body { display: grid; gap: 2px; min-width: 0; }
.tl-body > span { color: var(--mid); font-size: 14px; }
.tl-tag { justify-self: start; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--maroon); color: #fff; }
.tl-tag.muted-tag { background: var(--none-bg); color: var(--dim); }
.tl-item.now .tl-dot { border-color: var(--maroon); background: var(--maroon); box-shadow: 0 0 0 4px var(--maroon-bg); }
.tl-item.done { opacity: .62; }
.tl-item.done .tl-dot { background: var(--line); }
/* side column */
.mini-stats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats li { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.mini-stats .stat-n { font-size: 24px; }
.mini-stats .stat-l { font-size: 13px; }
.quick-links { padding: 6px 8px; display: grid; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.quick-links a + a { border-top: 1px solid var(--line); border-radius: 0; }
.quick-links a:hover { background: var(--maroon-bg); color: var(--maroon); border-radius: 10px; }
.quick-links a span:last-child { color: var(--dim); font-size: 20px; }
/* signed-out home */
.hero { margin-top: 28px !important; }
.signin-nudge { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--maroon); border-radius: 12px; padding: 14px 16px; }
.signin-nudge p { color: var(--mid); max-width: 60ch; }
.signin-nudge strong { color: var(--ink); }
.live-bar { padding-top: 8px !important; }
html[data-theme="dark"] .skeleton-line { background: #2a2326; }
html[data-theme="dark"] .next-when, html[data-theme="dark"] .eyebrow { color: #ffb3c1; }
html[data-theme="dark"] .tl-item.now .tl-dot { background: #ffb3c1; border-color: #ffb3c1; }
html[data-theme="dark"] .btn-secondary { color: #ffb3c1 !important; }
@media (prefers-reduced-motion: no-preference) {
  .quick-links a, .cx-tn-link, .cx-tn-ghost, .cx-tn-primary, .cx-tn-signout, .pw-toggle { transition: background-color .15s, border-color .15s, color .15s; }
}

/* My classes: one card per day, today highlighted */
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-actions .btn { flex: 1 1 160px; }
.week { display: grid; gap: 14px; }
.week .class-day { margin: 0; font-size: 15px; font-weight: 700; color: var(--dim); letter-spacing: .01em; }
.week .class-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; gap: 0;
  box-shadow: 0 1px 2px rgba(28, 20, 23, .04); margin-top: -6px; }
.week .class-item { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 12px 0;
  grid-template-columns: 200px minmax(0, 1fr); gap: 2px 14px; }
.week .class-item:first-child { border-top: 0; }
.week .class-item .t { grid-row: span 3; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
.week .class-item .m { font-size: 14px; }
.week .class-item.now { box-shadow: none; }
.week .class-item.now .t { color: var(--maroon); }
@media (max-width: 560px) { .week .class-item { grid-template-columns: 1fr; } .week .class-item .t { grid-row: auto; } }
.updates { margin: 0; }
.week .class-day.today { color: var(--maroon); }
.week .class-list.today { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-bg); }
html[data-theme="dark"] .week .class-day.today { color: #ffb3c1; }
/* every page: room under the top bar when there is no live-status line */
main > section:first-child:not(.auth), main > div.wrap:first-child { margin-top: 28px; }
/* Sign-in: guest option (owner, 2026-11-15) */

/* Account menu on the avatar, phone bottom tab bar (owner, 2026-11-15) */
.cx-tn-avatar { width: 44px; height: 44px; cursor: pointer; font: inherit; }
.cx-acct { position: relative; }
.cx-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(28, 20, 23, .14); padding: 6px; display: grid; z-index: 70; }
.cx-acct-name { margin: 0; padding: 8px 10px 6px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cx-acct-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.cx-acct-menu a:hover, .cx-acct-menu a[aria-current="page"] { background: var(--maroon-bg); color: var(--maroon); }
.cx-acct-menu a:focus-visible { outline: 3px solid var(--maroon); outline-offset: -3px; }
.cx-tabbar { display: none; }
@media (max-width: 768px) {
  body[data-student="1"] .cx-tn-menu { display: none; }
  body[data-student="1"] .cx-tn-links { display: none !important; }
  .cx-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 4px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .cx-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
    color: var(--dim); text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 10px; }
  .cx-tab svg { width: 22px; height: 22px; }
  .cx-tab.active { color: var(--maroon); background: var(--maroon-bg); }
  .cx-tab:focus-visible { outline: 3px solid var(--maroon); outline-offset: -3px; }
  body[data-student="1"] { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
/* Dashboard round 2 (owner, 2026-11-15) */
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.sec-head .sec-h { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg-btn { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.seg-btn:focus-visible { outline: 3px solid var(--maroon); outline-offset: -3px; }
.next-after { margin: 12px 0 0; color: var(--mid); font-size: 14px; }
.card-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.card-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--maroon); font-weight: 600; }
.card-more { display: inline-flex; align-items: center; min-height: 44px; }
.mini-stats.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (min-width: 768px) { .mini-stats.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* My classes round 2 */
.mc-tools { margin-top: 12px; }
.class-none { margin: 0 0 12px; color: var(--dim); font-size: 14px; }
.class-item .pill { justify-self: start; margin-top: 4px; }
.class-item a { color: var(--maroon); font-weight: 600; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }

/* Campus map round 2 (owner, 2026-11-15) */
.sw { border-radius: 50%; }
.map-zoom { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.map-zoom span { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; color: var(--mid); }
.map-box { overflow: auto; }
.map .hitpad { fill: transparent; stroke: none; }
.map .rm.match rect:not(.hitpad) { stroke: var(--maroon); stroke-width: 4; stroke-dasharray: 6 3; }
.tab-n { font-weight: 500; }
.hint { margin: 4px 0 0; font-size: 14px; color: var(--dim); }

/* Faculty round 2: equal card heights */
.cards { align-items: stretch; }
.cards > .card { height: 100%; display: flex; flex-direction: column; }
/* Student forms round 2 (owner, 2026-11-15) */
[hidden] { display: none !important; }
select, input, textarea { font-size: 16px; }
.pw-toggle { min-height: 44px; min-width: 56px; }
.caps-warn { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--warn); }
.pw-rules { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.pw-rules-t { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--mid); }
.pw-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pw-rules li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mid); }
.pw-rules li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { content: '✓'; color: #fff; background: var(--ok); border-color: var(--ok); font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.signin-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 14px; }
.signin-row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--maroon); font-weight: 600; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; min-height: 44px; padding-top: 10px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--maroon); flex: none; }
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 8px; padding: 0; font-size: 13px; color: var(--dim); counter-reset: st; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st) '. '; }
.steps li[aria-current="step"] { color: var(--maroon); font-weight: 700; }
.sec-count { color: var(--mid); }
.reveal-btn { margin-top: 4px; }
.office-card { margin: 0 0 18px; }
.guide { margin: 0 0 18px; }
.guide ol { padding-left: 20px; display: grid; gap: 6px; }
.prose h2 { font-size: 18px; margin: 20px 0 6px; }
.prose ul { padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 768px) { .auth-mark { display: none; } }

/* Announcements (round 2 phase C) */
.ann-card { border-left: 4px solid #7A0019; }
.ann-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ann-item strong { display: block; font-size: 16px; }
.ann-item p { margin: 2px 0; white-space: pre-line; }
.update.k-announcement strong::before { content: "Announcement · "; color: #7A0019; }

/* Consultation hours on faculty cards (round 2 phase C) */
.card-cons { margin: 8px 0 0; font-size: 14px; color: #4a3b41; }
.card-cons.now { color: #11653f; font-weight: 700; }

/* My messages (round 2 phase C) */
.update .reply { display: block; margin-top: 6px; padding: 6px 10px; border-left: 3px solid #7A0019; background: #faf7f8; border-radius: 6px; }

/* Note pins, reminders and checklists (round 2 phase C) */
.note-list > .note.pinned { border-color: #b45309; }
.note-rem { margin: 4px 0 0; font-size: 14px; color: #7a4f00; font-weight: 600; }
.note-check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.note-check input { width: 20px; height: 20px; accent-color: #7A0019; }
.note-check.done span { text-decoration: line-through; color: #6b5a61; }
.note-remind { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note-remind[open] { display: flex; width: 100%; }
.note-remind input { min-height: 44px; font-size: 16px; border: 1px solid #dac7ce; border-radius: 8px; padding: 0 8px; }
.note-remind > summary { list-style: none; cursor: pointer; }
.note-remind > summary::-webkit-details-marker { display: none; }
.update.k-reminder { border-left-color: #b45309; }
.note .links-row { justify-content: flex-start; align-items: center; gap: 4px 18px; }
.note-remind > summary.linkish { display: inline-flex; align-items: center; font-size: 15px; }
.note-remind[open] { order: 9; }
.note-remind input { width: 100%; max-width: 260px; min-width: 0; box-sizing: border-box; }

/* Delete my account (round 2 phase C) */
.btn-danger { background: #b42318 !important; border-color: #b42318 !important; color: #fff !important; }
.btn-danger:hover { background: #8f1c13 !important; }
.guide h3 { margin: 14px 0 6px; font-size: 16px; }

/* Student alerts as banners (round 2 phase D) */
.cx-toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(520px, calc(100% - 24px));
  display: grid; gap: 8px; pointer-events: none; }
.cx-toast { pointer-events: auto; display: flex; align-items: stretch; background: #fff; border: 1px solid #e3d3d9; border-left: 5px solid #7A0019;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(40, 10, 20, .18); animation: cxToastIn .22s ease-out; }
.cx-toast.k-time_in { border-left-color: var(--ok, #16824b); }
.cx-toast.k-no_instructor, .cx-toast.k-reminder { border-left-color: #b45309; }
.cx-toast-main { flex: 1; display: grid; gap: 2px; padding: 10px 12px; color: inherit; text-decoration: none; font-size: 15px; }
.cx-toast-main span { color: #5b4b51; font-size: 14px; }
.cx-toast-x { min-width: 44px; border: 0; background: none; font-size: 22px; color: #5b4b51; cursor: pointer; }
@keyframes cxToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cx-toast { animation: none; } }
html[data-theme="dark"] .cx-toast { background: #241a1e; border-color: #3a2b31; }
html[data-theme="dark"] .cx-toast-main span, html[data-theme="dark"] .cx-toast-x { color: #cdbfc4; }
/* New-update count on My classes (top bar and phone tab bar) */
.cx-tn-links .badge, .cx-tabbar .badge { background: #7A0019; color: #fff; }
.cx-tabbar a { position: relative; }
.cx-tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; }

/* Filipino (round 2): hidden for a moment until the texts are swapped (prefs.js / i18n.js) */
html.i18n-wait body { visibility: hidden; }
/* ── Campus map refresh (owner, round 2: better design, same room positions) ── */
.map .rm rect { fill: #ffffff; stroke: #d6ccd0; stroke-width: 1.2; }
.map .rm .n { fill: var(--ink); font-weight: 750; letter-spacing: .01em; }
.map .rm .s { fill: #5f5055; font-weight: 500; }
.map .rm.bg rect { fill: #f1ecee; stroke: none; }
.map .rm.t-hallway rect { fill: #ece5e8; }
.map .rm.t-lobby rect { fill: #f6f1f3; stroke: #e2d9dd; stroke-dasharray: 4 3; }
.map .rm.t-void rect { fill: #f7f4f5; stroke: #e2d9dd; stroke-dasharray: 2 4; }
.map .rm.t-entrance rect { fill: #f6e4ea; stroke: #c99aa8; }
.map .rm.t-entrance text { fill: #7A0019; font-weight: 700; }
.map .rm.t-restroom rect { fill: #f3f6fa; stroke: #c8d3e0; }
.map .rm.t-staircase.st-none rect:not(.stairs-hatch) { fill: #e6dfe2; stroke: #a99ea3; }
.map .rm.t-staircase rect.stairs-hatch { fill: url(#stairHatch); stroke: none; pointer-events: none; }
.map .hatch-line { stroke: rgba(80, 60, 68, .22); stroke-width: 3; }
.map .rm.st-occ rect:not(.hitpad) { fill: #7A0019; stroke: #5c0013; stroke-width: 1.6; }
.map .rm.st-occ .n, .map .rm.st-occ .s { fill: #fff; }
.map .rm.st-free rect:not(.hitpad) { fill: #e8f6ee; stroke: #16824b; stroke-width: 1.6; }
.map .rm.st-free .n { fill: #0d4a2a; } .map .rm.st-free .s { fill: #1b6b42; }
.map .rm.st-office rect:not(.hitpad) { fill: #eef1ff; stroke: #3f51b5; stroke-width: 1.6; }
.map .rm.st-office .n { fill: #1f2b5c; } .map .rm.st-office .s { fill: #34418a; }
.map .rm.hit:hover rect:not(.hitpad):not(.stairs-hatch) { stroke: #7A0019; stroke-width: 2.2; }
.map .labels text { fill: #4a3b41; font-weight: 600; }
.map .labels .s { fill: #6a5a60; }
html[data-theme="dark"] .map .rm rect { fill: #221b1e; stroke: #4a3d42; }
html[data-theme="dark"] .map .rm .n { fill: #f3eef0; } html[data-theme="dark"] .map .rm .s { fill: #cdbfc4; }
html[data-theme="dark"] .map .rm.bg rect, html[data-theme="dark"] .map .rm.t-hallway rect { fill: #2a2226; }
html[data-theme="dark"] .map .rm.t-lobby rect, html[data-theme="dark"] .map .rm.t-void rect { fill: #261f22; stroke: #3b3034; }
html[data-theme="dark"] .map .rm.t-entrance rect { fill: #3a2228; stroke: #6b3d4a; }
html[data-theme="dark"] .map .rm.t-entrance text { fill: #ffb3c1; }
html[data-theme="dark"] .map .rm.t-restroom rect { fill: #1f242b; stroke: #3a4553; }
html[data-theme="dark"] .map .rm.t-staircase.st-none rect:not(.stairs-hatch) { fill: #3a3034; stroke: #6b5c62; }
html[data-theme="dark"] .map .hatch-line { stroke: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .map .rm.st-occ rect:not(.hitpad) { fill: #a3143a; }
html[data-theme="dark"] .map .rm.st-free rect:not(.hitpad) { fill: #13321f; }
html[data-theme="dark"] .map .rm.st-free .n, html[data-theme="dark"] .map .rm.st-free .s { fill: #d8f5e4; }
html[data-theme="dark"] .map .rm.st-office rect:not(.hitpad) { fill: #1c2140; }
html[data-theme="dark"] .map .rm.st-office .n, html[data-theme="dark"] .map .rm.st-office .s { fill: #dfe4ff; }
html[data-theme="dark"] .map .labels text { fill: #d9cdd2; }
html[data-cb="1"] .map .rm.st-occ rect:not(.hitpad) { fill: #0b5cad; stroke: #073b70; }
html[data-cb="1"] .map .rm.st-free rect:not(.hitpad) { fill: #ffe8c2; stroke: #b35900; }
html[data-cb="1"] .map .rm.st-free .n, html[data-cb="1"] .map .rm.st-free .s { fill: #5c2e00; }
/* 44 px touch targets (round 2 phase B sweep, 2026-11-16) */
.cx-tn-brand { min-height: 44px; display: inline-flex; align-items: center; }
.btn, .btn-sm, a.btn, button.btn { min-height: 44px !important; }

/* Account pages without the menu (owner, 2026-11-16): sign in, sign up, forgot password, guest */
.auth-bare { margin-top: clamp(24px, 7vh, 72px); padding-bottom: 40px; }
.auth-bare .auth-card { box-shadow: 0 10px 30px rgba(60, 20, 30, .07); }
/* Owner 2026-11-18 (option B): split screen. The campus photo stays on the left with the university's name;
   the form sits on the plain page on the right. On phones the photo is a short banner above the form. */
.auth-side { display: none; }
body[data-page="signin"], body[data-page="signup"], body[data-page="forgot"], body[data-page="guest"] { background: var(--card); min-height: 100vh; }
.auth-bare { max-width: none; margin: 0 0 0 55.5vw; padding: 40px 32px; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-bare > .auth-card { width: 100%; max-width: 400px; border: 0; box-shadow: none; padding: 0; background: transparent; }
.auth-bare.auth-wide > .auth-card { max-width: 520px; }
.auth-bare > .auth-side { display: flex; flex-direction: column; justify-content: flex-end; position: fixed; left: 0; top: 0; bottom: 0; width: 55.5vw;
  padding: 48px; color: #fff; background: #2a1016 url("/static/brand/campus.webp") center / cover no-repeat; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 8, 18, .05) 35%, rgba(42, 8, 18, .82) 100%); }
.auth-side > * { position: relative; margin: 0; }
.auth-side .uni { font-size: 15px; opacity: .92; margin-bottom: 6px; }
.auth-side .col { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; max-width: 16ch; }
.auth-side .tag { margin-top: 12px; font-size: 16px; max-width: 42ch; opacity: .92; }
@media (max-width: 760px) {
  .auth-bare { margin: 0; padding: 0 0 32px; min-height: 0; justify-content: flex-start; }
  .auth-bare > .auth-card { padding: 24px 20px 0; max-width: none; }
  .auth-bare > .auth-side { position: relative; width: 100%; min-height: 170px; padding: 20px; background-image: url("/static/brand/campus-sm.webp"); }
  .auth-side .col { font-size: 22px; }
  .auth-side .tag { display: none; }
}
.auth-card .opt { font-weight: 500; color: var(--dim); font-size: 13px; }
.row-name { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.auth-card .consent { margin: 4px 0 18px; }
.auth-card .consent .check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 6px; font-weight: 500; }
.auth-card .consent .check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; }
.auth-card .consent .check span { line-height: 1.45; }
.auth-card .field select { min-height: 46px; }
@media (max-width: 560px) { .row-name { grid-template-columns: minmax(0, 1fr) 110px; } }
/* Guest: rooms with a kiosk */
.guest-head { margin-top: 18px; }
.kiosk-rooms { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kiosk-room { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid #9a8a90; border-radius: 12px;
  padding: 12px 14px; }
.kiosk-room.occ { border-left-color: #7A0019; } .kiosk-room.free { border-left-color: #16824b; } .kiosk-room.office { border-left-color: #3f51b5; }
.kiosk-room strong { font-size: 16px; }
.kiosk-room .st { font-weight: 700; font-size: 14px; } .kiosk-room.occ .st { color: #7A0019; } .kiosk-room.free .st { color: #11683e; }
.kiosk-room .m { font-size: 13px; color: var(--dim); }
.kiosk-room a { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.auth-card .field label:has(.opt), .form-card .field label:has(.opt) { display: block; }
.field label .opt { display: inline; margin-left: 4px; }
.auth-logo { display: block; width: 150px; height: auto; margin: 0 0 18px; }
html[data-theme="dark"] .auth-logo { background: #fff; border-radius: 10px; padding: 6px 10px; }
.kiosk-rooms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); }
.kiosk-room { padding: 10px 12px; gap: 2px; }
.kiosk-room strong { font-size: 15px; line-height: 1.3; }
.kiosk-room a { min-height: 40px; font-size: 14px; }

/* Round 3 (owner, 2026-11-16): guest button inside the sign-in card */
.auth-card .auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--dim); font-size: 13px; }
.auth-card .auth-or::before, .auth-card .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .hint.center { display: block; text-align: center; margin: 8px 0 0; }

/* No footer any more (round 3): keep space under the content, and above the phone tab bar */
main { padding-bottom: 40px; }
.section-preview.warn { background: #fff4dc; color: #6b4500; }
/* Pull down to refresh (round 3) */
.ptr-tip { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 50%; transform: translate(-50%, 0); z-index: 80;
  padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(60, 20, 30, .12);
  font-size: 14px; font-weight: 600; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s; }
.ptr-tip.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ptr-tip { transition: none; } }
/* Dashboard (round 3): building numbers are links; the "what to do" rule under a late instructor */
.mini-stats .stat-link { display: grid; gap: 2px; min-height: 44px; color: inherit; text-decoration: none; border-radius: 10px; }
.mini-stats .stat-link:hover .stat-l, .mini-stats .stat-link:focus-visible .stat-l { text-decoration: underline; }
.next-rule { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--ink); }
/* My classes (round 3): joined empty days, one report link per day, updates on top */
.class-none-run { margin: 14px 0 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.class-report { margin: 6px 0 0; font-size: 14px; }
.class-report a { display: inline-flex; align-items: center; min-height: 44px; }
.updates-top { margin-bottom: 16px; }
/* Campus map (round 3): search above the map, matches only, next class outlined */
.map-find { display: grid; gap: 6px; margin: 4px 0 14px; max-width: 520px; }
.map-find label { font-weight: 700; }
.map-find input { min-height: 46px; font-size: 16px; padding: 0 12px; border: 1px solid #cbbfc4; border-radius: 10px; background: var(--card); color: var(--ink); }
.map-find .hint { margin: 0; }
.find-results:empty { display: none; }
.map .rm.next-class rect:not(.hitpad) { stroke: var(--maroon); stroke-width: 4; }
/* Faculty (round 3): one scrolling row of filters on phones */
@media (max-width: 560px) {
  .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .chips .chip { flex: none; }
}
/* My notes (round 3): list first, form behind "New note" */
.notes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.notes-head .btn { min-height: 44px; }
/* Owner 2026-12-02: "Make it a checklist" as one tidy row. The form's `.field input` rules (48px tall, full width,
   padding) used to stretch the tickbox and squeeze its label to one letter per line. */
.form-card .field .note-cl { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin-top: 6px; padding: 12px 14px;
  min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 400; }
.form-card .field .note-cl input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; border: 0;
  border-radius: 4px; accent-color: var(--maroon); cursor: pointer; }
.form-card .field .note-cl span { display: grid; gap: 2px; }
.form-card .field .note-cl strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.form-card .field .note-cl small { font-size: 14px; color: var(--dim); }
.form-card .field .note-cl:has(input:checked) { border-color: var(--maroon); background: var(--maroon-bg); }
.form-card .field .note-cl:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-tag { font-weight: 400; color: var(--dim); }
#noteCard { max-width: 760px; }
#noteCard textarea { min-height: 120px; resize: vertical; }
#noteCard .m { margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.note-actions { justify-content: flex-start; padding-top: 4px; }
.note-actions .btn { min-width: 120px; min-height: 44px; }
/* the empty state's own "Write a note" button is pointless while the form is already open */
#noteCard:not([hidden]) ~ .note-list .note-empty .btn { display: none; }
.note-search[hidden] { display: none; }
/* Account (round 3): categories as tabs; red delete; display summary */
.set-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.set-tabs [role="tab"] { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--dim); font: inherit; font-weight: 700; cursor: pointer; }
.set-tabs [role="tab"][aria-selected="true"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.set-tabs [role="tab"]:focus-visible { outline: 3px solid var(--maroon); outline-offset: -3px; }
.reveal-btn.danger { color: #b42318; border-color: rgba(180, 35, 24, .45); margin-top: 18px; }
.reveal-btn.danger:hover { background: #fff0ef; }
.prefs-summary { font-weight: 600; margin: 0 0 12px; }
@media (max-width: 420px) { .set-tabs { gap: 0; } .set-tabs [role="tab"] { padding: 0 10px; font-size: 15px; } }

/* Round 4 (owner): "Notify me when they arrive" on a faculty card */
.card-notify { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line, #e4dcdf); background: var(--surface, #fff); color: var(--maroon, #7A0019); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.card-notify[aria-pressed="true"] { background: #e8f6ee; border-color: #b9dfc8; color: #11653f; }

/* One loading look everywhere (round 4): same ring and word as the staff site */
.cx-loading { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; margin: 0;
  color: var(--dim); font-size: 15px; font-weight: 500; list-style: none; }
.cx-loading::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--maroon); animation: cx-loading-spin .8s linear infinite; }
html[data-theme="dark"] .cx-loading::before { border-top-color: #ffb3c1; }
@keyframes cx-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cx-loading::before { animation: none; border-top-color: var(--line); } }
html[data-motion="reduce"] .cx-loading::before { animation: none; border-top-color: var(--line); }

/* Faculty finder (owner round 3, 2026-11-18): bell top-right, View details | Show on map */
.card-top { position: relative; }
.card-bell { margin-left: auto; align-self: flex-start; flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--mid); cursor: pointer; }
.card-bell:hover { color: var(--maroon); border-color: var(--maroon); }
.card-bell[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.card-bell[aria-pressed="true"] svg path:first-child { fill: currentColor; }
.card-bell:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.card-bell[disabled] { opacity: .6; cursor: progress; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-btn { flex: 1 1 0; min-width: 120px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--maroon); font-weight: 700; text-decoration: none; background: var(--card); }
.card-btn:hover, .card-btn:focus-visible { border-color: var(--maroon); background: var(--maroon-bg); }

/* Instructor page for students */
.fd-back { margin: 0 0 8px; }
.fd-back a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.fd-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.fd-av { width: 72px; height: 72px; font-size: 24px; flex: none; overflow: hidden; }
.fd-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fd-id { min-width: 0; flex: 1 1 auto; }
.fd-id h1 { margin: 0; font-size: 24px; }
.fd-pos { margin: 2px 0 0; color: var(--mid); }
.fd-now { margin: 0 0 14px; display: grid; gap: 6px; }
.fd-act { margin: 6px 0 0; }
.fd-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .fd-grid { grid-template-columns: 1fr; } }
.fd-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 8px 0 14px; font-size: 15px; }
.fd-dl dt { color: var(--mid); }
.fd-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fd-cons-t { margin-top: 6px; }
.fd-cons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.fd-day { list-style: none; font-weight: 800; color: var(--maroon); padding: 12px 0 2px; font-size: 14px; }
.fd .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Guest page (owner round 3, 2026-11-18): what a guest gets, what an account adds */
.guest-card { max-width: 560px; }
.guest-back { margin: 0 0 4px; font-size: 14px; }
.guest-back a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.guest-form #g_sid { font-size: 20px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* Owner 2026-11-24: "for all users kindly center the nav bar" - same as the staff bar (citron.css). */
@media (min-width: 1024px) {
  .cx-topnav { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .cx-topnav > .cx-tn-brand { justify-self: start; }
  .cx-topnav > .cx-tn-links { flex: none; justify-content: center; }
  .cx-topnav > .cx-tn-right { justify-self: end; margin-left: 0; }
}

/* 2026-11-29 polish: headings break evenly; paragraphs avoid a single word on their last line. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Owner review 2026-11-30 (guest settings): a back link on the guest display settings page, and the "Rooms with a
   kiosk" cards one per row on phones (two columns squeezed a single card to half the width). */
.back-link { margin: 0 0 8px; }
.back-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--maroon); text-decoration: none; }
.back-link a:hover, .back-link a:focus-visible { text-decoration: underline; }
@media (max-width: 480px) { .kiosk-rooms { grid-template-columns: minmax(0, 1fr); } }

/* Owner review 2026-12-01 (batch 5) */
.card-sub { margin: -4px 0 10px; font-size: 14px; }
.tl-fold { list-style: none; margin: 0 0 6px; }
.tl-fold-btn { min-height: 40px; padding: 0 14px; border: 1px dashed var(--line); border-radius: 999px; background: transparent; color: var(--maroon, #7A0019);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tl-fold-btn:focus-visible { outline: 3px solid var(--maroon, #7A0019); outline-offset: 2px; }
.badge.badge-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.cx-tabbar .badge.badge-dot { min-width: 10px; height: 10px; top: 6px; }
.card-bell { width: auto; min-width: 44px; gap: 6px; padding: 0 10px; }
.card-bell-txt { font-size: 13px; font-weight: 700; }
.nav-here { width: 100%; justify-content: center; gap: 8px; margin: 0 0 10px; }
.nav-here svg { width: 20px; height: 20px; flex: none; }
.dir-sheet > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--maroon, #7A0019); }
.panel.panel-route { max-height: 38vh; }
@media (min-width: 1024px) { .panel.panel-route { max-height: none; } }
.guest-line { margin: 0 0 14px; font-size: 15px; color: var(--mid, #555); }

/* Owner review 2026-12-01: Help, redesigned */
.help-page { max-width: 980px; }
.help-hero { padding: 26px 26px 20px; margin: 8px 0 20px; border-radius: 20px; background: linear-gradient(135deg, #7A0019 0%, #9b1b33 100%); color: #fff; }
.help-hero h1 { color: #fff; margin: 0 0 6px; font-size: 32px; letter-spacing: -.02em; }
.help-hero p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); max-width: 60ch; }
.help-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.help-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14);
  color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); }
.help-jump a:hover { background: rgba(255, 255, 255, .24); }
.help-jump a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.help-steps { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: hs; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-steps li { counter-increment: hs; position: relative; padding: 14px 14px 14px 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); line-height: 1.45; }
.help-steps li::before { content: counter(hs); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon-bg, #f6eef0); color: var(--maroon, #7A0019); font-weight: 800; font-size: 14px; }
.help-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.help-phone { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.help-phone h3 { margin: 0 0 6px; font-size: 16px; }
.help-phone ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.help-page .faq details { border-radius: 12px; }
.help-page .faq summary { min-height: 52px; }
@media (max-width: 680px) { .help-steps, .help-phones { grid-template-columns: 1fr; } .help-hero { padding: 20px 18px 16px; } .help-hero h1 { font-size: 27px; } }
html[data-theme="dark"] .help-hero { background: linear-gradient(135deg, #4a0612 0%, #5e0d1d 100%); }

/* Owner review 2026-12-01: Notes, redesigned (cards in a grid, a real empty state) */
.note-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.note-list > li.m, .note-list > li.cx-loading { grid-column: 1 / -1; }
.note-list > .note { padding: 14px 16px; border-radius: 14px; box-shadow: 0 1px 2px rgba(60, 20, 30, .04); }
.note-list > .note.pinned { border-color: #e0c06a; background: #fffdf5; }
.note-top strong { font-size: 16px; color: var(--ink); }
.note-body { margin: 8px 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 16px; background: var(--card); }
.note-empty strong { font-size: 18px; }
.note-empty span { max-width: 44ch; color: var(--dim); }
.note-search { max-width: 520px; margin-top: 14px; }
html[data-theme="dark"] .note-list > .note.pinned { background: #2a2416; border-color: #6b5a2a; }

/* Owner review 2026-12-01: My classes: the newest updates, the rest behind Show all */
.update-more { list-style: none; text-align: center; }
.update-more .linkish { min-height: 44px; font-weight: 700; }

/* Owner review 2026-12-01: guest display settings nudge */
.guest-nudge { margin-top: 16px; border-left: 4px solid var(--maroon, #7A0019); }
.guest-nudge h2 { margin: 0 0 4px; font-size: 18px; }

/* Owner review 2026-12-01: Privacy, redesigned */
.pv-page { max-width: 980px; }
.pv-head { margin: 8px 0 18px; }
.pv-head h1 { margin: 0 0 6px; letter-spacing: -.02em; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pv-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pv-card h2 { margin: 10px 0 6px; font-size: 18px; }
.pv-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pv-card p { margin: 0 0 6px; }
.pv-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--maroon-bg, #f6eef0); color: var(--maroon, #7A0019); }
@media (max-width: 720px) { .pv-grid { grid-template-columns: 1fr; } }

/* Owner review 2026-12-01: guest rooms and map */
.guest-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; padding: 14px 16px;
  border-radius: 16px; background: var(--maroon-bg, #f6eef0); border: 1px solid #ecd6dc; }
.guest-banner strong { display: block; font-size: 16px; }
.guest-banner span { color: var(--dim); font-size: 14px; }
.guest-banner-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.kr-sub { margin: 0 0 4px; color: var(--dim); font-size: 14px; }
.guest-head .kiosk-rooms { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
html[data-theme="dark"] .guest-banner { background: #2a1d22; border-color: #4a3038; }
