/* New management tools retain the existing in-world window layout. */
.world-status button{background:transparent;border:0;padding:8px 0;color:inherit;font:inherit;cursor:pointer}.world-status button:hover{text-decoration:underline}.world-status{max-width:calc(100vw - 100px)}
.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;margin:0;min-width:0}.theme-choice{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:6px;cursor:pointer;background:var(--bg)}.theme-choice:has(input:checked){border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}.theme-choice input{width:17px;height:17px;margin:0;accent-color:var(--blue);flex:none}.theme-choice strong{display:block;color:var(--text);font-size:13px}.theme-choice small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.7}.theme-swatch{height:35px;width:42px;flex:none;margin-left:auto;border-radius:4px;border:1px solid #8da4ae70}.theme-swatch.light{background:linear-gradient(145deg,#d6e8ed 50%,#a8cbbb 51%)}.theme-swatch.dark{background:linear-gradient(145deg,#12364b 50%,#315e66 51%)}
.company-grid,.disaster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.company-card{padding:20px;min-width:0}.company-card.selected{border-color:var(--blue)}.company-title{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:10px}.company-card h2{font-size:19px;overflow-wrap:anywhere;margin:17px 0 8px}.company-card>p{font-size:11px;color:var(--muted);margin-bottom:18px}.company-card>.btn{margin-top:18px;width:100%}.company-current{display:block;font-size:10px;color:var(--muted);margin-top:22px}.group-summary{display:flex;gap:30px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:6px;margin-bottom:20px;flex-wrap:wrap}.group-summary span{font-size:11px;color:var(--muted)}.group-summary strong{display:block;color:var(--text);font-size:23px;margin-top:10px}.disaster-card{border:1px solid var(--line);border-radius:5px;padding:18px;background:var(--bg);min-width:0}.disaster-card>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.disaster-card time{font-size:10px;color:var(--muted)}.disaster-card h3{font-size:14px;margin:17px 0 12px;line-height:1.7}.disaster-card p{font-size:11px;color:var(--muted);line-height:1.9;margin:6px 0;overflow-wrap:anywhere}.disaster-card a{display:inline-block;font-size:11px;color:var(--blue);margin-top:12px;text-decoration:underline}.company-card .metric-line{gap:8px}
html{color-scheme:dark}html[data-theme=light]{color-scheme:light}
html[data-theme=light] .game-mode{--text:#1d3c4d;--muted:#527081;--blue:#08748a;--line:#7f9ba440;--bg:#edf3f5;--surface:#f9fcfd;--green:#177454;--red:#b34436;background:#d8e8ee;color:var(--text)}
html[data-theme=light] .game-shell,html[data-theme=light] .game-stage{background:#d3e6ec}
html[data-theme=light] .world-vignette{background:linear-gradient(180deg,#d6e7ed55,transparent 25%,transparent 65%,#d6e7ed55)}
html[data-theme=light] :is(.game-hud,.game-panel,.game-window,.game-dock,.world-tools,.world-search,.game-news,.world-bottom){background:#f5faf8f5;border-color:#7698a359;box-shadow:0 8px 24px #3f667a24;color:#244757}
html[data-theme=light] :is(.game-window-header,.game-mode .panel-head,.game-mode .modal-header){background:linear-gradient(#f8fbfc,#e7eff2);border-color:#90aab540}
html[data-theme=light] .management-shade{background:#537b8e30}
html[data-theme=light] .game-mode :is(.panel,.fleet-card,.settings-item,.kpis,.objective-tile){background:#f8fbfc;border-color:#9bb3bd60;box-shadow:0 3px 12px #54798612}
html[data-theme=light] .game-mode :is(dialog,.modal-content,.welcome-form,.cabin-summary,.studio-brand,.panel-footer,.seat-preview){background:#f2f7f9;color:#1d3c4d;border-color:#98b1bd55}
html[data-theme=light] .game-mode :is(.modal-actions,.welcome-form .modal-actions,.view-buttons){background:#e6eff3;border-color:#99afb94d}
html[data-theme=light] .game-mode dialog::backdrop{background:#40607866}
html[data-theme=light] :is(.commander,.hud-resource,.game-window-header>div,.mission-tracker h2,.mission-main h3,.inspector-head h2,.airport-city,.inspector-fare strong,.route-details b,.sim-calendar strong,.network-summary strong,.network-route-list button,.dock-item.active,.game-news>p){color:#1d3c4d}
html[data-theme=light] .game-mode :is(h1,h2,h3,.kpi-value,.fleet-card-stats strong,.metric-line strong,.studio-brand h2,.price,.briefing-stats strong,.briefing-balance strong,.turn-briefing h2,.modal-header h2,.finance-line.total span){color:#1d3c4d}
html[data-theme=light] :is(.hud-resource.cash strong,.mission-progress strong,.mission-checklist strong,.objective-reward strong,.briefing-balance strong){color:#805a1d}
html[data-theme=light] :is(.commander small,.commander small i,.hud-resource small,.hud-resource em,.hud-resource>.icon,.game-kicker,.mission-main p,.mission-progress,.mission-checklist button,.mission-checklist small,.mission-tracker footer button,.inspector-sub,.inspector-plane>span,.inspector-plane small,.route-active span,.inspector-metrics small,.inspector-fare small,.route-details>span,.airport-name,.world-legend,.world-status,.world-legend span,.game-news>span,.sim-calendar small,.world-clock,.game-window-header small,.dock-item){color:#4a6c7c;text-shadow:none}
html[data-theme=light] .game-mode :is(.muted,.page-heading .eyebrow,.page-heading p,.panel-head p,.form-help,.kpi-label,.kpi-meta,.fleet-card-stats small,.model-maker,.market-status,.price small,.finance-line span,.finance-subtitle,.metric-line span:first-child,.settings-item p,.rival-card p,.log-item p,.log-item time,.ledger-item small,.service-option p,.duty-item p,.color-field,.color-value,.studio-instruction,.studio-overlay p,.studio-brand p,.seat-label,.network-world-link,.objective-tile p,.objective-tile small,.briefing-news,.briefing-tip,.briefing-stats small,.briefing-stats em,.briefing-balance small,.turn-briefing>p,.about-text,.sort-control,.market-step,.market-breadcrumb>span,.fleet-reference-price){color:#527081}
html[data-theme=light] .game-mode :is(input,select){background:#fff;border-color:#8ba6b3;color:#244556}
html[data-theme=light] .game-mode :is(input,select)::placeholder{color:#6a8490}
html[data-theme=light] .game-mode label{color:#36596a}
html[data-theme=light] .world-search input{color:#244556!important;background:transparent!important}
html[data-theme=light] .world-search input::placeholder{color:#527081}
html[data-theme=light] .game-mode :is(.btn,.btn.outline,.btn.ghost),html[data-theme=light] :is(.game-button,.world-tools button,.inspector-fare button,.world-search form>button,.game-window-header>button){background:#e4eef2;color:#31596c;border-color:#9bb4c369}
html[data-theme=light] .game-mode .btn:hover,html[data-theme=light] .game-button:hover{background:#d4e7ed;border-color:#6d94a6}
html[data-theme=light] .game-mode .btn.primary,html[data-theme=light] .game-button.gold{background:linear-gradient(#f3d69f,#e7c07e);color:#49371b;border-color:#c7a15d}
html[data-theme=light] .game-mode .btn.danger{background:#f7e6e1;color:#a13e30;border-color:#cc9e93}
html[data-theme=light] .game-mode :is(.note,.service-policy-note,.route-service-editor){background:#e8f2f5;color:#416879;border-color:#97b6c24d}
html[data-theme=light] .game-mode .note.amber{background:#f6eedb;color:#795a27;border-color:#c9b68060}
html[data-theme=light] .game-mode :is(th,.tabs){background:#e5eef2;color:#527081;border-color:#a4bac554}
html[data-theme=light] .game-mode td{color:#294a5b;border-color:#a5bdc53d}
html[data-theme=light] .game-mode td small{color:#527081}
html[data-theme=light] .game-mode .route-table tbody tr:hover{background:#eaf2f5}
html[data-theme=light] .game-mode .tab{color:#527081}html[data-theme=light] .game-mode .tab.active{background:#cfe6ed;color:#165a6d;box-shadow:none}
html[data-theme=light] .game-mode :is(.service-option,.duty-item,.logo-choice,.manufacturer-card){background:#f2f7f9;border-color:#9cb5c05c;color:#315b6d}
html[data-theme=light] .game-mode :is(.service-option.active,.logo-choice.active){background:#d8edf0;border-color:#4a99a4;color:#175d6a}
html[data-theme=light] .game-mode .badge{color:#276747;background:#e4f3eb;border-color:#97bda64a}
html[data-theme=light] .game-mode .badge.gray{color:#526f80;background:#e7eef2;border-color:#9db3c059}
html[data-theme=light] .game-mode .badge.blue{color:#20687d;background:#e3f0f5;border-color:#9bbdc958}
html[data-theme=light] .game-mode .badge.amber{color:#7f5e23;background:#f7edda;border-color:#c5ae7a60}
html[data-theme=light] .game-mode .badge.red{color:#a14436;background:#f8e6e1;border-color:#c9998b55}
html[data-theme=light] .game-mode :is(.positive,.kpi-value.positive,.metric-line strong.positive,.briefing-stats strong.positive){color:var(--green)}html[data-theme=light] .game-mode :is(.negative,.kpi-value.negative,.metric-line strong.negative,.briefing-stats strong.negative){color:var(--red)}
html[data-theme=light] .game-mode .plane-art{background:linear-gradient(140deg,#d7e6eb,#c5d8e0)}
html[data-theme=light] .game-mode .welcome-aside{background:linear-gradient(150deg,#d9e9e8,#b7d2d4);border-color:#8caeb650}
html[data-theme=light] .game-mode .welcome-aside h2{color:#244b56}html[data-theme=light] .game-mode .welcome-aside p{color:#456c7b}
html[data-theme=light] .game-mode .studio-canvas{background:radial-gradient(ellipse,#e7eff1,#b6cbd5)}
html[data-theme=light] .game-mode .cabin-outline{background:#e0edf2;border-color:#99b5c2}
html[data-theme=light] :is(.world-tools button.active,.game-button.active,.dock-item.active){background:#cce7ec;color:#155c70;border-color:#78a6b8}
html[data-theme=light] .airport-pin{color:#355a65;text-shadow:0 1px 3px #eef8f6,0 0 6px #eef8f6}
html[data-theme=light] .airport-pin b{color:#254c53}html[data-theme=light] .airport-pin.own :is(b,span){color:#075c6b}
html[data-theme=light] .airport-pin.hub,html[data-theme=light] .airport-pin.selected{background:#f1f8ebef;color:#41573a;border-color:#7da59a;text-shadow:none}
html[data-theme=light] .airport-pin.selected b,html[data-theme=light] .airport-pin.hub .hub-crown{color:#76601f}
html[data-theme=light] .airport-pin:hover{background:#ecf6ef;color:#164b5a}
html[data-theme=light] .game-mode :is(.updates-preview,.release-entry,.account-status){background:#edf4f7;border-color:#9cb7c354}
html[data-theme=light] .game-mode :is(.release-title strong,.updates-preview h3,.release-version,.account-details strong){color:#244b5c}
html[data-theme=light] .game-mode :is(.release-content,.release-content p,.release-group li,.release-title time,.updates-preview p,.updates-preview-meta,.updates-intro,.updates-footer,.account-note,.account-status p){color:#527081}
html[data-theme=light] .game-mode #toast{background:#eef8f9;color:#244c5c;border-color:#7ca6b8}
html[data-theme=light] .game-mode #toast.error,html[data-theme=light] .game-mode .modal-error{background:#f7e5e0;color:#a13f31;border-color:#c38f80}
html[data-theme=light] .network-restore{background:#f3f9f8!important;border-color:#7ba1ae!important}
@media(max-width:1000px){.company-grid,.disaster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.theme-options,.company-grid,.disaster-grid{grid-template-columns:1fr}.theme-choice{padding:13px}.company-card{padding:16px}.group-summary{gap:20px;padding:15px}.group-summary strong{font-size:18px}.world-status{top:101px;left:14px;gap:7px;font-size:9px}.world-status button{padding:4px 0}.disaster-card{padding:14px}.theme-options{gap:10px}}
html[data-theme=light] .simulation-controls{background:#f5faf8f5;border-color:#8da9b66b;box-shadow:0 5px 18px #3f667a26}
html[data-theme=light] :is(.speed-buttons>.game-button,.turn-controls select){background:#e2edf1;color:#31596c;border-color:#94b0be69}
html[data-theme=light] .speed-buttons>.game-button.active{background:#c9e5ea;color:#145d70;border-color:#75a5b5}
html[data-theme=light] :is(.sim-calendar small span,.world-location b,.world-location small,.world-location small span,.compass-mark){color:#486b7d}
html[data-theme=light] .sim-day-progress{background:#bdd3db}
html[data-theme=light] .game-mode :is(.account-status,.google-button-status,.account-storage-note,.account-privacy,.account-identity p){color:#486b7d}

@media(max-width:640px){.world-status button{min-height:32px;padding:5px 0}.world-search{top:137px}.world-tools{top:137px}.mission-tracker{top:181px}}
/* Keep the light HUD readable even for the neutral white emblem. */
html[data-theme=light] .commander>.logo-symbol{fill:#28697e;background:#cde2e9}
html[data-theme=light] .mission-tracker>footer{background:#e3eef1;border-color:#a4bdc34d}
html[data-theme=light] .route-active{color:#256c55}
.game-mode .btn{transition:transform .15s,border-color .15s}.game-button{transition:border-color .15s,transform .15s}
@media(max-width:640px){.mission-tracker{width:min(183px,calc(50vw - 12px))}.network-restore{top:181px;right:58px;width:calc(50vw - 75px);max-width:130px;padding:8px;font-size:9px}}
/* Route frequency stays beside its bounds and four direct actions. */
.frequency-control{min-width:0}.frequency-input{position:relative}.game-mode .frequency-input input{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;height:46px;padding-right:105px}.frequency-input>span{position:absolute;right:30px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:11px;color:var(--muted)}.frequency-limits{display:flex;justify-content:space-between;gap:16px;margin:11px 0 10px;font-size:11px;color:var(--muted)}.frequency-limits strong{color:var(--text);font-size:13px;margin-left:5px}.frequency-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-mode .frequency-actions>.btn{min-height:44px;padding:8px;font-size:13px}.game-mode .frequency-actions>.btn:disabled{opacity:.4;cursor:default}.game-mode .frequency-usage{margin:10px 0 0;line-height:1.8;min-height:20px}.frequency-unavailable .frequency-limits strong,.game-mode .frequency-unavailable .frequency-usage{color:var(--red)}
@media(max-width:640px){.frequency-actions{gap:6px}.game-mode .frequency-actions>.btn{min-height:44px;font-size:12px}.game-mode .frequency-input input{font-size:18px}.frequency-limits{font-size:11px}}
/* Mobile route cards preserve a single accessible table and its leading settings action. */
.management-header-actions{display:flex;align-items:center;gap:8px}.management-header-actions>button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;padding:8px}.management-header-actions>button[hidden]{display:none}.management-header-actions>button>.icon{width:18px;height:18px}.management-header-actions>.management-refresh{font-size:10px;padding:8px 12px;color:var(--blue);max-width:150px}.mission-header-actions{display:flex;flex:none;gap:0}.mission-tracker .mission-header-actions>button{min-width:44px;min-height:44px;padding:10px}.mission-header-actions>button[data-action=hide-goals]>.icon{color:var(--muted)}.mission-restore{position:absolute;left:24px;top:140px;min-height:44px}.game-mode .modal-header{position:sticky;top:0;z-index:3}.route-table td[data-label]::before{display:none}
@media(max-width:760px){
 .route-management .page-heading{display:block;margin-bottom:18px}.route-management .heading-actions{margin-top:16px;display:flex}.game-mode .route-management .heading-actions>.btn{width:100%;min-height:44px;font-size:13px}.route-management .page-heading h1{font-size:23px}.game-mode .route-management .page-heading p{font-size:12px;line-height:1.8}
 .route-management>.panel:first-of-type .panel-head{flex-wrap:wrap;gap:12px}.game-mode .route-management .panel-head>.btn{min-height:44px}.route-management>.panel:last-of-type{background:transparent;border:0;box-shadow:none;overflow:visible}.route-management>.panel:last-of-type>.panel-head{border:1px solid var(--line);border-radius:6px;margin-bottom:12px;flex-wrap:wrap;gap:12px;padding:14px}.game-mode .route-management .panel-head h2{font-size:15px}.game-mode .route-management .panel-head p{font-size:11px;line-height:1.7}.route-management .sort-control{width:100%;justify-content:space-between}.route-management .sort-control select{min-height:44px;font-size:12px;flex:1;max-width:210px}
 .route-list-scroll{overflow:visible}.game-mode .route-table{display:block;min-width:0;width:100%;table-layout:auto}.route-table thead{display:none}.route-table tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.game-mode .route-table .route-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px #071c2e12}.game-mode .route-table tbody tr:hover{background:var(--surface)}
 .game-mode .route-table td{display:block;padding:13px 0;min-width:0;border:0;font-size:14px;line-height:1.7;white-space:normal;color:var(--text)}.game-mode .route-table td small{font-size:11px;line-height:1.7;margin-top:3px;overflow-wrap:anywhere;color:var(--muted)}.route-table td[data-label]::before{display:block;content:attr(data-label);font-size:11px;color:var(--muted);margin-bottom:5px;font-weight:400}.game-mode .route-table .route-name-cell{grid-column:1;grid-row:1;padding-top:0}.route-name-cell>strong{font-size:19px;white-space:nowrap;letter-spacing:-.4px}.route-name-cell .icon{width:13px;height:13px;margin:0 2px}.game-mode .route-table .route-settings-cell{grid-row:1;grid-column:2;display:flex;justify-content:flex-end;align-items:flex-start;padding-top:0}.game-mode .route-settings-button{min-height:44px;min-width:72px;font-size:13px}
 .game-mode .route-table .route-plane-cell{grid-column:1/-1;border-top:1px solid var(--line);padding:12px 0}.route-table .route-plane-cell small{display:inline;margin-left:10px}.route-table .route-plane-cell::before{display:inline;margin-right:10px}.game-mode .route-table td:nth-child(4),.game-mode .route-table td:nth-child(5),.game-mode .route-table td:nth-child(6),.game-mode .route-table td:nth-child(7){border-top:1px solid var(--line)}
 .game-mode .route-table .route-profit-cell{grid-column:1/-1;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 0}.route-table .route-profit-cell::before{margin:0}.route-table .route-profit-cell>strong{font-size:21px;font-variant-numeric:tabular-nums}.game-mode .route-table .route-service-cell{grid-column:1/-1;border-top:1px solid var(--line);padding-bottom:0}.game-mode .route-table .route-service-cell .badge{font-size:10px}.game-mode .route-table .route-service-cell>small{font-size:12px;margin:8px 0 12px}.game-mode .route-table .route-service-cell>.btn{min-height:44px;width:100%;font-size:12px;border:1px solid var(--line)}
 .game-mode .route-table .route-row td.positive{color:var(--green)}.game-mode .route-table .route-row td.negative{color:var(--red)}.route-table tr:not(.route-row){display:block}.game-mode .route-table td.empty{font-size:13px;padding:25px}
}
@media(max-width:640px){.mission-restore{left:12px;top:181px;font-size:10px;padding:10px 12px}.mission-tracker>header{padding:6px 8px 6px 11px}.mission-tracker>header h2{font-size:11px}.mission-header-actions{margin-right:-4px}.mission-tracker .mission-header-actions>button{width:44px;min-width:44px;min-height:44px;padding:8px}.mission-tracker .mission-header-actions>button>.icon{width:14px;height:14px}.management-header-actions>.management-refresh{font-size:9px;max-width:122px}.game-window-header .management-header-actions{gap:5px}}
@media(max-width:760px){
 .route-management .page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.route-management .page-heading .eyebrow,.game-mode .route-management .page-heading p{display:none}.route-management .heading-actions{margin:0;flex:none}.game-mode .route-management .heading-actions>.btn{width:auto;font-size:12px;padding:9px 12px}.route-management .page-heading h1{font-size:21px}.route-management .network-world-link{display:none}.route-management>.panel:last-of-type{margin-top:14px}.route-management>.panel:last-of-type>.panel-head{padding:12px;margin-bottom:12px;gap:10px}.route-management>.panel:last-of-type>.panel-head p{display:none}
}

/* Map tools sit below contextual windows so short screens retain a usable close button. */
#game-map-tools{position:absolute;inset:0;z-index:4;pointer-events:none}#game-map-tools>.world-tools{pointer-events:auto}
@media(max-width:360px){.simulation-controls{padding:7px 8px;gap:6px}.sim-calendar{width:70px;padding-right:5px;flex:none}.sim-calendar>strong{font-size:10px}.speed-buttons{gap:3px}.speed-buttons>.game-button{min-width:19px;padding:6px 2px;font-size:8px}.speed-buttons>.sim-play{min-width:24px;margin-right:0;padding:6px 4px}.turn-controls{padding-left:5px;gap:4px}.turn-controls select{width:38px}.turn-controls>.game-button{white-space:nowrap;padding:7px 6px;font-size:9px}.turn-controls>.game-button>.icon{display:none}}

/* Compact management commands: native disclosures keep controls and drafts mounted. */
body.game-mode .command-section{margin:12px 0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);overflow:clip;padding:0}
body.game-mode .command-section>summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:5px 12px;min-height:64px;padding:15px 17px;cursor:pointer;list-style:none;touch-action:manipulation;user-select:none}
.command-section>summary::-webkit-details-marker{display:none}.command-section>summary::after{content:'';grid-column:2;grid-row:1/3;justify-self:center;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);opacity:.7}.command-section[open]>summary::after{transform:rotate(225deg)}
.disclosure-title{grid-column:1;font-size:14px;font-weight:650;line-height:1.45}.disclosure-summary{grid-column:1;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.command-section>summary:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}.command-section[open]>summary{border-bottom:1px solid var(--line)}.command-section>.disclosure-body{padding:17px;min-width:0}.command-section .command-section{box-shadow:none}
body.game-mode .panel-fold{margin:15px 0}body.game-mode .panel-fold>.panel{margin:0;border:0;box-shadow:none;border-radius:0}body.game-mode .panel-fold>.panel>.panel-head>div:first-child{display:none}body.game-mode .panel-fold>.panel>.panel-head{min-height:0;padding-block:10px}body.game-mode .panel-fold>.panel>.panel-head:has(>div:only-child){display:none}
body.game-mode .modal-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}body.game-mode .modal-header:has(.route-header-save){gap:12px}body.game-mode .modal-header:has(.route-header-save)>h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}body.game-mode .route-header-save{min-height:44px;min-width:70px;font-size:14px;padding:10px 17px}body.game-mode .modal-header-actions>[data-close]{flex-shrink:0;min-height:44px;min-width:44px}
.route-editor-status{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-bottom:16px}.route-editor-status>span:last-child:not(.badge){color:var(--muted);font-size:12px;line-height:1.6}body.game-mode .compact-route-form>.command-section{margin:10px 0}.compact-route-form>.command-section>.disclosure-body>.form-grid{gap:16px}.compact-route-form .frequency-control{margin:0}.compact-route-form .fare-policy-editor h3{margin:0}.compact-route-form .fare-policy-editor p{font-size:12px}.compact-route-form .route-service-heading{margin-bottom:13px}
body.game-mode .route-service-fields{display:block;min-width:0;border:0;padding:0;margin:16px 0}body.game-mode .route-service-fields[hidden]{display:none}body.game-mode .route-service-fields .route-duty-fields{margin:18px 0 0}body.game-mode .route-service-fields>.command-section{margin:9px 0}.route-service-summary{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.service-extra-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.service-extra-options>label{display:flex;gap:10px;align-items:center;margin:0;min-height:64px;padding:12px;border:1px solid var(--line);border-radius:7px;cursor:pointer;color:var(--text);font-size:12px;font-weight:500}.service-extra-options>label:has(input:checked){border-color:var(--blue);background:var(--surface2)}.service-extra-options input{flex-shrink:0;margin:0}.service-extra-options span{min-width:0;line-height:1.55}.service-extra-options small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.service-overview{margin-bottom:18px}.service-overview strong{font-size:15px}.service-overview p{color:var(--muted);font-size:12px;line-height:1.7;margin-top:7px}.service-grid .service-option{min-height:110px}.service-grid .service-option:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.cabin-setting-groups{min-width:0}.cabin-setting-groups .form-grid{display:block}
@media(max-width:640px){body.game-mode .modal-header:has(.route-header-save){padding:12px 13px;gap:8px}body.game-mode .modal-header:has(.route-header-save)>h2{font-size:15px}body.game-mode .modal-header-actions{gap:5px}body.game-mode .route-header-save{min-width:62px;padding:9px 13px;font-size:13px}body.game-mode .command-section>summary{padding:13px;min-height:66px;gap:4px 10px}.command-section>.disclosure-body{padding:14px}.disclosure-title{font-size:13px}.disclosure-summary{font-size:12px}.service-extra-options{grid-template-columns:1fr}.compact-route-form .form-grid{grid-template-columns:1fr}.route-service-summary{font-size:12px}.game-mode .panel-fold>.panel>.panel-body{padding:14px}.game-mode .service-option p{font-size:12px}.game-mode .service-option h3{font-size:13px}.game-mode .service-option{padding:14px}.route-editor-status{margin-bottom:13px}}

/* Route terminal choices share the existing command form and folded route name. */
.route-terminal-editor{min-width:0}.route-terminal-editor label{overflow-wrap:anywhere}.route-terminal-editor select{min-width:0;width:100%;min-height:44px}.route-terminal-editor .form-help{margin:6px 0 0}.owned-route-airport-names .route-terminal-label{display:block;font-size:10px;font-weight:400;line-height:1.5;color:var(--muted);white-space:normal}

/* Shared-aircraft reservation figures remain readable beside the quick controls. */
.game-mode .frequency-shared .frequency-usage{font-size:12px;color:var(--text);line-height:1.65}.game-mode .fleet-schedule{font-size:12px;line-height:1.7;color:var(--text);margin:0 0 9px}.game-window[data-screen="fleet"] .toolbar>.tabs{flex-wrap:wrap;max-width:100%}

#geography-language{min-height:44px;max-width:360px} [data-geography-language-status]{font-size:12px}

/* Demand stays inside the existing inspector scroll area, with stable numbers. */
.airport-demand{margin:16px 0;padding-top:14px;border-top:1px solid var(--border);min-width:0}.airport-demand strong{font-variant-numeric:tabular-nums}.airport-demand .inspector-metrics{margin:0 0 12px}.airport-demand .form-help,#new-difficulty-help,#difficulty-help{overflow-wrap:anywhere;line-height:1.7}#new-difficulty,#difficulty{min-height:44px}

.economic-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.economic-kpis>div{min-width:0}.economic-kpis small{display:block;color:var(--muted);font-size:12px}.economic-kpis strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.economic-rates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}.economic-rates>div{display:flex;flex-wrap:wrap;min-width:0;justify-content:space-between;gap:8px;font-size:12px}.economic-event{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:8px}.economic-event p{font-size:12px;color:var(--muted)}.equity-card{padding:18px;min-width:0}.equity-card h2{overflow-wrap:anywhere}.equity-card .row{margin-top:14px}.order-quantity-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.order-quantity-row input{width:90px;flex:1;min-width:64px}.order-quantity-row button,#stock-trade-form select,#stock-trade-form input{min-height:44px}.economic-panel .panel-head{flex-wrap:wrap;gap:10px}
.game-window[data-screen="finance"] .heading-actions{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:8px}
