:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#111318;color:#edf2f7}*{box-sizing:border-box}html{min-height:100%}body{min-width:320px;min-height:100%;margin:0;background:linear-gradient(135deg,#111318f5,#211a23f5),#111318}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{width:min(1480px,calc(100% - 28px));min-height:100vh;margin:0 auto;padding:16px 0 24px}.topbar,.command-bar,.view-tabs,.workspace{width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0}.brand-lockup,.turn-strip,.metric,.view-tabs,.panel-title,.action-row,.resource-row,.target-row,.tray-footer{display:flex;align-items:center}.brand-lockup{gap:12px;min-width:0}.brand-mark{display:grid;width:42px;height:42px;place-items:center;border:1px solid rgba(231,180,91,.46);border-radius:8px;background:#e7b45b1f;color:#ffd089}.eyebrow{margin:0 0 3px;color:#aeb8c5;font-size:.73rem;font-weight:700;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-size:1.45rem;line-height:1.1}h2{font-size:1.08rem;line-height:1.2}h3{font-size:.94rem;line-height:1.25}p{color:#c6d0dc;line-height:1.45}.turn-strip{flex-wrap:wrap;justify-content:flex-end;gap:9px;color:#d8e2ef;font-size:.88rem}.turn-strip span{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid rgba(214,224,239,.14);border-radius:8px;background:#161b24bd}.status-pill{color:#8ee5a2}.status-pill.locked{color:#ffd089}.command-bar{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;margin:8px 0 12px}.metric{gap:9px;min-width:0;min-height:58px;padding:10px 12px;border:1px solid rgba(214,224,239,.13);border-radius:8px;background:#191f2ac2;color:#ffd089}.metric span{color:#aeb8c5;font-size:.76rem}.metric strong{margin-left:auto;overflow:hidden;color:#fff;text-overflow:ellipsis;white-space:nowrap}.view-tabs{gap:6px;margin-bottom:12px;overflow-x:auto;scrollbar-width:thin}.view-tabs button,.action-row button,.order-item button,.target-row button,.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid rgba(214,224,239,.14);border-radius:8px;background:#1a212de0;color:#edf2f7}.view-tabs button{flex:0 0 auto;padding:8px 13px}.view-tabs button.active,.segmented button.active,.exchange-line.active{border-color:#ffd089b3;background:#ffd08921;color:#ffd089}.workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:12px;align-items:start}.primary-surface,.panel,.view-panel{border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#12161edb;box-shadow:0 18px 48px #0000003d}.primary-surface{min-height:720px;overflow:hidden}.side-stack{display:grid;gap:12px}.panel,.view-panel{padding:14px}.panel-title{gap:10px;margin-bottom:13px;color:#ffd089}.panel-title h2{color:#fff}.map-panel{position:relative;min-height:720px;overflow:hidden;padding:16px}.map-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;opacity:.32}.map-panel:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),#0d101657;background-size:48px 48px;pointer-events:none}.map-header,.galaxy-map{position:relative;z-index:1}.map-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.map-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;color:#cbd5e1;font-size:.78rem}.map-legend span{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#0c101694}.map-legend i,.resource-dot{display:inline-block;width:9px;height:9px;border-radius:999px}.legend-owned{background:#ffd089}.legend-rival{background:#ff7b86}.legend-open{background:#8be9ff}.galaxy-map{width:100%;height:min(660px,72vh);margin-top:8px}.route-hit{stroke:transparent;stroke-width:5;cursor:pointer}.route-line{stroke:#8be9ff7a;stroke-width:.32;pointer-events:none}.route-line.risk-high{stroke:#ffd089cc}.route-line.risk-severe{stroke:#ff6b6bdb}.route-line.uncharted{stroke-dasharray:1.2 1.4;opacity:.55}.route-line.selected{stroke-width:.72}.system-node{cursor:pointer}.system-halo{fill:#ffffff14;stroke:#d6e0ef3d;stroke-width:.22}.system-core{stroke:#ffffffe6;stroke-width:.22}.system-ring{fill:none;stroke:#ffd089;stroke-width:.28}.system-node.rival .system-halo{stroke:#ff7b86cc}.system-node.selected .system-halo{stroke:#fff;stroke-width:.5}.system-node text{fill:#edf2f7;font-size:1.4px;text-anchor:middle;paint-order:stroke;pointer-events:none;stroke:#080a0ef0;stroke-width:.28}.convoy-node{cursor:pointer;fill:#fff;stroke:#ffbf69;stroke-width:.28}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}.detail-grid div{min-width:0;padding:9px;border:1px solid rgba(214,224,239,.1);border-radius:8px;background:#ffffff09}.detail-grid dt{color:#9eabb9;font-size:.72rem}.detail-grid dd{margin:4px 0 0;overflow-wrap:anywhere;color:#fff;font-weight:700}.system-portrait{width:100%;aspect-ratio:16 / 8;margin-bottom:12px;border:1px solid rgba(214,224,239,.12);border-radius:8px;object-fit:cover}.resource-list{display:grid;gap:7px}.resource-list.compact{gap:5px}.resource-row{gap:8px;min-height:30px;padding:6px 8px;border-radius:8px;background:#ffffff09}.resource-row strong{margin-left:auto}.resource-row em{min-width:42px;color:#aeb8c5;font-size:.78rem;font-style:normal;text-align:right}.action-row{flex-wrap:wrap;gap:8px;margin-top:12px}.action-row button{padding:8px 10px}.view-panel{min-height:720px}.market-grid,.security-layout,.report-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.72fr);gap:12px}.exchange-board,.asset-grid,.route-list,.finance-grid,.report-list{display:grid;gap:9px}.exchange-line,.route-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;min-height:50px;padding:10px;border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#ffffff09;color:#edf2f7;text-align:left}.exchange-line span,.route-card span{min-width:0;overflow-wrap:anywhere}.exchange-line em,.route-card em{color:#aeb8c5;font-size:.78rem;font-style:normal}.exchange-line em.up{color:#8ee5a2}.exchange-line em.down{color:#ff8d8d}.order-form{display:grid;align-content:start;gap:11px;padding:12px;border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#ffffff09}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.segmented button{min-height:36px;border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#161c26e6;color:#edf2f7}label{display:grid;gap:6px;color:#aeb8c5;font-size:.8rem;font-weight:700}select,input{width:100%;min-height:38px;border:1px solid rgba(214,224,239,.16);border-radius:8px;background:#151b26;color:#fff;padding:8px 10px}.toggle-row{display:flex;align-items:center;gap:9px}.toggle-row input{width:18px;min-height:18px}.form-summary{display:flex;justify-content:space-between;gap:12px;color:#cbd5e1}.primary-action,.secondary-action{width:100%;padding:9px 12px}.primary-action{border-color:#ffd0899e;background:#e5a853;color:#15110b;font-weight:800}.secondary-action{border-color:#8be9ff5c;background:#8be9ff1a}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.asset-card,.event-card,.finance-row,.report-event,.auction-slate{border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#ffffff09}.asset-card{display:grid;gap:10px;padding:10px}.asset-card img,.event-card img{width:100%;aspect-ratio:16 / 9;border-radius:8px;object-fit:cover}.event-card,.auction-slate{padding:12px}.target-row{justify-content:space-between;gap:8px;min-height:38px;margin:8px 0}.target-row button,.order-item button{width:34px;height:34px;padding:0}.finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:12px}.finance-row.self{border-color:#ffd08961}.finance-row span{color:#aeb8c5}.finance-row button{grid-column:1 / -1;min-height:36px;border:1px solid rgba(214,224,239,.14);border-radius:8px;background:#1a212de0;color:#edf2f7}.report-event{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px}.report-event.good svg{color:#8ee5a2}.report-event.warn svg,.report-event.risk svg{color:#ffd089}.auction-slate ol{display:grid;gap:8px;margin:0;padding-left:18px;color:#dce6f2}.order-tray{position:sticky;top:12px}.order-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding-right:2px}.empty-state{display:grid;min-height:104px;place-items:center;color:#8d9aaa;border:1px dashed rgba(214,224,239,.18);border-radius:8px}.order-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px;border:1px solid rgba(214,224,239,.12);border-radius:8px;background:#ffffff09}.order-item.ready svg{color:#8ee5a2}.order-item.warning{border-color:#ffd08973}.order-item.warning svg{color:#ffd089}.order-item p{margin-top:3px;font-size:.83rem}.order-item span{display:inline-block;margin-top:5px;color:#ffd089;font-weight:700}.tray-footer{justify-content:space-between;gap:12px;margin:12px 0;padding-top:11px;border-top:1px solid rgba(214,224,239,.12)}@media (max-width: 1120px){.command-bar{grid-template-columns:repeat(3,minmax(150px,1fr))}.workspace,.market-grid,.security-layout,.report-layout{grid-template-columns:1fr}.primary-surface,.view-panel,.map-panel{min-height:620px}.order-tray{position:static}}@media (max-width: 760px){html,body{overflow-x:hidden}.app-shell{width:calc(100% - 18px);max-width:100%;overflow-x:hidden}.topbar{align-items:flex-start;flex-direction:column}.turn-strip{justify-content:flex-start}.command-bar,.asset-grid,.finance-grid{grid-template-columns:1fr}.metric{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 9px}.metric svg{grid-row:1 / 3}.metric strong{margin-left:0;white-space:normal}.map-header{flex-direction:column}.galaxy-map{height:520px}.view-tabs button span{display:none}.detail-grid{grid-template-columns:1fr}}
