/* Student site, the look of the owner's native CITron prototype (2026-11-17):
   clock in the top bar, search and room status cards on Home, notes with a floating Add button,
   a full-width map with chips, a bottom sheet and Set as Start / Set as Dest. directions,
   settings as a profile header plus icon rows, and the sign-in card.
   Loaded after student.css; uses its colour tokens, so the dark theme and high contrast still apply. */

/* ── top bar clock ─────────────────────────────────────────────────────────────── */
.cx-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; margin-right: 4px; color: var(--ink); }
.cx-clock-t { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-clock-d { font-size: 12px; color: var(--dim); }
@media (max-width: 340px) { .cx-clock { display: none; } }

.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; }

/* ── section headings with an icon tile ────────────────────────────────────────── */
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-row .sec-h { margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--maroon-bg); color: var(--maroon); flex: none; }
.sec-ico svg { width: 18px; height: 18px; }

/* ── Home: search ─────────────────────────────────────────────────────────────── */
.home-search { position: relative; margin-top: 14px; max-width: 640px; }
.home-search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; box-shadow: 0 1px 2px rgba(28, 20, 23, .04); }
.home-search input::placeholder { color: var(--dim); }
.home-search input:focus-visible { outline: 3px solid var(--maroon); outline-offset: 1px; }
.home-search svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }

/* ── Home: the Dean's and the CIT office's status (owner 2026-11-24, where the room cards were) ── */
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 769px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 76px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
.st-info { min-width: 0; display: grid; gap: 2px; }
.st-info small { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: capitalize; color: var(--dim); }
.st-info strong { font-size: 16px; line-height: 1.3; }
.st-info em { font-style: normal; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-state { display: grid; justify-items: end; gap: 4px; text-align: right; }
.room-state .pill { font-size: 12px; padding: 3px 9px; white-space: nowrap; }
.room-state small { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-cards .m, .home-notes .m { color: var(--mid); padding: 12px 2px; }

/* ── Home: notes + floating Add note button ─────────────────────────────────── */
.home-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 769px) { .home-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-note a { display: grid; gap: 4px; padding: 14px 16px; min-height: 64px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink); text-decoration: none; }
.home-note a:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.home-note strong { font-size: 15px; }
.home-note p { margin: 0; font-size: 14px; color: var(--mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-note .tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--maroon-bg); color: var(--maroon); }
.notes-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; text-align: center; color: var(--mid);
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.notes-empty svg { width: 34px; height: 34px; color: var(--dim); }
/* Owner 2026-12-02: the empty card spans the row and has its own "Write a note" button */
.notes-empty { grid-column: 1 / -1; }
.notes-empty .ne-text { display: grid; gap: 2px; }
.notes-empty .ne-text strong { color: var(--ink); font-size: 16px; }
.notes-empty .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 769px) {
  .notes-empty { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 16px; padding: 18px 22px; }
}
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; background: var(--maroon);
  color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(122, 0, 25, .32); transition: transform .12s ease-out; }
.fab svg { width: 20px; height: 20px; }
.fab:active { transform: scale(.96); }
.fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 769px) { .fab { bottom: 28px; } }
/* 2026-11-29 polish: while scrolling down on a phone the button shrinks to a round "+" so it no longer
   covers class details; it opens again when scrolling up or back at the top (common.js). */
@media (max-width: 768px) {
  .fab { transition: transform .12s ease-out, padding .2s ease-out, gap .2s ease-out; }
  .fab.fab-mini { padding: 0 16px; gap: 0; }
  .fab.fab-mini .fab-label { display: none; }
  /* Audit 2026-11-30: at the top of Home the full "Add note" pill covered the end of the next-class card's room
     line; on phones it is the round "+" from the start (aria-label "Add note" keeps its name) */
  .fab { padding: 0 16px; gap: 0; }
  .fab .fab-label { display: none; }
  main { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }
body.has-fab main { padding-bottom: 76px; }

/* ── Map ─────────────────────────────────────────────────────────────────────── */
.map-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.map-title svg { width: 26px; height: 26px; color: var(--maroon); }
.floor-tabs .tab { border-radius: 99px; min-height: 40px; padding: 0 14px; }
.legend-fold { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 14px; }
.legend-fold summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; color: var(--ink); list-style: none; }
.legend-fold summary::-webkit-details-marker { display: none; }
.legend-fold summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; }
.legend-fold[open] summary::after { transform: rotate(-135deg); }
.legend-fold .legend, .legend-fold .note { margin-bottom: 12px; }
.map-hint { margin: 8px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.map-layout { position: relative; }
/* Owner 2026-12-01: Directions is in the map's toolbar (right of the zoom buttons), not floating over the map:
   the floating button covered rooms and, for guests, the Legend. */
.map-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.map-tools .map-zoom { margin: 0; }
.map-fab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px 0 14px; border: 0;
  border-radius: 22px; background: var(--maroon); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .12s ease-out; }
