:root {
  --pink: #EE4EA2;
  --purple: #A866BA;
  --blue: #5981D6;
  --grad: linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue));
  --bg: #ffffff;
  --ink: #1d1a2b;
  --muted: #5d5a70;
  --line: #e7e3ef;
  --accent: #3f5fc4;
  --nav-bg: rgba(255, 255, 255, 0.94);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #14121c;
    --ink: #f1eefa;
    --muted: #b4b0c8;
    --line: #2c2840;
    --accent: #9db6ff;
    --nav-bg: rgba(20, 18, 28, 0.94);
  } }
:root[data-theme="dark"] {
    --bg: #14121c;
    --ink: #f1eefa;
    --muted: #b4b0c8;
    --line: #2c2840;
    --accent: #9db6ff;
    --nav-bg: rgba(20, 18, 28, 0.94);
  }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  touch-action: manipulation;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: calc(0.5rem + env(safe-area-inset-top)) 1rem 0.5rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.top img { border-radius: 8px; }
.net {
  padding: 0.55rem 1rem;
  background: #2b2540;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}
main section { max-width: 40rem; margin: 0 auto; }
.hero { display: block; width: 100%; height: auto; }
.pad { padding: 1.25rem 1rem 1.5rem; }
h1 { margin: 0 0 0.5rem; font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
h1:focus { outline: none; }
p { margin: 0 0 0.75rem; }
.lead { font-size: 1.2rem; font-weight: 650; }
.muted { color: var(--muted); font-size: 0.95rem; }
.rows { margin: 1.5rem 0; border-bottom: 1px solid var(--line); }
.rows a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.rows strong { font-weight: 650; font-size: 1.05rem; }
.rows span { color: var(--muted); font-size: 0.95rem; }
.install { margin: 0 0 1rem; }
.btn {
  min-height: 48px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: 600 1rem system-ui, sans-serif;
}
:root .btn { background: #3f5fc4; }
.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabs a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}
.tabs svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.tabs a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 700px) {
  .tabs { left: 50%; right: auto; width: 32rem; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0; }
}

/* Programme */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters {
  position: sticky;
  top: calc(48px + env(safe-area-inset-top));
  z-index: 4;
  margin: 0 -1rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-bottom: 0.5rem; }
.days button {
  min-height: 52px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 650 0.95rem/1.2 system-ui, sans-serif;
}
.days button small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.days button[aria-pressed="true"] { background: #3f5fc4; border-color: #3f5fc4; color: #fff; }
.days button[aria-pressed="true"] small { color: #fff; }
.search {
  width: 100%;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 400 1rem system-ui, sans-serif;
}
#sched-count { margin: 0.75rem 0 0; }
.dayhead { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; }
.slist { list-style: none; margin: 0; padding: 0; }
.s { margin: 0 0 0.6rem; padding: 0.7rem 0.8rem; border-left: 4px solid var(--line); border-radius: 0 10px 10px 0; background: rgba(120, 110, 160, 0.07); }
.s p { margin: 0; }
.s[data-type="pcc"] { border-left-color: var(--pink); }
.s[data-type="keynote"] { border-left-color: var(--blue); }
.s[data-type="oration"] { border-left-color: var(--purple); }
.s[data-type="papers"] { border-left-color: var(--purple); }
.s[data-type="break"], .s[data-type="close"] { padding-top: 0.45rem; padding-bottom: 0.45rem; background: transparent; color: var(--muted); }
.s .time { font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.s .title { font-weight: 650; margin-top: 0.1rem; }
.s .who { margin-top: 0.15rem; }
.s .where, .s .kind, .s .note { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.empty { padding: 1rem 0; color: var(--muted); }

/* Status and organiser */
:root { --err: #b42350; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --err: #ff8fb0; } }
:root[data-theme="dark"] { --err: #ff8fb0; }
.pad a { color: var(--accent); }
.days.st { margin: 0.6rem 0 0; }
.days.st button { min-height: 44px; font-size: 0.85rem; }
.days.three { grid-template-columns: repeat(3, 1fr); }
.pill { display: inline-block; margin-bottom: 0.25rem; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 650; }
.pill.live { background: #3f5fc4; color: #fff; }
.pill.done { border: 1px solid var(--line); color: var(--muted); }
.s[data-status="done"] { opacity: 0.72; }
.field { display: block; margin-bottom: 0.75rem; font-weight: 650; }
.field .search { margin-top: 0.35rem; font-weight: 400; }
.err { color: var(--err); min-height: 1.5em; }
.orghead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.orghead p { margin: 0; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }

/* Map */
:root { --mapbg: #eef0f6; --area-b: #d9d2ee; --area-bs: #a79dc9; --area-f: #f7d3e6; --area-p: #e1e6f1; --pathc: #b9b4cc; --path: #ffffff; --gate: #3f5fc4; --door: #d63a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mapbg: #1b1930; --area-b: #3a3560; --area-bs: #5d5792; --area-f: #5a2a47; --area-p: #262a45; --pathc: #4a4668; --path: #322f52; --door: #e0589f; } }
:root[data-theme="dark"] { --mapbg: #1b1930; --area-b: #3a3560; --area-bs: #5d5792; --area-f: #5a2a47; --area-p: #262a45; --pathc: #4a4668; --path: #322f52; --door: #e0589f; }
.mapbox { overflow: hidden; position: relative; height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 320px; background: var(--mapbg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#mapsvg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.m-casing, .m-path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-casing { stroke: var(--pathc); stroke-width: 9; }
.m-path { stroke: var(--path); stroke-width: 6; }
.m-area { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-area.building { fill: var(--area-b); stroke: var(--area-bs); }
.m-area.food { fill: var(--area-f); stroke: var(--door); }
.m-area.parking { fill: var(--area-p); stroke: var(--pathc); }
.m-dot-o, .m-dot { stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-dot-o { stroke: #fff; stroke-width: 22; }
.m-dot { stroke-width: 17; }
.m-dot.gate { stroke: var(--gate); }
.m-dot.entrance, .m-dot.dropoff, .m-dot.parking { stroke: var(--door); }
.m-dot.sel { stroke: #111; }
.m-tag { fill: #fff; font-weight: 700; text-anchor: middle; pointer-events: none; }
.m-label { fill: var(--ink); font-weight: 650; paint-order: stroke; stroke: var(--mapbg); stroke-linejoin: round; pointer-events: none; }
.m-area-label { text-anchor: middle; fill: var(--muted); }
.mapctl { position: absolute; right: 0.75rem; bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mapctl button { min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 650 1.1rem system-ui, sans-serif; }

/* Routing */
:root { --route: #3f5fc4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --route: #6f93ff; } }
:root[data-theme="dark"] { --route: #6f93ff; }
.mapbox { height: 52vh; height: 52dvh; min-height: 300px; }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.5rem 0; }
.route label { display: block; font-size: 0.85rem; font-weight: 650; }
.route select { display: block; width: 100%; min-height: 48px; margin-top: 0.25rem; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 1rem system-ui, sans-serif; }
.pick { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.m-rcase, .m-route { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-rcase { stroke: #fff; stroke-width: 12; }
.m-route { stroke: var(--route); stroke-width: 7; }
.m-dot.food { stroke: #b85f00; }
.m-dot.prayer { stroke: #7d4cc4; }
.m-dot.restroom { stroke: #0f7c8a; }
.m-dot.start { stroke: #1f8a4c; }
.m-dot.end { stroke: #d63a8a; }
.m-dot.sel { stroke: #111; }
.steps { margin: 0.5rem 0 1rem; padding-left: 1.3rem; }
.steps li { margin: 0.35rem 0; }

/* Location and rotation */
.mapbox { height: 58vh; height: 58dvh; }
.mapctl button { min-height: 44px; }
.mapctl button[aria-pressed="true"] { background: #3f5fc4; border-color: #3f5fc4; color: #fff; }
.mapnorth { position: absolute; top: 0.6rem; right: 0.75rem; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); }
.mapnorth svg { width: 26px; height: 26px; }
.m-acc { fill: rgba(26, 115, 232, 0.16); stroke: rgba(26, 115, 232, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-cone { fill: rgba(26, 115, 232, 0.5); }
.m-me { fill: #1a73e8; stroke: #fff; stroke-width: 3; }
.testp { margin: 1rem 0; padding: 0.75rem; border: 1px dashed var(--line); border-radius: 10px; }
.testp .lead { margin-bottom: 0.5rem; }
.testp input[type="range"] { display: block; width: 100%; margin-top: 0.5rem; }

/* Theme, home, stops and area views */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.top { padding-top: calc(0.25rem + env(safe-area-inset-top)); padding-bottom: 0.25rem; }
.theme { margin-left: auto; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; }
.theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
.theme[data-mode="dark"] .sun { display: block; }
.theme[data-mode="dark"] .moon { display: none; }
.pad a.btn { display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.pad a.btn.ghost, .pad .btn.ghost { color: var(--accent); }
.viarow { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: end; margin: 0.5rem 0; }
.viarow label { display: block; font-size: 0.85rem; font-weight: 650; }
.viarow select { display: block; width: 100%; min-height: 48px; margin-top: 0.25rem; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 1rem system-ui, sans-serif; }
#rt-add { margin-top: 0.25rem; }
.m-area.dim { opacity: 0.3; }
.m-dot.via { stroke: #7d4cc4; }

/* Indoor rooms, Google Maps layer, action buttons, and organiser hall mapper */
.gmap { position: absolute; inset: 0; z-index: 0; }
.mapbox.has-gmap { background: transparent; }
.mapbox.has-gmap #mapsvg { position: relative; z-index: 1; background: transparent; }
.mapbox.has-gmap .m-area { fill-opacity: 0.45; }
.mapbox .mapnorth, .mapbox .mapctl { z-index: 2; }
#map-gps { display: flex; align-items: center; justify-content: center; }

.m-room { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.m-room.hall { fill: rgba(89, 129, 214, 0.24); stroke: #3f5fc4; }
.m-room.corridor { fill: rgba(255, 255, 255, 0.5); stroke: var(--pathc); }
.m-room.food { fill: rgba(238, 78, 162, 0.2); stroke: #d63a8a; }
.m-room.prayer { fill: rgba(125, 76, 196, 0.22); stroke: #7d4cc4; }
:root[data-theme="dark"] .m-room.corridor { fill: rgba(255, 255, 255, 0.08); }
.m-room-label { text-anchor: middle; fill: var(--ink); font-weight: 600; opacity: 0.9; }

.m-casing.m-indoor { stroke-width: 5; }
.m-path.m-indoor { stroke-width: 3; }
.m-dot.hall { stroke: #3f5fc4; }
.m-dot.lift { stroke: #0f7c8a; }

.sacts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.btn.sm { min-height: 36px; padding: 0 0.85rem; font-size: 0.85rem; border-radius: 9px; }

.orgbox { margin: 1.25rem 0; padding: 0.9rem; border: 1px solid var(--line); border-radius: 12px; }
.orgbox .dayhead { margin-top: 0; }
.hallrow { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem; align-items: center; margin: 0.45rem 0; font-size: 0.9rem; font-weight: 600; }
.hallrow select { min-height: 40px; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 0.9rem system-ui, sans-serif; }

.days.two { grid-template-columns: repeat(2, 1fr); }
.mapbadge {
  position: absolute; top: 0.6rem; left: 0.75rem; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  pointer-events: none;
}
.m-room-role { text-anchor: middle; fill: var(--accent); font-weight: 700; pointer-events: none; }
.m-route-dim { fill: none; stroke: var(--route); stroke-width: 4; stroke-dasharray: 6 6; opacity: 0.45; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Crisp architectural grid, color-coded indoor rooms, floating nav banner, and legend */
.mapbox {
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}
:root[data-theme="dark"] .mapbox {
  background-color: #161424;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}
.navbanner {
  position: absolute; top: 2.6rem; left: 0.75rem; right: 4rem; z-index: 3;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.85rem; border-radius: 12px;
  background: rgba(24, 24, 34, 0.92); color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  pointer-events: none;
}
.navbanner strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.navbanner span { display: block; font-size: 0.78rem; color: #cbd5e1; }

.maplegend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 0.5rem 1rem; font-size: 0.82rem; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.maplegend span { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-dot.start { background: #1f8a4c; }
.lg-dot.via { background: #f59e0b; }
.lg-dot.end { background: #e11d74; }
.lg-line { width: 18px; height: 4px; border-radius: 2px; background: #0284c7; display: inline-block; }

.m-route { stroke: #0284c7; stroke-width: 6; stroke-dasharray: 10 8; animation: dashflow 1s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -18; } }

/* Distinct color-coded room blocks */
.m-room { stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-room.c-pink   { fill: rgba(236, 72, 153, 0.16); stroke: #db2777; }
.m-room.c-green  { fill: rgba(16, 185, 129, 0.16); stroke: #059669; }
.m-room.c-blue   { fill: rgba(56, 189, 248, 0.18); stroke: #0284c7; }
.m-room.c-orange { fill: rgba(249, 115, 22, 0.16); stroke: #ea580c; }
.m-room.c-amber  { fill: rgba(245, 158, 11, 0.18); stroke: #d97706; }
.m-room.c-mint   { fill: rgba(52, 211, 153, 0.16); stroke: #10b981; }
.m-room.c-rose   { fill: rgba(244, 63, 94, 0.14); stroke: #e11d48; }
.m-room.c-indigo { fill: rgba(99, 102, 241, 0.18); stroke: #4f46e5; }
.m-room.c-purple { fill: rgba(168, 85, 247, 0.16); stroke: #9333ea; }
.m-room.c-teal   { fill: rgba(20, 184, 166, 0.16); stroke: #0d9488; }

.m-room-pill { rx: 3; ry: 3; }
.m-room-label { text-anchor: middle; fill: #fff; font-weight: 700; pointer-events: none; }
.m-room-role { text-anchor: middle; fill: #1e293b; font-weight: 700; pointer-events: none; }
.m-role-bg { fill: #facc15; stroke: #eab308; stroke-width: 0.5; rx: 2.5; ry: 2.5; }

/* Leaflet map + legible indoor rooms, corridors, doors, exits, and live GPS pin */
.lmap { position: absolute; inset: 0; z-index: 1; background: transparent !important; font: inherit; }
.mapbox .mapbadge, .mapbox .navbanner, .mapbox .mapctl { z-index: 500; }
.leaflet-container { background: transparent !important; }
.lg-dot.door { background: #10b981; }

.room-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; gap: 3px;
}
.room-pill {
  display: inline-block; padding: 2px 7px; border-radius: 5px;
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.room-role {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: #facc15; color: #1e293b; border: 1px solid #eab308;
  font-size: 9px; font-weight: 800; white-space: nowrap;
}
.corr-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #475569; text-align: center; white-space: nowrap; pointer-events: none;
}
:root[data-theme="dark"] .corr-label { color: #cbd5e1; }

.door-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 800;
  color: #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.door-badge.entrance { background: #10b981; }
.door-badge.exit     { background: #e11d48; }
.door-badge.lift     { background: #4f46e5; }
.door-badge.door     { background: #334155; font-size: 8px; padding: 1px 4px; }

.poi-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  color: #fff; font-size: 10px; font-weight: 800;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.poi-chip.gate { background: #3f5fc4; }
.poi-chip.entrance, .poi-chip.dropoff, .poi-chip.parking { background: #d63a8a; }
.poi-chip.food { background: #b85f00; }
.poi-chip.prayer { background: #7d4cc4; }
.poi-chip.restroom { background: #0f7c8a; }
.poi-chip.sel { outline: 3px solid #111; }
.poi-chip.start { background: #1f8a4c; }
.poi-chip.end { background: #e11d74; }
.poi-chip.via { background: #f59e0b; }

.me-pin { position: relative; width: 64px; height: 64px; pointer-events: none; }
.me-pin svg { width: 64px; height: 64px; transition: transform 0.1s linear; }

.floor-hdr {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: #1e293b; color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; white-space: nowrap; pointer-events: none;
}
.room-ico {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.room-name {
  font-size: 10.5px; font-weight: 800; color: #0f172a;
  text-shadow: 0 0 4px #fff, 0 0 4px #fff;
  white-space: nowrap;
}
:root[data-theme="dark"] .room-name { color: #0f172a; }

.navbanner { pointer-events: auto; }
.navnext {
  flex-shrink: 0; padding: 0.3rem 0.65rem; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px; background: rgba(255,255,255,0.14); color: #fff;
  font: 700 0.75rem system-ui, sans-serif; cursor: pointer;
}
.steps li.done-step { opacity: 0.45; text-decoration: line-through; }
.steps li.cur-step { font-weight: 700; color: var(--accent); }

.rchips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0; }
.rchip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  color: #fff;
}
.rchip.c-start { background: #1f8a4c; }
.rchip.c-via { background: #d97706; }
.rchip.c-end { background: #e11d74; }
.lmap { transition: transform 0.28s ease; }

.mappct {
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 3px 4px; border-radius: 8px;
  background: var(--nav-bg); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 800; color: var(--ink);
  pointer-events: none;
}
.rchip button {
  background: none; border: 0; color: #fff; font-weight: 800;
  cursor: pointer; padding: 0 0 0 4px; font-size: 0.85rem; line-height: 1;
}
#mapsvg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.mapbox .mapnorth { top: 0.6rem; right: 0.75rem; z-index: 500; }
.navbanner { top: 2.6rem; left: 0.75rem; right: 4rem; }

.btn, .btn.ghost, button { cursor: pointer; }
.btn.ghost[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.mapbox.is-fs { position: fixed !important; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; border: 0; margin: 0; }
.fs-exit { position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%); z-index: 600; min-height: 36px; padding: 0 0.9rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; background: rgba(15,23,42,0.92); color: #fff; font: 700 0.85rem system-ui, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,0.3); cursor: pointer; }
