:root{font-family:Inter,Arial,sans-serif;color:#26382f;background:#edf0e9;font-synthesis:none;--panel:rgba(251,251,247,.96);--green:#334f41;--line:#dce1d7}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #b49362;outline-offset:3px}button[hidden]{display:none!important}#app,#view{position:fixed;inset:0;width:100%;height:100%}#view{display:block;touch-action:none;outline:none}.masthead{position:absolute;top:28px;left:32px;right:32px;display:flex;gap:14px;align-items:center;pointer-events:none}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid #9da99a;border-radius:50%;font-family:Georgia,serif;font-size:26px}.eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:.16em;color:#65755f}h1{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400;margin:5px 0 0}.version{font-family:Arial,sans-serif;font-size:10px;letter-spacing:.07em;color:#71826b;margin-left:9px;vertical-align:middle}.icon-button{pointer-events:auto;margin-left:auto;width:38px;height:38px;border-radius:50%;border:1px solid #b7c0b2;background:var(--panel);font-size:18px}.panel{position:absolute;left:32px;bottom:28px;width:296px;max-height:calc(100vh - 142px);overflow:auto;background:var(--panel);border:1px solid rgba(255,255,255,.95);border-radius:18px;padding:18px;box-shadow:0 14px 45px #3e4d3614;backdrop-filter:blur(16px);scrollbar-width:thin}.panel-heading,.guide-heading{display:flex;align-items:center;justify-content:space-between}.panel-heading{margin-bottom:15px}.panel-heading>button{width:25px;height:25px;border-radius:50%;background:#edf0e8;font-size:18px}.segment{display:flex;background:#e8ece3;padding:4px;border-radius:9px;gap:3px}.segment button{flex:1;padding:10px 3px;font-size:12px;white-space:nowrap;border-radius:6px}.segment button.active{background:var(--green);color:#fff;font-weight:600;box-shadow:0 1px 4px #334f4112}.field-label{display:block;font-size:9px;font-weight:700;letter-spacing:.13em;margin:17px 0 7px;color:#65755f}select{width:100%;padding:11px 28px 11px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#26382f;font-size:12px;text-overflow:ellipsis}select:disabled{background:#f2f4ed;color:#87907d}.primary{width:100%;border-radius:8px;background:var(--green);color:#fff;text-align:left;padding:14px 13px;margin-top:16px;font-size:13px;display:flex;justify-content:space-between}.primary:hover{background:#203e2f}.ceiling-button{display:flex;width:100%;align-items:center;gap:10px;border:1px solid #98aa8d;background:#f0f3e9;border-radius:9px;margin-top:12px;padding:13px 10px;font-size:13px;font-weight:600;min-height:53px}.ceiling-button[aria-pressed=true]{background:#e0e9d8}.toggle-state{margin-left:auto;font-size:9px;background:#fff;border:1px solid #bec9b5;border-radius:20px;padding:5px 6px;min-width:34px;text-align:center;letter-spacing:.05em}.ceiling-button[aria-pressed=true] .toggle-state{background:var(--green);color:#fff;border-color:var(--green)}.key-guide{margin-top:18px;padding-top:13px;border-top:1px solid var(--line)}.help-button{display:flex;align-items:center;gap:5px;padding:3px 0 3px 8px;font-size:11px;color:#4d6548}.help-button span{border:1px solid #9aab91;width:17px;height:17px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px}.movement-guide{display:flex;align-items:center;gap:15px;margin:10px 0}.keypad{display:flex;flex-direction:column;gap:4px;text-align:center}.keypad span{display:flex;justify-content:center;gap:4px}kbd{display:inline-block;min-width:21px;padding:4px 5px;font:10px Arial,sans-serif;font-weight:600;line-height:1;text-align:center;color:#3c5136;background:#fff;border:1px solid #cbd4c5;border-bottom-width:2px;border-radius:4px;white-space:nowrap}.keypad kbd{width:25px;height:25px;padding-top:6px;font-size:11px}.movement-copy{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#68785f}.movement-copy strong{font-size:11px;color:#3c5136}.arrow-keys{letter-spacing:6px;font-size:13px;color:#6e7f65}.guide-row{display:flex;align-items:center;gap:12px;font-size:10px;line-height:1.6;color:#65765b;margin:8px 0 10px;padding-left:4px}.guide-row b{font-weight:600;color:#3c5136}.shortcut-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:7px 8px;font-size:9px;color:#65765b;align-items:center}.shortcut-grid>span{white-space:nowrap}.shortcut-grid kbd{font-size:9px;padding:4px;min-width:19px}.fullscreen-hint{font-size:10px;padding-left:2px}.view-tools{position:absolute;right:28px;bottom:28px;display:flex;flex-direction:column;padding:4px;background:var(--panel);border-radius:12px;border:1px solid #fff}.view-tools button{width:40px;height:39px;font-size:21px;border-radius:7px}.view-tools button:hover{background:#e6ebe0}.view-tools #turn{font-size:14px;touch-action:none;user-select:none}.view-tools #turn[aria-pressed=true]{background:var(--green);color:#fff}body.walking #zoomIn,body.walking #zoomOut,body.flying #zoomIn,body.flying #zoomOut{display:none}#crosshair{display:none;position:absolute;left:50%;top:50%;width:5px;height:5px;border:1px solid #fff9;border-radius:50%;box-shadow:0 0 2px #000;pointer-events:none}body.walking #crosshair,body.flying #crosshair{display:block}.loading{position:absolute;inset:0;background:#edf0e9;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;font-size:14px}.loading p{font-size:12px;color:#6d7c6b}.loader{width:36px;height:36px;border:2px solid #ced7c6;border-top-color:#334f41;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:absolute;left:50%;top:110px;transform:translateX(-50%);padding:12px 20px;border-radius:10px;background:#334f41;color:#fff;font-size:12px;opacity:0;transition:opacity .2s;pointer-events:none}.toast.visible{opacity:1}dialog{width:min(620px,calc(100vw - 40px));max-height:85vh;overflow:auto;border:1px solid #dbe2d7;border-radius:18px;background:#fafaf6;color:#344b3c;padding:28px;box-shadow:0 30px 120px #23342240}dialog::backdrop{background:#25382e66;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading button{width:30px;height:30px;font-size:25px}.dialog-heading button:hover{background:#e6ebe0;border-radius:50%}h2{font-family:Georgia,serif;font-size:32px;font-weight:400;line-height:1.1;margin:16px 0 10px}dialog p{font-size:12px;line-height:1.75;color:#61745f}dialog .intro{margin:0 0 18px}h3{font-size:13px;margin:0 0 6px}.help-modes{display:grid;gap:13px}.help-modes section{padding:14px 16px;background:#eef2e8;border-radius:10px}.help-modes p{margin:0}.help-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;margin-top:13px}.help-shortcuts p{margin:5px 0}.help-shortcuts kbd{margin-right:5px}dialog .small{font-size:11px;margin-bottom:0}.panel.collapsed #panelContent{display:none}.panel.collapsed .panel-heading{margin:0}.panel.collapsed{width:225px;overflow:visible}@media(max-height:850px){.masthead{top:21px}.panel{bottom:18px;max-height:calc(100vh - 108px);padding:14px 16px}.panel-heading{margin-bottom:10px}.field-label{margin-top:12px}select{padding-top:9px;padding-bottom:9px}.segment button{padding:8px 3px}.primary{margin-top:12px;padding:11px 12px}.ceiling-button{min-height:47px;padding:10px;margin-top:10px}.key-guide{margin-top:12px;padding-top:9px}.movement-guide{margin:7px 0}.guide-row{margin:6px 0 8px}.shortcut-grid{gap:5px 8px}}@media(max-width:1000px){.masthead{left:22px;right:22px}.panel{left:22px;width:282px}.view-tools{right:22px}.eyebrow{letter-spacing:.12em}}@media(prefers-reduced-motion:reduce){.loader{animation:none}.toast{transition:none}}
