:root{--bg: rgba(20, 28, 25, .84);--bg2: rgba(36, 46, 42, .92);--fg: #eef2ef;--muted: #a9b7b0;--acc: #f2c94c;--acc2: #6fcf97;--line: rgba(255, 255, 255, .14);--r: 10px;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#1b2420;color:var(--fg);font:14px/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent}#app{position:fixed;inset:0}#c3d{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}button,select,input{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--bg2);border-radius:8px;padding:6px 10px;min-height:34px}button:hover{border-color:#ffffff59}button.primary{background:var(--acc);color:#1b1b1b;border-color:var(--acc);font-weight:600}button.ghost{background:transparent}button.icon{background:transparent;border:none;font-size:18px;padding:4px 8px}button.pill{border-radius:999px}button.active{background:var(--acc2);color:#10261a;border-color:var(--acc2);font-weight:600}select{background:var(--bg2);border:1px solid var(--line);border-radius:8px;padding:5px 6px;min-height:34px;max-width:100%}label{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:12px}label.chk{flex-direction:row;align-items:center;gap:8px;color:var(--fg);font-size:14px}input[type=range]{width:100%;accent-color:var(--acc)}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.panel{position:absolute;background:var(--bg);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:var(--r);padding:8px;z-index:5}.row{display:flex;gap:6px;align-items:flex-end;flex-wrap:wrap}.row>label{flex:1 1 70px}.row.tight{flex-wrap:nowrap}#topbar{position:absolute;top:calc(8px + var(--safe-t));left:8px;right:8px;display:flex;gap:8px;align-items:center;z-index:10;background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:4px 8px;backdrop-filter:blur(6px)}.brand{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}.brand .sub{font-size:11px;color:var(--muted)}.search{position:relative;flex:1;min-width:0}.search input{width:100%;background:var(--bg2);border:1px solid var(--line);border-radius:8px;padding:7px 10px}.dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#222c28;border:1px solid var(--line);border-radius:8px;max-height:50vh;overflow:auto;z-index:20}.dropdown div{padding:8px 10px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.05)}.dropdown div:hover,.dropdown div.sel{background:#f2c94c2e}#compass{position:absolute;right:12px;top:calc(62px + var(--safe-t));width:46px;height:46px;border-radius:50%;background:var(--bg);border:1px solid var(--line);z-index:6;cursor:pointer}#compass-rose{position:absolute;inset:0;border-radius:50%}#compass-rose span{position:absolute;font-size:10px;font-weight:700;color:#dfe6e2;line-height:10px;width:12px;text-align:center}#compass-rose .cn{color:#ff6b5a;left:calc(50% - 6px);top:3px;font-size:11px}#compass-rose .cs{left:calc(50% - 6px);bottom:3px}#compass-rose .ce{right:3px;top:calc(50% - 5px)}#compass-rose .cw{left:3px;top:calc(50% - 5px)}#compass-rose .tk{position:absolute;width:2px;height:5px;background:#8a958f;left:calc(50% - 1px);top:calc(50% - 2.5px)}#compass-rose .t1{transform:rotate(45deg) translateY(-17px)}#compass-rose .t2{transform:rotate(135deg) translateY(-17px)}#compass-rose .t3{transform:rotate(225deg) translateY(-17px)}#compass-rose .t4{transform:rotate(315deg) translateY(-17px)}#compass-mark{position:absolute;left:calc(50% - 4px);top:-6px;border:4px solid transparent;border-top:7px solid #ffd23f}#compass-read{position:absolute;top:calc(100% + 3px);left:50%;transform:translate(-50%);white-space:nowrap;font-size:10.5px;font-weight:600;color:#fff;background:var(--bg);padding:1px 6px;border-radius:8px;border:1px solid var(--line)}#sel-panel{left:8px;bottom:calc(8px + var(--safe-b));width:min(360px,calc(100vw - 16px));display:flex;flex-direction:column;gap:8px}.summary{font-size:13px}.summary b{color:var(--acc)}.hint{font-size:12px;color:var(--muted)}#hud-eye{display:none;white-space:nowrap}#hud-top{left:8px;top:calc(62px + var(--safe-t));display:flex;flex-direction:column;gap:6px;max-width:min(360px,calc(100vw - 80px))}.hud-unit{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.hud-unit span:first-child{font-weight:700;color:var(--acc)}#presets{left:50%;transform:translate(-50%);bottom:calc(8px + var(--safe-b));display:flex;gap:6px;padding:6px}#presets button{padding:6px 9px;white-space:nowrap}#eye{left:8px;bottom:calc(62px + var(--safe-b));width:210px}#minimap-wrap{display:none;left:8px;bottom:calc(140px + var(--safe-b));padding:4px}body.map-open.interior #minimap-wrap{display:block}.map-head{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;padding:2px 4px 4px;background:none;border:0;color:inherit;font-size:12px;cursor:pointer}.map-head .chev:after{content:"▾"}body.map-collapsed .map-head .chev:after{content:"▸"}body.map-collapsed #minimap{display:none}body.map-collapsed .map-head{padding:2px 4px}#btn-unclean{display:none;position:absolute;top:calc(10px + var(--safe-t));right:10px;z-index:20;padding:6px 10px;border-radius:16px;border:1px solid rgba(255,255,255,.35);background:#14181c73;color:#fff;font-size:12px;cursor:pointer}body.clean #btn-unclean{display:block}body.clean #topbar,body.clean .panel,body.clean #compass,body.clean #drawer,body.clean #toast{display:none!important}body.clean #joystick,body.clean #act-btns{opacity:.45}#minimap{display:block;width:230px;height:180px;border-radius:6px;background:#fafaf7eb;cursor:crosshair;touch-action:none}.eye-btns{display:flex;gap:6px;margin-bottom:4px}.eye-btns button{flex:1}.eye-row{display:flex;gap:8px;align-items:center}#eye-val{white-space:nowrap;font-variant-numeric:tabular-nums;min-width:50px}#floor{right:8px;top:calc(120px + var(--safe-t));bottom:calc(70px + var(--safe-b));width:64px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px}.floor-val{text-align:center;line-height:1}.floor-val span{font-size:22px;font-weight:700;color:var(--acc);font-variant-numeric:tabular-nums}.floor-val small{display:block;font-size:10px;color:var(--muted)}#floor-range{writing-mode:vertical-lr;direction:rtl;flex:1;width:40px;min-height:80px}.floor-btns{display:flex;flex-direction:column;gap:4px}.floor-btns button{width:48px;padding:4px}#joystick{position:absolute;left:24px;bottom:calc(150px + var(--safe-b));width:120px;height:120px;border-radius:50%;background:#141c1959;border:2px solid rgba(255,255,255,.25);z-index:6;touch-action:none;display:none}#joy-knob{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#ffffff8c}body.touch #joystick{display:block}#opts{right:8px;bottom:calc(8px + var(--safe-b));max-width:min(300px,calc(100vw - 16px));z-index:7}#opts-body,#info-body{display:flex;flex-direction:column;gap:8px;margin-top:6px;max-height:60vh;overflow:auto}#info{right:8px;top:calc(62px + var(--safe-t));margin-right:56px;max-width:min(380px,calc(100vw - 80px));z-index:7}#info-body{font-size:12.5px}#info-body h4{margin:6px 0 2px;font-size:12px;color:var(--acc);text-transform:uppercase;letter-spacing:.04em}#info-body ul{margin:0;padding-left:16px}#info-body li{margin:2px 0}.badge{display:inline-block;font-size:10px;padding:1px 5px;border-radius:4px;margin-left:4px;vertical-align:1px}.b-ver{background:#2f6d4a}.b-plan{background:#2f5b7d}.b-est{background:#8a6a1d}.b-hyp{background:#7d2f4a}body.interior #opts{right:80px}body.interior #info{right:80px;margin-right:56px}body.interior #compass{right:80px}#drawer{position:absolute;left:0;top:0;bottom:0;width:min(340px,90vw);background:#18201d;border-right:1px solid var(--line);z-index:30;padding:calc(10px + var(--safe-t)) 12px 12px;overflow:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.drawer-sec{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}.drawer-sec a{color:var(--acc)}.saved{display:flex;gap:6px;align-items:center;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.06)}.saved .go{flex:1;text-align:left}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}.lbl{position:absolute;transform:translate(-50%,-100%);white-space:nowrap;font-size:11.5px;padding:2px 6px;border-radius:5px;background:#0f1412b8;color:#fff;border:1px solid rgba(255,255,255,.18)}.lbl .d{color:var(--acc);margin-left:4px}.lbl.est{border-color:#d8a93a}.lbl.est:after{content:" est.";color:#e9c46a;font-size:10px}.lbl.hyp{border-color:#c26}.lbl.hyp:after{content:" hypothetical";color:#f7a;font-size:10px}.lbl.blk{background:#f2c94ce6;color:#1d1d1d;font-weight:700}.lbl.cmp{background:transparent;border:none;font-weight:700;font-size:14px;text-shadow:0 1px 3px #000}#toast{position:absolute;left:50%;top:70px;transform:translate(-50%);background:#2b3833;border:1px solid var(--line);padding:8px 14px;border-radius:8px;z-index:40}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#1b2420;z-index:50}.ld-box{width:260px;text-align:center}.ld-title{font-size:22px;font-weight:700;margin-bottom:8px}.ld-bar{height:4px;background:#33403a;border-radius:2px;margin-top:10px;overflow:hidden}#ld-fill{height:100%;width:5%;background:var(--acc);transition:width .2s}@media(max-width:640px){.brand .sub{display:none}.brand b{font-size:13px}#sel-panel{width:auto;right:8px}#hud-top{max-width:none;right:8px;top:calc(56px + var(--safe-t));padding:6px}#hud-top .row.tight select{flex:1 1 0;min-width:0}#hud-top .row.tight button{padding:4px 7px}#info,#opts{top:calc(56px + var(--safe-t));bottom:auto;padding:4px}#info{left:8px;right:auto;margin:0;max-width:calc(100vw - 16px)}#opts{right:8px;left:auto}body.interior #info,body.interior #opts{top:calc(140px + var(--safe-t))}body.interior #info{right:auto;margin:0}body.interior #opts{right:80px}#info-body,#opts-body{max-height:52vh}body.opts-open #info,body.info-open #opts{display:none}body.info-open #info{right:8px}#compass{top:calc(104px + var(--safe-t));right:12px;bottom:auto;width:38px;height:38px}body.interior #compass{top:auto;bottom:calc(104px + var(--safe-b));right:82px}#presets{bottom:calc(8px + var(--safe-b));left:8px;right:80px;transform:none;justify-content:space-between}#presets button{flex:0 0 auto;padding:6px 8px;font-size:12.5px}#presets{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}#minimap-wrap{left:8px;top:calc(186px + var(--safe-t));bottom:auto}#minimap{width:168px;height:140px}#eye{display:none}#hud-eye{display:inline-block}body.show-eye #eye{display:block;left:8px;bottom:calc(58px + var(--safe-b));width:calc(100vw - 96px)}body.show-eye #joystick{display:none}#floor{top:calc(184px + var(--safe-t));bottom:calc(58px + var(--safe-b))}#joystick{left:18px;bottom:calc(70px + var(--safe-b));width:104px;height:104px}}@media(max-height:480px){#topbar{padding:2px 6px}#hud-top{top:calc(48px + var(--safe-t));flex-direction:row;align-items:center;max-width:calc(100vw - 280px);padding:4px 6px}#hud-top .hud-unit{flex-direction:column;gap:0;white-space:nowrap;font-size:12.5px}#hud-eye{display:inline-block}#eye{display:none}body.show-eye #eye{display:block;left:8px;bottom:calc(56px + var(--safe-b));width:250px}body.show-eye #joystick{display:none}#floor{top:calc(50px + var(--safe-t));bottom:calc(8px + var(--safe-b))}#presets{bottom:calc(6px + var(--safe-b));left:50%;right:auto;transform:translate(-50%)}#joystick{left:16px;bottom:calc(14px + var(--safe-b));width:96px;height:96px}#minimap-wrap{left:8px;top:calc(96px + var(--safe-t));bottom:auto}#minimap{width:170px;height:130px}#presets{max-width:calc(100vw - 300px);overflow-x:auto;scrollbar-width:none}#sel-panel{max-height:calc(100vh - 60px);overflow:auto;width:min(340px,48vw)}#info,#opts{top:calc(50px + var(--safe-t));bottom:auto}body.interior #info{right:80px;margin-right:56px}body.interior #opts{top:auto;bottom:calc(8px + var(--safe-b));right:80px}#compass{top:calc(50px + var(--safe-t));bottom:auto;right:80px}body:not(.interior) #compass{right:12px;top:calc(100px + var(--safe-t))}body:not(.interior) #info{right:60px}#info-body,#opts-body{max-height:calc(100vh - 120px)}}#act-btns{display:none;position:absolute;left:132px;bottom:calc(78px + var(--safe-b));gap:8px;z-index:6}body.touch #act-btns{display:flex}#act-btns button{width:52px;height:52px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:#14181c80;color:#fff;font-size:12px;font-weight:600;touch-action:none}#act-btns button.active{background:#60be8cd9;color:#10241a}body.show-eye #act-btns{display:none}@media(max-height:480px){#act-btns{left:16px;bottom:calc(118px + var(--safe-b))}#act-btns button{width:44px;height:44px}}#heat-legend{position:absolute;left:50%;transform:translate(-50%);top:calc(62px + var(--safe-t));width:min(420px,calc(100vw - 140px));padding:8px 10px;z-index:6;font-size:12px}#heat-legend .hl-title{font-weight:600;margin-bottom:4px}#heat-legend .hl-bar{height:10px;border-radius:5px}#heat-legend .hl-scale{display:flex;justify-content:space-between;font-size:11px;margin-top:2px}#heat-legend .hl-note{font-size:11px;margin-top:3px}#heat-legend .hl-unit:empty{display:none}#heat-legend .hl-unit{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}.sun-sum{margin-top:4px}body.interior #heat-legend{top:auto;bottom:calc(60px + var(--safe-b))}@media(max-width:700px){#heat-legend{top:calc(104px + var(--safe-t));bottom:auto;width:calc(100vw - 80px);left:8px;transform:none;font-size:11px;padding:6px 8px;cursor:pointer}body.interior #heat-legend{top:auto;bottom:calc(190px + var(--safe-b))}#heat-legend:not(.open) .hl-note,#heat-legend:not(.open) .hl-unit{display:none}#heat-legend .hl-title:after{content:" ▸";opacity:.7}#heat-legend.open .hl-title:after{content:" ▾"}}@media(max-height:480px){#heat-legend{top:calc(48px + var(--safe-t));bottom:auto;width:300px}body.interior #heat-legend{top:auto;bottom:calc(60px + var(--safe-b));left:auto;right:80px;transform:none}}
