:root {
  color-scheme: dark;
  --brand: #723bfa;
  --lime: #b9f500;
  --white: #fff;
  --hero-ink: #201a2d;
  --ink: #faf9ff;
  --muted: #b8b5c7;
  --base: #18181c;
  --panel: #202027;
  --raised: #282831;
  --line: #393944;
  --focus: #bba4ff;
  --accent: #bba4ff;
  --good: #afe78e;
  --mid: #f4cb79;
  --bad: #ff9ea9;
  --unknown: #c9c5d6;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #201a2d;
  --muted: #5e576e;
  --base: #f5f3fa;
  --panel: #fff;
  --raised: #ece7f7;
  --line: #cbc3da;
  --focus: #5b23cf;
  --accent: #5423c2;
  --good: #346024;
  --mid: #795000;
  --bad: #a32346;
  --unknown: #625b71;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button, input, select, textarea { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .95rem; color: var(--ink); background: var(--raised); cursor: pointer; text-decoration: none; font-weight: 650; }
button:hover:not(:disabled), .button:hover { border-color: var(--accent); }
button:disabled { opacity: .65; cursor: default; }
.primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
input, select, textarea { width: 100%; padding: .55rem .75rem; background: var(--base); color: var(--ink); }
textarea { resize: vertical; }
label { display: block; font-weight: 650; }
label input, label select, label textarea { display: block; margin-top: .3rem; }
form > label, form > .toolbar { margin-bottom: .9rem; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
small { font-size: .78rem; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 3; padding: .5rem; background: var(--panel); }
.skip:focus { transform: none; }
.shell { display: flex; min-height: 100vh; }
.sidebar { flex: 0 0 244px; padding: 1.35rem 1rem; border-right: 1px solid var(--line); background: var(--panel); }
.side-top, .brand, nav a, .account { display: flex; align-items: center; gap: .65rem; }
.side-top { justify-content: space-between; }
.brand { font-weight: 780; color: var(--ink); letter-spacing: -.035em; text-decoration: none; line-height: 1.12; }
.brand small { display: block; font-size: .54rem; letter-spacing: .07em; margin-top: .25rem; color: var(--muted); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 9px; color: var(--lime); background: var(--brand); font-size: 1.65rem; }
.theme { width: 44px; min-width: 44px; padding: 0; font-size: 1.1rem; }
nav { display: flex; flex-direction: column; gap: .3rem; margin: 2rem 0 1rem; }
nav a { min-height: 44px; color: var(--muted); text-decoration: none; padding: .55rem .65rem; border-radius: 8px; font-size: .9rem; font-weight: 650; }
nav a[aria-current], nav a:hover { background: var(--raised); color: var(--ink); }
nav a[aria-current] { box-shadow: inset 3px 0 var(--brand); }
nav a span { color: var(--accent); font-size: 1.12rem; }
.account { border-top: 1px solid var(--line); padding-top: .65rem; flex-wrap: wrap; font-size: .86rem; }
.account a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; }
.main { flex: 1; min-width: 0; max-width: 1440px; padding: 2.5rem 3rem 4rem; }
.fixture { font-size: .76rem; font-weight: 700; color: var(--muted); border-left: 3px solid var(--brand); padding-left: .6rem; margin-bottom: 1.35rem; }
.hero { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 15px; background: var(--panel); padding: 1.6rem; margin-bottom: 1.25rem; }
.overview-hero {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 1.75rem;
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.overview-copy { flex: 1 1 55%; min-width: 0; }
.overview-copy h1 { font-size: 5rem; line-height: .94; letter-spacing: -.075em; margin-bottom: 1rem; }
.overview-copy p { max-width: 26rem; margin-bottom: 1.1rem; }
.overview-action { gap: .65rem; background: var(--lime); border-color: var(--lime); color: var(--hero-ink); }
.overview-action:hover { border-color: var(--hero-ink); }
.overview-action:focus { outline-color: var(--white); }
.overview-signal { display: flex; flex: 1 1 45%; align-items: center; gap: 3%; min-width: 0; }
.overview-signal span { flex: 1; height: 14%; background: var(--lime); border-radius: 99px; }
.overview-signal span:nth-child(2), .overview-signal span:nth-child(10) { height: 24%; }
.overview-signal span:nth-child(3), .overview-signal span:nth-child(9) { height: 42%; }
.overview-signal span:nth-child(4), .overview-signal span:nth-child(8) { height: 64%; }
.overview-signal span:nth-child(5), .overview-signal span:nth-child(7) { height: 82%; }
.overview-signal span:nth-child(6) { height: 100%; }
.snapshot-heading h2 { margin: 0; }
.dashboard-panels > .cards { align-items: stretch; }
.dashboard-panels > .cards .metric { font-size: 2.6rem; }
.hero p:last-child, .card p:last-child, .notice:empty { margin-bottom: 0; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .86rem; }
.toolbar, .cards, .split, .row, .map-grid { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; }
.row { align-items: center; justify-content: space-between; }
.toolbar { align-items: flex-end; margin: 1rem 0; }
.toolbar > label { flex: 1 1 155px; min-width: 0; }
.cards > * { flex: 1 1 245px; min-width: 0; }
.split > * { flex: 1 1 310px; min-width: 0; }
.card { padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; }
.card h3 a { color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: .85rem; }
.section { margin-top: 1.25rem; }
.form-card { max-width: 36rem; }
.metric { font-size: 2rem; line-height: 1.15; font-weight: 780; }
.pill { display: inline-block; padding: .17rem .55rem; border-radius: 99px; background: var(--raised); color: var(--tone, var(--unknown)); font-size: .78rem; font-weight: 750; }
.favorable { --tone: var(--good); }
.moderate { --tone: var(--mid); }
.unfavorable { --tone: var(--bad); }
.unknown { --tone: var(--unknown); }
.track { height: 8px; background: var(--raised); border-radius: 8px; overflow: hidden; margin: .2rem 0 .7rem; }
.fill { display: block; height: 100%; background: var(--tone, var(--unknown)); }
.notice { margin: .55rem 0; color: var(--muted); }
.notice[data-state="error"] { color: var(--bad); }
.notice[data-state="success"] { color: var(--good); }
.notice[data-state="loading"] { border-left: 3px solid var(--brand); padding-left: .65rem; }
.skeleton { min-height: 90px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.map-grid { padding: 1rem; background: var(--raised); border-radius: 12px; }
.map-grid button { flex: 1 1 120px; min-height: 70px; background: var(--panel); }
button[aria-pressed="true"] { border-color: var(--accent); }
.map-path { width: 100%; border-top: 2px dashed var(--line); padding-top: .3rem; text-align: center; }
@media (max-width: 1024px) {
  .main { padding: 1.8rem 1.5rem 3rem; }
  .sidebar { flex-basis: 224px; }
  .overview-hero { padding: 2rem; }
  .overview-copy h1 { font-size: 3.4rem; }
  .overview-signal { flex-basis: 33%; }
}
@media (max-width: 767px) {
  .shell { display: block; }
  .sidebar { padding: .65rem .9rem; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { flex-direction: row; flex-wrap: wrap; gap: .2rem; margin: .45rem 0 .2rem; }
  nav a { padding: .3rem .45rem; font-size: .82rem; }
  nav a[aria-current] { box-shadow: inset 0 -2px var(--brand); }
  .account { padding-top: 0; }
  .main { padding: 1rem .9rem 2.5rem; }
  h1 { font-size: 1.9rem; }
  .hero, .card { padding: 1rem; }
  .overview-hero { padding: 1.35rem; gap: .85rem; }
  .overview-copy h1 { font-size: 3rem; }
  .overview-signal { flex-basis: 32%; }
  .dashboard-panels > .cards .metric { font-size: 2rem; }
  .cards, .split { flex-direction: column; align-items: stretch; }
  .cards > *, .split > * { flex: auto; }
  form .primary { width: 100%; }
}
@media (max-width: 430px) {
  .overview-copy h1 { font-size: 2.8rem; }
  .overview-signal { display: none; }
}



/* RM05: live directory beside the supported Google My Maps satellite embed. */
.map-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem; margin-bottom:1.8rem; }
.map-heading h1 { font-size:clamp(2.3rem,4vw,3.5rem); letter-spacing:-.055em; margin:.25rem 0 .5rem; line-height:1.1; }
.map-heading p { margin:.35rem 0; }.map-eyebrow { font-size:.7rem; letter-spacing:.18em; font-weight:700; color:var(--muted); }
.map-live { display:flex; flex-direction:column; align-items:flex-end; gap:.7rem; font-size:.72rem; color:var(--muted); }
.map-live button { white-space:nowrap; font-size:.8rem; }
.map-workspace { display:flex; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:var(--panel); }
.map-directory { flex:0 0 260px; min-width:0; padding:1.3rem; display:flex; flex-direction:column; gap:.6rem; }
.map-directory-heading { display:flex; align-items:center; gap:.75rem; margin-bottom:.8rem; }
.map-directory-heading strong { font-size:.95rem; }.map-directory-heading p { margin:.25rem 0 0; font-size:.7rem; }
.map-monogram { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:#7152bb; color:white; font-size:.8rem; font-weight:750; }
.map-directory label { font-size:.75rem; margin:.35rem 0 -.2rem; }.map-directory input,.map-directory select { width:100%; font-size:.8rem; min-width:0; }
.map-list-heading { display:flex; justify-content:space-between; align-items:center; margin:1rem 0 .25rem; font-size:.8rem; }.map-list-heading .meta { font-size:.7rem; }
.map-building-list { overflow:auto; max-height:280px; margin:0 -.5rem; padding:0 .5rem; }
.map-building-row { position:relative; margin-bottom:.3rem; }
.map-building-row button { display:block; width:100%; text-align:left; min-height:65px; padding:.65rem .75rem 1.7rem; border-color:transparent; background:transparent; font-size:.85rem; overflow-wrap:anywhere; }
.map-building-row button[aria-pressed=true] { background:#8065d320; border-color:#9981dc; }
.map-building-row > span { pointer-events:none; position:absolute; left:.75rem; bottom:.6rem; font-size:.67rem; }
.map-directory #map-reset { margin-top:auto; font-size:.75rem; }.map-directory-note { margin:.4rem 0 0; color:var(--muted); font-size:.65rem; line-height:1.6; }
.map-canvas-wrap { flex:1; min-width:0; display:flex; flex-direction:column; background:#e5e3df; }
#campus-map { display:block; width:100%; height:610px; border:0; flex:1; min-height:560px; }
.map-canvas-footer { display:flex; justify-content:space-between; gap:.75rem; padding:.75rem 1rem; background:var(--panel); font-size:.67rem; }
.map-geography-note { color:var(--muted); font-size:.67rem; margin:.8rem .2rem 2.5rem; line-height:1.7; }
.map-results-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; }.map-results-heading h2 { margin:.35rem 0; }
.map-summary { display:inline-block; border:1px solid var(--line); border-radius:9px; padding:.6rem .8rem; color:var(--muted); font-size:.72rem; line-height:1.8; margin:0 0 1.2rem; }
@media(max-width:1100px) { .map-directory { flex-basis:225px; padding:1rem; } }
@media(max-width:900px) {
 .map-heading { align-items:flex-start; flex-direction:column; gap:.7rem; }.map-live { flex-direction:row; align-items:center; justify-content:space-between; width:100%; }
 .map-workspace { flex-direction:column; }.map-directory { flex-basis:auto; }.map-directory-heading { margin-bottom:0; }
 .map-building-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:155px; gap:.2rem; }.map-building-row { min-width:0; }
 .map-directory-note { margin-top:0; }#campus-map { height:480px; min-height:480px; flex:auto; }
 .map-results-heading { align-items:flex-start; flex-direction:column; gap:0; }
}
