:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#e4ecf0;background:#07121d;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,select,input,textarea{border:1px solid #385263;border-radius:6px;background:#102333;color:#e4ecf0;padding:.5rem .7rem}button:hover:not(:disabled){background:#1b3e4d;border-color:#76cbbf}a{color:#82d8cd}h1,h2,h3,p{margin-top:0}h1{font-size:1.6rem;letter-spacing:.08em;margin-bottom:.2rem}h2{font-size:1.4rem;margin-bottom:.6rem}h3{font-size:1rem;color:#a8c6d3;margin:1.2rem 0 .6rem}small,.muted{color:#9fb6c4;font-size:.85rem}.sector-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 40% 60%,#112b3b55,transparent 65%),#07121d}.sector-top{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.3rem;border-bottom:1px solid #28404f;gap:1rem;background:#091724}.sector-top p{font-size:.875rem;color:#a8c0cd;margin:0}.sector-actions{display:flex;gap:.5rem;flex-wrap:wrap}.sector-actions button{font-size:.875rem}.sector-tools{display:flex;gap:.6rem;padding:.7rem 1.3rem;align-items:center;flex-wrap:wrap;border-bottom:1px solid #28404f;background:#0b1b28}.sector-tools label{font-size:.875rem;color:#aac2cf;display:flex;align-items:center;gap:.4rem}.sector-tools input{width:210px}.sector-tools select{max-width:220px}.sector-status{margin-left:auto;font-size:.85rem;color:#83d5c8}.sector-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;flex:1;min-height:650px}.sector-map-wrap{position:relative;overflow:hidden;min-height:650px;background:#07111c}.sector-map-wrap svg{display:block;width:100%;height:100%;min-height:650px;touch-action:none}.sector-detail{border-left:1px solid #2a4353;padding:1.2rem;background:#0b1b28;max-height:calc(100vh - 140px);overflow:auto}.eyebrow{color:#80d5c6;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:.4rem}.detail-subtitle{color:#a9becb;font-size:.9rem}.sector-detail p{line-height:1.5}.sector-detail label{display:block;font-size:.875rem;color:#bad0da;margin-bottom:.5rem}.sector-detail textarea{width:100%;min-height:80px;resize:vertical}.sector-detail input[type=number]{width:80px}.sector-detail input[type=text],.sector-detail select{width:100%}.sector-detail form{margin-bottom:1rem}.two-fields{display:flex;gap:.8rem}.tracker{display:flex;gap:.5rem;align-items:center;margin:.7rem 0}.tracker strong{min-width:74px}.tracker button{padding:.25rem .6rem}.pips{display:flex;gap:4px;flex-wrap:wrap}.pip{width:12px;height:17px;border:1px solid #55717f;display:inline-block;border-radius:2px}.pip.on{background:#ed9c69;border-color:#ed9c69}.pip.wanted.on{background:#ef626d;border-color:#ef626d}.presence-row{border:1px solid #2c4755;border-radius:7px;padding:.7rem;margin:.6rem 0}.presence-row p{font-size:.875rem;margin:.4rem 0 0}.presence-head{display:flex;justify-content:space-between;gap:.5rem;align-items:center;font-size:.9rem}.presence-head button{padding:.2rem .4rem;font-size:.8rem}.relation{color:#80d5c6}.relation.hostile{color:#ff989e}.sector-location-list{display:grid;gap:.4rem}.sector-location-list button{text-align:left;font-size:.9rem;display:flex;justify-content:space-between}.sector-location-list small{font-size:.75rem}.sector-footer{padding:.65rem 1.3rem;font-size:.75rem;color:#95abb9;border-top:1px solid #28404f;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.sector-footer a{font-size:inherit}.zoom-controls{position:absolute;bottom:1rem;left:1rem;display:flex;gap:.3rem}.map-legend{position:absolute;bottom:1rem;right:1rem;padding:.5rem .7rem;background:#07121ddd;font-size:.75rem;color:#adc3cf;border:1px solid #2e4957;border-radius:5px;pointer-events:none}.map-help{position:absolute;top:.7rem;left:1rem;font-size:.75rem;color:#9bb8c7;pointer-events:none}.sector-message{padding:.6rem 1.3rem;background:#173f46;font-size:.9rem;display:none}.sector-message.error{background:#552830}.sector-message[data-show=true]{display:block}.sector-source-note{font-size:.8rem;color:#9ab4c2}.sector-route-result{padding:.7rem;background:#122e3b;border-radius:6px;margin-top:.7rem}.source-links{font-size:.8rem;line-height:1.5}.atlas-return{padding:.5rem 1.3rem;background:#0c2331;font-size:.85rem}.orbital{fill:none;stroke:#81abbc;stroke-opacity:.24;stroke-width:1.3}.orbital.outer{stroke-dasharray:8 9;stroke-opacity:.4}.route-line{fill:none;stroke:#9dcdd8;stroke-width:3;stroke-dasharray:5 6}.route-line.watched{stroke:#f6b866}.route-line.blocked,.route-line.sealed{stroke:#cf7684;stroke-dasharray:3 12;opacity:.65}.route-hit{fill:none;stroke:transparent;stroke-width:28;cursor:pointer}.route-label{font-size:15px;fill:#a7c9d5;paint-order:stroke;stroke:#07121d;stroke-width:6px}.system-name{font-size:34px;font-weight:750;letter-spacing:.15em;fill:#e5f4f1;paint-order:stroke;stroke:#07121d;stroke-width:6px}.system-stats{font-size:16px;fill:#b8d2db;paint-order:stroke;stroke:#07121d;stroke-width:5px}.system-hit{fill:transparent;cursor:pointer}.system-label,.map-location{cursor:pointer}.map-location text{font-size:19px;font-weight:600;fill:#e0ecf1;paint-order:stroke;stroke:#07121d;stroke-width:6px}.map-location .kind{font-size:13px;font-weight:400;fill:#9cb8c6;stroke-width:4px}.map-location.dim{opacity:.2}.map-location.selected .node-ring{stroke:#fff;stroke-width:3;opacity:1}.node-ring{fill:none;stroke:#8ad8ca;stroke-width:1.5;opacity:.4}.faction-count{font-size:11px!important;fill:#06131c!important;stroke:none!important;font-weight:700}.ship-mark{fill:#83f3d3;stroke:#051b21;stroke-width:2}.map-location:focus .node-ring,.system-label:focus .system-hit{stroke:#fff;stroke-width:3}.selected-route{stroke:#89f0d8;stroke-width:6}.sector-tabs{display:flex;gap:.4rem;margin-bottom:1rem}.sector-tabs button[aria-pressed=true]{background:#245647;border-color:#83d5bc}.delete{border-color:#78414b;color:#ffb5bc}.hidden-file{display:none}.save-row{display:flex;gap:.5rem;margin:.5rem 0 1rem;flex-wrap:wrap}.load-error{padding:3rem;color:#ffa4a4}.sector-detail details summary{cursor:pointer;color:#b5d5dd;margin-bottom:.8rem}.system-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin:1rem 0}.system-summary-grid button{padding:.6rem .2rem;font-size:.8rem}.system-summary-grid span{display:block;color:#dfb27d;margin-top:.3rem}.tag{display:inline-block;border:1px solid #375767;border-radius:4px;padding:.15rem .4rem;margin:.2rem .2rem .2rem 0;font-size:.75rem;color:#abc9d4}
@media(max-width:1000px){.sector-layout{grid-template-columns:minmax(0,1fr) 300px}.sector-top{align-items:flex-start}.sector-tools input{width:160px}.sector-map-wrap,.sector-map-wrap svg{min-height:560px}}@media(max-width:760px){.sector-top{flex-direction:column}.sector-layout{display:flex;flex-direction:column}.sector-map-wrap,.sector-map-wrap svg{height:65vh;min-height:420px}.sector-detail{border-left:0;border-top:1px solid #28404f;max-height:none}.sector-status{margin-left:0}.sector-tools{padding:.7rem}.map-help{display:none}.map-legend{font-size:.65rem;max-width:55%}.sector-top h1{font-size:1.3rem}}

.map-legend{position:static;margin:.5rem 1rem;background:transparent;border:0;padding:0;max-width:none}.sector-map-wrap svg{height:650px}.zoom-controls{bottom:3.5rem}@media(max-width:760px){.sector-map-wrap svg{height:65vh;min-height:420px}.map-legend{font-size:.75rem;max-width:none}.zoom-controls{bottom:4rem}}
