/* Quiet shipboard controls. Saturated colour belongs to discoveries and weapon fire. */
:root{
 --control-face:#c8bba1;
 --control-ink:#252c31;
 --control-edge:#99896c;
 --steel:#29323a;
 --steel-deep:#1c252c;
 --brass:#c9aa6b;
}
button{
 border:0;
 border-radius:3px;
 background:#38424b;
 color:#e5e0d5;
 box-shadow:inset 0 1px #ffffff12,0 2px #10171d70;
 text-shadow:none;
}
button:active{background:#303b43;box-shadow:inset 0 1px 3px #10171d66}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #dec58f;outline-offset:3px}
header{background:#252e35;border:0;box-shadow:0 1px #a4b5bf22}
.brand{letter-spacing:.5px}.brand-mark{color:var(--brass)}
.header-actions{gap:4px}.header-actions button{background:transparent;box-shadow:none;color:#b9c2c6}
.header-actions #dock-open{color:#e2d8c4}
.settings-button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:8px!important}
.settings-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;pointer-events:none}
#viewport{border:0;box-shadow:none}#viewport:after{border:0;box-shadow:inset 0 -25px 35px #12192033}
.readout{border:0;background:#202930c9;box-shadow:none}
.workbench{background:#2b343b;border:0;border-top:1px solid #8e9d9d3b;border-radius:0;box-shadow:0 -7px 30px #12192044}
.workbench:before,.workbench:after{display:none}
.wallet,.output{border:0;box-shadow:none;background:#202930}
.wallet strong{color:#e5dcc9}.output>strong{color:#9ac9bd}
#voyage-strip{color:#aebbc0}#voyage-label{color:#d6cfbd}
.tool{border:0;border-radius:3px;background:#222c34;box-shadow:none}
.tool span,.tool.locked span{border:0;background:#303a42;box-shadow:none}
.tool.selected{border:0;background:#344047;box-shadow:inset 0 -2px var(--brass)}
.tool.selected span{background:#3d494e}
.tool.selected strong,.tool.selected b{color:#ede4d2}
.tool.selected:before{background:var(--brass);width:3px;height:12px;top:8px;left:4px;border-radius:1px}
.tool strong{letter-spacing:.15px}.tool b{color:#c0c8c8}
#upgrade,#loot-close,#salvage,#field-install,#field-tune,#rank-buy,#route-info-close,
#dock-content .primary,.research-project>button,.cargo-open-label,.primary-action{
 background:var(--control-face);
 border:0;
 border-bottom:2px solid var(--control-edge);
 border-radius:3px;
 color:var(--control-ink);
 box-shadow:0 2px #11191f66;
 text-shadow:none;
 min-height:44px;
 font-weight:700;
}
#upgrade:not(:disabled):active,#field-install:not(:disabled):active,
#rank-buy:not(:disabled):active,#dock-content .primary:not(:disabled):active,
.research-project>button:not(:disabled):active,
.career-primary:not(:disabled):active,#blueprint-track:not(:disabled):active,#salvage-supplies-host .arsenal-purchase-review button:not(:disabled):active,#blueprint-equip:not(.loss-action):not(:disabled):active,#blueprint-claim:only-child:not(:disabled):active,#shipyard #dock-lab-claim:not(:disabled):active,#shipyard #survey-claim:not(:disabled):active,#ship-weapon-fit:not(.loss-action):not(:disabled):active,#ship-weapon-blueprints:not(:disabled):active,#shipyard-launch:not(:disabled):active,.primary-action:not(:disabled):active{background:#b8aa91;box-shadow:none}
#upgrade:disabled,#loot-close:disabled,#field-tune:disabled,#rank-buy:disabled,
#dock-content .primary:disabled,#dock-content .research-project>button:disabled,.primary-action:disabled,#dock-content .primary-action:disabled{
 background:#354048;color:#96a3aa;border:0;box-shadow:none;opacity:1;
}
#salvage small{border:0;background:#202930;color:#e3d6ba}
body[data-phase="mining"] #salvage{border:0;background:#263139;color:#bfc7c8;box-shadow:none}
body[data-phase="loot"] #upgrade{border:0;background:#39464d;color:#d5d8d4;box-shadow:none}
#field-scrap{border:0;background:#39464b;color:#d4c9b4}
#field-unfit{background:#353d43;color:#b9bec1}
.scene-controls,.target-status{border:0;background:#27333bcc;box-shadow:none}
.scene-controls button{border:0;background:transparent;box-shadow:none}
#mining-feed{border:0;box-shadow:none;background:#202930d9}
#mantle-indicator{border:0;background:#202930d9}
#notice{border:0;background:#263139f5;box-shadow:0 3px 14px #12192055}
#dock-dialog,#luck-dialog,#settings,#loot-dialog{
 border:1px solid #72838b66;border-radius:8px;background:#202a32;
 box-shadow:0 22px 90px #000a;
}
#dock-dialog::backdrop,#luck-dialog::backdrop,#settings::backdrop{background:#0d141bdb}
.dock-heading{background:#2b353d;border:0;padding-top:13px;padding-bottom:13px}
.dock-heading .eyebrow{font-size:8px;color:#8fa0aa;letter-spacing:1.2px}
.dock-heading h2{font-size:23px;color:#e6e0d3}
.dock-heading-actions button,.settings-heading>button{background:transparent;box-shadow:none;color:#a8b5bc}
#dock-wallet{background:#202a32;border:0;color:#c7b894;font-size:12px}
.dock-tabs{background:#26313a;border:0;padding:4px 8px;gap:0}
.dock-tabs button{border:0;border-radius:0;background:transparent;box-shadow:none;color:#b3c1c8;font-size:11px;position:relative;min-height:48px}
.dock-tabs button[aria-selected="true"]{background:transparent;color:#e7dcc5;box-shadow:none}
.dock-tabs button[aria-selected="true"]:after{content:'';position:absolute;left:35%;right:35%;top:0;height:2px;background:var(--brass)}
.chart-actions{background:#26313a;border:0;padding-top:10px}
#dock-content .chart-actions .primary{font-size:14px!important;min-height:46px}
.chart-resume{color:#a6b4bc;background:none;box-shadow:none}
.chart-sector button{color:#acbabf}
.chart-prize{border-color:#81939c33}
.chart-prize>span{color:var(--brass)}
.chart-prize button{border:0;background:transparent;color:#a9bcc4;box-shadow:none}
.chart-stop.current .chart-planet{outline:1px solid #ccb77f99;outline-offset:5px}
.chart-stop.current small{color:#d1ba87}
.chart-path{stroke:#8caaa277}
#route-details{border:1px solid #748a9466;background:#27343e;box-shadow:0 6px 32px #10182099}
#luck-meter{border:0;border-radius:0;background:#232d34;box-shadow:none}
.luck-meter-head>b{color:#d8ceba}.luck-meter-head>strong{color:#c4b18d}
.luck-steps .lit{background:#c8b48b}.luck-steps i{height:3px;background:#45535b}
.luck-levels b{border:0;background:#313d46;border-radius:3px}
.luck-levels .lit b{border:0;color:#c9b990}
.luck-levels .current b{background:#4a534f;color:#ede3cd;box-shadow:inset 0 -2px var(--brass)}
#rank-buy{font-size:14px}
.field-socket{border:0;border-top:1px solid #596771;background:#222c34;border-radius:3px;box-shadow:none}
.field-socket.accepts{border-color:#697b83}
.field-socket.accepts small{color:#c5cdc9}
.field-socket[aria-pressed="true"]{background:#35434a;outline:0;box-shadow:inset 0 -2px var(--brass)}
.field-socket[aria-pressed="true"] em{color:#dec99e}
.field-socket[data-rarity]{border-top-color:var(--rarity)}
#field-reveal{background:#25313bf7;border:0;border-top:2px solid var(--rarity,#b5b3a3);border-radius:5px;box-shadow:0 5px 30px #0c151b88}
#field-reveal .rarity-banner{border-bottom:0;background:linear-gradient(110deg,color-mix(in srgb,var(--rarity) 16%,#1d2a34),#25313b)}
#field-reveal .rarity-banner>strong{letter-spacing:.5px;text-shadow:none}
#field-reveal[data-rarity="legendary"]{border:0;border-top:2px solid #d8b875;box-shadow:0 5px 30px #0c151b88}
#field-reveal[data-rarity="legendary"] .rarity-banner{border:0;background:linear-gradient(110deg,#5c503b,#25313b)}
.swap-comparison{border:0;background:#1c2831;border-radius:3px}
.swap-comparison i{color:#b8bba8}
.tune-preview{border:0;background:#1c2831;border-radius:3px}
.cargo-open-label{width:auto;min-width:190px;padding:0 22px;min-height:44px;font-size:17px}
.cargo-hero:disabled .cargo-open-label{border:0;background:#354048;color:#96a3aa}
.cargo-halo{opacity:.6}
#planet-payoff>strong{color:#ddc89c;text-shadow:none}
.fitting-readout{border:0;border-top:1px solid var(--rarity,#7ab6ac);border-radius:0;background:#1d2831}
.fitting-readout strong{color:#d7c9a8}
.fitting-node{border-width:1px;box-shadow:inset 0 0 0 3px #1a2730,0 2px #0e171f66}
.hull-name>strong{color:#d9c393}
.research-wallet{border-color:#8ba0a133}
.research-token{border:0;background:#334c53;box-shadow:0 3px #15222b;transform:rotate(-5deg);color:#a9d4c5}
.research-project{border:0;border-radius:4px;background:#303e49;box-shadow:0 3px #101a2355;padding:12px;gap:10px}
.research-project:after{display:none}
.research-drawing{border:0;background:linear-gradient(#91a0a610 1px,transparent 1px) 0 0/16px 16px,linear-gradient(90deg,#91a0a610 1px,transparent 1px) 0 0/16px 16px,#23323e}
.research-project>button{font-size:12px;min-height:44px}
.research-gain b{color:var(--gain)}
.research-ranks i{border:0;background:#56656d}
.research-ranks i.built{background:#93bfac}
.research-installed{border-color:#839caa33}
.project-card,.dock-note,.trait-card{border:0;background:#2a3741;box-shadow:none;border-radius:3px}
.project-card h3{color:#ded9ca}
#dock-content .project-card button{min-height:44px;background:#435159;box-shadow:none;color:#e0ddd2}
#dock-content .dock-note{color:#aebcc3;font-size:12px}
@media(min-width:700px){.workbench{border:0;border-radius:5px}}
@media(max-width:360px),(max-height:700px){.research-project{padding:7px;gap:5px}.dock-heading{padding-top:8px;padding-bottom:8px}.dock-heading h2{font-size:20px}.dock-tabs button{min-height:44px}.cargo-open-label{font-size:15px;min-width:170px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.voyage-prep{display:flex;gap:8px;align-items:center;margin-bottom:6px}.voyage-prep button,.voyage-prep select{min-height:44px;min-width:0;flex:1;font:11px var(--body);border:0;background:#202b33;color:#cbd1cb;padding:6px;border-radius:3px}.chart-actions .voyage-contract-note{text-align:left;font-size:10px;line-height:1.35;padding:0 0 9px;color:#aab7bd}#arsenal-open-crates{display:block;width:100%;min-height:46px;background:#bcc7bd;color:#1b2b2f;border:0;border-radius:3px;margin:12px 0;font:700 13px var(--display)}.weapon-pairing{display:block;color:#97b7b4;font-size:11px;margin:8px 0}
@media(max-height:700px) and (orientation:portrait){
 .workbench.choosing-module #weapon-hunt{display:none}
 .voyage-chart{min-height:280px}
 .chart-sector{min-height:44px}
 .chart-route{height:176px}
 .chart-stop.stop-1{top:53px}
 .chart-stop.stop-2{top:120px}
 .chart-planet{width:52px;height:52px}
 .chart-prize{min-height:50px}
 .chart-actions .voyage-contract-note{padding-bottom:5px;font-size:9px}
}
@media(max-height:700px) and (orientation:portrait){
 .workbench.choosing-module .field-socket.accepts{height:72px;min-height:72px;padding:4px}
}

/* Machined edges: frames define surfaces; colour stays reserved for rewards. */
:root{--frame-light:#74808a;--frame-dark:#121b23;--frame-mid:#485761}
header{border-bottom:2px solid var(--frame-dark);box-shadow:inset 0 -1px #66737b}
.header-actions button,.dock-heading-actions button,.settings-heading>button{
 border:1px solid #65717b;border-bottom-color:#141d25;
 background:linear-gradient(#3c4750,#2c3740);
 box-shadow:inset 0 1px #a5b0b51c,0 2px #111922;
}
.workbench{border:2px solid var(--frame-mid);border-top-color:#8b959b;border-bottom:0;border-radius:5px 5px 0 0;box-shadow:inset 0 2px #c6c8ba18,0 -3px #101820}
.workbench:before,.workbench:after{display:block}
.wallet,.output,.readout{border:1px solid #151e27;border-bottom-color:#62717b;box-shadow:inset 0 2px 3px #11192388}
.tool,.tool.selected{border:1px solid #6f7c85;border-bottom:2px solid #141d26;box-shadow:inset 0 1px #b6c0bd20,0 2px #101923}
.tool.selected{border-color:#b9a678;box-shadow:inset 0 -2px #827451,0 2px #101923}
.tool span{border-top:1px solid #61717a}
#upgrade,#loot-close,#salvage,#field-install,#field-tune,#rank-buy,#route-info-close,
#dock-content .primary,.research-project>button,.cargo-open-label,#equip-blueprint,#arsenal-open-crates,.primary-action{
 border:1px solid #e2d6bd;border-right-color:#867960;border-bottom:3px solid #77684f;
 background:linear-gradient(#d1c6ae,#bbad92);
 box-shadow:inset 0 1px #f3ecd333,0 2px #111922;
}
#upgrade:not(:disabled):active,#field-install:not(:disabled):active,#rank-buy:not(:disabled):active,
#dock-content .primary:not(:disabled):active,.research-project>button:not(:disabled):active,
.career-primary:not(:disabled):active,#blueprint-track:not(:disabled):active,#salvage-supplies-host .arsenal-purchase-review button:not(:disabled):active,#blueprint-equip:not(.loss-action):not(:disabled):active,#blueprint-claim:only-child:not(:disabled):active,#shipyard #dock-lab-claim:not(:disabled):active,#shipyard #survey-claim:not(:disabled):active,#ship-weapon-fit:not(.loss-action):not(:disabled):active,#ship-weapon-blueprints:not(:disabled):active,#shipyard-launch:not(:disabled):active,.primary-action:not(:disabled):active{
 border-bottom-width:1px;box-shadow:inset 0 2px 3px #4b493255;
}
#field-scrap,#field-unfit,#blueprint-claim,.pass-stages button,.standard-weapons button,
.voyage-prep button,.voyage-prep select,body[data-phase="loot"] #upgrade{
 border:1px solid #697983;border-bottom:2px solid #131e27;
 box-shadow:inset 0 1px #abb6b51a,0 1px #121b22;
}
#blueprint-equip,#blueprint-claim:only-child{border:1px solid #e2d6bd;border-right-color:#867960;border-bottom:3px solid #77684f;box-shadow:0 2px #111922}
#dock-dialog,#luck-dialog,#settings,#loot-dialog{
 border:2px solid #9a9e99;border-right-color:#636f76;border-bottom-color:#53616b;
 border-radius:5px;box-shadow:inset 0 0 0 1px #101923,0 22px 90px #000a;
}
.dock-heading{border-bottom:2px solid #131d26;box-shadow:inset 0 -1px #6b7881}
.dock-tabs{border-top:2px solid #121c25;box-shadow:inset 0 1px #738089;padding:6px;gap:5px}
.dock-tabs button{border:1px solid #61717c;border-bottom:2px solid #121c25;border-radius:3px;background:linear-gradient(#38464f,#2b3740);box-shadow:inset 0 1px #a9b4b61a}
.dock-tabs button[aria-selected="true"]{background:#45504f;border-color:#a89c7e;color:#f0e5cd;box-shadow:inset 0 -2px #8e7d59}
.dock-tabs button[aria-selected="true"]:after{display:none}
.chart-actions{border-top:2px solid #15212a;box-shadow:inset 0 1px #6b7a83}
.chart-prize button{border:1px solid #849198;background:#35424c;box-shadow:0 2px #111d27}
#route-details{border:2px solid #819198}
#luck-meter,#weapon-hunt{border:1px solid #63737b;border-bottom-color:#131d25;border-radius:3px;box-shadow:inset 0 1px #c0c4b817,0 1px #141e26}
.luck-levels b,.luck-levels .lit b{border:1px solid #63747c;box-shadow:inset 0 1px #9fada71a,0 2px #111d25}
.luck-levels .current b{border-color:#c5b58a;box-shadow:inset 0 -2px #a38d60,0 2px #111d25}
.field-socket{border:1px solid #657680;border-bottom:2px solid #17232c;box-shadow:inset 0 1px #bcc7c012,0 1px #111b24}
.field-socket[aria-pressed="true"]{border-color:#d1bd8e;box-shadow:inset 0 -2px #9b875d}
.field-socket[data-rarity]{border-color:var(--rarity);border-bottom-color:#17232c}
#field-reveal,#field-reveal[data-rarity="legendary"]{border:2px solid var(--rarity,#b5b3a3);border-top-width:3px;box-shadow:0 4px #101922,0 7px 25px #0c151b88}
.swap-comparison,.tune-preview,.fitting-readout,.research-drawing,.weapon-preview{box-shadow:inset 0 0 0 1px #687b8480,inset 0 2px 4px #10192399}
.fitting-readout{border-top:2px solid var(--rarity,#7ab6ac)}
.fitting-node{border-width:2px;box-shadow:inset 0 0 0 3px #17232c,0 3px #0e171f}
.research-token{border:2px solid #9cbeb5;box-shadow:inset 0 1px #d0e6d344,0 3px #15222b}
.research-project{border:1px solid #7d8c94;border-right-color:#4b5e6b;border-bottom:3px solid #121d27;box-shadow:inset 0 1px #c7cec21a,0 2px #0e1822}
.research-project:after{display:block}
.research-ranks i{border:1px solid #84928f}
.hunt-choices>button{border:1px solid #657985;border-bottom:3px solid #121f29;box-shadow:inset 0 1px #acbcb51a,0 2px #101a24}
.hunt-choices>button[aria-pressed="true"]{border-color:#b6a57a;border-bottom-color:#84714f;box-shadow:inset 0 1px #b9c2ad20,0 2px #101a24}
.arsenal-store>button{border:1px solid #576c79;border-bottom:2px solid #14232e;background:#283a46;padding:10px;border-radius:3px;margin-top:7px;box-shadow:inset 0 1px #a8bbb21a}
#blueprint-dialog{border:2px solid #87a49f;border-top:3px solid #b8dacc;box-shadow:0 5px #101b25,0 25px 90px #07111cbb}
@media(min-width:700px){.workbench{border:2px solid #6b7b84;border-top-color:#a0aaa9;border-bottom-color:#1a2730;border-radius:5px}}
#upgrade:disabled,#loot-close:disabled,#field-tune:disabled,#rank-buy:disabled,
#dock-content .primary:disabled,#dock-content .research-project>button:disabled,
#equip-blueprint:disabled,body[data-phase="mining"] #salvage,.primary-action:disabled,#dock-content .primary-action:disabled{
 border:1px solid #4c5d68;border-bottom:2px solid #17232d;
 box-shadow:inset 0 1px #aab9b510;
 background:#2d3942;color:#95a4ac;
}

.eyebrow,.career-dialog-heading small,.career-next>small:first-child{font:400 9px/1.2 var(--body);letter-spacing:1.2px;text-transform:uppercase}
