body.guide-body { background: transparent; }
.screen { min-height: 100vh; }
.screen-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  margin: 12px auto 0; width: min(1120px, calc(100% - 20px)); padding: 14px 18px;
  border-radius: 22px; border: 1px solid var(--line); backdrop-filter: blur(18px);
}
.gs88-header.blue { background: rgba(10, 21, 35, 0.84); }
.gs88-header.green { background: rgba(8, 28, 27, 0.84); }
.hd-back, .hd-qr {
  width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,0.07); color: var(--text); display: grid; place-items: center;
}
.hd-title { display: grid; gap: 4px; }
.hd-main { font-weight: 800; font-size: 18px; }
.hd-sub { font-size: 13px; color: var(--muted); }
.screen-body { width: min(1120px, calc(100% - 20px)); margin: 0 auto; padding: 18px 0 32px; display: grid; gap: 16px; }
.guide-hero-card, .accessible-bar, .dest-section, .manual-loc-section, .route-summary-card, .route-meta-bar, .map-card, .steps-card, .desc-card, .rescan-tip {
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(18px); border-radius: 24px; box-shadow: var(--shadow-md);
}
.guide-hero-card { padding: 24px; }
.guide-hero-card h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 12px; }
.guide-hero-card p:last-child { color: var(--muted); line-height: 1.7; }
.loc-confirm-card, .accessible-bar, .route-summary-card, .route-meta-bar { padding: 18px 20px; }
.loc-confirm-card { display: flex; align-items: center; gap: 14px; }
.success-card { background: linear-gradient(135deg, rgba(45,212,191,0.12), rgba(91,140,255,0.08)); border: 1px solid rgba(45,212,191,0.18); border-radius: 22px; }
.loc-confirm-icon { font-size: 28px; color: #87f3de; }
.loc-confirm-info { display: grid; gap: 6px; }
.loc-confirm-badge { color: #9af6e3; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.loc-change-btn { margin-left: auto; background: rgba(255,255,255,0.08); color: var(--text); padding: 10px 14px; border-radius: 12px; }
.accessible-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.accessible-bar-left { display: flex; gap: 14px; align-items: center; }
.accessible-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(167,139,250,0.18); color: #d7c7ff; font-size: 24px; }
.accessible-text small { color: var(--muted); display: block; margin-top: 4px; }
.dest-section, .manual-loc-section, .steps-card, .desc-card, .map-card { padding: 20px; }
.dest-section-title, .manual-loc-title, .steps-card-header, .desc-card-header, .map-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 800; margin-bottom: 16px;
}
.dest-group { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.dest-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.dest-group-header {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 12px;
}
.transfer-header { background: rgba(96,165,250,0.12); color: #bfdbfe; }
.exit-header { background: rgba(45,212,191,0.12); color: #99f6e4; }
.evac-header { background: rgba(251,191,36,0.12); color: #fde68a; }
.dest-list { display: grid; gap: 10px; }
.dest-loading { color: var(--muted); padding: 12px 0; }
.sel-full { width: 100%; margin-top: 10px; }
.qr-scan-cta .btn-scan-qr {
  width: 100%; display: grid; gap: 6px; text-align: left; padding: 22px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(91,140,255,0.18), rgba(45,212,191,0.12)); color: var(--text); border: 1px solid rgba(120,166,255,0.22);
}
.qr-scan-cta small { color: var(--muted); }
.route-summary-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.rs-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.rs-name { display: block; font-size: 22px; font-weight: 800; margin-top: 6px; }
.rs-arrow-col { font-size: 28px; color: var(--primary-2); }
.route-meta-bar { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.route-meta-bar span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.04); }
.rm-accessible { color: #b8ffe7 !important; }
.map-wrap { background: rgba(255,255,255,0.03); border-radius: 18px; padding: 10px; overflow: auto; }
#elev-canvas, #route-canvas { width: 100%; height: auto; background: rgba(5, 12, 24, 0.6); border-radius: 14px; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); margin-top: 14px; }
.leg { display: inline-block; width: 18px; height: 10px; border-radius: 999px; margin-right: 6px; }
.leg-start { background: #60a5fa; }
.leg-line { background: #93c5fd; }
.leg-end { background: #2dd4bf; }
.desc-card-header .btn-tts { padding: 9px 14px; }
.desc-text { color: var(--muted); line-height: 1.8; }
.rescan-tip { padding: 18px 20px; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; }
.emergency-banner {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; background: linear-gradient(135deg, #7f1d1d, #be123c); color: #fff;
}
.qr-scanner-screen { position: fixed; inset: 0; z-index: 1500; background: rgba(2,6,23,0.96); display: flex; flex-direction: column; }
.qrs-header, .qrs-manual { width: min(720px, calc(100% - 24px)); margin: 0 auto; }
.qrs-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; color: var(--text); }
.qrs-header button { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.08); color: var(--text); }
.qrs-body { flex: 1; display: grid; place-items: center; padding: 10px 12px 0; }
.qrs-viewfinder { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #030712; }
#qr-video { width: 100%; height: 100%; object-fit: cover; }
.qrs-frame { position: absolute; inset: 0; }
.qrf { position: absolute; width: 42px; height: 42px; border-color: #fff; border-style: solid; }
.qrf.tl { top: 18px; left: 18px; border-width: 4px 0 0 4px; }
.qrf.tr { top: 18px; right: 18px; border-width: 4px 4px 0 0; }
.qrf.bl { bottom: 18px; left: 18px; border-width: 0 0 4px 4px; }
.qrf.br { bottom: 18px; right: 18px; border-width: 0 4px 4px 0; }
.qrs-line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #5b8cff, transparent); animation: scanline 2s infinite linear; }
@keyframes scanline { 0% { top: 18%; } 50% { top: 78%; } 100% { top: 18%; } }
.qrs-guide, .qrs-help { color: var(--muted); text-align: center; margin-top: 12px; }
.qrs-manual { padding: 18px 0 24px; }
.qrs-input-row { display: flex; gap: 10px; }
.qrs-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qrs-quick-btns button, .qrs-input-row button { background: rgba(91,140,255,0.16); color: #dce7ff; padding: 10px 14px; border-radius: 12px; }
.fire-title { color: #fff; }
@media (max-width: 768px) {
  .screen-header, .screen-body { width: min(100% - 16px, 1120px); }
  .route-summary-card { grid-template-columns: 1fr; gap: 10px; }
  .rs-arrow-col { transform: rotate(90deg); justify-self: start; }
  .accessible-bar { align-items: flex-start; }
}
@media (max-width: 560px) {
  .screen-header { padding: 12px 14px; }
  .hd-main { font-size: 16px; }
  .dest-section-title, .manual-loc-title, .steps-card-header, .desc-card-header, .map-card-header { font-size: 16px; }
  .qrs-input-row { flex-direction: column; }
}