@font-face{font-family:'Garden Serif';src:url('/garden-serif.woff') format('woff');font-weight:700 900;font-display:swap}
:root{--paper:#f8f6ef;--card:#fffdf7;--ink:#252f2a;--muted:#656e63;--line:#e7e1d7;--plum:#544261;--soft:#ede6f0;--green:#53775c;--serif:"Garden Serif","Songti SC","Noto Serif CJK SC",serif;--body:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;overflow:hidden;background:#a7b9b2;color:var(--ink);font:15px/1.5 var(--body)}
button,input{font:inherit}
button{cursor:pointer;color:inherit;background:none;border:0;padding:0}
button:disabled{cursor:default}
button:focus-visible,input:focus-visible,#world:focus-visible{outline:2px solid #8f6ba1;outline-offset:3px}
i[data-icon]{width:19px;height:19px;display:inline-flex;flex:none;align-items:center;justify-content:center}
i svg{width:100%;height:100%}
.presence{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;padding:6px 9px}
.presence em{font-style:normal}
.presence>span{width:7px;height:7px;border-radius:50%;background:#acaaa1}
.presence.connected>span{background:#6b986e;box-shadow:0 0 0 3px #78a07520}
.icon-button{width:39px;height:39px;border-radius:12px;border:1px solid var(--line);display:grid;place-items:center;color:var(--plum)}
.icon-button:hover{background:var(--soft)}
.workspace{
  --hud-top:max(20px,env(safe-area-inset-top));
  --hud-left:max(20px,env(safe-area-inset-left));
  --hud-right:max(20px,env(safe-area-inset-right));
  --hud-bottom:max(18px,env(safe-area-inset-bottom));
  --panel-top:calc(var(--hud-top) + 54px);
  --panel-bottom:calc(var(--hud-bottom) + 54px);
  position:relative;height:100vh;height:100dvh;overflow:hidden;isolation:isolate;
}
.stage{position:absolute;inset:0;background:#a7b9b2;overflow:hidden;isolation:isolate}
#world,#world canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#world:focus{outline-offset:-4px}
#world canvas{cursor:grab}
#world.looking canvas{cursor:grabbing}
.stage-top,.stage-bottom{position:absolute;left:var(--hud-left);right:var(--hud-right);display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none;z-index:2}
.stage-top{top:var(--hud-top)}.stage-bottom{bottom:var(--hud-bottom)}
.stage-top button,.stage-bottom button{pointer-events:auto}
.place,.presence,.stage-tip,.stage-button{color:#fffdf3;background:#1c2d23d0;border:1px solid #eff0d363;box-shadow:0 2px 12px #17211328;backdrop-filter:blur(12px)}
.presence{border-radius:11px}
.place,.stage-tip{border-radius:11px;display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:13px}
.place i{width:15px;height:15px;color:#e0daa9}
.stage-button{height:39px;width:39px;border-radius:11px;display:grid;place-items:center}
.stage-button:hover{background:#496146}
.key-group{display:flex;gap:3px}
kbd{font:11px/17px ui-monospace,monospace;border-radius:4px;min-width:17px;text-align:center;border:1px solid #ffffff5e;color:#fff}
.stage-divider{height:13px;width:1px;background:#ffffff46;margin:0 2px}
.pins{position:absolute;inset:0;pointer-events:none}
.pin{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:flex;align-items:center;gap:6px;white-space:nowrap;background:#fffdf0f7;color:#354333;padding:6px 10px 7px;border-radius:999px;border:1px solid #ffffdc;box-shadow:0 3px 12px #1a291d32;font-size:13px;font-weight:650;z-index:1;pointer-events:auto}
.pin:hover,.pin:focus-visible{background:#efe1f4;color:#3f2c4a}
.pin i{width:14px;height:14px;color:var(--plum)}
.panel,.ambient{border-radius:18px;border:1px solid var(--line);background:var(--card);padding:16px}
.panel-heading{display:flex;align-items:center;gap:9px;margin-bottom:13px;color:var(--plum)}
.panel-heading h2{margin:0;color:var(--ink);font:750 22px/1.3 var(--serif);letter-spacing:.03em}
.map{position:relative;height:126px;border-radius:11px;border:1px solid #e1e5d5;background:#e9eddf;overflow:hidden}
.map canvas{width:100%;height:100%;display:block}
.map-attribution{position:absolute;left:4px;bottom:2px;color:#425e48;font-size:9px;padding:1px 3px;border-radius:2px;background:#f4f5e9e6;text-decoration:none}
.map-attribution:focus-visible,.map-attribution:hover{text-decoration:underline}
.north{position:absolute;right:9px;top:7px;color:#4f6652;font-size:10px;text-align:center;line-height:1.2}
.north small{display:block;font-size:10px}
.map-dot{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%}
.map-dot span{background:var(--plum);width:9px;height:9px;border:2px solid #fffdf7;box-shadow:0 0 0 1px #675374;border-radius:50%}
.map-dot.current span,.map-dot:hover span{box-shadow:0 0 0 5px #86729355;background:#745585}
.map-dot.lawn span{background:#5e7d4e;box-shadow:0 0 0 1px #52724c}
#walk-lawn,#view-hall{margin-top:8px}
.places{display:grid;gap:3px;margin:11px -4px 14px}
.places button{display:grid;grid-template-columns:30px 1fr auto;min-height:51px;gap:8px;align-items:center;text-align:left;padding:6px 9px;border-radius:9px;line-height:1.32}
.places button.current,.places button:hover{background:#f3efe7}
.places button.current{color:var(--plum)}
.places button>i:first-child{color:#746784;background:#ece6ee;width:29px;height:29px;border-radius:8px;padding:6px}
.places button>i:last-child{width:13px;height:13px;color:#787c70}
.places button small,.ambient small{display:block;color:var(--muted);margin-top:2px;font-size:12px}
.place-state{font-size:10px;background:#eae3ed;color:#5d466c;padding:4px 5px;border-radius:4px;white-space:nowrap}
.primary{background:var(--plum);color:#fffdf8;border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-weight:650}
.primary:hover{background:#6a5078}
.primary i{width:16px;height:16px}
.wide,.full{width:100%}
.ambient-head{display:flex;align-items:center;gap:10px}
.ambient-icon{color:#4f6c55;background:#e7ece1;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;flex:none}
.ambient-icon i{width:18px;height:18px}
.ambient-head strong{font-weight:650}
.switch{width:38px;height:22px;border-radius:20px;background:#d7d2c7;margin-left:auto;display:flex;align-items:center;padding:3px;flex:none}
.switch span{width:16px;height:16px;border-radius:50%;background:#fffdf8;box-shadow:0 1px 3px #0002;transition:transform .15s}
.switch[aria-checked=true]{background:#5e805e}
.switch[aria-checked=true] span{transform:translateX(16px)}
.volume-row{margin-top:12px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.volume-row input{margin:0;width:100%;accent-color:var(--plum)}
.volume-row label{white-space:nowrap}
.subtle:hover,.focus-actions button:hover{text-decoration:underline}
.muted{color:var(--muted)}
.seat-intro{font-size:13px;margin:-2px 0 14px}
.blackboard{text-align:center;background:#e5ece1;color:#536a55;border-radius:5px;padding:4px;font-size:12px;margin-bottom:13px}
.seats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.seats button{border:1px solid #d6cddd;border-radius:6px;padding:5px;background:#f5f0f6;font-size:12px;color:var(--plum)}
.seats button:hover{background:#ede2f1}
.seats button:disabled{background:#e0e6dc;border-color:#d0dbcb;color:#51694f}
.legend{display:flex;gap:14px;color:var(--muted);margin:12px 0 2px;font-size:12px}
.legend span{display:flex;align-items:center;gap:5px}
.legend b{width:8px;height:8px;border-radius:2px;background:#d8c8e0}
.legend span+span b{background:#a9bda4}
.subtle{padding-top:12px;margin-top:13px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:7px;color:var(--plum)}
.subtle i{width:15px;height:15px}
.mode-tabs{display:flex;justify-content:space-between;gap:4px;background:#f3efe8;border-radius:9px;padding:4px}
.mode-tabs button{font-size:12px;padding:6px 7px;border-radius:6px;white-space:nowrap;color:var(--muted);flex:1}
.mode-tabs button.active{background:#fffdf8;color:var(--plum);font-weight:650}
.clock{font:500 47px/1.35 ui-monospace,monospace;color:var(--plum);letter-spacing:-.055em;text-align:center;padding:9px 0}
#goal{border:1px solid var(--line);border-radius:8px;padding:8px;width:100%;margin-bottom:9px;font-size:13px;background:#faf7f1;color:var(--ink)}
.focus-actions{display:flex;justify-content:space-between;padding-top:12px;font-size:13px;color:var(--muted)}
.breathing,.world-error{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;color:#fffdf7;text-align:center;z-index:3;padding:25px;background:#1c3d35a6}
.breathing strong{font:650 28px/1.3 var(--serif)}
.breathing button{margin-top:8px;padding:7px 13px;background:#243a31d9;border:1px solid #ffffff60;border-radius:10px}
.breath-glow{height:92px;width:92px;background:#d8e0c7;border-radius:50%;box-shadow:0 0 38px #c4e8af86;margin-bottom:17px;animation:breathe 8s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(.77)}50%{transform:scale(1.09)}}
.world-error{inset:34% 12%;border-radius:15px;z-index:0;background:#354534ee}
.toast{position:fixed;z-index:5;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 49px);left:50%;transform:translateX(-50%);white-space:normal;width:max-content;max-width:90vw;padding:10px 16px;border-radius:11px;background:#273a2e;color:white;box-shadow:0 6px 20px #19291833}
dialog{border:1px solid var(--line);border-radius:17px;background:var(--card);max-width:min(90vw,445px);color:var(--ink);padding:0}
dialog::backdrop{background:#29302780}
.dialog-inner{position:relative;padding:24px}
.dialog-inner .icon-button{position:absolute;top:11px;right:11px}
.dialog-inner h2{font-family:var(--serif);margin:0 35px 14px 0}
.dialog-inner a{color:var(--plum)}
.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.dialog-actions button{display:flex;align-items:center;gap:5px;min-height:40px;padding:6px 11px;border:1px solid var(--line);border-radius:9px;color:var(--plum)}
.dialog-actions button:hover{background:var(--soft)}
.dialog-actions i{width:15px;height:15px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01s!important;transition-duration:0.01s!important}}
.me-pin{pointer-events:none;background:#51405f;color:white;border-color:#fff9;padding:2px 6px;font-size:10px}

#campus-atlas-open{display:flex;align-items:center;gap:2px;min-height:36px;margin-left:auto;padding:4px 7px;border-radius:8px;color:var(--plum);font-size:12px;white-space:nowrap}
#campus-atlas-open i{width:14px;height:14px}
#campus-atlas-open:hover{background:var(--soft)}
#campus-atlas{width:min(94vw,1040px);max-width:none;max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 75px #18322648}
.atlas-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:19px 20px 13px}
.atlas-heading h2{margin:0;color:var(--ink);font:750 25px/1.3 var(--serif);letter-spacing:.04em}
.atlas-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}
.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(168px,20%);gap:14px;padding:0 20px 15px}
.atlas-map-column{min-width:0}
.atlas-viewport{position:relative;height:clamp(290px,61dvh,610px);overflow:hidden;border:1px solid #d7dfca;border-radius:13px;background:#f0f2e6}
.atlas-viewport:focus-visible{outline:2px solid #8f6ba1;outline-offset:2px}
#campus-atlas-map{display:block;width:100%;height:100%;touch-action:none;cursor:grab;user-select:none}
.atlas-viewport.is-dragging #campus-atlas-map{cursor:grabbing}
.atlas-boundary{fill:#e6ebd8;stroke:#9eaf8f;stroke-width:1;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.atlas-green{fill:#cbdcb7}
.atlas-field{fill:#b8cdb0;stroke:#91ae8b;stroke-width:.7;vector-effect:non-scaling-stroke}
.atlas-residential{fill:#e6dfce}
.atlas-plaza{fill:#dedac8}
.atlas-water,.atlas-waterway{fill:#a9c8c1}
.atlas-waterway,.atlas-road,.atlas-road-edge,.atlas-route,.atlas-route-edge{fill:none;stroke-linecap:round;stroke-linejoin:round}
.atlas-waterway{stroke:#a9c8c1}
.atlas-road-edge{stroke:#c3cbb8}
.atlas-road{stroke:#fcfaf1}
.atlas-building{fill:#b5b29e}
.atlas-building-tall{fill:#a8a591}
.atlas-route,.atlas-route-edge{vector-effect:non-scaling-stroke;pointer-events:none}
.atlas-route-edge{stroke:#fffdf5;stroke-width:5;opacity:.9}
.atlas-route{stroke:#886596;stroke-width:2.6;stroke-dasharray:4 3}
.atlas-marker-hit{fill:transparent;cursor:pointer}
.atlas-marker-dot{fill:#526d55;stroke:#fffdf4;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}
.atlas-marker:hover .atlas-marker-dot,.atlas-marker.is-selected .atlas-marker-dot{fill:#745287}
.atlas-current{fill:#2c7591;stroke:#fffdf4;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
.atlas-labels{font-family:var(--body);font-weight:650;fill:#2e4c39;paint-order:stroke;stroke:#f5f4e9;stroke-linejoin:round;dominant-baseline:central;pointer-events:none}
.atlas-labels text{stroke-width:2.5;vector-effect:non-scaling-stroke}
.atlas-labels .atlas-landmark-label{fill:#53644e;font-weight:500}
.atlas-labels .atlas-selected-label{fill:#604071;font-weight:750}
.atlas-north,.atlas-tools,.atlas-attribution{position:absolute;background:#fbfaeff0;border:1px solid #e0e3d0;color:#435845}
.atlas-north{top:9px;left:9px;display:grid;justify-items:center;line-height:1.15;padding:5px 8px;border-radius:8px;font-size:11px}
.atlas-north span{font-size:15px}
.atlas-tools{top:9px;right:9px;display:grid;gap:1px;padding:3px;border-radius:10px;box-shadow:0 2px 8px #28352818}
.atlas-tools button{height:36px;width:36px;display:grid;place-items:center;border-radius:7px;font-size:21px;line-height:1}
.atlas-tools button i{width:16px;height:16px}
.atlas-tools button:not(:disabled):hover{background:#e7eadc}
.atlas-tools button:disabled{opacity:.34}
.atlas-attribution{bottom:5px;left:6px;display:flex;align-items:center;gap:4px;border-radius:4px;padding:1px 4px;font-size:9px}
.atlas-attribution a{color:inherit;text-decoration:none}
.atlas-attribution a:hover{text-decoration:underline}
.atlas-legend{display:flex;flex-wrap:wrap;gap:5px 14px;padding:8px 2px 0;color:var(--muted);font-size:12px}
.atlas-legend span{display:flex;align-items:center;gap:6px}
.atlas-legend span:first-child b{width:8px;height:8px;background:#2c7591;border-radius:50%}
.atlas-legend span+span b{width:16px;border-top:2px dashed #886596}
.atlas-destinations{display:flex;flex-direction:column;gap:9px;min-width:0}
.atlas-destinations h3{margin:0;padding:1px 2px;color:var(--ink);font:700 16px/1.4 var(--serif)}
.atlas-place-list{display:flex;flex-direction:column;gap:5px;max-height:clamp(172px,48dvh,490px);overflow:auto;scrollbar-width:thin;padding:3px}
.atlas-place-list button{flex:none;width:100%;min-height:39px;padding:5px 9px;text-align:left;line-height:1.35;border:1px solid #e7e9dc;border-radius:8px;background:#f1f2e8;color:#425943;font-size:13px}
.atlas-place-list button:hover{background:#e8ecdb}
.atlas-place-list button[aria-pressed=true]{border-color:#d9cde0;background:var(--soft);color:var(--plum);font-weight:700}
#campus-atlas-travel:disabled{background:#e8e5dc;color:#77796e}
@media(max-width:650px){
  #campus-atlas{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:13px}
  .atlas-heading{padding:13px 12px 10px}
  .atlas-heading h2{font-size:21px}
  .atlas-heading p{font-size:12px}
  .atlas-layout{grid-template-columns:1fr;gap:10px;padding:0 11px 11px}
  .atlas-viewport{height:clamp(200px,46dvh,435px)}
  .atlas-tools button{width:40px;height:40px}
  .atlas-destinations{gap:5px}
  .atlas-destinations h3{font-size:14px}
  .atlas-place-list{flex-direction:row;max-height:none}
  .atlas-place-list button{width:auto;max-width:85%;min-height:37px;padding:5px 8px}
  #campus-atlas-travel{min-height:40px}
}

.stage-action{position:absolute;z-index:2;left:50%;bottom:18%;transform:translateX(-50%);padding:9px 15px;display:flex;align-items:center;gap:8px;border-radius:12px;background:#fbf4e5f3;color:#534461;font-weight:650;border:1px solid #fdfcf3;box-shadow:0 3px 18px #1e28254c;white-space:nowrap}
.stage-action kbd{color:var(--plum);border-color:#68557475}
.stage-action:hover{background:#fffaf0}
.touch-controls{display:none}
@media (pointer:coarse),(max-width:730px){
  .workspace{--panel-bottom:calc(var(--hud-bottom) + 92px)}
  .stage-tip{visibility:hidden}
  .touch-controls{position:absolute;z-index:2;left:var(--hud-left);bottom:var(--hud-bottom);display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,39px);gap:4px}
  .touch-controls button{color:#fffdf3;background:#253526da;border:1px solid #eff0d363;border-radius:9px;touch-action:none;user-select:none}
  .touch-controls button:active{background:#6b7866}
  .touch-controls button:first-child{grid-column:2;grid-row:1}
  .touch-controls button:nth-child(2){grid-column:1;grid-row:2}
  .touch-controls button:nth-child(3){grid-column:2;grid-row:2}
  .touch-controls button:nth-child(4){grid-column:3;grid-row:2}
  #world.seated~.touch-controls{display:none}
  .stage .stage-action{bottom:calc(var(--hud-bottom) + 90px)}
  .stage-action kbd{display:none}
}

:root{--paper:#f1f0e8;--card:#fffdf6;--ink:#26352e;--plum:#524465;--line:#e5e3d6}
.stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#17241a49,transparent 28%),linear-gradient(0deg,#18272045,transparent 20%);z-index:1}
.scene-header{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.place{width:max-content;max-width:100%;padding:6px 9px}
.scene-tools,.stage-actions{display:flex;justify-content:flex-end;gap:6px;white-space:nowrap}
.stage-button.labeled{width:auto;padding:0 11px;display:flex;gap:6px;font-size:13px}
.stage-button.labeled i{width:16px;height:16px}
.sidebar{position:absolute;z-index:3;right:var(--hud-right);bottom:var(--panel-bottom);width:min(276px,calc(100% - var(--hud-left) - var(--hud-right)));max-height:calc(100% - var(--panel-top) - var(--panel-bottom));display:grid;gap:9px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.panel,.ambient{background:#fffdf3ed;backdrop-filter:blur(18px);box-shadow:0 5px 23px #16261924;border:1px solid #fffaf0cb;padding:14px;border-radius:17px}
.panel-heading{margin-bottom:10px}
.panel-heading h2{font-size:21px}
.map{height:111px}
.places{margin:9px -4px 10px}
.places button{min-height:45px}
.ambient{padding:12px 14px}
.pond-rest{margin-top:11px}
.pond-rest p{font-size:12px;color:var(--muted);margin:0 0 6px}
.pond-rest .subtle{margin-top:8px;padding-top:8px}
.pond-rest .mode-tabs button{padding:4px;font-size:12px}
.stage-action{bottom:15%;z-index:2}
.quick-focus{position:absolute;z-index:2;left:50%;bottom:var(--hud-bottom);transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:5px 6px 5px 13px;border-radius:16px;background:#192c22e0;color:#fff8e2;border:1px solid #fff8dd73;font:600 17px/1.3 ui-monospace,monospace}
.quick-focus button{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#ffffff21}
.quick-focus i{width:15px;height:15px}
.breathing{background:radial-gradient(ellipse at center,#20362e38,#162c25a0);z-index:3;pointer-events:none}
.breath-glow{width:108px;height:108px;box-shadow:0 0 43px #f6f0bc7c,inset 0 0 16px #f3f6e294;background:#ecefd5b0;border:1px solid #ffffffd3;margin-bottom:12px}
.breath-card{display:grid;justify-items:center;gap:4px;color:#fcfae9;text-shadow:0 2px 10px #162b22;text-align:center}
.breath-card button{pointer-events:auto}
.journal-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 14px}
.journal-grid div{padding:10px 12px;border-radius:11px;background:#eeeae2}
.journal-grid strong{display:block;color:var(--plum);font-size:20px}
.journal-grid span,.journal-empty{color:#646f62;font-size:13px}
.journal-list{padding:0;list-style:none;margin:0}
.journal-list li{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 1px}
.setting-row{display:flex;gap:12px;align-items:flex-start;margin:12px 0}
.setting-row input{margin-top:4px;accent-color:var(--plum)}
.setting-row small{display:block;color:var(--muted)}
@media(max-width:730px){
  .workspace{
    --hud-top:max(12px,env(safe-area-inset-top));
    --hud-left:max(12px,env(safe-area-inset-left));
    --hud-right:max(12px,env(safe-area-inset-right));
    --hud-bottom:max(12px,env(safe-area-inset-bottom));
    --panel-top:calc(var(--hud-top) + 98px);
  }
  .stage-top{align-items:flex-start}
  .scene-header{gap:4px}
  .place,.presence{font-size:12px;padding:5px 7px}
  .stage-button,.scene-tools .stage-button.labeled{width:44px;height:44px;justify-content:center}
  .scene-tools .stage-button.labeled{padding:0}
  .scene-tools .stage-button.labeled span{display:none}
  .scene-tools{gap:4px}
  .stage-bottom{justify-content:flex-end}
  .stage-tip{display:none}
  .sidebar{max-height:min(60dvh,calc(100% - var(--panel-top) - var(--panel-bottom)))}
  .quick-focus{left:var(--hud-left);transform:none}
}

#sixth-toggle[aria-expanded=true]>i:last-child{transform:rotate(90deg)}
#sixth-options{margin:1px 8px 5px 23px;padding-left:11px;border-left:1px solid #d8cddc}
.classroom-choices{display:grid;gap:4px}
.classroom-choices button{display:flex;align-items:center;gap:8px;min-height:40px;border-radius:8px;padding:5px 9px;color:var(--plum);font-size:13px;text-align:left;background:#f3eef2}
.classroom-choices button i[data-icon]{width:16px;height:16px;padding:0;background:none;color:inherit}
.classroom-choices button:hover{background:#ede7ed}
.classroom-choices button[aria-pressed=true]{background:#e5dce9;color:#493657;font-weight:700}
#room-switch{margin-top:13px;border-top:1px solid var(--line);color:var(--plum)}
#room-switch summary{padding:10px 2px 4px;cursor:pointer}
.seat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 9px;color:var(--muted);font-size:13px}
.seat-row select{font:inherit;flex:1;max-width:150px;color:var(--ink);min-height:32px;border:1px solid #d9d2dc;border-radius:7px;background:#faf7f1;padding:4px 8px}
.seats.lecture{display:flex;flex-direction:column;gap:5px}
.lecture-bank{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;gap:4px;align-items:center}
.lecture-bank small{grid-column:1/-1;font-size:11px;color:var(--muted);padding-top:2px}
.seats.lecture button{min-height:27px;padding:2px 0;background:#eef0f3}
.seats.lecture button:disabled{background:#e0e6dc}
#world[data-area=lecture]{background:#d5d5ca}

#sixth-map-proposals {width:100%;min-height:47px;margin-top:5px;color:var(--plum)}
#dialog:has(.proposal-panel) {width:min(92vw,540px);max-width:none;max-height:min(88dvh,830px);overscroll-behavior:contain}
.proposal-panel {font-size:1rem}
.proposal-panel h3 {margin:1.2rem 0 .5rem;font-size:1.06rem}
.proposal-panel a {overflow-wrap:anywhere}
.proposal-help,.proposal-feedback {font-size:.875rem;color:var(--muted);margin:0 0 .7rem}
.proposal-form,.proposal-card details[open] {display:grid;gap:.7rem}
.proposal-panel label {display:grid;gap:.32rem;font-size:.875rem;font-weight:600}
.proposal-panel label small {font-weight:400;color:var(--muted)}
.proposal-panel input,.proposal-panel textarea,.proposal-panel select {
  display:block;width:100%;min-width:0;min-height:42px;padding:.55rem .65rem;
  color:var(--ink);background:#fffef9;border:1px solid #d8dacf;border-radius:8px;font:inherit;font-size:1rem;font-weight:400;
}
.proposal-panel :is(input,textarea,select):focus-visible {outline:2px solid #8f6ba1;outline-offset:2px}
.proposal-panel textarea {resize:vertical}
.proposal-grid {display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.proposal-panel canvas {display:block;width:100%;height:auto;border-radius:10px}
.proposal-form canvas {cursor:crosshair}
.proposal-legend {display:flex;gap:1rem;flex-wrap:wrap;color:#46584b;font-size:.875rem}
.proposal-legend span::before {content:"";display:inline-block;width:.72rem;height:.72rem;margin-right:.38rem;border-radius:50%;background:#397451}
.proposal-legend span+span::before {background:#774ba4}
.proposal-button {border:1px solid #d9d6cd;border-radius:9px;color:var(--plum);min-height:42px;padding:.45rem .8rem}
.proposal-button:hover {background:var(--soft)}
.proposal-submit:disabled {opacity:.58}
.proposal-feedback:empty {display:none}
.proposal-card {margin:.4rem 0;padding:.65rem .75rem;border:1px solid var(--line);border-radius:10px;background:#fbf9f3}
.proposal-card summary {cursor:pointer;color:#33463b}
.proposal-card p {margin:.35rem 0}
.proposal-status {color:#5f5270;font-size:.875rem}
.proposal-note {white-space:pre-wrap;overflow-wrap:anywhere}
.proposal-review-actions {display:flex;gap:.4rem;flex-wrap:wrap}
.map-inspection {
  position:absolute;z-index:3;top:calc(var(--hud-top) + 58px);right:var(--hud-right);
  max-width:calc(100% - var(--hud-left) - var(--hud-right));display:flex;align-items:center;gap:12px;
  background:#26392fee;color:#fffdf2;border:1px solid #f9f7e276;border-radius:12px;padding:7px 10px;
}
.map-inspection small {display:block;font-size:.8125rem}
.map-inspection button {border:1px solid #f9f7e276;border-radius:8px;padding:7px 8px;min-height:38px;white-space:nowrap}
@media(max-width:560px){
  .map-inspection {top:calc(var(--hud-top) + 95px)}
  #dialog:has(.proposal-panel) .dialog-inner {padding:18px}
}

#mini-map {height:auto;aspect-ratio:30/19}
#student-places {border-top:1px solid var(--line);padding:8px 0 0;margin-top:6px}
#student-places summary {min-height:39px;cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;font-weight:650}
#student-places summary::-webkit-details-marker {display:none}
#student-places summary::after {content:"+";margin-left:auto;color:var(--muted)}
#student-places[open] summary::after {content:"−"}
#student-places summary i {color:var(--green);width:18px;height:18px}
#student-places .student-destinations {margin-top:3px;margin-bottom:6px}
#student-places .subtle {margin-top:4px;border-top:0;padding:8px 0}

.arrival {
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  overflow:auto;
  padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right))
    max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
  color:#edf0df;
  background:radial-gradient(ellipse at 50% 33%,#375a4d 0%,#254135 46%,#152b25 92%);
  transition:opacity .32s ease-out,visibility 0s .32s;
}
.arrival.leaving{opacity:0;visibility:hidden;pointer-events:none}
.arrival-composition{
  width:min(100%,410px);
  min-height:min(650px,calc(100dvh - 40px));
  display:grid;
  grid-template-rows:1fr auto;
  gap:22px;
  text-align:center;
}
.arrival-identity{align-self:center;padding-top:clamp(18px,7vh,52px)}
.arrival-identity canvas{
  display:block;
  width:clamp(165px,min(55vw,33vh),264px);
  max-width:100%;
  height:auto;
  margin:0 auto;
}
.arrival h1{margin:6px 0 0;font:800 clamp(31px,6.5vw,43px)/1.2 var(--serif);letter-spacing:.20em;text-indent:.20em}
.arrival-message{
  display:flex;
  flex-direction:column;
  justify-content:end;
  align-items:center;
  min-height:126px;
  padding-bottom:clamp(18px,6vh,44px);
}
.arrival-message p{margin:0;color:#c7d2c5}
#arrival-detail{font-size:14px;line-height:1.65;letter-spacing:.075em}
.arrival[data-state="loading"] #arrival-detail::before{
  display:inline-block;
  width:5px;
  height:5px;
  margin-right:8px;
  border-radius:50%;
  vertical-align:.22em;
  background:#d2dbab;
  content:"";
  animation:arrival-breathe 2.4s ease-in-out infinite;
}
@keyframes arrival-breathe{50%{opacity:.45}}
.arrival[data-state="waiting"] .arrival-identity{padding-top:0}
.arrival-message .arrival-position{color:#edf0df;font:500 clamp(34px,9vw,49px)/1.16 var(--body);font-variant-numeric:tabular-nums;margin-bottom:7px}
.arrival-message .arrival-caption{margin-top:10px;font-size:13px}
.arrival-retry{margin-top:13px;min-height:44px;padding:0 18px;border:1px solid #b9c7b38c;border-radius:8px;color:#edf0df}
.arrival-retry:hover{background:#ffffff16}
.arrival-retry:focus-visible{outline-color:#d2dbab}
@media (max-height:460px){
  .arrival-identity{padding-top:0}
  .arrival-message{min-height:0;padding-bottom:6px}
}
@media (prefers-reduced-motion:reduce){
  .arrival{transition:none!important}
  .arrival[data-state="loading"] #arrival-detail::before{animation:none!important}
}

#snapshot-dialog{width:min(92vw,680px);max-width:none;max-height:92dvh;overscroll-behavior:contain}
#snapshot-dialog .dialog-inner{padding:clamp(16px,4vw,24px)}
.snapshot-image{display:block;margin:auto;max-width:100%;max-height:min(62dvh,560px);object-fit:contain;border-radius:10px;background:#32473c}
.snapshot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.snapshot-actions .primary{flex:1;min-width:110px;text-decoration:none;color:#fffdf8}
.snapshot-actions .snapshot-secondary{color:var(--plum);background:#efebf1}
.snapshot-actions .snapshot-secondary:hover{background:#e7dfea}
.snapshot-actions .primary:focus-visible{outline:2px solid #8f6ba1;outline-offset:3px}
.snapshot-status{margin:10px 0 0;color:var(--muted)}
@media(max-width:460px){
  .stage-top{display:grid;gap:6px}
  .scene-tools{justify-self:end}
}
