/* Readable, non-overlapping command panels. */
.ui-pictogram{width:28px;height:28px;display:inline-block;flex:0 0 auto;vertical-align:middle}
.compact #main-nav button{font-size:18px;letter-spacing:-.045em}
.compact #drawer p,.nomad-panel .n-note,.panel-note{font-size:15px;line-height:1.65;color:#bccbd8}
.nomad-panel h4{font-size:18px;line-height:1.4;font-weight:700}
.nomad-panel h4>small{font:500 13px/1.5 Manrope,system-ui;color:#bac7d6}
.nomad-panel button{font-size:14px;line-height:1.45;min-height:42px;padding:10px 13px}
.nomad-panel button small{font-size:12px;line-height:1.45}
.nomad-panel .n-hero p{font-size:15px;line-height:1.65}.n-hero h3{font-size:25px!important;font-weight:650}
#crew-panel .crew-card{grid-template-columns:78px minmax(0,1fr)!important;column-gap:15px!important;row-gap:14px!important;align-items:center;padding:16px 12px!important}
#crew-panel .crew-card>.crew-portrait{width:78px!important;min-width:78px!important;height:90px!important;grid-column:1;grid-row:1;margin:0;position:relative}
#crew-panel .crew-details{grid-column:2;grid-row:1;min-width:0;width:auto}
#crew-panel .crew-details h4{font-size:20px!important;line-height:1.45;margin-bottom:5px;overflow-wrap:anywhere}
#crew-panel .crew-details h4 small{display:block;margin:3px 0 0;font-size:13px;line-height:1.4}
#crew-panel .crew-details p{font-size:16px;line-height:1.55;margin:0 0 5px;overflow-wrap:anywhere}
#crew-panel .crew-details>small{font-size:14px;line-height:1.5}
#crew-panel .crew-card .n-card-actions{grid-column:1/-1!important;grid-row:2;display:flex;gap:7px;flex-wrap:wrap;margin:0!important}
#crew-panel .n-card-actions button{font-size:14px;line-height:1.4;padding:9px 11px;min-height:42px}
#crew-panel .crew-character>header b{font-size:19px}#crew-panel .crew-character>header small{font-size:13px}
#crew-panel .crew-filter{gap:6px}#crew-panel .crew-filter button{font-size:14px;padding:8px 10px}
#crew-panel .crew-seat{min-width:0;gap:8px;padding:10px;flex-wrap:wrap}#crew-panel .crew-seat>span{min-width:0;flex:1}#crew-panel .crew-seat b{font-size:15px}#crew-panel .crew-seat small{font-size:12px}
#crew-panel .crew-seat .crew-portrait.small{width:40px!important;min-width:40px!important;height:48px!important}
#crew-panel .crew-seat button{min-height:36px;font-size:13px;padding:6px 8px}
#crew-panel .crew-help summary,#crew-panel .crew-character summary{font-size:14px;line-height:1.6;padding:13px}
#crew-panel .crew-unowned{font-size:15px;line-height:1.5}
#reactor-panel .facility-card{grid-template-columns:90px minmax(0,1fr)!important;column-gap:13px!important;row-gap:10px!important;padding:18px 8px!important}
#reactor-panel .facility-index{width:90px;grid-row:1/3;align-self:center;font-size:12px!important;gap:8px}
#reactor-panel .facility-index>span{width:90px;height:78px;background:linear-gradient(150deg,#27384877,#101a2588);border:1px solid #71899b33;border-radius:8px;overflow:hidden}
#reactor-panel .facility-index .command-model{width:86px;height:74px;object-fit:contain}
#reactor-panel .facility-info{grid-column:2;min-width:0}
#reactor-panel .facility-info h4{font-size:18px!important}.facility-info h4 small{font-size:13px!important;display:inline-block;margin-left:4px}
#reactor-panel .facility-buy{grid-column:2;justify-self:start;min-width:116px;max-width:180px;min-height:42px!important;height:auto;gap:12px;padding:8px 13px!important;font-size:15px}
#reactor-panel .facility-buy small{font-size:13px!important;margin:0}.facility-info>small{font-size:13px!important}
.resource-summary30{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 18px}
.resource-summary30 button{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:12px 5px;border:1px solid #7c96a34d;background:#152532}
.resource-summary30 b{font-size:14px}.resource-summary30 small{font-size:11px!important;white-space:nowrap}.resource-summary30 .resource-pictogram{width:32px;height:34px}
.resource-guide30{max-width:480px}.resource-guide30 h2{font-size:25px;gap:10px}.resource-guide30 h2 svg{width:34px;height:36px}.resource-guide30 h3{font-size:18px;margin:22px 0 5px}.resource-guide30 p{font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.resource-journey{display:grid;grid-template-columns:1fr 14px 1fr 14px 1fr;align-items:center;gap:3px;padding:18px 4px;margin-top:15px;background:#1b2b3a;border:1px solid #8aa4b13b;border-radius:8px;text-align:center;color:#d7c29b}
.resource-journey>svg{width:45px;height:50px;margin:auto}.resource-journey img{width:100%;height:58px;object-fit:contain}.resource-route{display:block;text-align:center;font-size:14px;line-height:1.6;margin-top:12px;color:#d7e2eb}.resource-tip{padding:14px;border-left:3px solid #a5cfcb;background:#1a303955}.resource-current-rate{color:#cbbbed!important}
#quick-exploration{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:6px 0 8px;pointer-events:auto}
#quick-exploration button{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:7px 7px;background:#152432eb;color:#c9d7e2;border:1px solid #8098a84d;border-radius:6px;text-align:left}
#quick-exploration button.ready{border-color:#8bb7b0;color:#d5eae3;background:#19313aeb}
#quick-exploration button>span{min-width:0}#quick-exploration b{display:block;font-size:15px;line-height:1.35}#quick-exploration small{display:block;font-size:12px;line-height:1.35;color:#c8bda6;margin-top:2px;white-space:nowrap}
#quick-exploration button[aria-disabled=true]{color:#9faebe}#quick-exploration .ui-pictogram{width:24px;height:24px}
#discovery-status{display:flex;gap:6px;align-items:center;justify-content:center;width:100%;border:0;background:#183a3855;color:#b4e1cc;font-size:12px;line-height:1.4;padding:6px 4px;text-align:center;min-height:32px}
#discovery-status[hidden]{display:none}#discovery-status svg{width:20px;height:22px}#discovery-status small{color:#e5d6af;font-size:12px}
.compact.quiet-sheet #quick-exploration,.compact.quiet-sheet #discovery-status{display:none!important}
#world-repair{position:absolute;z-index:21;display:flex;align-items:center;gap:7px;transform:translate(-50%,-100%);padding:7px 10px;min-height:46px;border-radius:7px;border:1px solid #aad4c6;background:#122c30ee;color:#d4eee0;box-shadow:0 3px 14px #0008;pointer-events:auto;font-size:14px}
#world-repair[hidden]{display:none}#world-repair .ui-pictogram{width:23px;height:23px}#world-repair b,#world-repair small{display:block;line-height:1.35;white-space:nowrap}#world-repair small{font-size:12px;color:#efd6a5}#world-repair[aria-disabled=true]{border-color:#ce9f7f}
.compact #camera-reset .ui-pictogram{width:26px;height:26px;fill:none;stroke:#cbdadf}
.compact #camera-reset{color:#cbdadf;background:#182c37!important}
#radar-primary.scan-ready .radar-disc{animation:radar-ready30 1.4s ease-in-out infinite}#radar-primary.scan-ready b{color:#d1f6e5}
@keyframes radar-ready30{0%,100%{opacity:1;box-shadow:0 0 12px #b6e6d355}50%{opacity:.45;box-shadow:none}}
.under-fire{animation:under-fire30 .65s ease-in-out infinite!important;border-color:#ff7784!important}.card-alert{font-size:11px!important;color:#ff9da4!important}
@keyframes under-fire30{0%,100%{box-shadow:inset 0 0 0 1px #ff7784,0 0 6px #e24d5f44;background-color:#3d202acc}50%{box-shadow:none;background-color:#171f2d}}
#item-inventory>div{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:6px;padding:14px 8px}#item-inventory svg{grid-row:1/3;color:#d8c394}#item-inventory b{font-size:22px}#item-inventory span{font-size:13px;line-height:1.5}
.store-tools button{font-size:15px;line-height:1.5}.store-tools button>svg,#use-speedup>svg{margin-right:8px}.store-tools button>small{font-size:13px;line-height:1.5}
.quick-explore-options button{display:flex;flex-direction:column;align-items:center;gap:7px;background:#1b303e!important;padding:18px 8px!important}.quick-explore-options b{font-size:17px;line-height:1.4}.quick-explore-options small{font-size:14px!important;margin:0!important}.quick-explore-options svg{width:40px;height:40px;color:#d9c89f}
.discovery-card{display:flex;align-items:center;gap:14px;padding:18px;background:#183b354d;border:1px solid #a0cfb74d;border-radius:8px;margin:18px 0}.discovery-card>svg{width:42px;height:44px;color:#b3dfcc}.discovery-card b{font-size:19px}.discovery-card p{margin:6px 0;font-size:16px}.discovery-card small{font-size:14px;color:#d9c997}
.exploration-rewards{display:flex;flex-wrap:wrap;gap:10px 16px;margin:15px 0}.exploration-rewards span{display:inline-flex;align-items:center;gap:5px;font-size:18px;color:#e6dbc3}.exploration-report>small{font-size:13px!important;line-height:1.6}
.mother-mini.under-fire{border-color:#ff7784!important}#unit-panel .unit-select-label{font-size:15px}.compact[data-camera=follow] #camera-target{display:block}
@media(max-width:380px){.compact #main-nav button{font-size:17px}#quick-exploration b{font-size:14px}#quick-exploration small{font-size:11px}.resource-summary30 small{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){#radar-primary.scan-ready .radar-disc,.under-fire{animation:none!important;box-shadow:inset 0 0 0 2px #ff7784}}
body.reduced-motion #radar-primary.scan-ready .radar-disc{animation:none!important;opacity:1}
.facility-heading30{padding:4px 0 10px;border-bottom:1px solid #99adbf30}.facility-heading30 h3{font-size:23px;line-height:1.4;margin:6px 0 9px}.facility-heading30 p{font-size:15px!important;line-height:1.6;margin:0}
.resource-summary30 button{padding:9px 4px;gap:5px}.resource-summary30 .resource-pictogram{width:28px;height:30px}
#echo-advisory p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}#echo-advisory{max-height:150px}
