/* Station, fitting catalogue and Captain share one compact service language. */
.station-grid [hidden]{display:none!important}
.station-grid .dock-card{width:min(1020px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
.station-grid .dock-head{padding:16px 20px 12px!important;border-bottom:1px solid #2f4957;background:linear-gradient(110deg,#102b37,#0a1823)}
.station-grid .dock-head .tm-kicker{font:600 9px system-ui;letter-spacing:.15em;color:#b5c5c4}
.station-grid #dock-title{font:600 26px/1.2 system-ui;letter-spacing:0;text-transform:none;margin:5px 0 10px}
.station-grid #dock-metal{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0;font:13px system-ui}
.station-balance{display:flex;gap:6px;align-items:center;color:#e7c887}.station-balance:last-child{color:#94dcc3}.station-balance small{font:11px system-ui;color:#a7bec7}
.station-grid svg,#captain-panel svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.station-balance svg{width:17px;height:17px}
.station-grid .dock-body{padding:16px 20px 10px!important;overflow:auto;min-height:0;overscroll-behavior:contain}
.station-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px}
.station-ship{position:relative;isolation:isolate;overflow:hidden;min-width:0;border:1px solid #345665;border-radius:8px;background:radial-gradient(ellipse at top,#1c3c49,#0a1b27 75%);display:flex;flex-direction:column;justify-content:center;padding:12px}
.station-background{position:absolute;inset:-35% auto auto -40%;width:180%;opacity:.1;z-index:-1;pointer-events:none}
.station-ship-art{display:flex;align-items:center;justify-content:center;min-height:120px}.station-ship-art canvas{width:100%;height:145px;object-fit:contain}
.station-ship-art{min-width:0}.station-ship-art canvas,.captain-identity canvas{max-width:100%;width:100%!important;height:130px!important}
.station-ship-info>small{font:600 9px system-ui;letter-spacing:.12em;color:#90bebd}.station-ship h3{font:600 17px/1.3 system-ui;margin:5px 0 10px;color:#e3efee;overflow-wrap:anywhere}
.station-ship-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.station-ship-stats>span{display:flex;flex-direction:column;gap:3px}.station-ship-stats b{font:600 14px system-ui;color:#bdded7}.station-ship-stats small{font:10px system-ui;color:#91aab9}
.station-ship p{font:11px/1.5 system-ui;color:#a9c0cc;margin:12px 0 0}
#station-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
#station-services button{grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;align-content:center;gap:4px 9px;min-height:90px;padding:12px;text-align:left;border:1px solid #344f60;border-radius:7px;background:linear-gradient(145deg,#122c3b,#0c1d29);transition:background .15s,border-color .15s}
#station-services button:hover,#station-services button:focus-visible{background:#183b43;border-color:#a3dfcf;outline:2px solid transparent}
#station-services .station-icon{grid-row:1/3;align-self:center;display:flex;color:#aecfce}
#station-services strong{font:600 13px/1.25 system-ui;color:#e2edee}#station-services small{font:11px/1.3 system-ui;color:#94adbb;max-width:100%}
#station-services [data-station-service=fitting]{border-color:#87cbbb;background:#173632}#station-services [data-station-service=equipment]{border-color:#a38a58}
#station-details{padding-top:0;border-color:#294351}#station-details summary{min-height:44px;font:11px system-ui;color:#89a8b8}
.station-explainer{margin:12px 0;padding:9px 11px;border-left:2px solid #a58d58;background:#132631;font:12px/1.4 system-ui;color:#d3d9c3}
.station-grid .dock-doors{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;margin:0;padding:12px 20px!important;border-top:1px solid #2d4755;background:#0b1d29;flex:none}
.station-grid .dock-doors .tm-door{min-height:46px;padding:9px 12px!important;clip-path:none!important;transform:none!important;border:1px solid #45606d;border-radius:5px;font:600 12px system-ui;letter-spacing:.03em;justify-content:center;text-align:center}
.station-grid #dock-undock{background:#9bded0;color:#09272b;border-color:#b5f0df}
#captain-panel .armory-sheet{width:min(1020px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;display:flex;flex-direction:column;overflow:hidden;background:#0b1b27;border:1px solid #4f707c;border-radius:9px;clip-path:none}
#captain-panel .armory-sheet{background:#0b1b27!important}
#captain-panel .armory-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;padding:15px 18px;background:linear-gradient(110deg,#12313c,#0c1c28);border-bottom:1px solid #304b58}
#captain-name{font:600 22px/1.2 system-ui;letter-spacing:0;margin:5px 0 8px;overflow-wrap:anywhere}#captain-progress{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;font:11px system-ui}#captain-progress span:first-child{color:#e8cb87}#captain-progress span:last-child{color:#9cddc7}
#captain-close{min-height:44px;padding:8px 12px;white-space:nowrap;font:12px system-ui}
#captain-tabs{flex:none;margin:0;padding:9px 14px;border-bottom:1px solid #304754;background:#0c202c;gap:6px}#captain-tabs button{font-size:12px;min-height:44px}
#captain-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 18px}
#captain-content>h3{font:600 12px system-ui;color:#e1d4a3;margin:17px 0 8px}#captain-content>p{font-size:12px;line-height:1.45;margin:0 0 12px}
#captain-content .captain-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 16px}#captain-content .armory-card{padding:12px;gap:7px;min-width:0;background:#102734;border-color:#2f4c5b;border-radius:7px}
#captain-content .armory-card h3{font:600 14px/1.3 system-ui;color:#daeae7}#captain-content .armory-card p{font:12px/1.45 system-ui;margin:0;color:#a9c1cc}
#captain-content button{min-height:44px;font:12px/1.25 system-ui;padding:8px;border:1px solid #4c706f;border-radius:5px;background:#173837;color:#c9eadd;cursor:pointer}#captain-content button:disabled{opacity:.45;cursor:default}#captain-content button:focus-visible{outline:2px solid #a6e6ce;outline-offset:2px}
.captain-identity{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;padding:12px;border:1px solid #456370;border-radius:7px;background:radial-gradient(ellipse at left,#193c47,#0d202c 80%)}.captain-identity>div:first-child{display:flex;align-items:center;justify-content:center}.captain-identity canvas{width:100%;height:115px;object-fit:contain}.captain-identity small{font:600 9px system-ui;letter-spacing:.1em;color:#87c9c0}.captain-identity h3{font:600 18px system-ui;margin:5px 0}.captain-identity p{font:12px/1.4 system-ui;color:#a8bfca}.captain-empty{grid-column:1/-1;display:flex;align-items:center;gap:12px;border:1px dashed #385560;border-radius:5px;padding:10px}.captain-empty p{margin:0;font:12px/1.4 system-ui;color:#a9c1cb}.captain-empty button{margin-left:auto;flex:none}
.captain-trait-mark{display:flex;gap:8px;align-items:center;color:#9cd6c9}.captain-trait-mark small{font:10px system-ui;color:#9ab2be}.captain-trait-mark svg{width:22px!important;height:22px!important}.captain-requirement{font:10px/1.4 system-ui;color:#cfbb89;margin-top:auto}
.captain-training-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}#captain-content .captain-training-actions button{margin:0;font-size:11px;min-width:0;padding:7px 4px}
#captain-content .captain-training .armory-card h3{font-size:13px}#captain-content .captain-training .armory-card>button{margin:0}
#hangar-picker>header{background:linear-gradient(100deg,#153641,#0d202c);border-bottom-color:#4b6d76}#hangar-picker .hangar-filter{position:sticky;top:-14px;z-index:3;background:#0b1b27;padding:10px 0;margin:0 0 7px}#hangar-picker input[type=search]{font-size:16px}#hangar-picker .hz-family{display:flex;align-items:center;gap:8px;padding-top:8px}#hangar-picker .hz-family:after{content:'';height:1px;flex:1;background:#2c4553}
@media(max-width:740px){
 .station-grid .dock-head{padding:12px 14px 10px!important}.station-grid #dock-title{font-size:22px;margin-bottom:8px}.station-grid .dock-body{padding:10px 12px 0!important}.station-layout{grid-template-columns:1fr;gap:10px}
 .station-ship{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px;min-height:102px;box-sizing:border-box}.station-ship-art{min-height:0}.station-ship-art canvas,.captain-identity canvas{height:90px!important}.station-ship h3{font-size:14px;margin:4px 0 7px}.station-ship p{font-size:10px;line-height:1.3;margin:7px 0 0}.station-ship-info>small{font-size:8px}.station-ship-stats b{font-size:12px}.station-ship-stats small{font-size:9px}
 #station-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#station-services button{min-height:76px;padding:9px 8px;grid-template-columns:24px minmax(0,1fr);gap:3px 7px}#station-services strong{font-size:12px}#station-services small{font-size:10px}.station-explainer{font-size:11px;margin:10px 0;padding:8px 10px}.station-grid .dock-doors{padding:10px 12px!important;gap:8px}
 #captain-panel .armory-sheet>header{padding:12px 14px;align-items:start}#captain-name{font-size:20px}#captain-progress{font-size:10px;gap:5px 10px}#captain-tabs{padding:8px;gap:4px}#captain-tabs button{font-size:11px}#captain-content{padding:12px}#captain-content .captain-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#captain-content .armory-card{padding:10px;gap:6px}#captain-content .armory-card h3{font-size:13px}#captain-content .armory-card p{font-size:11px;line-height:1.4}
 #captain-content .captain-training .armory-card h3{min-height:32px}.captain-identity{grid-template-columns:90px minmax(0,1fr);gap:10px;padding:10px}.captain-identity canvas{height:90px}.captain-identity h3{font-size:15px}.captain-identity p{font-size:11px}.captain-empty{align-items:start;flex-direction:column;gap:8px}.captain-empty button{margin-left:0;width:100%}
}
@media(max-height:500px){.station-layout{grid-template-columns:190px minmax(0,1fr)}#station-services{grid-template-columns:repeat(3,minmax(0,1fr))}#station-services button{min-height:70px}.station-ship-art canvas{height:90px}.station-grid .dock-head{padding:8px 14px!important}.station-grid #dock-title{font-size:20px;margin:3px 0 5px}#captain-panel .armory-sheet>header{padding:7px 12px}#captain-name{font-size:18px;margin:3px 0}#captain-tabs{padding:5px 8px}}
