:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#07111e;--panel:#102033;--panel2:#0b1828;--border:#2c4660;--text:#edf5ff;--muted:#a9bfd3;--accent:#69e2d1;--accent-bg:#154a52;--bad:#ff8a8a;--warn:#ffd166;--cell:clamp(36px, calc((100vw - 72px) / 10), 54px);--credits:#ffd166;--metal:#adb5bd;--crystal:#4cc9f0;--fuel:#f4a261}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{-webkit-text-size-adjust:100%;font:17px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.app{max-width:1100px;padding:0 16px calc(90px + env(safe-area-inset-bottom));margin:0 auto}h2{margin:0 0 8px;font-size:22px}h3{margin:0 0 6px;font-size:18px}p{margin:4px 0 10px}.muted{color:var(--muted)}.small,small{font-size:14px}.sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}button,input,select{font:inherit;color:var(--text)}button{cursor:pointer;background:#1c3550;border:1px solid #3f5f7c;border-radius:10px;min-height:44px;padding:9px 14px}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.4;cursor:default}button.active,button.primary{background:var(--accent-bg);border-color:var(--accent)}button.danger{border-color:var(--bad);color:var(--bad);background:0 0}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}input,select{background:var(--panel2);border:1px solid #3f5f7c;border-radius:8px;max-width:100%;min-height:44px;padding:8px 10px}input[type=number]{width:84px}input[type=range]{width:100%;accent-color:var(--accent);min-height:32px}input[type=checkbox]{width:22px;height:22px;min-height:0;accent-color:var(--accent)}.top{z-index:5;background:var(--bg);padding:max(10px, env(safe-area-inset-top)) 0 6px;border-bottom:1px solid var(--border);position:sticky;top:0}.brand{justify-content:space-between;align-items:center;gap:8px;display:flex}.tabpick{background:var(--accent-bg);border-color:var(--accent);width:100%;min-height:48px;font-size:18px;font-weight:700}.tag{color:var(--accent);letter-spacing:.12em;font-size:15px;font-weight:800}.clock{font-variant-numeric:tabular-nums;color:var(--muted)}.res{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0;display:grid}.resitem{text-align:left;cursor:pointer;background:var(--panel);border:1px solid var(--border);font-variant-numeric:tabular-nums;border-radius:10px;flex-wrap:wrap;align-items:center;gap:2px 6px;min-height:0;padding:6px 8px;display:flex}.resitem small{color:var(--muted);width:100%;font-size:12px}.dot{border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.dot.credits{background:var(--credits)}.dot.metal{background:var(--metal)}.dot.crystal{background:var(--crystal)}.dot.fuel{background:var(--fuel)}.speed,.chips,.actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.speed button{min-width:56px;padding:6px 10px}.afk{color:var(--warn);font-size:14px;font-weight:700}main{margin-top:10px}.notice{color:#9cf2d0;min-height:22px;padding:2px;font-size:15px}.notice:empty{min-height:0;padding:0}.notice.bad{color:var(--bad)}.panel{background:var(--panel);border:1px solid var(--border);border-radius:14px;margin-bottom:12px;padding:14px}.panel.inset{background:var(--panel2);margin:10px 0}.two{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:12px;display:grid}.sticky{position:sticky;top:150px}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.kpis div{background:var(--panel2);border-radius:10px;padding:10px}.kpis b{color:var(--accent);font-size:22px;display:block}.list{flex-direction:column;gap:8px;display:flex}.row{background:var(--panel2);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.grow{flex:220px;min-width:0}.pill{color:var(--muted);background:#23405c;border-radius:20px;padding:1px 8px;font-size:13px;font-weight:600}.cost{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:10px;display:inline-flex}.bar{background:#23405c;border-radius:10px;height:10px;margin-top:6px;overflow:hidden}.bar span{background:var(--accent);height:100%;display:block}.log{border-top:1px solid var(--border);padding:6px 0}.err{color:var(--bad);margin:6px 0}.warn{color:var(--warn);margin:6px 0}.toggle{cursor:pointer;align-items:flex-start;gap:12px;display:flex}.toggle.inline{align-items:center;gap:8px}.chips{margin:6px 0}.chips button{padding:6px 12px}.swatch{border-radius:3px;width:10px;height:10px;margin-right:6px;display:inline-block}.formrow{flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0;display:flex}.formrow label{min-width:60px;font-weight:600}.formrow input:not([type]),.formrow input[type=text]{flex:200px}.stat{border-top:1px solid var(--border);padding:8px 0}.stathead{align-items:center;gap:8px;display:flex}.stathead label{flex:1}.spec{font-variant-numeric:tabular-nums;grid-template-columns:auto 1fr;gap:4px 14px;margin:6px 0 10px;display:grid}.spec dt{color:var(--muted)}.spec dd{margin:0}.contents{display:contents}.fp{vertical-align:middle;gap:2px;display:inline-grid}.fp i{border-radius:2px;width:12px;height:12px}.shipwrap{padding:10px 0;overflow-x:auto}.ship{background:radial-gradient(at 40%,#1a3552 0%,#0000 70%);border-radius:18px;gap:3px;width:max-content;margin:0 auto;padding:12px;display:grid}.cell{background:#1b3048;border:1px dashed #4a6a88;border-radius:6px;min-height:0;padding:0}.cell:hover{background:#23405c}.part{z-index:1;color:#07111e;border:2px solid #00000059;border-radius:8px;justify-content:center;align-items:center;min-height:0;padding:0;font-size:13px;font-weight:800;display:flex;position:relative;box-shadow:inset 0 0 0 2px #ffffff40}.part.sel{outline-offset:1px;outline:3px solid #fff}.ghost{z-index:2;pointer-events:none;border:2px dashed var(--accent);background:#69e2d12e;border-radius:8px}.bin{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;display:grid}.binitem{text-align:left;align-items:center;gap:10px;display:flex}.powerbar{background:var(--accent-bg);border-radius:8px;padding:6px 10px;font-weight:700}.powerbar.over{color:var(--bad);background:#5a1d26}.two.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tblwrap{overflow-x:auto}.tbl{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;margin:10px 0}.tbl th,.tbl td{text-align:left;border-bottom:1px solid var(--border);padding:8px 6px}.tbl th{color:var(--muted);font-size:14px;font-weight:600}@media (width<=760px){.tbl th,.tbl td{padding:6px 3px}.tbl button{padding:6px 10px}}.blog{max-height:60vh;margin-top:8px;overflow-y:auto}.galaxy{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#050b14;border-radius:10px;width:100%;height:min(70vh,680px);display:block}.mapgrid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:12px;display:grid}.mappanel{top:calc(var(--toph,150px) + 4px);z-index:2;padding:6px;position:sticky}.mapwrap{position:relative}.mapbtns{flex-direction:column;gap:6px;display:flex;position:absolute;top:8px;right:8px}.mapbtns button{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0c1828c7;width:44px;height:44px;min-height:44px;padding:0;font-size:20px}.fleetpick{margin:0 0 8px}.fleetpick select{flex:1}.sectorcard h2{font-size:19px}.sectorcard .facts{font-size:15px}.maptools{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;display:flex}.maptools select{flex:140px}.maptools button{min-width:48px}.facts{margin:6px 0 10px;padding-left:20px}.facts li{margin:4px 0}.pill.good{color:#9cf2d0;background:#134e3a}.pill.bad{color:var(--bad);background:#5a1d26}.pill.warnpill{color:var(--warn);background:#5a4a1d}details>summary{cursor:pointer;align-items:center;gap:8px;min-height:44px;display:flex}@media (width<=760px){body{font-size:16px}.two,.two.even,.mapgrid{grid-template-columns:1fr}.mapgrid{gap:6px}.galaxy{height:44vh;min-height:260px}.mappanel{margin-bottom:0}.sectorcard{padding:10px 12px}.sectorcard .facts{margin:4px 0 6px}.sticky{position:static}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.resitem small{display:none}.resitem{padding:5px 6px;font-size:14px}.speed button{flex:1;min-width:0;padding:6px 4px}.tag{letter-spacing:.06em;font-size:12px}.top{padding-top:max(6px, env(safe-area-inset-top))}.brand{font-size:14px}.res{margin:4px 0}}.shipsvg{touch-action:manipulation;width:100%;height:auto;margin:0 auto;display:block}.shipsvg .hull rect{fill:#16304a}.shipsvg .slot{fill:#0d2135;stroke:#3d5f80;stroke-width:1.5px;stroke-dasharray:4 3;cursor:pointer}.shipsvg .slot:hover,.shipsvg .slot:focus{fill:#1d3a58;outline:none}.shipsvg .slot.hint{fill:#123f43;stroke:var(--accent);stroke-dasharray:none}.shipsvg .partg{cursor:pointer}.shipsvg .partg:focus{outline:none}.shipsvg .partg:focus>rect:first-of-type,.shipsvg .partg.held>rect:first-of-type{stroke:#fff;stroke-width:3px}.shipsvg .partg.held{opacity:.35}.shipsvg .partg.bad>rect:first-of-type{stroke:var(--bad);stroke-width:3px}.shipsvg .badge{fill:#0b1828;stroke:var(--accent);stroke-width:1.5px}.shipsvg .badge.pw{stroke:var(--credits)}.shipsvg .badgetxt{fill:#fff;text-anchor:middle;font:700 10px system-ui,sans-serif}.shipsvg .ghost rect{fill:#69e2d138;stroke:var(--accent);stroke-width:2.5px;stroke-dasharray:6 4;cursor:pointer}.shipsvg .ghost.no rect{fill:#ff8a8a33;stroke:var(--bad)}.legend{margin:4px 0 8px}.panel.held{border-color:var(--accent)}.bonuslist{margin:8px 0}.bonuslist summary{cursor:pointer;min-height:32px;font-weight:600}.binitem svg{flex:none}.seg{gap:0;display:inline-flex}.seg button{border-radius:0}.seg button:first-child{border-radius:10px 0 0 10px}.seg button:last-child{border-radius:0 10px 10px 0}.lbl{min-width:60px;font-weight:600}.full{flex-basis:100%}.powerbar+.powerbar{margin-top:6px}.heatbar{background:#3a2b12}.heatbar.hot{color:var(--warn);background:#5a2a12}.spechead{align-items:center;gap:10px;margin-bottom:6px;display:flex}.spechead h3{margin:0}.pfilter{margin:8px 0}.pfrow{flex-wrap:wrap;gap:8px;display:flex}.pfrow input[type=search]{flex:220px}.linkbtn{min-height:0;color:var(--accent);background:0 0;border:none;padding:0;font-size:14px;text-decoration:underline}.sectorview{bottom:0;left:0;right:0;top:var(--toph,0px);z-index:8;background:var(--bg);-webkit-overflow-scrolling:touch;padding:10px 16px calc(90px + env(safe-area-inset-bottom));position:fixed;overflow-y:auto}.svinner{max-width:760px;margin:0 auto}.svhead{justify-content:space-between;align-items:center;gap:10px;display:flex}.svhead h2{margin:0}.svhead button{width:44px;padding:0;font-size:20px}.scene{border:1px solid var(--border);border-radius:12px;width:100%;height:auto;margin:8px 0;display:block}.scenelbl{fill:#a9bfd3;font:600 9px system-ui,sans-serif}.scenelbl.bad{fill:#ff8a8a}.spin{transform-origin:50%;transform-box:fill-box;animation:8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spin{animation:none}}.choices{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin:10px 0;display:grid}.choices button{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;min-height:60px;display:flex}.choices button small{color:var(--muted);font-size:13px;line-height:1.3}.choices p{grid-column:1/-1}.encounter h3{margin-top:4px}.toasts{z-index:20;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));pointer-events:none;flex-direction:column;gap:8px;width:min(520px,100vw - 24px);display:flex;position:fixed;transform:translate(-50%)}.toast{pointer-events:auto;text-align:left;border:1px solid var(--accent);background:#12283f;border-radius:12px;align-items:center;gap:10px;padding:10px 14px;font-size:15px;animation:.25s ease-out toastin,.6s ease-in 5.4s forwards toastout;display:flex;box-shadow:0 6px 24px #00000080}.toast.stuck{border-color:var(--bad);background:#3a1420;animation:.25s ease-out toastin}.toast.battle{border-color:var(--warn)}@keyframes toastin{0%{opacity:0;transform:translateY(12px)}}@keyframes toastout{to{opacity:0;transform:translateY(8px)}}.resitem.none b{color:var(--muted)}.bottomnav{z-index:12;border-top:1px solid var(--border);padding:8px 16px max(8px, env(safe-area-inset-bottom));background:#07111ef5;position:fixed;bottom:0;left:0;right:0}.bottomnav select{max-width:1068px;margin:0 auto;display:block}.sectorview{bottom:calc(64px + env(safe-area-inset-bottom))}.update{background:var(--accent-bg);border-color:var(--accent);width:100%;margin-top:6px;font-weight:700}section.panel>h2[data-fold]{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;gap:6px;min-height:32px;padding-right:30px;display:flex;position:relative}section.panel>h2[data-fold]:after{content:"▾";color:var(--muted);font-size:18px;transition:transform .15s;position:absolute;top:0;right:0}section.panel[data-folded]>h2[data-fold]:after{transform:rotate(-90deg)}section.panel[data-folded]>:not(h2){display:none!important}section.panel[data-folded]>h2{margin-bottom:0}.assets{gap:6px;margin:6px 0 10px;padding:0;list-style:none;display:grid}.assets li{background:var(--panel);border:1px solid var(--border);border-radius:10px;align-items:center;gap:10px;padding:8px 10px;font-size:15px;display:flex}.assets li>span:first-child{text-align:center;flex:none;width:24px}.assets li small{color:var(--muted);display:block}.assets li.bad{border-color:#7a2a35}.sheetwrap{inset:var(--toph,0px) 0 0 0;z-index:15;padding:10px 12px calc(20px + env(safe-area-inset-bottom));background:#02060c99;justify-content:center;align-items:flex-start;display:flex;position:fixed;overflow-y:auto}.sheet{background:var(--bg);border:1px solid var(--border);border-radius:16px;width:min(640px,100%);padding:12px 14px 16px;box-shadow:0 10px 40px #0009}.shipsvg.mini{max-width:420px;margin:6px auto 10px}.tbl.kv th{text-align:left;color:var(--muted);white-space:nowrap;vertical-align:top;padding-right:10px;font-weight:600}.tbl.kv td{font-variant-numeric:tabular-nums}.linkrow{all:unset;box-sizing:border-box;cursor:pointer;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:44px;display:flex}.linkrow>span:first-child{flex:1;min-width:0}.linkrow:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}.assets li:has(>.linkrow){padding:6px 10px}.linkbtn.big{text-align:left;min-height:44px;font-size:16px}tr.clicky{cursor:pointer}.shipart{width:100%;height:auto;max-height:260px;display:block}.artbox{background:radial-gradient(at 30% 20%,#1a2740 0%,#0a1020 70%);border-radius:12px;gap:8px;margin-bottom:8px;padding:10px;display:grid}.artbox.both{grid-template-columns:1fr}@media (width>=760px){.artbox.both{grid-template-columns:1fr 1fr;align-items:center}}.artbox .shipart{max-height:220px}.exhaust{transform-box:fill-box;transform-origin:100%;animation:1.6s ease-in-out infinite alternate exhaust}@keyframes exhaust{0%{opacity:.65;transform:scaleX(.85)}to{opacity:1;transform:scaleX(1.1)}}@media (prefers-reduced-motion:reduce){.exhaust{animation:none}}label.check{align-items:center;gap:8px;min-height:44px;display:inline-flex}label.check input{width:22px;height:22px}input[type=color]{border-radius:8px;width:56px;height:44px;padding:2px}.artthumb{flex:none;width:120px}.artthumb .shipart{max-height:70px}.artcard{background:radial-gradient(at 30% 20%,#1a2740 0%,#0a1020 70%);border-radius:10px;padding:6px}.battleart{align-items:center;gap:8px;margin:6px 0;display:flex}.battleart>div{flex-wrap:wrap;flex:1;gap:4px;display:flex}.battleart .shipart.mini{width:calc(50% - 4px);max-height:60px}.battleart .foes{justify-content:flex-end}.battleart .foes .shipart{transform:scaleX(-1)}.battleart .vs{color:#ff6b6b}.gdot{vertical-align:middle;border:1px solid #0006;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.goodchips{flex-wrap:wrap;gap:4px;margin:6px 0;display:flex}.goodgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px;margin-bottom:8px;display:grid}.tbl.market{width:100%;font-size:.92em}.tbl.market th[scope=row]{text-align:left;font-weight:600}.tbl.market td,.tbl.market th{padding:6px 4px}.tbl.market tr.contra th{color:#ff8fa3}.tradebtns{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.tradebtns button{min-height:40px;padding:4px 10px}.market .seg{margin:6px 0}.cost .short{color:var(--bad,#ff6b6b)}.refine .row{align-items:center}.mlist{gap:2px;margin-top:6px;display:grid}.mrow{font-variant-numeric:tabular-nums;border-bottom:1px solid #1d3550;grid-template-columns:1fr 64px 64px 64px;align-items:center;gap:4px 6px;padding:8px 2px;display:grid}.mrow>span{text-align:right}.mrow.mhead{border:0;padding:2px}.mrow.contra b{color:#ff8fa3}.mrow .tradebtns{grid-column:1/-1;justify-content:flex-start}.mrow .tradebtns:empty{display:none}.mrow.mhead>span:first-child{text-align:left}.assets li>span.subline:first-child{text-align:left;flex:1;width:auto;min-width:0}.subline b{display:block}.assets li>button{flex:none}.seg.wrap{flex-wrap:wrap;gap:4px;margin:6px 0;display:flex}.seg.wrap button{border-radius:10px;padding:6px 10px}.shipwrap.zoomed{-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:10px;max-height:70vh;overflow:auto}.shipwrap.zoomed .shipsvg{touch-action:pan-x pan-y;margin:0}
