﻿:root {
      color-scheme: dark;
      --blue: #2378ff;
      --panel: rgba(0, 0, 0, .48);
      --panel-strong: rgba(0, 0, 0, .66);
      --line: rgba(255, 255, 255, .22);
      --text: #fff;
      --muted: rgba(255, 255, 255, .76);
      font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    html, body, #viewer { width: 100%; height: 100%; margin: 0; }
    body { overflow: hidden; background: #07090d; user-select: none; }
    #viewer { position: fixed; inset: 0; }
    body.is-planet-intro #viewer { pointer-events: none; }
    body.is-planet-intro .scene-ui-stack,
    body.is-planet-intro .app-dock,
    body.is-planet-intro .right-rail,
    body.is-planet-intro .side-nav,
    body.is-planet-intro .brand-stack,
    body.is-planet-intro .viewer-badge,
    body.is-planet-intro .access-chip,
    body.is-planet-intro .visit-badge,
    body.is-planet-intro .schedule-fab,
    body.is-planet-intro .global-watermark {
      opacity: 0 !important;
      pointer-events: none !important;
      transition: opacity .55s ease;
    }
    body.is-planet-intro.is-planet-settled .scene-ui-stack,
    body.is-planet-intro.is-planet-settled .app-dock,
    body.is-planet-intro.is-planet-settled .right-rail,
    body.is-planet-intro.is-planet-settled .side-nav,
    body.is-planet-intro.is-planet-settled .brand-stack,
    body.is-planet-intro.is-planet-settled .viewer-badge,
    body.is-planet-intro.is-planet-settled .access-chip,
    body.is-planet-intro.is-planet-settled .visit-badge,
    body.is-planet-intro.is-planet-settled .schedule-fab,
    body.is-planet-intro.is-planet-settled .global-watermark {
      opacity: 1 !important;
    }
    @media (prefers-reduced-motion: reduce) {
      body.is-planet-intro #viewer { pointer-events: auto; }
    }
    button { font: inherit; }
    .entry-cover {
      position: fixed; inset: 0; z-index: 4000;
      display: grid; place-items: center;
      background: rgba(7,10,15,.72);
      backdrop-filter: blur(12px);
      transition: opacity .42s ease, visibility .42s ease;
    }
    .entry-cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    .scene-loading {
      position: fixed; inset: 0; z-index: 70;
      display: grid; place-items: center;
      color: #fff; background: rgba(6, 9, 14, .34);
      opacity: 0; visibility: hidden; pointer-events: none;
      backdrop-filter: blur(3px);
      transition: opacity .18s ease, visibility .18s ease;
    }
    .scene-loading.show { opacity: 1; visibility: visible; pointer-events: auto; }
    .scene-loading-pill {
      min-width: 128px; height: 42px; padding: 0 16px;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      border-radius: 999px; background: rgba(0, 0, 0, .62);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 18px 50px rgba(0,0,0,.34);
      font-size: 13px; font-weight: 800;
    }
    .scene-loading-dot {
      width: 8px; height: 8px; border-radius: 50%; background: #f6b332;
      box-shadow: 0 0 18px rgba(246,179,50,.78);
      animation: loading-pulse .8s ease-in-out infinite alternate;
    }
    @keyframes loading-pulse { from { opacity: .45; transform: scale(.86); } to { opacity: 1; transform: scale(1.12); } }
    .entry-mark {
      display: grid; justify-items: center; gap: 12px;
      color: #fff; text-align: center;
    }
    .entry-logo {
      width: 72px; height: 52px; display: grid; place-items: center;
      border: 1px solid rgba(255,255,255,.46); border-radius: 16px;
      background: rgba(35,120,255,.92);
      box-shadow: 0 18px 44px rgba(35,120,255,.26);
      font-size: 20px; font-weight: 900;
    }
    .entry-title { font-size: 18px; font-weight: 900; }
    .entry-subtitle { color: rgba(255,255,255,.72); font-size: 12px; }
    .entry-line {
      width: 112px; height: 3px; overflow: hidden; border-radius: 99px;
      background: rgba(255,255,255,.18);
    }
    .entry-line::after {
      content: ""; display: block; width: 48%; height: 100%;
      border-radius: inherit; background: #5a91ff;
      animation: entry-loading 1s ease-in-out infinite alternate;
    }
    @keyframes entry-loading { from { transform: translateX(-18%); } to { transform: translateX(126%); } }
    .top-switch {
      display: flex; gap: 10px; align-items: center; justify-content: center;
      min-height: 30px;
      overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
      -ms-overflow-style: none; overscroll-behavior-x: contain; scroll-behavior: smooth;
      scroll-snap-type: x proximity; pointer-events: auto;
    }
    .campus-btn {
      appearance: none; border: 1px solid rgba(255,255,255,.28); border-radius: 7px;
      min-width: 66px; height: 30px; padding: 0 13px;
      color: #fff; background: rgba(10,13,18,.86);
      font-size: 14px; font-weight: 700; text-align: center; cursor: pointer;
      scroll-snap-align: center;
      box-shadow: 0 8px 24px rgba(0,0,0,.34);
      backdrop-filter: blur(14px);
    }
    .campus-btn.is-active { background: var(--blue); }
    .building-bar {
      width: 100%; min-width: 0;
      display: flex; justify-content: flex-start;
      padding: 4px 0 6px;
      overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
      -ms-overflow-style: none;
      overscroll-behavior-x: contain; scroll-behavior: smooth;
      scroll-snap-type: x proximity;
    }
    .top-switch::-webkit-scrollbar,
    .building-bar::-webkit-scrollbar,
    .scene-strip::-webkit-scrollbar,
    .dock-tools::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .building-track {
      display: flex; gap: 18px; min-width: max-content;
      margin: 0 auto; padding: 0 18px 2px;
    }
    .building-bar.is-overflowing .building-track {
      margin-left: 0; margin-right: 0;
      padding-left: max(18px, calc(50% - 54px));
      padding-right: max(18px, calc(50% - 54px));
    }
    .building-btn {
      appearance: none; border: 0; background: transparent; color: #fff;
      min-width: 68px; height: 28px; padding: 0 2px;
      font-size: 13px; font-weight: 700; white-space: nowrap; text-align: center;
      border-bottom: 2px solid transparent; cursor: pointer; scroll-snap-align: center;
      text-shadow: 0 1px 8px rgba(0,0,0,.8);
    }
    .building-btn.is-active { color: #fff; border-color: var(--blue); }
    .scene-ui-stack {
      position: fixed; z-index: 8; left: 50%; bottom: 88px;
      transform: translateX(-50%);
      width: min(1060px, calc(100vw - 24px));
      display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px;
      pointer-events: none;
    }
    .scene-ui-stack > * { min-width: 0; pointer-events: auto; }
    .bottom-dock {
      position: relative;
      width: 100%; min-width: 0; overflow: hidden;
      padding: 10px 12px 9px;
      background: rgba(14,18,24,.56);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 16px;
      box-shadow: 0 18px 52px rgba(0,0,0,.38);
      backdrop-filter: blur(18px);
    }
    .scene-strip {
      width: 100%; min-width: 0;
      display: flex; align-items: stretch; justify-content: flex-start;
      gap: 12px; min-height: 86px; overflow-x: auto;
      padding: 4px 6px 10px; scrollbar-width: none;
      -ms-overflow-style: none;
      overscroll-behavior-x: contain; scroll-behavior: smooth;
      scroll-snap-type: x proximity;
    }
    .scene-strip:not(.is-overflowing) { justify-content: center; }
    .scene-strip.is-overflowing {
      padding-left: max(36px, calc(50% - 43px));
      padding-right: max(36px, calc(50% - 43px));
    }
    .scene-card {
      appearance: none; border: 2px solid rgba(255,255,255,.92);
      flex: 0 0 114px; height: 74px; border-radius: 12px;
      padding: 0; overflow: hidden; position: relative;
      background: #111; color: #fff; cursor: pointer;
      box-shadow: 0 10px 26px rgba(0,0,0,.32);
      scroll-snap-align: center;
    }
    .scene-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .scene-card span {
      position: absolute; left: 0; right: 0; bottom: 0;
      padding: 20px 6px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      color: #fff; font-size: 13px; font-weight: 800;
      background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
      text-shadow: 0 1px 6px rgba(0,0,0,.8);
    }
    .scene-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 10px 26px rgba(0,0,0,.38); }
    .scene-card.is-active::after {
      content: "✓"; position: absolute; right: 6px; top: 6px;
      width: 22px; height: 22px; display: grid; place-items: center;
      border-radius: 50%; color: #2378ff; background: #fff;
      font-size: 15px; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.28);
    }
    .scene-actions {
      width: 100%; min-width: 0;
      display: grid; grid-template-columns: repeat(3, minmax(72px, 112px)); justify-content: center; justify-items: center; gap: 18px;
      color: #fff; font-size: 12px; white-space: nowrap;
      overflow: hidden; padding: 0 4px 3px;
      scrollbar-width: none; -ms-overflow-style: none;
      overscroll-behavior-x: contain; scroll-behavior: smooth;
    }
    .dock-tool {
      appearance: none; border: 0; background: transparent; padding: 0;
      width: 100%; min-width: 0;
      display: grid; justify-items: center; gap: 3px; color: #fff;
      text-shadow: 0 1px 8px rgba(0,0,0,.8); cursor: pointer;
    }
    .dock-icon {
      width: 25px; height: 25px; display: grid; place-items: center;
      border-radius: 9px; background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.22); font-size: 16px;
    }
    .dock-tool.is-green .dock-icon { background: #29d45b; border-color: #29d45b; }
    .dock-tool.is-blue .dock-icon { background: #2384ff; border-color: #2384ff; }
    .dock-tool.is-teal .dock-icon { background: #2ecdb7; border-color: #2ecdb7; }
    .dock-tool.is-primary .dock-icon { background: #2384ff; border-color: #2384ff; }
    .dock-tool.is-primary span:last-child { font-weight: 900; }
    .dock-tool.is-current .dock-icon {
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(35,120,255,.72);
    }
    .dock-tool.is-current span:last-child { color: #fff; font-weight: 900; }
    .dock-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
    .dock-tool span:last-child {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .app-dock {
      position: fixed; z-index: 10; left: 50%; bottom: 0;
      transform: translateX(-50%);
      width: min(560px, calc(100vw - 20px)); min-height: 68px;
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: center; padding: 6px 10px max(6px, env(safe-area-inset-bottom));
      color: #626873; background: rgba(255,255,255,.96);
      border: 1px solid rgba(20,30,45,.09); border-bottom: 0;
      border-radius: 18px 18px 0 0;
      box-shadow: 0 -8px 30px rgba(20,30,45,.14);
      backdrop-filter: blur(20px);
    }
    .app-dock-btn {
      appearance: none; min-width: 0; height: 54px; border: 0;
      display: grid; place-items: center; align-content: center; gap: 3px;
      color: #737982; background: transparent; cursor: pointer;
      font-size: 11px; font-weight: 700;
      transition: color .18s ease, font-weight .18s ease;
    }
    .app-dock-icon {
      width: 27px; height: 27px; display: grid; place-items: center;
      border-radius: 0; color: currentColor; font-size: 18px; line-height: 1;
      background: transparent;
      transition: color .18s ease, transform .18s ease;
    }
    .app-dock-btn.is-current { color: var(--blue); font-weight: 900; }
    .app-dock-btn.is-current .app-dock-icon {
      color: var(--blue); background: transparent; transform: translateY(-1px);
      box-shadow: none;
    }
    .side-nav {
      position: fixed; z-index: 6; top: 50%;
      width: 46px; height: 72px; margin-top: -36px;
      border: 0; color: #fff; background: rgba(0,0,0,.36);
      font-size: 34px; cursor: pointer;
      display: grid; place-items: center;
    }
    .side-nav:hover { background: rgba(35,120,255,.72); }
    .side-nav.prev { left: 0; border-radius: 0 8px 8px 0; }
    .side-nav.next { right: 0; border-radius: 8px 0 0 8px; }
    .brand-stack {
      position: fixed; z-index: 8; right: 54px; top: 18px;
      display: flex; gap: 10px; align-items: center;
    }
    .brand-bubble {
      width: 42px; height: 42px; border-radius: 50%;
      display: grid; place-items: center;
      color: #fff; font-size: 11px; font-weight: 900;
      box-shadow: 0 8px 24px rgba(0,0,0,.35);
      border: 2px solid rgba(255,255,255,.8);
    }
    .brand-bubble.blue { background: #1f6fff; }
    .brand-bubble.warm { background: #ffe0b1; color: #7a4315; }
    .right-rail {
      position: fixed; z-index: 8; right: 10px; top: 50%;
      transform: translateY(-50%);
      display: grid; gap: 10px; justify-items: center;
    }
    .rail-btn {
      appearance: none; border: 0; background: transparent;
      display: grid; justify-items: center; gap: 1px;
      color: #fff; cursor: pointer; padding: 0;
      text-shadow: 0 1px 8px rgba(0,0,0,.9);
      min-width: 44px;
    }
    .rail-icon {
      width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.92);
      border-radius: 9px; display: grid; place-items: center;
      font-size: 17px; line-height: 1; background: rgba(10,14,20,.30);
      box-shadow: 0 6px 18px rgba(0,0,0,.18);
    }
    .rail-icon img { width: 19px; height: 19px; display: block; object-fit: contain; filter: brightness(0) invert(1); }
    #likeBtn .rail-icon { transition: transform .18s ease, background .18s ease, color .18s ease; }
    #likeBtn.is-liked .rail-icon {
      color: #fff; background: #ff4567; border-color: #ff8da1;
      transform: scale(1.06);
      box-shadow: 0 7px 22px rgba(255,69,103,.42);
    }
    #likeBtn.is-busy { pointer-events: none; opacity: .68; }
    .rail-label { font-size: 13px; font-weight: 700; }
    .rail-count { font-size: 13px; font-weight: 800; }
    .viewer-badge {
      position: fixed; z-index: 7; left: 18px; top: 18px;
      min-height: 40px; max-width: min(420px, calc(100vw - 36px));
      display: none; align-items: center; gap: 10px; padding: 9px 12px;
      color: #fff; background: var(--panel-strong);
      border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
      font-size: 14px; font-weight: 700; backdrop-filter: blur(16px);
    }
    .viewer-badge::before {
      content: ""; width: 9px; height: 9px; border-radius: 50%;
      background: #22c55e; box-shadow: 0 0 18px rgba(34,197,94,.9);
    }
    .visit-badge {
      position: fixed; z-index: 8; left: 18px; top: 18px;
      min-height: 36px; padding: 7px 11px;
      display: inline-flex; align-items: center; gap: 7px;
      border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
      color: #fff; background: rgba(8,12,18,.58);
      box-shadow: 0 10px 28px rgba(0,0,0,.24);
      backdrop-filter: blur(16px);
      font-size: 12px; font-weight: 800;
    }
    .visit-badge img {
      width: 18px; height: 18px; object-fit: contain;
      filter: brightness(0) invert(1);
    }
    .access-chip {
      position: fixed; z-index: 8; left: 18px; top: 64px;
      display: none; align-items: center; gap: 8px;
      padding: 7px 11px; border-radius: 999px;
      color: #fff; background: rgba(0,0,0,.48);
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(14px);
      font-size: 12px; font-weight: 800;
    }
    .access-chip.is-visible { display: inline-flex; }
    .access-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,.9);
    }
    .toast {
      position: fixed; z-index: 20; left: 50%; bottom: 132px;
      transform: translateX(-50%) translateY(10px);
      padding: 9px 13px; border-radius: 8px; color: #fff;
      background: rgba(0,0,0,.76); border: 1px solid rgba(255,255,255,.14);
      opacity: 0; pointer-events: none; transition: .18s ease;
      font-size: 13px;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .modal-mask {
      position: fixed; z-index: 18; inset: 0; display: none; place-items: center;
      padding: 16px; background: rgba(6,10,16,.56); backdrop-filter: blur(8px);
    }
    .modal-mask.show { display: grid; }
    #gateModal.hard-lock {
      z-index: 3000; display: grid;
      background: rgba(8,12,20,.78);
      backdrop-filter: blur(18px) saturate(.72);
      pointer-events: auto;
    }
    body.preview-hard-locked { overflow: hidden; }
    body.preview-hard-locked #viewer,
    body.preview-hard-locked .selector-panel,
    body.preview-hard-locked .right-tools,
    body.preview-hard-locked .schedule-page { visibility: hidden; pointer-events: none; }
    .modal {
      width: min(420px, 100%); border-radius: 18px; padding: 18px;
      color: #172033; background: rgba(255,255,255,.97);
      border: 1px solid rgba(255,255,255,.80);
      box-shadow: 0 28px 80px rgba(0,0,0,.32);
    }
    .modal h2 { margin: 0 0 12px; font-size: 18px; }
    .modal p { margin: 8px 0; color: #647084; font-size: 14px; line-height: 1.65; }
    .modal textarea, .modal input {
      width: 100%; border: 1px solid #dbe2ee;
      border-radius: 11px; background: #f8faff;
      color: #172033; padding: 10px; resize: vertical; outline: none;
      font: 14px/1.4 "Microsoft YaHei", system-ui, sans-serif;
    }
    .modal textarea { min-height: 96px; margin-top: 9px; }
    .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
    .modal-actions button {
      border: 0; border-radius: 10px; height: 38px; padding: 0 14px;
      color: #27354a; background: #eef2f8; cursor: pointer; font-weight: 800;
    }
    .modal-actions .primary { background: var(--blue); color: #fff; }
    .gate-modal {
      width: min(430px, 100%);
      border-radius: 16px;
      background: rgba(255,255,255,.97);
      color: #162033;
      border: 1px solid rgba(21,31,52,.10);
      box-shadow: 0 22px 60px rgba(0,0,0,.34);
    }
    .gate-head {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      margin-bottom: 10px;
    }
    .gate-brand {
      color: #2378ff; font-size: 14px; font-weight: 900; letter-spacing: .2px;
    }
    .gate-pill {
      padding: 4px 9px; border-radius: 999px;
      background: rgba(35,120,255,.10); color: #2378ff;
      font-size: 12px; font-weight: 800;
    }
    .gate-modal h2 { margin-bottom: 8px; color: #101827; }
    .gate-modal p { margin: 7px 0; color: #5d697c; }
    .gate-meter {
      margin-top: 10px; height: 8px; border-radius: 999px; overflow: hidden;
      background: #eef2f8;
    }
    .gate-meter span {
      display: block; height: 100%; width: 50%;
      background: linear-gradient(90deg, #2378ff, #2ecdb7);
      border-radius: inherit;
    }
    .gate-summary {
      display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
      margin-top: 10px; color: #68758a; font-size: 12px;
    }
    .gate-input {
      width: 100%; height: 46px; border: 2px solid #2378ff;
      border-radius: 10px; background: #fff;
      color: #0f172a; padding: 0 12px; outline: none;
      font: 16px/1.4 "Microsoft YaHei", system-ui, sans-serif;
      font-weight: 800;
      letter-spacing: .4px;
      margin-top: 8px;
    }
    .gate-input::placeholder { color: #8792a6; font-weight: 700; letter-spacing: 0; }
    .gate-input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 4px rgba(35,120,255,.16);
      background: #fff;
    }
    .gate-code-panel {
      display: none; margin-top: 10px; padding: 10px;
      border-radius: 12px; background: #f8fbff;
      border: 1px solid #dbe8ff;
    }
    .gate-code-panel.show { display: block; }
    .gate-code-title { font-size: 13px; font-weight: 900; color: #172033; }
    .gate-code-desc { margin: 4px 0 0; font-size: 12px; color: #667085; line-height: 1.5; }
    .gate-code-row { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: center; }
    .gate-hint {
      color: #536176; font-size: 12px; line-height: 1.6;
      margin-top: 8px; padding: 9px 10px; border-radius: 10px;
      background: #f5f7fb; border: 1px solid #e6ebf4;
      white-space: pre-line;
    }
    .gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
    .gate-actions button {
      flex: 1 1 0; min-width: 0; height: 38px;
      border-radius: 10px; border: 0; cursor: pointer;
      color: #fff; font-weight: 800;
    }
    .gate-actions .secondary { background: #eef3fb; color: #263448; }
    .gate-actions .primary { background: var(--blue); }
    .gate-confirm {
      height: 46px; border: 0; border-radius: 10px; cursor: pointer;
      background: var(--blue); color: #fff; font-weight: 900;
    }
    .wechat-guide {
      display: none; margin-top: 10px; padding: 10px 11px;
      border-radius: 12px; background: #f6fffb; border: 1px solid #cdeee0;
      color: #14523b; font-size: 12px; line-height: 1.65;
    }
    .wechat-guide.show { display: block; }
    .wechat-guide-actions { display: flex; gap: 8px; margin-top: 8px; }
    .wechat-guide-actions button {
      flex: 1; height: 34px; border: 0; border-radius: 8px;
      background: #dcfce7; color: #14532d; font-weight: 900;
    }
    @media(max-width:520px){.gate-code-row{grid-template-columns:1fr}.gate-confirm{width:100%}}
    .global-watermark {
      position: fixed; inset: 0; z-index: 5;
      display: grid; place-items: center;
      pointer-events: none; overflow: hidden;
    }
    .global-watermark span {
      max-width: min(72vw, 460px);
      white-space: pre-wrap; user-select: none; text-align: center;
      color: rgba(225,229,235,.32);
      text-shadow: 0 1px 3px rgba(0,0,0,.28);
      font-size: 18px; line-height: 1.25; font-weight: 800;
      transform: rotate(-28deg);
    }
    .schedule-fab {
      position: fixed; z-index: 12; left: 16px; bottom: 18px;
      height: 42px; padding: 0 14px; border: 0; border-radius: 999px;
      color: #fff; background: rgba(35,120,255,.92);
      display: none; align-items: center; gap: 8px; cursor: pointer;
      box-shadow: 0 12px 34px rgba(0,0,0,.35);
      font-size: 14px; font-weight: 800;
    }
    .schedule-fab .dock-icon { width: 25px; height: 25px; border: 0; background: rgba(255,255,255,.18); }
    .schedule-page {
      position: fixed; inset: 0; z-index: 30; display: none;
      background: linear-gradient(180deg, #f5f8fc, #edf2f8);
      color: #222; overflow-x: hidden; overflow-y: auto;
      padding: 12px 12px 106px;
      font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    }
    body.is-schedule .schedule-page {
      display: block;
    }
    body.is-schedule #viewer,
    body.is-schedule .right-rail,
    body.is-schedule .side-nav,
    body.is-schedule .brand-stack,
    body.is-schedule .global-watermark,
    body.is-schedule .schedule-fab { display: none; }
    body.is-schedule .scene-ui-stack { display: none; }
    body.is-schedule .app-dock { z-index: 31; }
    .schedule-top {
      background: #fff;
      border-bottom: 1px solid #eef0f4;
      padding: 12px 14px 10px;
      display: grid;
      gap: 8px;
    }
    .schedule-topbar {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }

    .schedule-quota {
      display: inline-flex; align-items: center; justify-content: center;
      min-height: 28px; padding: 5px 10px; border-radius: 999px;
      color: #2459dc; background: #eaf1ff; border: 1px solid #cfddff;
      font-size: 12px; font-weight: 900; white-space: nowrap;
    }
    .schedule-quota.is-empty {
      color: #c2414f; background: #fff0f2; border-color: #ffd0d6;
    }

    .schedule-content {
      min-height: 0; overflow: visible; padding: 0;
      background: #fff;
    }
    .schedule-shell {
      width: min(1120px, 100%);
      margin: 0 auto;
      background: #fff;
      border: 1px solid #e3e9f2;
      border-radius: 20px;
      box-shadow: 0 16px 36px rgba(16,24,40,.09);
      overflow: hidden;
    }
    .schedule-table {
      position: relative; isolation: isolate;
      background: #fff; border-radius: 0; overflow: hidden;
      box-shadow: none; width: 100%; min-height: 0; height: auto;
    }
    .schedule-reference-watermark {
      --schedule-diagonal-watermark-opacity: .18;
      --schedule-horizontal-watermark-opacity: .32;
      position: absolute; inset: 0; z-index: 4;
      pointer-events: none; user-select: none; overflow: hidden;
    }
    .schedule-watermark-diagonal,
    .schedule-watermark-horizontal {
      position: absolute; inset: 0;
      display: grid; pointer-events: none;
    }
    .schedule-watermark-diagonal {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(3, minmax(0, 1fr));
    }
    .schedule-watermark-diagonal span {
      margin: auto;
      color: rgba(61, 79, 105, var(--schedule-diagonal-watermark-opacity));
      font-size: clamp(16px, 2vw, 22px); font-weight: 900; letter-spacing: .08em;
      white-space: nowrap; transform: rotate(-20deg);
    }
    .schedule-watermark-horizontal {
      grid-template-rows: repeat(2, minmax(0, 1fr));
      align-items: center;
    }
    .schedule-watermark-horizontal p {
      margin: auto;
      display: grid; justify-items: center; gap: 4px;
      color: rgba(72, 124, 235, var(--schedule-horizontal-watermark-opacity));
      line-height: 1.15; text-align: center;
    }
    .schedule-watermark-horizontal strong {
      display: block; font-size: clamp(38px, 6vw, 68px); font-weight: 950; white-space: nowrap;
    }
    .schedule-watermark-horizontal span {
      display: block; font-size: clamp(27px, 4.3vw, 48px); font-weight: 900; white-space: nowrap;
    }
    .schedule-table table {
      position: relative; z-index: 1;
      width: 100%; min-height: 0; height: auto; border-collapse: collapse; table-layout: fixed;
      background: transparent;
    }
    .schedule-table th,
    .schedule-table td {
      border: none; padding: 0; text-align: center;
      vertical-align: top; position: relative;
    }
    .schedule-table th {
      background: rgba(255,255,255,.96);
      font-size: 15px; font-weight: 800; color: #242833; height: 48px;
      vertical-align: middle;
    }
    .schedule-table tbody tr { height: var(--schedule-row-height, 78px); }
    .schedule-table td {
      width: auto; min-width: 0; max-width: none;
      height: var(--schedule-row-height, 78px); min-height: 0;
      padding: 2px; overflow: hidden; text-overflow: clip; white-space: normal;
      position: relative; box-sizing: border-box;
    }
    .schedule-table td:first-child,
    .schedule-table th:first-child {
      width: 62px; background: rgba(255,255,255,.98); position: sticky; left: 0; z-index: 2;
      box-shadow: 8px 0 16px rgba(31,45,61,.03);
    }
    .schedule-table .date-row th {
      background: rgba(255,255,255,.92);
      font-weight: 500; color: #6b7280; font-size: 13px;
      height: 30px;
    }
    .schedule-table th:first-child { z-index: 3; }
    .schedule-table td+td::before,
    .schedule-table th+th::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0;
      width: 1px; background: rgba(0,0,0,.06);
    }
    .schedule-table tr+tr td::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: 0;
      height: 1px; background: rgba(0,0,0,.04);
    }
    .section-label { display: block; margin-top: 6px; color: #20242d; font-size: 12px; line-height: 1.1; font-weight: 900; }
    .section-time { display: block; margin-top: 4px; white-space: pre-line; color: #5d6675; font-size: 9px; line-height: 1.15; font-weight: 700; }
    .course-card {
      position: absolute; inset: 2px; width: auto; height: auto; margin: 0;
      color: #fff; border: 1px solid rgba(255,255,255,.16);
      background: var(--course-color); padding: 5px 4px; border-radius: 6px;
      display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
      box-shadow: 0 2px 6px rgba(0,0,0,.15); overflow: hidden; box-sizing: border-box;
    }
    .course-name {
      font-size: 12px; line-height: 1.3; font-weight: 600; word-break: break-word;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
      text-align: center; margin-bottom: 3px;
    }
    .course-classroom {
      font-size: 10px; line-height: 1.2; opacity: .92; font-weight: 500;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      text-align: center;
    }
    .empty-cell { min-height: 100%; }
    .list-picker-mask {
      position: fixed; inset: 0; z-index: 80;
      background: rgba(15, 23, 42, .42); display: none;
    }
    .list-picker-mask.show { display: block; }
    .list-picker-sheet {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
      background: #fff; border-radius: 16px 16px 0 0;
      box-shadow: 0 -16px 40px rgba(0,0,0,.16);
      transform: translateY(100%); transition: transform .18s ease;
      max-height: 70vh; display: flex; flex-direction: column;
    }
    .list-picker-sheet.show { transform: translateY(0); }
    .list-picker-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px 10px; border-bottom: 1px solid #eef0f4;
      background: linear-gradient(180deg, #fff, #fbfcff);
    }
    .list-picker-title { font-size: 15px; font-weight: 900; color: #111827; }
    .list-picker-close {
      border: 0; background: transparent; color: #6b7280;
      font-size: 14px; font-weight: 700; cursor: pointer;
    }
    .list-picker-list {
      overflow: auto; padding: 8px 10px 12px; -webkit-overflow-scrolling: touch;
    }
    .list-picker-item {
      width: 100%; border: 0; background: #f7f8fb; color: #111827;
      border-radius: 12px; padding: 12px 14px; margin: 8px 0;
      text-align: left; font-size: 15px; font-weight: 700; cursor: pointer;
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .list-picker-item.is-active {
      background: #d7ecff; color: #2b5cff;
    }
    .list-picker-item span:last-child { color: inherit; }
    @media (max-width: 760px) {
      .top-switch { gap: 8px; min-height: 27px; }
      .campus-btn {
        min-width: 58px; height: 27px; padding: 0 10px;
        border-radius: 5px; font-size: 12px;
      }
      .building-bar { justify-content: flex-start; padding: 1px 0 3px; }
      .building-track { gap: 10px; padding: 0 10px 1px; }
      .building-bar.is-overflowing .building-track {
        padding-left: max(12px, calc(50% - 43px));
        padding-right: max(12px, calc(50% - 43px));
      }
      .building-btn {
        min-width: 58px; height: 23px; padding: 0;
        font-size: 12px;
      }
      .viewer-badge { display: none; }
      .brand-stack { top: 12px; right: 12px; transform: scale(.82); transform-origin: top right; }
      .right-rail {
        z-index: 12; right: 12px; top: 25%;
        bottom: auto; transform: none; gap: 6px;
        max-height: calc(75vh - 96px); overflow: visible;
      }
      .rail-btn { min-width: 38px; }
      .rail-label, .rail-count { line-height: 1.05; }
      .rail-icon { width: 28px; height: 28px; }
      .rail-label, .rail-count { font-size: 12px; }
      .scene-ui-stack {
        width: calc(100vw - 20px); bottom: 82px; gap: 8px;
      }
      .bottom-dock {
        width: 100%; padding: 7px 6px 5px; border-radius: 13px;
      }
      .visit-badge { left: 10px; top: 10px; min-height: 32px; padding: 6px 9px; }
      .scene-strip {
        justify-content: flex-start; gap: 8px; min-height: 59px;
        padding: 2px 3px 5px;
      }
      .scene-strip.is-overflowing {
        padding-left: max(20px, calc(50% - 41px));
        padding-right: max(20px, calc(50% - 41px));
      }
      .scene-card {
        flex-basis: 82px; height: 54px;
        border-width: 1.5px; border-radius: 8px;
      }
      .scene-card span { padding: 15px 4px 3px; font-size: 11px; }
      .scene-card.is-active::after {
        right: 4px; top: 4px; width: 18px; height: 18px; font-size: 12px;
      }
      .scene-actions {
        gap: 5px; overflow-x: auto; justify-content: center;
        padding: 0 2px 1px; font-size: 10px;
      }
      .dock-tool { flex-basis: 48px; min-width: 48px; gap: 1px; }
      .dock-icon {
        width: 23px; height: 23px;
        border-radius: 7px; font-size: 14px;
      }
      .app-dock {
        width: 100vw; min-height: 64px; bottom: 0;
        padding: 4px 6px max(4px, env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
      }
      .app-dock-btn { height: 52px; font-size: 10px; }
      .app-dock-icon { width: 25px; height: 25px; font-size: 17px; }
      .side-nav { display: none; }
      .schedule-fab { left: 10px; bottom: 10px; height: 38px; padding: 0 11px; font-size: 13px; }
      .schedule-page { padding: 7px 7px 96px; }
      .schedule-shell { border-radius: 15px; }

      .schedule-table th { font-size: 13px; height: 34px; }
      .schedule-table td:first-child,
      .schedule-table th:first-child { width: 56px; }
      .schedule-table .date-row th { height: 24px; font-size: 11px; }
      .section-label { font-size: 12px; margin-top: 6px; }
      .section-time { font-size: 9px; margin-top: 4px; }
      .course-card { padding: 5px 4px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.12); }
      .course-name { font-size: 10px; line-height: 1.15; -webkit-line-clamp: 2; }
      .course-classroom { font-size: 8px; line-height: 1.1; -webkit-line-clamp: 1; }
      .return-scene-btn { right: 10px; bottom: 10px; height: 40px; padding: 0 12px; }
    }
/* Current portal adapter additions: keep legacy visual system, add required home/question/share states. */
body.is-home #viewer,
body.is-home .right-rail,
body.is-home .side-nav,
body.is-home .brand-stack,
body.is-home .global-watermark,
body.is-home .schedule-fab,
body.is-home .scene-ui-stack,
body.is-home .visit-badge,
body.is-home .viewer-badge { display: none; }
body.is-home .home-page { display: block; }
body.is-home .app-dock { z-index: 31; }
body.is-home {
  overflow-y: auto;
  user-select: text;
  background:
    radial-gradient(circle at 18% -8%, rgba(35,120,255,.30), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(246,179,50,.18), transparent 28%),
    linear-gradient(180deg, #111722 0%, #07090d 58%, #05070a 100%);
}
.home-page { display: none; position: relative; z-index: 22; min-height: 100%; padding: 12px 12px 104px; color: #fff; }
.home-shell { width: min(960px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.home-app-layout { padding-top: max(2px, env(safe-area-inset-top)); }
.home-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}
.home-carousel::-webkit-scrollbar { display: none; }
.home-hero,
.home-search-card,
.home-panel,
.qa-panel,
.guide-panel,
.home-lead-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(0,0,0,.54);
  box-shadow: 0 18px 56px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
}
.home-hero-slide {
  position: relative;
  min-height: 208px;
  padding: 24px 20px;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.home-hero-slide::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  background: radial-gradient(circle at 86% 14%, rgba(35,120,255,.58), transparent 42%), rgba(0,0,0,.62);
}
.home-hero-slide.is-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38)), var(--home-hero-image);
  background-size: cover;
  background-position: center;
  opacity: .58;
}
.home-hero-slide.is-secondary::before { background: radial-gradient(circle at 18% 18%, rgba(246,179,50,.32), transparent 40%), rgba(0,0,0,.62); }
.home-hero .eyebrow,
.home-search-card-copy small,
.home-lead-kicker { color: rgba(173,205,255,.95); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.home-hero h1 { max-width: 520px; margin: 10px 0 10px; font-size: clamp(30px, 7.4vw, 48px); line-height: 1.04; letter-spacing: -.055em; }
.home-hero h2 { max-width: 480px; margin: 10px 0; font-size: clamp(26px, 6.6vw, 42px); line-height: 1.06; letter-spacing: -.045em; }
.home-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.78; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.home-hero-actions button,
.home-search button,
.home-section-title button,
.home-search-all {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90), 0 10px 24px rgba(0,0,0,.18);
  font-weight: 900;
  cursor: pointer;
}
.home-hero-actions button { min-height: 38px; padding: 0 16px; }
.home-search-card { padding: 12px; }
.home-search-card-copy { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; }
.home-search-card-copy strong { font-size: 15px; line-height: 1.25; }
.home-search { display: flex; gap: 8px; margin: 0; padding: 7px; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.home-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #111827; padding: 10px; font-size: 14px; }
.home-search button { padding: 0 15px; background: var(--blue); color: #fff; }
.home-search-results { display: grid; gap: 8px; margin-top: 10px; }
.home-search-empty { padding: 10px 12px; border-radius: 15px; color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); font-size: 12px; line-height: 1.55; }
.home-search-result-item {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.08);
}
.home-search-result-item small { color: #9fc0ff; font-weight: 900; }
.home-search-result-item strong { font-size: 14px; }
.home-search-result-item span { color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.45; }
.home-search-all { width: max-content; padding: 9px 13px; background: rgba(255,255,255,.90); font-size: 12px; }
.home-action-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 12px; }
.home-lead-card {
  min-height: 156px;
  padding: 16px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background: radial-gradient(circle at 78% 18%, rgba(35,120,255,.32), transparent 45%), rgba(0,0,0,.58);
}
.home-lead-card strong { display: block; margin: 10px 0 8px; font-size: 20px; line-height: 1.2; }
.home-lead-card small { color: rgba(255,255,255,.66); line-height: 1.55; }
.home-action-grid .agent-contact-card { min-height: 156px; }
.home-section-title { display:flex; align-items:center; justify-content:space-between; gap: 10px; margin: 2px 2px 12px; }
.home-section-title h2 { margin:0; font-size: 18px; letter-spacing: -.02em; }
.home-section-title button { min-height: 30px; padding: 0 11px; color:#1f5ddb; background:rgba(255,255,255,.88); font-size: 12px; }
.home-panel,.qa-panel,.guide-panel { padding: 16px; }
.home-module-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:10px; }
.home-module-card {
  min-width: 0;
  min-height: 122px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 12px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
}
.home-module-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.13); }
.home-module-icon img { width: 18px; height: 18px; display:block; filter: invert(1); opacity: .94; }
.home-module-card strong { display:block; font-size: 14px; }
.home-module-card small { display:block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; }
.home-module-card em { justify-self: start; font-style: normal; color: #b8d0ff; font-size: 11px; font-weight: 900; }
.home-qa-section { background: radial-gradient(circle at 90% 0%, rgba(35,120,255,.22), transparent 38%), rgba(0,0,0,.54); }
.guide-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap:10px; }
.guide-card { color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.14); border-radius:16px; padding:14px; background:rgba(255,255,255,.07); }
.guide-card .tag { display:inline-flex; padding:4px 8px; border-radius:999px; background:rgba(35,120,255,.16); color:#c6d9ff; font-size:12px; font-weight:900; }
.guide-card h3 { margin:10px 0 6px; font-size:16px; }
.guide-card p { margin:0; color:rgba(255,255,255,.7); line-height:1.65; font-size:13px; }
.question-card { border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:14px; margin-top:10px; background:rgba(255,255,255,.07); }
.question-card h3 { margin:0 0 7px; font-size:15px; }
.question-card .muted { color:rgba(255,255,255,.68); }
.question-card .answer { margin-top:9px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.08); line-height:1.65; }
.question-card .answer strong { display:block; color:#a8c6ff; margin-bottom:3px; font-size:12px; }
body.is-questions .home-page,
body.is-guide .home-page { display:block; }
body.is-questions #viewer,
body.is-guide #viewer,
body.is-questions .right-rail,
body.is-guide .right-rail,
body.is-questions .side-nav,
body.is-guide .side-nav,
body.is-questions .brand-stack,
body.is-guide .brand-stack,
body.is-questions .global-watermark,
body.is-guide .global-watermark,
body.is-questions .scene-ui-stack,
body.is-guide .scene-ui-stack,
body.is-questions .visit-badge,
body.is-guide .visit-badge,
body.is-questions .viewer-badge,
body.is-guide .viewer-badge { display:none; }
body.is-questions, body.is-guide { overflow-y:auto; user-select:text; background:#07090d; }
.share-qr { display:block; width:210px; height:210px; margin:12px auto; border-radius:16px; background:#fff; }
.share-url { padding:10px; border-radius:12px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.72); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
body.is-panorama .home-page { display:none; }
@media(max-width:760px){
  .home-page{padding:10px 8px 96px}
  .home-shell{gap:12px}
  .home-carousel{grid-auto-columns: 88%;}
  .home-hero-slide{min-height:196px;border-radius:22px;padding:21px 17px}
  .home-action-grid{grid-template-columns:1fr}
  .home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-panel,.qa-panel,.guide-panel{border-radius:20px;padding:14px}
  .home-search-card{border-radius:20px}
  .guide-grid{grid-template-columns:1fr}
  .home-search button{padding:0 12px}
}
@media(max-width:380px){
  .home-module-grid{grid-template-columns:1fr 1fr; gap:8px}
  .home-module-card{min-height:112px; padding:10px; border-radius:16px}
  .home-hero h1{font-size:28px}
}.page-share-button {
  display: none; position: fixed; z-index: 42;
  top: max(14px, env(safe-area-inset-top)); right: 14px;
  min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px; align-items: center; gap: 7px;
  color: #252b35; background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
}
.page-share-button img { width: 17px; height: 17px; display: block; }
body.is-home .page-share-button,
body.is-questions .page-share-button,
body.is-guide .page-share-button { display: flex; }
@media (max-width: 760px) {
  body.is-schedule .page-share-button { display: flex; width: 38px; min-height: 38px; padding: 0; justify-content: center; right: 10px; top: max(10px, env(safe-area-inset-top)); }
  body.is-schedule .page-share-button span { display: none; }
  body.is-schedule .schedule-top { padding-right: 54px; }
}
@media (max-width: 520px) {
  .page-share-button { min-height: 38px; padding: 0 12px; right: 10px; top: max(10px, env(safe-area-inset-top)); }
  body.is-schedule .page-share-button { padding: 0; }
}

/* Apple camera-style glass controls layered over the legacy visual system. */
:root {
  --dock-index: 0;
  --apple-segment-glass-bg: linear-gradient(104deg, rgba(255, 244, 229, .44), rgba(247, 252, 249, .58) 42%, rgba(244, 250, 252, .48) 64%, rgba(230, 201, 165, .34)), rgba(248, 248, 244, .58);
  --apple-segment-active-bg: rgba(255, 255, 255, .94);
  --apple-segment-text: rgba(13, 16, 21, .72);
  --apple-segment-active-text: #111318;
  --apple-segment-border: 1px solid rgba(255, 255, 255, .56);
  --apple-segment-shadow: 0 16px 42px rgba(39, 31, 22, .18), inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -1px 0 rgba(180, 150, 115, .10);
  --apple-segment-active-shadow: 0 7px 20px rgba(36, 30, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .98);
  --apple-segment-blur: blur(34px) saturate(1.75) contrast(1.04);
}

.app-dock {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(344px, calc(100vw - 28px));
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  padding: 5px;
  overflow: hidden;
  color: rgba(24, 28, 34, .68);
  background: rgba(241, 243, 247, .54);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .52);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
  transform: translateX(-50%);
  isolation: isolate;
}

.app-dock-indicator {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255, 255, 255, .95);
  transform: translateX(calc(var(--dock-index) * 100%));
  transition: transform .52s cubic-bezier(.2,1.45,.25,1);
  pointer-events: none;
}

.app-dock-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  min-width: 0;
  height: 50px;
  border: 0;
  border-radius: 999px;
  display: grid;
  grid-template-rows: 22px 14px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: color .22s ease, transform .22s ease;
}

.app-dock-btn:active { transform: scale(.94); }
.app-dock-btn.is-current { color: #17191e; font-weight: 800; }
.app-dock-btn .app-dock-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  opacity: .78;
  transform: translateY(1px);
  transition: opacity .22s ease, transform .22s ease;
}
.app-dock-btn .app-dock-icon img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}
.app-dock-btn.is-current .app-dock-icon { opacity: 1; transform: translateY(0) scale(1.04); }

body.is-panorama .app-dock {
  color: rgba(255, 255, 255, .72);
  background: rgba(29, 29, 31, .58);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}

body.is-panorama .app-dock-btn.is-current { color: #17191e; }
body.is-panorama .app-dock-btn .app-dock-icon img { filter: brightness(0) invert(1); }
body.is-panorama .app-dock-btn.is-current .app-dock-icon img { filter: none; }

.scene-ui-stack {
  position: fixed;
  z-index: 43;
  top: max(68px, calc(env(safe-area-inset-top) + 58px));
  bottom: auto;
  left: 50%;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.scene-ui-stack > * { min-width: 0; pointer-events: auto; }

.top-switch {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(35, 35, 38, .58);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.campus-btn {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-shadow: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.campus-btn:active { transform: scale(.95); }
.campus-btn.is-active {
  color: #16181d;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.scene-picker-toggle {
  appearance: none;
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: rgba(31, 31, 34, .66);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  cursor: pointer;
  transition: transform .24s ease, background .24s ease;
}

.scene-picker-toggle:active { transform: scale(.975); }
.scene-picker-toggle[aria-expanded="true"] { background: rgba(45, 45, 49, .82); }
.scene-picker-toggle-copy { min-width: 0; display: grid; gap: 3px; text-align: left; }
.scene-picker-toggle-copy small { color: rgba(255, 255, 255, .54); font-size: 11px; font-weight: 650; }
.scene-picker-toggle-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.scene-picker-chevron { flex: 0 0 auto; color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 750; }

.scene-picker-mask {
  position: fixed;
  z-index: 42;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .24s ease, visibility .24s ease;
}

.scene-picker-mask.show { opacity: 1; visibility: visible; }

.scene-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: calc(100dvh - 245px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  background: rgba(29, 29, 31, .84);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(30px) saturate(1.55);
  -webkit-backdrop-filter: blur(30px) saturate(1.55);
  transform: translateY(-14px) scale(.96);
  transform-origin: top center;
  transition: opacity .28s ease, visibility .28s ease, transform .42s cubic-bezier(.2,1.45,.25,1);
  pointer-events: none;
  scrollbar-width: none;
}

.scene-picker-panel::-webkit-scrollbar { display: none; }
.scene-picker-panel.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.scene-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.scene-picker-head > span { min-width: 0; display: grid; gap: 2px; }
.scene-picker-head small { color: rgba(255, 255, 255, .5); font-size: 11px; }
.scene-picker-head strong { font-size: 17px; }
.scene-picker-head button {
  appearance: none;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: #111318;
  background: rgba(255, 255, 255, .92);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.scene-picker-section + .scene-picker-section { margin-top: 12px; }
.scene-picker-section-title { padding: 0 3px 8px; color: rgba(255, 255, 255, .56); font-size: 11px; font-weight: 750; }
.scene-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 8px; }

.scene-picker-option {
  appearance: none;
  min-width: 0;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.scene-picker-option-circle {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 800;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.scene-picker-option-circle img { width: 100%; height: 100%; display: block; object-fit: cover; }
.scene-picker-option-label { width: 100%; min-height: 28px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; line-height: 1.35; }
.scene-picker-option:active .scene-picker-option-circle { transform: scale(.9); }
.scene-picker-option.is-active { color: #fff; }
.scene-picker-option.is-active .scene-picker-option-circle {
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .94), 0 0 0 5px color-mix(in srgb, var(--blue) 72%, transparent);
  transform: translateY(-2px);
}

.scene-picker-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: rgba(255, 255, 255, .56); }

body.is-panorama .viewer-badge,
body.is-panorama .visit-badge,
body.is-panorama .brand-stack { display: none !important; }
body.is-panorama .page-share-button { display: flex; }
body.is-panorama #shareBtn { display: none !important; }

@media (max-width: 520px) {
  .app-dock {
    width: min(330px, calc(100vw - 24px));
    min-height: 54px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 4px;
  }
  .app-dock-indicator { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); }
  .app-dock-btn { height: 48px; grid-template-rows: 21px 13px; font-size: 10px; }
  .scene-ui-stack { top: max(62px, calc(env(safe-area-inset-top) + 52px)); width: calc(100vw - 20px); gap: 7px; }
  .top-switch { min-height: 42px; padding: 4px; }
  .campus-btn { height: 34px; font-size: 12px; }
  .scene-picker-toggle { min-height: 58px; border-radius: 20px; padding: 9px 13px 9px 15px; }
  .scene-picker-panel { max-height: calc(100dvh - 224px); padding: 13px 10px; border-radius: 27px; }
  .scene-picker-grid { gap: 12px 5px; }
  .scene-picker-option-circle { width: 58px; height: 58px; }
  body.is-panorama .page-share-button { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  body.is-panorama .page-share-button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app-dock-indicator,
  .scene-picker-panel,
  .scene-picker-mask,
  .scene-picker-option-circle { transition-duration: .01ms !important; }
}

/* Bottom-stacked campus/building controls with an upward room sheet. */
.scene-ui-stack {
  top: auto;
  bottom: calc(80px + env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 20px));
  gap: 6px;
}

.building-slider {
  width: 100%;
  min-height: 46px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  background: rgba(29, 29, 31, .62);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.building-slider::-webkit-scrollbar { display: none; }

.building-slider-track {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 6px;
}

.building-chip {
  appearance: none;
  flex: 0 0 auto;
  height: 36px;
  min-width: 66px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.building-chip:active { transform: scale(.94); }
.building-chip.is-active {
  color: #16181d;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.scene-picker-panel {
  top: auto;
  bottom: calc(100% + 8px);
  max-height: min(48dvh, 420px);
  transform: translateY(14px) scale(.96);
  transform-origin: bottom center;
}

.scene-picker-panel.show { transform: translateY(0) scale(1); }
.scene-picker-grid-rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 520px) {
  .scene-ui-stack {
    top: auto;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100vw - 18px);
    gap: 5px;
  }
  .building-slider { min-height: 43px; padding: 4px; }
  .building-chip { height: 33px; min-width: 62px; padding: 0 13px; font-size: 11px; }
  .scene-picker-panel { max-height: min(46dvh, 390px); }
}

/* Real panorama engagement badge. */
.pano-stats-badge {
  display: none;
  left: max(10px, env(safe-area-inset-left));
  top: max(10px, env(safe-area-inset-top));
  min-height: 40px;
  padding: 7px 12px;
  gap: 10px;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(29, 29, 31, .62);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  font-variant-numeric: tabular-nums;
}

body.is-panorama .pano-stats-badge { display: inline-flex !important; }
body.is-panorama .access-chip { display: none !important; }

.pano-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pano-stat img { width: 17px; height: 17px; }
.pano-stat b { font-size: 13px; line-height: 1; }
.pano-stat em { color: rgba(255, 255, 255, .68); font-size: 11px; font-style: normal; font-weight: 650; }
.pano-time-stat b { min-width: 18px; text-align: right; }
.pano-stat-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, .18); }

@media (max-width: 520px) {
  .pano-stats-badge { min-height: 38px; padding: 6px 10px; gap: 8px; }
}

/* Separated top campus and bottom building controls. */
.campus-dock {
  position: fixed;
  z-index: 43;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  width: 176px;
  min-height: 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: translateX(-50%);
  display: none;
}

body.is-panorama .campus-dock { display: grid; }
body.is-planet-intro .campus-dock { opacity: 0 !important; pointer-events: none !important; transition: opacity .55s ease; }
body.is-planet-intro.is-planet-settled .campus-dock { opacity: 1 !important; }

.campus-dock-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
  transform: translateX(calc(var(--campus-index, 0) * 100%));
  transition: transform .52s cubic-bezier(.2,1.45,.25,1);
  pointer-events: none;
}

.campus-dock .campus-btn {
  position: relative;
  z-index: 1;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.campus-dock .campus-btn.is-active {
  background: transparent;
  box-shadow: none;
}

.pano-stats-badge {
  min-width: 88px;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 18px;
}

.pano-stats-badge .pano-stat { justify-content: flex-start; }
.pano-stats-badge .pano-stat-divider { width: 100%; height: 1px; }
.pano-stats-badge .pano-time-stat b { min-width: 0; text-align: left; }

#scenePickerClose {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 18px rgba(0, 0, 0, .18);
}

.scene-picker-close-glyph {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  border-radius: 1px;
}

@media (max-width: 520px) {
  .campus-dock { width: 168px; min-height: 42px; }
  .campus-dock .campus-btn { height: 32px; font-size: 11px; }
  .pano-stats-badge { min-height: 0; padding: 7px 10px; gap: 4px; }
}
/* Apple camera segmented glass: shared top, bottom, and horizontal selectors. */
.app-dock,
.campus-dock,
.building-slider {
  color: var(--apple-segment-text);
  background: var(--apple-segment-glass-bg);
  border: var(--apple-segment-border);
  box-shadow: var(--apple-segment-shadow);
  backdrop-filter: var(--apple-segment-blur);
  -webkit-backdrop-filter: var(--apple-segment-blur);
}

body.is-panorama .app-dock {
  color: var(--apple-segment-text);
  background: var(--apple-segment-glass-bg);
  border: var(--apple-segment-border);
  box-shadow: var(--apple-segment-shadow);
}

.app-dock-indicator,
.campus-dock-indicator,
.building-chip.is-active {
  background: var(--apple-segment-active-bg);
  box-shadow: var(--apple-segment-active-shadow);
}

.app-dock-btn,
.campus-dock .campus-btn,
.building-chip {
  color: var(--apple-segment-text);
  background: transparent;
  text-shadow: none;
}

.app-dock-btn.is-current,
body.is-panorama .app-dock-btn.is-current,
.campus-dock .campus-btn.is-active,
.building-chip.is-active {
  color: var(--apple-segment-active-text);
}

.app-dock-btn .app-dock-icon img { filter: none; }
body.is-panorama .app-dock-btn .app-dock-icon img { filter: none; }
body.is-panorama .app-dock-btn.is-current .app-dock-icon img { filter: none; }

.campus-dock {
  width: min(208px, calc(100vw - 132px));
  min-height: 48px;
  padding: 5px;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
}

.campus-dock-indicator:is(*) {
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 2);
}

.campus-dock .campus-btn {
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 820;
}

.building-slider {
  min-height: 48px;
  padding: 5px;
}

.building-chip {
  height: 38px;
  min-width: 70px;
  font-weight: 820;
}

@media (max-width: 520px) {
  .campus-dock {
    width: min(196px, calc(100vw - 164px));
    min-height: 44px;
    padding: 4px;
  }
  .campus-dock-indicator:is(*) { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); }
  .campus-dock .campus-btn { height: 34px; font-size: 11px; }
  .pano-stats-badge {
    width: 70px;
    min-width: 70px;
    min-height: 0;
    padding: 6px;
    gap: 3px;
    border-radius: 16px;
  }
  .pano-stats-badge .pano-stat { gap: 2px; }
  .pano-stats-badge .pano-stat img { width: 12px; height: 12px; }
  .pano-stats-badge .pano-stat b { font-size: 11px; }
  .pano-stats-badge .pano-stat em { font-size: 9px; }
  .building-slider { min-height: 45px; padding: 4px; }
  .building-chip { height: 35px; min-width: 64px; }
}

/* Apple glass room scene picker. */
.scene-picker-panel {
  color: var(--apple-segment-text);
  background: var(--apple-segment-glass-bg);
  border: var(--apple-segment-border);
  box-shadow: var(--apple-segment-shadow);
  backdrop-filter: var(--apple-segment-blur);
  -webkit-backdrop-filter: var(--apple-segment-blur);
}

.scene-picker-head small { color: rgba(13, 16, 21, .52); }
.scene-picker-head strong {
  color: var(--apple-segment-active-text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

#scenePickerClose {
  color: rgba(13, 16, 21, .74);
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: var(--apple-segment-active-shadow);
}

.scene-picker-option {
  color: rgba(13, 16, 21, .68);
  text-shadow: none;
}

.scene-picker-option-circle {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 8px 22px rgba(40, 32, 24, .14), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.scene-picker-option-label { font-weight: 750; }
.scene-picker-option.is-active { color: var(--apple-segment-active-text); }
.scene-picker-option.is-active .scene-picker-option-circle {
  background: var(--apple-segment-active-bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .94), 0 0 0 5px rgba(35, 120, 255, .52), var(--apple-segment-active-shadow);
}

.scene-picker-empty { color: rgba(13, 16, 21, .54); }

/* Compact schedule selector and progressive bottom sheet. */
.schedule-top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 4px 48px 4px 4px;
  gap: 0;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(218, 226, 238, .76);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.schedule-compact-selector {
  width: 100%;
  min-height: 36px;
  padding: 2px;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 62px;
  color: #172033;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 45, 61, .05);
  cursor: pointer;
}

.schedule-compact-field {
  min-width: 0;
  padding: 2px 8px;
  display: grid;
  align-content: center;
  gap: 1px;
  border-right: 1px solid #edf0f4;
  text-align: left;
}

.schedule-compact-field:last-child {
  border-right: 0;
  text-align: center;
}

.schedule-compact-field small {
  overflow: hidden;
  color: #8a94a4;
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-compact-field strong {
  overflow: hidden;
  color: #263240;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-compact-field.is-empty strong { color: #c2414f; }
.schedule-meta-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.list-picker-mask {
  display: block;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity .28s ease, visibility .28s ease;
}

.list-picker-mask.show {
  opacity: 1;
  visibility: visible;
}

.list-picker-sheet {
  left: 50%;
  right: auto;
  width: min(560px, 100%);
  max-height: min(78dvh, 680px);
  padding-bottom: env(safe-area-inset-bottom);
  border: 1px solid rgba(255, 255, 255, .92);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow: 0 -24px 64px rgba(22, 35, 56, .2);
  transform: translate(-50%, 100%);
  transition: transform .42s cubic-bezier(.2, 1, .25, 1);
}

.list-picker-sheet.show { transform: translate(-50%, 0); }

.list-picker-handle {
  width: 38px;
  height: 4px;
  margin: 8px auto 2px;
  border-radius: 999px;
  background: #d6dae1;
}

.list-picker-header {
  padding: 13px 18px 8px;
  border-bottom: 0;
  background: #fff;
}

.list-picker-title {
  color: #192433;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.list-picker-subtitle {
  margin-top: 5px;
  color: #8b94a3;
  font-size: 12px;
  font-weight: 700;
}

.schedule-picker-notice {
  margin: 0 18px 4px;
  padding: 7px 10px;
  border: 1px solid rgba(239, 68, 68, .42);
  border-left: 3px solid #ef4459;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  color: #687386;
  background: #fff7f8;
}
.schedule-picker-notice strong {
  color: #d9364d;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
}
.schedule-picker-notice span {
  font-size: 9px;
  line-height: 1.45;
  font-weight: 650;
}
.list-picker-close {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #667085;
  background: #f1f3f6;
  font-size: 12px;
}

.schedule-picker-steps {
  display: flex;
  gap: 22px;
  padding: 6px 18px 0;
  background: #fff;
}

.schedule-picker-step {
  position: relative;
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  color: #9299a5;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.schedule-picker-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.schedule-picker-step.is-active { color: #202b3a; }
.schedule-picker-step.is-active::after { background: #ef2348; }
.schedule-picker-step:disabled { opacity: .38; cursor: default; }

.list-picker-list {
  padding: 10px 18px 20px;
  background: #fff;
}

.list-picker-item {
  min-height: 52px;
  margin: 0;
  padding: 0 2px;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  color: #263240;
  background: transparent;
  font-size: 16px;
  font-weight: 720;
}

.list-picker-item.is-active {
  color: #2459dc;
  background: #f4f7ff;
}

.list-picker-item.is-active span:last-child {
  font-size: 11px;
  font-weight: 900;
}

.list-picker-empty {
  padding: 28px 2px;
  color: #9299a5;
  text-align: center;
}

@media (min-width: 761px) {
  body.is-schedule .page-share-button { display: flex; }
}

@media (max-width: 520px) {
  .schedule-page { padding: 3px 3px 76px; }
  .schedule-shell { --schedule-row-height: 68px; border-radius: 10px; }
  .schedule-watermark-diagonal span { font-size: 15px; transform: rotate(-20deg); }
  .schedule-watermark-horizontal strong { font-size: clamp(30px, 8vw, 34px); }
  .schedule-watermark-horizontal span { font-size: clamp(22px, 6vw, 28px); }
  .schedule-top { padding: 3px 46px 3px 3px; }
  .schedule-compact-selector { min-height: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 58px; border-radius: 9px; }
  .schedule-compact-field { padding: 3px 7px; }
  .schedule-compact-field small { font-size: 8px; }
  .schedule-compact-field strong { font-size: 11px; }
  .schedule-table th { height: 30px; font-size: 12px; }
  .schedule-table .date-row th { height: 22px; font-size: 10px; }
  .schedule-table td:first-child,
  .schedule-table th:first-child { width: 46px; }
  .section-label { margin-top: 5px; font-size: 11px; }
  .section-time { margin-top: 3px; font-size: 8px; }
  .course-card { inset: 2px; padding: 4px 3px; border-radius: 6px; }
  .course-name { font-size: 10px; line-height: 1.12; -webkit-line-clamp: 3; }
  .course-classroom { font-size: 8px; line-height: 1.05; -webkit-line-clamp: 1; }
}
/* Access-state, modal layering and agent contact additions. */
#messageModal,
#shareModal {
  z-index: 120;
}

#gateModal { z-index: 130; }
.toast { z-index: 140; }

body:not(.is-panorama) #viewer { display: none !important; }
body:not(.is-schedule) .schedule-page { display: none !important; }
body.is-schedule .home-page,
body.is-panorama .home-page { display: none !important; }
body.preview-hard-locked .schedule-page { visibility: visible; }

.schedule-content.is-loading .schedule-table,
.schedule-content.is-access-blocked .schedule-table {
  min-height: 55vh;
  background: linear-gradient(180deg, rgba(248, 250, 253, .98), rgba(239, 244, 250, .98));
}

.schedule-content.is-access-blocked .schedule-table { border-color: rgba(239, 68, 68, .16); }
.schedule-content.is-access-blocked .schedule-table thead { opacity: .34; }
.schedule-access-state {
  min-height: 48vh;
  padding: 36px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #344054;
  text-align: center;
}
.schedule-access-state strong { max-width: 360px; font-size: 16px; line-height: 1.55; }
.schedule-access-state small { max-width: 420px; color: #7b8493; font-size: 12px; line-height: 1.6; }
.schedule-access-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ef4961;
  box-shadow: 0 10px 26px rgba(239, 73, 97, .22);
  font-size: 20px;
  font-weight: 900;
}
.schedule-content.is-loading .schedule-access-icon {
  color: #2459dc;
  background: #e7efff;
  animation: schedule-loading-pulse 1s ease-in-out infinite alternate;
}
@keyframes schedule-loading-pulse { to { transform: scale(1.08); opacity: .72; } }

.agent-contact-card {
  width: 100%;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  padding: 16px;
  color: #fff;
  background: radial-gradient(circle at 8% 20%, rgba(35, 120, 255, .24), transparent 36%), rgba(0, 0, 0, .60);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.agent-contact-card.is-gate {
  grid-template-columns: 76px minmax(0, 1fr);
  margin: 10px 0;
  padding: 10px;
  border-color: #dce7f8;
  border-radius: 14px;
  color: #172033;
  background: linear-gradient(135deg, #f4f8ff, #fff);
  box-shadow: none;
}
.agent-contact-qr {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid rgba(255, 255, 255, .92);
  background: #fff;
}
.agent-contact-card.is-gate .agent-contact-qr { width: 76px; height: 76px; border-width: 3px; border-radius: 12px; }
.agent-contact-qr-empty {
  display: grid;
  place-items: center;
  color: #8792a6;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.agent-contact-copy > small { color: #90b8ff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.agent-contact-copy h2 { margin: 4px 0 5px; font-size: 20px; }
.agent-contact-copy p { margin: 0; color: rgba(255, 255, 255, .70); font-size: 12px; line-height: 1.55; }
.agent-contact-card.is-gate .agent-contact-copy > small { color: #2459dc; }
.agent-contact-card.is-gate .agent-contact-copy h2 { margin: 2px 0 3px; font-size: 15px; }
.agent-contact-card.is-gate .agent-contact-copy p { color: #68758a; font-size: 10px; }
.agent-contact-details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.agent-contact-details span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .10); }
.agent-contact-details small { color: rgba(255, 255, 255, .58); font-size: 10px; }
.agent-contact-details b { font-size: 12px; }
.agent-contact-card.is-gate .agent-contact-details { margin-top: 6px; }
.agent-contact-card.is-gate .agent-contact-details span { padding: 4px 7px; background: #e8f0ff; }
.agent-contact-card.is-gate .agent-contact-details small { color: #71809a; }

@media (max-width: 520px) {
  .agent-contact-card { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; padding: 13px; border-radius: 18px; }
  .agent-contact-qr { width: 84px; height: 84px; border-radius: 13px; }
  .agent-contact-copy h2 { font-size: 17px; }
  .agent-contact-copy p { font-size: 11px; }
  .agent-contact-card.is-gate { grid-template-columns: 64px minmax(0, 1fr); }
  .agent-contact-card.is-gate .agent-contact-qr { width: 64px; height: 64px; }
}

/* Configurable homepage carousel and dedicated Q&A page. */
.home-hero-slide { min-height: 224px; padding: 0; }
.home-hero-slide.is-primary::after { display: none; }
.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 7, 14, .90) 0%, rgba(3, 7, 14, .65) 58%, rgba(3, 7, 14, .34) 100%);
}
.home-hero-content { position: relative; z-index: 1; max-width: 650px; padding: 25px 22px; }
.home-hero-content h2 { margin: 11px 0 9px; font-size: clamp(28px, 5vw, 43px); line-height: 1.08; letter-spacing: -.045em; }
.home-hero-link {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(0,0,0,.20), inset 0 1px 0 #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.home-qa-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.home-qa-entry-copy small { color: #9fc0ff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.home-qa-entry-copy h2 { margin: 6px 0 7px; font-size: 25px; }
.home-qa-entry-copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.7; }
.home-qa-entry-action { min-width: 132px; display: grid; justify-items: center; gap: 3px; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.08); }
.home-qa-entry-action strong { font-size: 30px; line-height: 1; }
.home-qa-entry-action span { color: rgba(255,255,255,.58); font-size: 10px; }
.home-qa-entry-action button { min-height: 34px; margin-top: 7px; padding: 0 13px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 900; cursor: pointer; }
.questions-page-shell { gap: 12px; padding-top: max(2px, env(safe-area-inset-top)); }
.questions-page-hero {
  min-height: 172px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: radial-gradient(circle at 82% 10%, rgba(35,120,255,.38), transparent 38%), rgba(0,0,0,.58);
  box-shadow: 0 18px 56px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(24px) saturate(1.24);
}
.questions-page-hero small { color: #9fc0ff; font-weight: 900; letter-spacing: .08em; }
.questions-page-hero h1 { margin: 7px 0 6px; font-size: clamp(30px, 6vw, 46px); line-height: 1; }
.questions-page-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.65; }
.questions-page-hero button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; color: #111827; background: rgba(255,255,255,.94); font-weight: 900; white-space: nowrap; }
.questions-page-search { padding: 8px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.questions-page-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .7fr); gap: 12px; align-items: start; }
.questions-results-panel .home-section-title span { color: rgba(255,255,255,.58); font-size: 12px; }
.questions-submit-panel { position: sticky; top: 10px; }
.questions-submit-panel > small { color: #9fc0ff; font-weight: 900; }
.questions-submit-panel h2 { margin: 5px 0 7px; }
.questions-submit-panel > p { margin: 0 0 13px; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.6; }
.questions-submit-panel form { display: grid; gap: 9px; }
.questions-submit-panel input,
.questions-submit-panel textarea { width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 11px; color: #fff; background: rgba(255,255,255,.08); outline: 0; resize: vertical; }
.questions-submit-panel button { min-height: 40px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 900; }
@media(max-width:760px){
  .home-carousel { grid-auto-columns: 94%; }
  .home-hero-slide { min-height: 218px; }
  .home-hero-content { padding: 22px 18px; }
  .home-hero-content h2 { font-size: 29px; }
  .home-qa-entry { grid-template-columns: minmax(0,1fr) 112px; gap: 10px; }
  .home-qa-entry-action { min-width: 0; padding: 10px 7px; }
  .home-qa-entry-action button { padding: 0 9px; font-size: 11px; }
  .questions-page-hero { min-height: 154px; padding: 18px; align-items: flex-start; }
  .questions-page-hero h1 { font-size: 31px; }
  .questions-page-hero p { font-size: 12px; }
  .questions-page-layout { grid-template-columns: 1fr; }
  .questions-submit-panel { position: static; }
}
/* Unified white Apple-glass theme. */
:root {
  --surface-page: #f4f6f9;
  --surface-card: rgba(255,255,255,.88);
  --surface-card-solid: #ffffff;
  --surface-soft: #eef2f7;
  --surface-line: rgba(27,39,56,.10);
  --surface-text: #172033;
  --surface-muted: #667085;
  --surface-shadow: 0 18px 52px rgba(31,45,61,.10), inset 0 1px 0 rgba(255,255,255,.94);
}

.entry-cover {
  color: var(--surface-text);
  background:
    radial-gradient(circle at 50% 28%, rgba(35,120,255,.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
}
.entry-title { color: var(--surface-text); text-shadow: none; }
.entry-subtitle { color: var(--surface-muted); text-shadow: none; }
.entry-line { background: rgba(35,120,255,.14); }
.entry-line::after { background: var(--blue); }

body.is-home,
body.is-questions,
body.is-guide {
  color: var(--surface-text);
  background:
    radial-gradient(circle at 12% -8%, rgba(35,120,255,.12), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(121,164,255,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-page) 54%, #edf1f6 100%);
}
.home-page { color: var(--surface-text); }

.home-hero,
.home-search-card,
.home-panel,
.qa-panel,
.guide-panel,
.home-lead-card {
  color: var(--surface-text);
  border-color: rgba(255,255,255,.94);
  background: var(--surface-card);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(26px) saturate(1.18);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
}
.home-hero-slide::before,
.home-hero-slide.is-secondary::before {
  background: radial-gradient(circle at 88% 12%, rgba(35,120,255,.18), transparent 44%), rgba(255,255,255,.92);
}
.home-hero-shade {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 58%, rgba(255,255,255,.60) 100%);
}
.home-hero .eyebrow,
.home-search-card-copy small,
.home-lead-kicker { color: #2459dc; }
.home-hero-content h2,
.home-hero h1,
.home-hero h2 { color: var(--surface-text); }
.home-hero p { color: var(--surface-muted); }
.home-hero-link,
.home-hero-actions button,
.home-section-title button,
.home-search-all,
.questions-page-hero button {
  color: #2459dc;
  border: 1px solid rgba(35,120,255,.14);
  background: rgba(239,245,255,.94);
  box-shadow: 0 8px 20px rgba(35,90,180,.10), inset 0 1px 0 #fff;
}

.home-search-card-copy strong,
.home-section-title h2 { color: var(--surface-text); }
.home-search { border: 1px solid var(--surface-line); background: #fff; box-shadow: 0 8px 24px rgba(31,45,61,.07); }
.home-search input { color: var(--surface-text); }
.home-search-empty { color: var(--surface-muted); background: var(--surface-soft); }
.home-search-result-item {
  color: var(--surface-text);
  border-color: var(--surface-line);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(31,45,61,.05);
}
.home-search-result-item small { color: #2459dc; }
.home-search-result-item span { color: var(--surface-muted); }

.home-lead-card {
  color: var(--surface-text);
  background: radial-gradient(circle at 82% 12%, rgba(35,120,255,.13), transparent 48%), rgba(255,255,255,.90);
}
.home-lead-card strong { color: var(--surface-text); }
.home-lead-card small { color: var(--surface-muted); }
.home-module-card {
  color: var(--surface-text);
  border-color: var(--surface-line);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(31,45,61,.06), inset 0 1px 0 #fff;
}
.home-module-icon { background: #edf3ff; }
.home-module-icon img { filter: none; opacity: .78; }
.home-module-card strong { color: var(--surface-text); }
.home-module-card small { color: var(--surface-muted); }
.home-module-card em { color: #2459dc; }

.home-qa-section {
  background: radial-gradient(circle at 90% 0%, rgba(35,120,255,.13), transparent 40%), rgba(255,255,255,.88);
}
.home-qa-entry-copy small { color: #2459dc; }
.home-qa-entry-copy h2 { color: var(--surface-text); }
.home-qa-entry-copy p { color: var(--surface-muted); }
.home-qa-entry-action {
  border-color: var(--surface-line);
  background: rgba(239,244,250,.90);
}
.home-qa-entry-action strong { color: var(--surface-text); }
.home-qa-entry-action span { color: var(--surface-muted); }

.agent-contact-card,
.agent-contact-card.is-gate {
  color: var(--surface-text);
  border-color: rgba(255,255,255,.94);
  background: radial-gradient(circle at 8% 20%, rgba(35,120,255,.12), transparent 40%), rgba(255,255,255,.92);
  box-shadow: var(--surface-shadow);
}
.agent-contact-qr { border-color: #fff; box-shadow: 0 8px 24px rgba(31,45,61,.10); }
.agent-contact-copy > small,
.agent-contact-card.is-gate .agent-contact-copy > small { color: #2459dc; }
.agent-contact-copy h2 { color: var(--surface-text); }
.agent-contact-copy p,
.agent-contact-card.is-gate .agent-contact-copy p { color: var(--surface-muted); }
.agent-contact-details span,
.agent-contact-card.is-gate .agent-contact-details span { background: #edf3ff; }
.agent-contact-details small,
.agent-contact-card.is-gate .agent-contact-details small { color: #71809a; }
.agent-contact-details b { color: var(--surface-text); }

.guide-card,
.question-card {
  color: var(--surface-text);
  border-color: var(--surface-line);
  background: rgba(255,255,255,.86);
  box-shadow: 0 9px 26px rgba(31,45,61,.05);
}
.guide-card .tag { color: #2459dc; background: #edf3ff; }
.guide-card h3,
.question-card h3 { color: var(--surface-text); }
.guide-card p,
.question-card .muted { color: var(--surface-muted); }
.question-card .answer { color: var(--surface-text); background: #eef2f7; }
.question-card .answer strong { color: #2459dc; }

.questions-page-hero {
  color: var(--surface-text);
  border-color: rgba(255,255,255,.94);
  background: radial-gradient(circle at 84% 8%, rgba(35,120,255,.15), transparent 40%), rgba(255,255,255,.90);
  box-shadow: var(--surface-shadow);
}
.questions-page-hero small { color: #2459dc; }
.questions-page-hero h1 { color: var(--surface-text); }
.questions-page-hero p { color: var(--surface-muted); }
.questions-results-panel .home-section-title span,
.questions-submit-panel > p { color: var(--surface-muted); }
.questions-submit-panel > small { color: #2459dc; }
.questions-submit-panel h2 { color: var(--surface-text); }
.questions-submit-panel input,
.questions-submit-panel textarea {
  color: var(--surface-text);
  border-color: var(--surface-line);
  background: #f7f9fc;
}

.modal,
.gate-modal {
  color: var(--surface-text);
  border: 1px solid rgba(255,255,255,.94);
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(31,45,61,.18);
}
.modal p,
.gate-hint,
.gate-code-desc { color: var(--surface-muted); }
.modal input,
.modal textarea,
.gate-input { color: var(--surface-text); background: #f6f8fb; border-color: var(--surface-line); }
.share-url { color: var(--surface-muted); background: var(--surface-soft); }
.toast { color: var(--surface-text); background: rgba(255,255,255,.96); border: 1px solid rgba(27,39,56,.10); box-shadow: 0 14px 38px rgba(31,45,61,.16); }

.viewer-badge,
.access-chip,
.pano-stats-badge {
  color: var(--surface-text);
  border-color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 34px rgba(31,45,61,.14), inset 0 1px 0 #fff;
}
.pano-stat em { color: var(--surface-muted); }
.side-nav { color: var(--surface-text); background: rgba(255,255,255,.84); border-color: rgba(255,255,255,.9); }
.rail-icon { color: var(--surface-text); background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.92); box-shadow: 0 9px 24px rgba(31,45,61,.14); }
.rail-label,
.rail-count { color: var(--surface-text); text-shadow: none; }


.center-watermark { display: none; }
body.is-panorama .center-watermark {
  position: fixed;
  z-index: 14;
  left: 50%;
  top: 50%;
  display: block;
  max-width: min(82vw, 620px);
  color: rgba(255,255,255,.78);
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(18px, 5vw, 40px);
  font-weight: 950;
  letter-spacing: .12em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.58), 0 0 2px rgba(0,0,0,.34);
  pointer-events: none;
  user-select: none;
}
body.is-panorama .center-watermark[hidden] { display: none; }
body.is-panorama .rail-icon { background: rgba(10,14,20,.30); }


.question-card-question,
.question-card-answer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.question-card-question { padding-bottom: 12px; }
.question-card-answer {
  margin-top: 0;
  padding: 12px 0 0;
  border-top: 1px solid #e5eaf1;
}
.question-card .qa-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #2459dc;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.question-card-answer .qa-letter { background: #111827; }
.question-card-answer strong {
  display: block;
  margin-bottom: 5px;
  color: #2459dc;
  font-size: 12px;
}
.question-card-answer p {
  margin: 0;
  color: var(--surface-text);
  line-height: 1.75;
  white-space: pre-wrap;
}


.home-campus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: #dbe7ff;
  background: linear-gradient(135deg, #f7faff, #ffffff 58%, #f2f7ff);
}
.home-campus-card small { color: #2459dc; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.home-campus-card h2 { margin: 6px 0 7px; color: var(--surface-text); font-size: 21px; }
.home-campus-card p { margin: 0; color: var(--surface-muted); font-size: 13px; line-height: 1.7; }
.home-campus-card button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; color: #fff; background: #2459dc; font-weight: 900; cursor: pointer; }
@media (max-width: 520px) {
  .home-campus-card { grid-template-columns: 1fr; gap: 12px; }
  .home-campus-card button { width: 100%; }
}

#shareModal .modal {
  width: min(360px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  text-align: center;
}
#shareModal .modal p { margin: 4px 0 2px; }
#shareModal .share-qr { margin: 14px auto; }
#shareModal .share-url {
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}
#shareModal .modal-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#shareModal .modal-actions button { min-height: 40px; }