.map-fab svg { width: 20px; height: 20px; }
.map-fab:active { transform: scale(.95); }
.map-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* the route chosen so far, above the map */
.route-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--maroon-bg); color: var(--ink); font-size: 14px; }
.route-bar[hidden] { display: none; }
.route-bar b { color: var(--maroon); }
.route-bar button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; }
.route-bar .rb-txt { flex: 1 1 200px; min-width: 0; }

/* the room / directions sheet: a handle and rounded top on phones */
.panel { border-radius: 20px 20px 0 0; box-shadow: 0 -10px 34px rgba(28, 20, 23, .18); }
.panel-top::before { content: ''; position: absolute; top: 5px; left: calc(50% - 20px); width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
@media (min-width: 1024px) { .panel { border-radius: 0; } .panel-top::before { display: none; } }
.sheet-head h2 { overflow-wrap: anywhere; }
.sheet-head { display: flex; min-width: 0; gap: 12px; align-items: center; margin: 2px 0 10px; }
.sheet-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--info-bg); color: var(--maroon); }
.sheet-ico svg { width: 26px; height: 26px; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.sheet-chips li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); color: var(--mid); background: var(--card); }
.sheet-chips li.c-type { background: #e8f1fb; color: #1d4f86; border-color: #c9ddf3; }
.sheet-chips li.c-floor { background: var(--bad-bg); color: var(--bad); border-color: #f3c9d1; }
html[data-theme="dark"] .sheet-chips li.c-type { background: #1b2a3d; color: #b9d4f5; border-color: #2f4762; }
html[data-theme="dark"] .sheet-chips li.c-floor { border-color: #5a2a34; }
.nav-h { margin: 14px 0 8px; font-size: 15px; }
.nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s ease-out; }
.nav-btn svg { width: 18px; height: 18px; flex: none; }
.nav-btn:active { transform: scale(.97); }
.nav-btn.start { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9dfc9; }
.nav-btn.dest { background: var(--bad-bg); color: var(--bad); border: 1px solid #f3c9d1; }
.nav-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.nav-btn:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.plan { display: grid; gap: 10px; margin: 4px 0 12px; }
.plan-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.plan-row label { grid-column: 2; font-weight: 600; font-size: 14px; margin-bottom: -4px; }
.plan-dot { grid-row: 2; width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.plan-dot.start { background: #13703f; box-shadow: 0 0 0 4px var(--ok-bg); }
.plan-dot.dest { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.plan-row select { grid-column: 2; width: 100%; min-width: 0; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.plan-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-acts .btn { flex: 1 1 140px; gap: 6px; }
.plan-acts .btn svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .fab, .map-fab, .nav-btn, .legend-fold summary::after { transition: none; }
  .fab:active, .map-fab:active, .nav-btn:active { transform: none; }
}
html[data-motion="reduce"] .fab:active,
html[data-motion="reduce"] .map-fab:active, html[data-motion="reduce"] .nav-btn:active { transform: none; }

/* ── Room statuses (owner, 2026-11-17): reserved and class due, beside in use / free / office ─────────── */
.sw-due { background: repeating-linear-gradient(45deg, #fff6e5 0 4px, #f3d9a8 4px 8px); border-color: #96430a; }
.map .rm.st-due rect:not(.hitpad) { fill: #fff6e5; stroke: #96430a; stroke-width: 1.8; stroke-dasharray: 6 4; }
.map .rm.st-due .n { fill: #5c2a00; } .map .rm.st-due .s { fill: #7a3a00; }
html[data-theme="dark"] .map .rm.st-due rect:not(.hitpad) { fill: #3a2810; }
html[data-theme="dark"] .map .rm.st-due .n, html[data-theme="dark"] .map .rm.st-due .s { fill: #ffd9a8; }
.room-card .room-tile.due { background: #96430a; }
.room-bk { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.room-bk li { padding: 8px 10px; border-radius: 10px; background: #fff1d6; color: #5c3300; font-size: 14px; }
html[data-theme="dark"] .room-bk li { background: #3a2810; color: #ffd9a8; }

/* ── Account: profile header + icon rows ───────────────────────────────────── */
.prof-head { margin: 0 -16px 18px; padding: 26px 16px 22px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #8f0b27 0%, #7A0019 55%, #5E0013 100%); }
@media (min-width: 768px) { .prof-head { margin: 0 0 20px; border-radius: 20px; } }
.prof-av { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--maroon); font-size: 34px; font-weight: 800; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.prof-head h1, .prof-head p.prof-name { color: #fff; font-size: 22px; margin: 0; }
.prof-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: 14px; overflow-wrap: anywhere; }
.prof-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prof-chips span, .prof-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px; font-weight: 600; }
.prof-chips button { cursor: pointer; }
.prof-chips button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.set-rows { display: grid; gap: 10px; }
.set-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.set-row { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 68px;
  padding: 10px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.set-row:focus-visible { outline: 3px solid var(--maroon); outline-offset: -3px; }
.set-row strong { display: block; font-size: 16px; }
.set-row small { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
.set-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.set-ico svg { width: 21px; height: 21px; }
.set-ico.i-profile { background: #fdecef; color: #b1203a; }
.set-ico.i-security { background: #fff2e0; color: #96430a; }
.set-ico.i-prefs { background: #f1eafd; color: #6b3fb5; }
.set-ico.i-data { background: #e8f1fb; color: #1d4f86; }
.set-ico.i-help { background: #e6f4f1; color: #136a5a; }
.set-ico.i-privacy { background: #eef0f3; color: #43505e; }
html[data-theme="dark"] .set-ico { background: var(--none-bg); color: var(--ink); }
.set-chev { width: 10px; height: 10px; justify-self: center; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg); transition: transform .15s; }
.set-row[aria-expanded="true"] .set-chev { transform: rotate(-135deg); }
a.set-row .set-chev { transform: rotate(-45deg); }
.set-item > [role="region"] { padding: 0 14px 14px; }
.set-item > [role="region"] .form-card { border: 0; padding: 4px 0 0; box-shadow: none; margin: 0; }
.set-item > [role="region"] .form-card + .form-card { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 12px; }
.set-signout { width: 100%; margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
  border: 0; border-radius: 16px; background: var(--bad); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.set-signout svg { width: 20px; height: 20px; }
.set-signout:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .set-chev { transition: none; } }

/* ── Sign-in card ──────────────────────────────────────────────────────────── */
.auth-card.si-card { text-align: left; }
.si-card .auth-logo { display: block; margin: 0 auto 6px; }
.si-card h1 { text-align: center; font-size: 26px; }
.si-card > .lead { text-align: center; margin-left: auto; margin-right: auto; }
.si-field, .si-card .pw-wrap { position: relative; }
.si-field > svg, .pw-wrap > svg.si-ico { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.si-card .field input[type="email"], .si-card .pw-wrap input { padding-left: 42px; }
.si-card button[type="submit"] { gap: 8px; }
.si-card button[type="submit"] svg { width: 18px; height: 18px; }
.si-card .btn.secondary.block { gap: 8px; }
.si-card .btn.secondary.block svg { width: 18px; height: 18px; }

/* Faculty filter chips on phones scroll sideways with no grey scrollbar under them (owner, 2026-11-17: ugly UI) */
@media (max-width: 768px) {
  fieldset.chips { scrollbar-width: none; }
  fieldset.chips::-webkit-scrollbar { display: none; }
}

/* Review 2026-11-17 (owner): room names wrap instead of being cut off; the class card is maroon */
.room-info strong, .room-info span em { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.next-card { background: var(--maroon); color: #fff; border-top: 0; }
.next-card .card-eyebrow, .next-card .next-when, .next-card .next-meta .k, .next-card .next-after, .next-card .next-empty, .next-card .next-rule { color: rgba(255,255,255,.86); }
.next-card .next-title, .next-card .next-meta li span:last-child { color: #fff; }
.next-card .next-foot { border-top-color: rgba(255,255,255,.25); }
.next-card .btn-secondary { background: #fff; color: var(--maroon); border-color: #fff; }
.next-card .next-when.live::before { background: #7ee2a8; }
html[data-theme="dark"] .next-card .next-when { color: rgba(255,255,255,.9); }
.next-card .pill.tone-occ { background: #fff; color: var(--maroon); }
/* Review 2026-11-17 (owner): room sheet — where and status on one line, class now / next, classroom schedule */
.sheet-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 12px; }
.sheet-floor { font-weight: 700; color: var(--mid); }
.sheet-class { border: 1px solid var(--line); border-left: 4px solid var(--maroon); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--card, #fff); }
.sheet-class p { margin: 0; }
.sheet-class .label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: capitalize; color: var(--maroon); margin-bottom: 4px; }
.sheet-class .sc-who { font-size: 16px; font-weight: 800; }
.sheet-class .sc-cls { font-weight: 700; }
.sheet-class .sc-time { font-variant-numeric: tabular-nums; color: var(--mid); }
.sheet-class .sc-subj { color: var(--mid); }
.sheet-sched-btn { margin: 2px 0 10px; }
.sheet-sched[hidden] { display: none; }
.sheet-sched-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.sheet-sched-tabs button { min-height: 40px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink, inherit); cursor: pointer; }
.sheet-sched-tabs button[aria-pressed="true"] { background: var(--maroon); color: #fff; }
html[data-theme="dark"] .sheet-class .label { color: #ffb3c1; }
/* Review 2026-11-17 (owner): centred logo on the guest page; floor dropdown on the guest map */
.auth-logo.auth-logo-center { margin-left: auto; margin-right: auto; }
.floor-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.floor-pick select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; background: var(--card, #fff); color: inherit; }

/* Owner 2026-11-18: one clear colour per room status, with the legend.
   In use = maroon (also "started early") · Ran over = deep orange · Free = green · Ended early = teal ·
   Reserved = indigo (was amber, the same as "class not started") · Class not started = amber stripes. */
.sw-res { background: #eef0ff; border-color: #3730a3; }
.sw-over { background: #c2410c; border-color: #9a3412; }
.sw-ended { background: #e3f5f2; border-color: #0f766e; border-style: dashed; }
.map .rm.st-res rect:not(.hitpad) { fill: #eef0ff; stroke: #3730a3; stroke-width: 1.8; }
.map .rm.st-res .n { fill: #1e1b4b; } .map .rm.st-res .s { fill: #3730a3; }
.map .rm.st-over rect:not(.hitpad) { fill: #c2410c; stroke: #9a3412; stroke-width: 1.8; }
.map .rm.st-over .n, .map .rm.st-over .s { fill: #fff; }
.map .rm.st-ended rect:not(.hitpad) { fill: #e3f5f2; stroke: #0f766e; stroke-width: 1.8; stroke-dasharray: 6 3; }
.map .rm.st-ended .n { fill: #064e47; } .map .rm.st-ended .s { fill: #0f766e; }
.tone-res { color: #3730a3; background: #eef0ff; }
.tone-over { color: #fff; background: #c2410c; }
.tone-ended { color: #0f766e; background: #e3f5f2; }
.room-card .room-tile.res { background: #3730a3; }
.room-card .room-tile.over { background: #c2410c; }
.room-card .room-tile.ended { background: #0f766e; }
html[data-theme="dark"] .map .rm.st-res rect:not(.hitpad) { fill: #23224a; }
html[data-theme="dark"] .map .rm.st-res .n, html[data-theme="dark"] .map .rm.st-res .s { fill: #c7cbff; }
html[data-theme="dark"] .map .rm.st-ended rect:not(.hitpad) { fill: #0f2e2b; }
html[data-theme="dark"] .map .rm.st-ended .n, html[data-theme="dark"] .map .rm.st-ended .s { fill: #a7f3e8; }
html[data-theme="dark"] .tone-res { color: #c7cbff; background: #23224a; }
html[data-theme="dark"] .tone-ended { color: #a7f3e8; background: #0f2e2b; }
/* colour-blind mode already uses blue = in use and orange = free: ran over is near-black, ended early dashed grey */
html[data-cb="1"] .map .rm.st-over rect:not(.hitpad), html[data-cb="1"] .sw-over { fill: #1f2937; background: #1f2937; stroke: #000; border-color: #000; }
html[data-cb="1"] .tone-over, html[data-cb="1"] .room-card .room-tile.over { background: #1f2937; }
html[data-cb="1"] .map .rm.st-ended rect:not(.hitpad), html[data-cb="1"] .sw-ended { fill: #eef2f7; background: #eef2f7; stroke: #334155; border-color: #334155; }
html[data-cb="1"] .tone-ended { color: #334155; background: #eef2f7; }
html[data-cb="1"] .room-card .room-tile.ended { background: #334155; }

/* ── Room panel: the room's schedule as a list or a calendar (owner 2026-11-24) ── */
.rs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rs-bar .sheet-sched-tabs { margin-bottom: 0; }
.rs-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.rs-time { display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.rs-time b { font-size: 14px; }
.rs-time small { font-size: 12px; color: var(--dim); }
.rs-body { display: grid; gap: 2px; min-width: 0; }
.rs-body strong { font-size: 14px; line-height: 1.3; }
.rs-body small { font-size: 13px; color: var(--dim); }
.rs-day { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: capitalize; color: var(--maroon); }
.rs-day:first-child { margin-top: 0; }
.rs-cal { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.rs-cal-head { display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 800; text-align: center; }
.rs-cal-head span { padding: 6px 2px; }
.rs-cal-body { position: relative; display: grid; grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); overflow: hidden; }
.rs-cal-hours { position: relative; border-right: 1px solid var(--line); }
.rs-cal-hours span { position: absolute; right: 4px; transform: translateY(-50%); font-size: 10px; color: var(--dim); white-space: nowrap; }
.rs-cal-hours span:first-child { transform: none; }
.rs-cal-col { position: relative; border-right: 1px solid var(--line); }
.rs-cal-col:last-child { border-right: 0; }
.rs-cal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.rs-blk { position: absolute; left: 2px; right: 2px; overflow: hidden; padding: 3px 4px; border-radius: 6px; background: var(--maroon);
  color: #fff; display: grid; align-content: start; gap: 1px; font-size: 11px; line-height: 1.2; }
.rs-blk b { font-size: 10.5px; overflow-wrap: anywhere; }
.rs-cal.one .rs-blk b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-blk small { font-size: 10px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-cal.one .rs-blk { font-size: 12px; padding: 4px 8px; }
.rs-cal.one .rs-blk b { font-size: 13px; }
.rs-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #15803d; z-index: 2; }
.rs-now::before { content: ''; position: absolute; left: -3px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #15803d; }
/* the week: one day at a time (owner 2026-11-24) */
.rs-days { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.rs-days button { min-width: 52px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.rs-day-n { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--line); color: var(--ink, inherit); }
.rs-days button[aria-pressed="true"] .rs-day-n { background: rgba(255, 255, 255, .25); color: #fff; }
/* Audit 2026-11-24: maroon text on the dark cards was about 1.5:1; use the light rose the other dark links use */
html[data-theme="dark"] .linkish, html[data-theme="dark"] .class-item .t, html[data-theme="dark"] .rs-day,
html[data-theme="dark"] .avatar, html[data-theme="dark"] .cx-bottom a[aria-current="page"],
html[data-theme="dark"] .cx-tabbar .cx-tab.active { color: #ffb3c1; }

/* Owner 2026-11-25: sign-in, sign-up, forgot password and guest float as a card with a shadow on a dotted
   surface, beside the campus photo (desktop) or overlapping the photo banner (phones). citron-motion.css. */
body[data-page="signin"], body[data-page="signup"], body[data-page="forgot"], body[data-page="guest"] { background: var(--mk-surface, var(--bg)); }
.auth-bare.mk-stage { background: transparent; }
.auth-bare.mk-stage > .auth-card.mk-float {
  background: var(--card); padding: 34px 32px 28px; border: 0; border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line), var(--mk-shadow-lg);
}
.auth-bare.mk-stage > .auth-card.mk-float[hidden] { display: none; }
.auth-bare.mk-stage > .auth-card.mk-float .btn.block:not(.secondary) {
  background: var(--mk-grad); border-color: transparent; box-shadow: 0 1px 2px rgba(122, 0, 25, .3), 0 10px 22px rgba(122, 0, 25, .22);
}
.auth-bare.mk-stage > .auth-card.mk-float .field input:not([type=checkbox]), .auth-bare.mk-stage > .auth-card.mk-float .field select {
  border-radius: 12px; background: var(--mk-surface);
}
.auth-bare.mk-stage > .auth-card.mk-float .field input:not([type=checkbox]):focus,
.auth-bare.mk-stage > .auth-card.mk-float .field select:focus { background: var(--card); }
.auth-bare.mk-stage > .auth-card.mk-float .form-foot { border-top-color: var(--line); }
.auth-bare.mk-stage > .auth-card.mk-float .fgroup { border-radius: 14px; }
@media (max-width: 760px) {
  .auth-bare.mk-stage > .auth-card.mk-float { position: relative; z-index: 1; margin: -34px 12px 0; padding: 24px 18px 20px; width: auto; border-radius: 22px; }
  .auth-bare.mk-stage > .auth-side { padding-bottom: 50px; min-height: 190px; }   /* the card overlaps the banner's bottom */
}
html[data-theme="dark"] .auth-bare.mk-stage > .auth-card.mk-float .field input:not([type=checkbox]),
html[data-theme="dark"] .auth-bare.mk-stage > .auth-card.mk-float .field select { background: #151012; }

/* Owner 2026-11-25: sign-up in steps (About you, Your section, Password) */
.su-steps { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: none; }
.su-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--dim); cursor: default; }
.su-steps li[data-for] { cursor: pointer; }
.su-steps li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.su-steps li:first-child::before { display: none; }
.su-steps li.done::before, .su-steps li[aria-current="step"]::before { background: var(--maroon); transition: background-color .3s ease; }
.su-steps .n { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-size: 13px; font-weight: 700; color: var(--dim);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, transform .3s var(--mk-spring, ease); }
.su-steps li[aria-current="step"] { color: var(--ink); }
.su-steps li[aria-current="step"] .n { background: var(--mk-grad, var(--maroon)); color: #fff; box-shadow: 0 0 0 4px var(--mk-ring, rgba(122,0,25,.14)); transform: scale(1.06); }
.su-steps li.done .n { background: var(--maroon-bg); box-shadow: inset 0 0 0 2px var(--maroon); color: var(--maroon); }
.su-steps li.done .n { font-size: 0; }
.su-steps li.done .n::after { content: ""; width: 9px; height: 5px; border: solid var(--maroon); border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.su-steps li.later { opacity: .6; }
.is-stepped .fgroup { border-top: 0 !important; padding-top: 0 !important; }
.is-stepped .fgroup.su-in { animation: mk-in 420ms var(--mk-spring, ease) both; }
.su-nav { display: flex; gap: 10px; margin: 8px 0 4px; }
.su-nav .btn { flex: 1; min-height: 48px; }
.su-nav #suBack { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.su-nav #suNext { background: var(--mk-grad, var(--maroon)); border-color: transparent; color: #fff; }
.is-stepped #suSubmit[hidden] { display: none; }
@media (max-width: 420px) { .su-steps .t { font-size: 11.5px; } }
html[data-theme="dark"] .su-steps li.done .n { background: #3A1D24; }
@media (prefers-reduced-motion: reduce) { .is-stepped .fgroup.su-in { animation: none; } .su-steps .n { transition: none; } }

/* Owner 2026-11-25: sign in, continue as guest, create account and forgot password share ONE card size,
   centred, and the page does not scroll on a computer; a card whose content is taller scrolls inside itself
   (thin bar, only when needed). Phones: every card fills the screen under the photo banner. */
body[data-page="signin"], body[data-page="signup"], body[data-page="forgot"], body[data-page="guest"] { --auth-w: 460px; --auth-h: 720px; }
main > section.auth-bare.mk-stage { margin-top: 0; }
.auth-bare.mk-stage > .auth-card.mk-float, .auth-bare.mk-stage.auth-wide > .auth-card.mk-float { width: 100%; max-width: var(--auth-w); }
.auth-bare.mk-stage > .auth-card.mk-float .auth-logo { width: 132px; margin-bottom: 12px; }
.auth-bare.mk-stage > .auth-card.mk-float h1 { font-size: 24px; }
.auth-bare.mk-stage > .auth-card.mk-float .lead { margin-bottom: 14px; }
@media (min-width: 761px) {
  .auth-bare.mk-stage { box-sizing: border-box; height: 100vh; height: 100dvh; min-height: 0; padding: 24px 32px; overflow: hidden; }
  .auth-bare.mk-stage > .auth-card.mk-float {
    box-sizing: border-box; flex: none; height: min(var(--auth-h), calc(100dvh - 48px));
    display: flex; flex-direction: column; justify-content: safe center;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    scrollbar-gutter: auto;
  }
  .auth-bare.mk-stage > .auth-card.mk-float > * { flex-shrink: 0; }
  .auth-bare.mk-stage > .auth-card.mk-float::-webkit-scrollbar { width: 8px; }
  .auth-bare.mk-stage > .auth-card.mk-float::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
}
@media (max-width: 760px) {
  .auth-bare.mk-stage > .auth-card.mk-float { box-sizing: border-box; min-height: calc(100dvh - 190px + 34px - 24px); }
}
@media (min-width: 761px) {
  body[data-page="signin"] main, body[data-page="signup"] main, body[data-page="forgot"] main, body[data-page="guest"] main { padding-bottom: 0; }
}
.auth-bare.mk-stage > .auth-card.mk-float { padding-top: 28px; padding-bottom: 24px; }
.auth-bare.mk-stage > .auth-card.mk-float .auth-logo { margin-bottom: 8px; }
.auth-bare.mk-stage .su-steps { margin-bottom: 12px; }
@media (max-width: 760px) {
  .auth-bare.mk-stage > .auth-card.mk-float { min-height: calc(100dvh - 190px + 34px - 32px); }
}
body[data-page="signin"] main, body[data-page="signup"] main, body[data-page="forgot"] main, body[data-page="guest"] main { padding-bottom: 0; }
@media (max-width: 760px) { .auth-bare.mk-stage { padding-bottom: 24px; } .auth-bare.mk-stage > .auth-card.mk-float { min-height: calc(100dvh - 190px + 34px - 24px); } }

/* Owner review 2026-11-30 (student settings): the divider between two sections in a panel was drawn with the
   card's rounded corners, so it curved at both ends; and on narrow phones "New password" and "Confirm" sat side
   by side, squeezing the strength hint onto two lines. */
.set-item > [role="region"] .form-card { border-radius: 0; }
@media (max-width: 480px) { .form-card .row2 { grid-template-columns: minmax(0, 1fr); } }

/* Owner review 2026-12-01: Forgot password: a compact card, the steps shown */
body[data-page="forgot"] .auth-card.fp-card { align-self: center; height: auto; }
.fp-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 14px; border-radius: 16px; background: var(--maroon-bg, #f6eef0); color: var(--maroon, #7A0019); }
.fp-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: fp; }
.fp-steps li { counter-increment: fp; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px 0 4px; border-radius: 999px;
  background: var(--bg, #f4f1f2); color: var(--dim, #666); font-size: 13px; font-weight: 700; }
.fp-steps li::before { content: counter(fp); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--card, #fff); font-size: 12px; }
.fp-steps li[aria-current="step"] { background: var(--maroon, #7A0019); color: #fff; }
.fp-steps li[aria-current="step"]::before { color: var(--maroon, #7A0019); }
.fp-steps li.done { background: #e8f6ee; color: #11653f; }
.fp-steps li.done::before { content: "¹3"; }
