/* Surface composition; the inventory theme and member card skin are shared components. */
.station-ui [hidden]{display:none!important}
.station-ui>header{justify-content:flex-end}
.station-sidebar{position:absolute;top:auto;bottom:max(24px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));transform:none;width:min(612px,calc(100% - 48px));pointer-events:none;z-index:4}
.station-resources{position:absolute;top:24px;left:24px;pointer-events:none;z-index:4}
.station-squad{display:flex;justify-content:flex-start;align-items:stretch;gap:8px}
.shared-health-note{margin:4px 0 0;text-align:left;font:400 11px/1.2 var(--ui-font-display);color:var(--ui-prep-frame)}
.station-ui .supplies{position:static;display:flex;gap:12px;justify-content:space-between;width:max-content;height:auto;padding:7px 10px;max-width:none}
.station-ui .supplies>div:not(.health-track){display:flex;flex-direction:row;gap:6px;margin:0;font:400 13px/1.1 var(--ui-font-display)}
.station-ui .supplies strong{font:600 16px/1.1 var(--ui-font-display)}
.station-ui .supplies .resource-detail{display:flex!important}
.station-ui .timer{padding:10px 14px;width:250px}
.station-ui .timer>span{font-size:14px}
.station-ui .timer strong{font-size:36px}
.station-ui .timer.alarm :is(strong,span){color:var(--ui-prep-worse)}
.station-ui .timer.alarm #time-fill{background:var(--ui-prep-worse)}
.station-ui .menu-body{padding:12px}
.station-ui .menu-body a{color:var(--ui-prep-ink)}
.station-ui .menu-body a:hover{color:var(--ui-prep-worse)}
.station-ui :is(.menu-body,.brief) :is(input,select){accent-color:var(--ui-prep-header)}
.station-ui .object-repair{width:220px;padding:10px 12px}
.station-ui .repair-caption{margin:-10px -12px 9px;padding:7px 10px;background:var(--ui-prep-header);color:var(--ui-prep-frame);font:400 16px/1.2 var(--ui-font-display)}
.station-ui .repair-caption strong{font-size:18px;font-weight:600}
.station-ui .object-repair-track{height:7px;border-radius:0;background:var(--ui-prep-cell)}
.station-ui .object-repair-track>div{background:var(--ui-prep-header)}
.station-ui .object-repair.paused .repair-caption{background:var(--ui-prep-worse);color:var(--ui-prep-frame)}
.station-ui .object-repair.paused .object-repair-track>div{background:var(--ui-prep-worse)}
.station-ui .squad-bubble{background:var(--ui-prep-panel);color:var(--ui-prep-ink);border:2px solid var(--ui-prep-frame);border-radius:2px;box-shadow:none}
.station-ui .squad-bubble::after{border-top-color:var(--ui-prep-frame)}
.station-ui #interaction::after{border-top-color:var(--ui-prep-frame)}
.station-ui #train-marker{background:var(--ui-prep-panel);border:2px solid var(--ui-prep-frame);color:var(--ui-prep-ink)}
.station-ui footer{color:var(--ui-prep-frame);justify-content:flex-end}
.station-ui :is(.keys,.squad-label,.keys kbd){color:var(--ui-prep-frame)}
.station-ui #notice{max-width:min(430px,calc(100% - 32px))}
.station-world-view{transition:filter .16s ease-out}
.station-world-view.station-view-paused{filter:blur(5px) brightness(.6)}
.station-world-view.station-view-dead{filter:blur(7px) brightness(.42) saturate(.6)}
.station-state-wash{position:absolute;inset:0;z-index:7;pointer-events:none;display:none;background:color-mix(in srgb,var(--ui-bg) 30%,transparent)}
.station-paused .station-state-wash{display:block}
.station-dead .station-state-wash{display:block;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--ui-death-tint) 55%,transparent),color-mix(in srgb,var(--ui-death-tint) 94%,var(--ui-bg)))}
.station-pause{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;pointer-events:none;color:var(--ui-prep-frame)}
.station-pause h1{font:600 clamp(64px,10vw,104px)/1 var(--ui-font-display);letter-spacing:.035em;color:var(--ui-prep-frame);margin:0}
.station-pause .ui-button{min-width:180px;min-height:48px;font-size:22px;pointer-events:auto}
.station-pause p{font:400 15px/1.4 var(--ui-font-display);margin:0;color:var(--ui-prep-frame)}
.station-paused :is(.station-sidebar,.station-resources,.timer,footer,#notice,#train-marker,#minimap){opacity:.2}
.station-paused :is(.world-ui,#interaction,.touch){visibility:hidden!important;pointer-events:none!important}
.station-paused>header{z-index:9}
.station-dead :is(.station-sidebar,.station-resources,.timer,footer,#notice,#train-marker,#minimap,.touch,.world-ui,#interaction){visibility:hidden!important;pointer-events:none!important}
.station-dead>header{visibility:hidden!important}
.station-ui.station-dead #overlay{background:transparent}
.station-ui.station-dead #overlay>.brief{background:transparent;border:0;color:var(--ui-prep-frame);text-align:center}
.station-dead #result-title{font-size:clamp(54px,8vw,88px);color:var(--ui-prep-frame);line-height:1;margin-bottom:22px}
.station-dead #result-copy,.station-dead #overlay>.brief>a{color:var(--ui-prep-frame)}
@media(min-width:1101px){.station-ui .keys{position:absolute;left:0;bottom:108px;width:612px;max-width:612px;gap:6px 12px;font-size:11px}}
@media(max-width:1100px){.station-ui .keys{display:none}}
@media(min-width:701px) and (max-width:1100px){.station-ui #minimap{bottom:132px}}
@media(max-width:700px),(pointer:coarse){
 .station-ui>header{top:max(8px,env(safe-area-inset-top));left:12px;right:12px}
 .station-ui #pause{display:inline-flex;width:72px;min-width:72px;min-height:44px;padding:6px 10px;font-size:0}.station-ui #pause::after{content:attr(data-short-label);font-size:17px}
 .station-ui summary{width:60px;min-height:44px;font-size:17px}
 .station-ui .header-actions{gap:6px}
 .station-sidebar{top:auto;bottom:calc(116px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:auto;transform:none;width:min(396px,calc(100% - 24px))}
 .station-resources{top:calc(max(8px,env(safe-area-inset-top)) + 54px);left:12px}
 .station-squad{gap:6px}
 .ui-root .ui-member-card{display:block;position:relative;flex-basis:128px;width:128px;padding:4px}
 .ui-member-card .member-portrait{position:absolute;right:4px;top:3px;width:26px;height:28px;background:none}
 .ui-member-card .member-heading{min-height:28px;align-items:flex-start;padding-right:27px}
 .ui-member-card .member-heading>strong{font-size:12px;line-height:1.1}
 .ui-member-card .member-controlled{position:absolute;top:18px;left:4px;font-size:11px}
 .ui-member-card .member-health{margin:3px 0;gap:4px}
 .ui-member-card .member-hp{font-size:11px}
 .ui-member-card .member-weapon{gap:3px;height:18px}
 .ui-member-card .member-weapon-icon{width:19px;height:14px}
 .ui-member-card .member-ammo{font-size:16px}
 .ui-member-card .member-condition{height:12px;line-height:12px;font-size:11px}
 .shared-health-note{margin:3px 0 0}
 .station-ui .supplies{padding:5px 9px;gap:14px;justify-content:flex-start;width:max-content;max-width:100%}
 .station-ui .supplies>div:not(.health-track){flex-direction:row;gap:6px;font-size:13px}
 .station-ui .supplies strong{font-size:15px}
 .station-ui .timer{top:max(8px,env(safe-area-inset-top));left:12px;transform:none;width:calc(100% - 174px);height:44px;padding:5px 8px;gap:8px;align-items:center}
 .station-ui .timer>span{font-size:11px}.station-ui .timer strong{font-size:24px;line-height:1}.station-ui .timer .time-track{display:none}
 .station-ui #notice{top:auto;bottom:calc(224px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font-size:12px;padding:7px 10px}
 .station-ui #minimap{top:auto;bottom:calc(224px + env(safe-area-inset-bottom));right:12px;width:100px;height:100px}
 .station-ui .object-repair{width:196px}.station-ui .repair-caption{font-size:14px}
 .station-world-view.station-view-paused{filter:blur(3px) brightness(.6)}.station-world-view.station-view-dead{filter:blur(4px) brightness(.42) saturate(.6)}
 .station-pause p{font-size:14px}
}
@media(max-height:500px) and (min-width:560px) and (pointer:coarse){
 .station-sidebar{top:auto;bottom:calc(116px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:auto;transform:none;width:min(396px,calc(100% - 24px))}
 .station-squad{gap:6px}
 .station-ui .touch-actions{gap:6px}
 .station-ui .touch-actions .ui-button{width:44px;height:44px;min-height:44px;padding:0;font-size:14px}
 .station-ui #minimap{bottom:132px}
 .station-ui .timer{left:50%;transform:translateX(-50%);width:200px}
 .station-resources{top:calc(max(8px,env(safe-area-inset-top)) + 52px)}
}
@media(max-height:450px) and (min-width:560px) and (max-width:620px) and (pointer:coarse){
 .ui-member-card .member-heading>strong{font-size:11px}
 .ui-member-card .member-ammo{font-size:14px}
 .ui-member-card .member-weapon-icon{width:15px;height:13px}
}
@media(prefers-reduced-motion:reduce){.station-world-view{transition:none}}

.station-ui progress::-webkit-progress-value{background:var(--ui-prep-header)}
.station-ui progress::-moz-progress-bar{background:var(--ui-prep-header)}

.station-ui #touch-fire{background:var(--ui-prep-header);color:var(--ui-prep-frame);border-color:var(--ui-prep-selected)}
.station-ui #overlay>.brief>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;font-size:14px}
@media(max-width:700px),(pointer:coarse){.station-pause p{display:none}}
.market-finished :is(.station-sidebar,.station-resources){display:none}

@media(max-width:700px),(pointer:coarse){
 .station-ui .timer.alarm{flex-direction:column;justify-content:center;gap:0;padding:3px 8px}
 .station-ui .timer.alarm strong{font-size:18px!important;line-height:1}
}
