/* Room-first presentation. App styles remain independent of the scene adapter. */
body{height:100dvh;min-height:0;overflow:hidden;background:#141c1b}body [hidden]{display:none!important}.scene-room{position:fixed;inset:0;display:grid;place-items:center;background:#121b1a;isolation:isolate}.room-canvas{position:relative;width:min(100vw,177.69dvh);aspect-ratio:1672/941;overflow:hidden;box-shadow:0 0 100px #0006}.room-canvas>img{width:100%;height:100%;display:block;object-fit:cover}.room-canvas:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 110px #1a211946;background:linear-gradient(180deg,#11201d40,transparent 25%,transparent 80%,#15232266)}.room-hud{position:absolute;left:4%;top:5%;z-index:2;color:#fff5da;text-shadow:0 1px 5px #242a1c;pointer-events:none}.room-hud .eyebrow{color:#e3d5b0;letter-spacing:3px;font-size:12px}.room-hud h1{font-family:'Roboto','Noto Sans KR',sans-serif;font-size:clamp(19px,2.6vw,34px);font-weight:400;margin:8px 0 12px}.room-date{display:flex;gap:13px;align-items:center;font-size:14px;color:#f1dfb6}.room-date span{color:#e0cfaa;font-size:12px}.hotspot{position:absolute;border:0;background:transparent;border-radius:15px;padding:0;z-index:3;transition:background .2s;outline-offset:3px}.hotspot:hover:not(:disabled){filter:none;background:#fff3ce0b}.hotspot:focus-visible{outline:2px dashed #f3d59b;background:#fff3ce13}.hotspot-caption{position:absolute;bottom:0;left:50%;transform:translate(-50%,60%);background:#1f2d27da;border:1px solid #e0c99270;color:#f5e9cd;padding:10px 18px;border-radius:2px;white-space:nowrap;box-shadow:0 5px 20px #0e211e3a;opacity:0;transition:opacity .2s,transform .2s;font-family:'Roboto','Noto Sans KR',sans-serif;font-size:17px}.hotspot:hover .hotspot-caption,.hotspot:focus-visible .hotspot-caption{opacity:1;transform:translate(-50%,30%)}.hotspot.computer{left:12%;top:35%;width:24%;height:34%}.hotspot.bed{left:62%;top:45%;width:32%;height:43%}.room-footer{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;color:#f0e6cf;z-index:2;text-shadow:0 1px 4px #1d291c;font-size:13px;pointer-events:none}.room-footer span:last-child{font-size:12px;color:#d1c7ad;white-space:nowrap}.room-prompt{font-family:'Roboto','Noto Sans KR',sans-serif;font-size:16px}.scene-computer{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(#102021b0,#1c2d25d9),url('pc-background.webp') center/cover;animation:enter-computer .32s ease-out}.monitor{position:relative;max-width:1320px;width:100%;height:min(91dvh,950px);margin:0;border:2px solid #dfe0cc;border-radius:20px;background:#c8c9b6;padding:20px 20px 36px;box-shadow:inset 4px 3px 0 #ebeddb,inset -4px -5px 0 #8b9080,0 25px 90px #071c18b0;display:flex;flex-direction:column}.monitor:after{content:'S A N G O L   P C';position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:1px;color:#7b8270;font-family:Arial,sans-serif}.monitor-power{position:absolute;bottom:12px;right:32px;width:8px;height:8px;border:1px solid #69715a;border-radius:50%;background:#80a766;box-shadow:0 0 5px #77a44c77}.os-bar{display:none}.desktop{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;background:#477e7b;border:3px solid #515f53;box-shadow:inset 0 0 20px #102a2926;overflow:hidden}.desktop-head{display:none}.computer-menu{display:flex;justify-content:space-between;align-items:center;min-height:32px;background:#235956;color:#dcebe0;padding:7px 12px;font-size:12px;gap:12px;border-bottom:1px solid #143b352b}.computer-menu button{font-size:12px;padding:4px 9px;background:#244c45;border:1px solid #729183;border-radius:1px;color:#eaf0d9}.computer-menu small{font-size:11px;color:#a6c8b9;letter-spacing:1px}.desktop-home{flex:1;min-height:0;position:relative;padding:32px;background:radial-gradient(ellipse at 65% 55%,#68988b45,transparent 65%)}.desktop-icons{display:grid;grid-template-columns:100px;gap:25px;width:max-content}.desktop-icon{display:flex;flex-direction:column;align-items:center;gap:9px;border:1px solid transparent;border-radius:1px;background:transparent;padding:12px 4px;color:#fff;text-shadow:1px 1px #244a40;font-size:14px;position:relative;width:100px}.desktop-icon:hover:not(:disabled),.desktop-icon:focus-visible{background:#abcbbf22;border-color:#afc9bb88;filter:none}.desktop-icon:active{background:#1c534d88}.desktop-icon .icon-picture{font-size:39px;line-height:1.1;filter:drop-shadow(2px 3px 0 #234d3a60);font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;text-shadow:none}.desktop-icon .icon-caption{padding:2px 3px;background:#366f6855;font-size:13px}.desktop-icon .icon-count{position:absolute;top:5px;right:19px;min-width:17px;padding:1px 4px;background:#dcc58b;color:#36574a;text-shadow:none;border:1px solid #e7d6a7;font:11px Arial;border-radius:2px}.desktop-watermark{position:absolute;top:42%;left:44%;color:#afd0bc77;font-family:'Roboto','Noto Sans KR',sans-serif;pointer-events:none;transform:translateY(-50%);white-space:nowrap}.desktop-watermark .pc-name{font:italic 52px 'Roboto','Noto Sans KR',sans-serif;letter-spacing:1px;color:#c7ddc554;text-shadow:1px 1px #356e6266}.desktop-watermark .pc-version{font:13px Arial;letter-spacing:6px;margin:8px 0 21px 4px;color:#bad1bb77}.desktop-watermark p{font-size:15px;color:#bed3b9a6;margin-left:4px}.desktop-note{position:absolute;right:32px;bottom:26px;width:245px;background:#ded5a4;color:#59624e;padding:18px 19px;box-shadow:2px 3px 0 #244f4440;font-family:'Roboto','Noto Sans KR',sans-serif;font-size:15px;line-height:1.8;transform:rotate(-1.4deg)}.desktop-note b{font-size:12px;display:block;color:#7b7d5d;border-bottom:1px solid #b9b987;margin-bottom:9px;padding-bottom:6px;font-family:inherit;font-weight:400}.workspace{display:flex;flex:1;min-height:0;overflow:hidden;margin:17px 24px;padding:0;gap:0}.rail{display:none}.app-window{width:100%;display:flex;flex-direction:column;min-height:0;border:2px solid #ced4bd;border-radius:0;box-shadow:4px 4px 0 #1c4a4077}.app-titlebar{background:linear-gradient(90deg,#254d63,#587e81);color:#fff3d8;border:0;min-height:31px;padding:4px 7px;font-size:13px;flex-shrink:0}.app-window-actions{display:flex;gap:3px}.app-window-actions button{width:22px;height:22px;display:grid;place-items:center;padding:0;background:#d8dbca;border:1px outset #fff;color:#334c46;border-radius:0;font-size:17px;line-height:1}.app-titlebar>span:last-child{letter-spacing:0;color:inherit}#content{flex:1;min-height:0;max-height:none;overflow:auto;background:var(--paper)}.taskbar{flex-shrink:0;display:flex;align-items:center;gap:5px;background:#d2d6c5;border-top:2px solid #e8ebdb;min-height:37px;padding:4px 5px;font-size:12px;color:#304940}.taskbar button{border:2px outset #f1f3e4;border-radius:0;padding:4px 11px;background:#d4d8c6;font-size:12px;color:#2b4338;box-shadow:none}.taskbar button.pressed{border-style:inset;background:#bdc9b6}.taskbar .start-label{font-size:13px;font-weight:600;margin:0}.taskbar #running-app{margin-left:4px;min-width:145px;padding:5px 12px;border:2px inset #e1e5d5;background:#e4e6d6}.taskbar-right{border:1px inset #e9eadf;padding:6px 10px;color:#536550;display:flex;gap:9px;font-size:11px}.taskbar #save-status{color:#6d7e65}.room-badge{font-size:12px;letter-spacing:2px;margin-bottom:5px}#sleep-curtain{position:fixed;inset:0;z-index:25;pointer-events:none;opacity:0;background:#111b18;display:flex;align-items:center;justify-content:center;color:#e2d8bc;font-family:'Roboto','Noto Sans KR',sans-serif;font-size:24px;letter-spacing:3px}#sleep-curtain.sleeping{animation:sleep-night 1.85s ease-in-out;pointer-events:auto}.cafe-layout{min-height:360px}.scene-room .hotspot .hotspot-caption:before{content:'◇';font-size:11px;margin-right:9px;color:#dcc993}.room-help{position:absolute;right:4%;top:5%;background:#1c2c2260;color:#e7dabc;border:1px solid #d7c69e55;border-radius:2px;z-index:4;font-size:12px;padding:7px 11px}.scene-computer .under-monitor{display:none}.modal-body{max-height:68dvh}#toast{bottom:38px}
@keyframes enter-computer{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes sleep-night{0%{opacity:0}25%,70%{opacity:1}100%{opacity:0}}
@media(min-width:1600px){.workspace{min-height:0}#content{min-height:0}}
@media(max-width:1080px){.workspace{margin:12px}.monitor{padding:13px 13px 30px}.desktop-watermark{left:38%}.desktop-watermark .pc-name{font-size:43px}}
@media(max-width:760px){.scene-computer{padding:7px}.monitor{height:calc(100dvh - 14px);padding:7px 7px 24px;border-radius:12px}.monitor:after{bottom:7px;font-size:8px}.monitor-power{bottom:7px;right:19px;width:6px;height:6px}.workspace{margin:7px;min-height:0;padding:0;display:flex}#content{min-height:0;max-height:none}.computer-menu{padding:6px;min-height:34px}.computer-menu small{display:none}.desktop-home{padding:22px 16px}.desktop-icons{grid-template-columns:96px;gap:16px}.desktop-watermark{left:43%;top:33%}.desktop-watermark .pc-name{font-size:29px}.desktop-watermark .pc-version{font-size:9px;letter-spacing:3px}.desktop-watermark p{font-size:12px;max-width:115px;white-space:normal}.desktop-note{right:15px;bottom:20px;width:175px;padding:13px;font-size:13px}.taskbar #running-app{min-width:0;max-width:105px;padding:5px;font-size:11px}.taskbar .start-label{font-size:11px;padding:5px 7px}.taskbar-right{font-size:10px;gap:4px;padding:5px}#save-status{display:none}.room-hud{top:7%;left:4%}.room-hud h1{margin:3px 0 5px;font-size:20px}.room-hud .eyebrow{font-size:8px;letter-spacing:2px}.room-date{font-size:11px;gap:8px}.room-date span{font-size:9px}.room-footer{bottom:4%;gap:10px}.room-prompt{font-size:10px;max-width:75%}.room-footer span:last-child{font-size:8px}.room-help{font-size:10px;padding:4px 8px}.hotspot-caption{font-size:12px;padding:5px 8px;opacity:.9;transform:translate(-50%,20%)}.room-badge{font-size:10px;margin-bottom:2px}.cafe-banner{padding:20px 16px}.post-area{padding:18px 15px}.note-tabs{flex-wrap:wrap}.scene-room{background:radial-gradient(ellipse,#29382e,#111c1a)}.room-canvas:after{box-shadow:inset 0 0 40px #1a211936}}
@media(prefers-reduced-motion:reduce){.scene-computer{animation:none}#sleep-curtain.sleeping{animation:none;opacity:0;pointer-events:none}}

.taskbar #running-app{display:flex;gap:4px;flex:1;min-width:0;max-width:none;padding:0;margin:0;border:0;background:transparent;overflow-x:auto}.taskbar #running-app button{min-width:100px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1}.taskbar-right{margin-left:auto;flex-shrink:0}@media(max-width:600px){.taskbar #running-app button{min-width:55px;padding:5px;font-size:10px}.taskbar-right{padding:4px}.taskbar #os-date{white-space:nowrap}}

.notebook-order{font-size:12px;color:#74816a;margin:14px 0}.graph-summary{display:grid;gap:8px;margin:15px 0;font-size:13px}.diagram{height:370px;isolation:isolate}.diagram svg{pointer-events:none;overflow:visible}.diagram-edge{pointer-events:stroke;cursor:pointer;outline:none}.edge-hit{stroke:transparent;stroke-width:20}.edge-line{stroke:#65816c;stroke-width:2}.edge-text{fill:#3c5540;stroke:#f5f8ef;stroke-width:5px;paint-order:stroke;stroke-linejoin:round;font:13px sans-serif;pointer-events:all}.diagram-edge.selected .edge-line,.diagram-edge:focus .edge-line{stroke:#bc8851;stroke-width:3}.diagram-edge.selected .edge-text{fill:#875b26}.diagram-node{position:absolute;transform:translate(-50%,-50%);max-width:150px;z-index:2}.node-body{padding:13px 17px;background:#fffffa;border:1px solid #8ba17b;box-shadow:2px 3px 0 #81947522;cursor:grab;font-size:13px;touch-action:none;user-select:none}.diagram-node.selected .node-body{outline:2px solid #c9aa68}.connection-port{position:absolute;width:13px;height:13px;padding:0;border:2px solid #6b8a7a;background:#e7f0dd;border-radius:50%;z-index:3;touch-action:none;cursor:crosshair}.connection-port:hover,.connection-port:focus{background:#d8ab5c;outline:3px solid #d8ab5c44}.connection-port.top{left:50%;top:0;transform:translate(-50%,-50%)}.connection-port.bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.connection-port.left{left:0;top:50%;transform:translate(-50%,-50%)}.connection-port.right{right:0;top:50%;transform:translate(50%,-50%)}#connection-preview{stroke:#b68f4c;stroke-width:2;stroke-dasharray:5 4;pointer-events:none}.edge-editor{display:flex;gap:10px;align-items:center;padding:12px;background:#e8eddd;flex-wrap:wrap}.edge-editor input{flex:1;min-width:140px}.diagram-bottom{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:10px}.diagram-empty{padding-top:140px;pointer-events:none;border:0}.notebook>.section-line{flex-wrap:wrap;gap:10px}@media(max-width:600px){.node-body{font-size:11px;padding:12px 8px;max-width:110px}.connection-port{width:14px;height:14px}.edge-text{font-size:11px}.notebook>.section-line .inline-flex{flex-wrap:wrap}.diagram-toolbar input{min-width:80px}}

.diagram-scroll{overflow-x:auto;scrollbar-width:thin}.diagram-scroll .diagram{min-width:540px;margin-bottom:8px}.diagram-scroll+.edge-editor{margin-top:12px}
