/* OMNI desktop readability: real font sizes, not a scaled/blurred game surface. */
:root {
  --v050-text-min: calc(14px * var(--ui-text-scale, 1));
  --v050-text-small: calc(16px * var(--ui-text-scale, 1));
  --v050-text-body: calc(17px * var(--ui-text-scale, 1));
  --v050-text-label: calc(17px * var(--ui-text-scale, 1));
  --v050-secondary: #c6cbca;
  --v050-muted: #b7bebc;
  --v050-quiet: #a9b1ae;
}
#graylineApp :is(button,select,input,label,p,small,strong,span,em,.hud-kicker,.objective-row,.selection-title,.selection-subtitle,.command-context-copy,.title-foot,.setting-help) {
  font-family: "DejaVu Sans", Arial, sans-serif;
  letter-spacing: .02em;
  text-shadow: none !important;
}
#graylineApp :is(.top-hud,.bottom-hud,.selection-copy,.command-context-bar,.logistics-strip,.event-rail,.hud-panel) {
  text-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#graylineApp :is(.hud-panel,.logistics-strip,.event-rail) { background-color: rgba(5,8,7,.97); }
#graylineApp :is(.objective-row,.selection-stats strong,.overview-card strong,.command-empty-state strong,.command-tooltip strong) {
  font-size: var(--v050-text-small) !important;line-height:1.35 !important;
}
#graylineApp :is(.command-reason,.command-role,.toast span,.title-foot,.title-tagline,.settings-note,.settings-nav button span,.setting-help,.input-reference span,.strategic-map-legend,.index-card p,.index-meta,.index-status,.index-faction,.index-category,.rando-summary) {
  font-size: var(--v050-text-min) !important;line-height:1.4 !important;color:#c0c7c4 !important;
}
#graylineApp :is(.hud-kicker,.minimap-meta,.resource-item small,.resource-time small,.resource-item em,.logistics-strip small,.selection-subtitle,.overview-card small,.overview-card span,.selection-stats span,.selection-stats small) {font-weight:500;}
#graylineApp :is(.command-tabs button,.command-page-tools button,.logistics-strip button,.minimap-tools button,.queue-item button,.index-card button,.bookmark-list button) {
  font-size:var(--v050-text-small) !important;min-height:36px;color:#d0d6d3;
}
#graylineApp :is(.resource-item strong,.resource-time strong) {font-size:calc(22px * var(--ui-text-scale,1)) !important;font-weight:700;}
#graylineApp :is(#supplyFlowDetail,#powerDetail) {color:#c6cbca !important;max-width:none;white-space:normal;}
#graylineApp :is(.command-context-copy strong,.command-context-copy small,.commander-ribbon-copy strong,.commander-ribbon-copy small) {
  font-size:var(--v050-text-min) !important;line-height:1.35 !important;white-space:normal;
}
#graylineApp :is(.commander-ribbon-state,#commanderRibbonCancel) {font-size:var(--v050-text-min) !important;}
#graylineApp .command-button {text-shadow:none !important;}
#graylineApp .command-button :is(.command-copy strong,span:not(.command-icon):not(.command-cost)) {font-size:var(--v050-text-small) !important;white-space:normal;line-height:1.25 !important;}
#graylineApp .command-button :is(.command-cost,.command-reason,.command-role) {font-size:var(--v050-text-min) !important;line-height:1.35 !important;}
#graylineApp .command-button:disabled,
#graylineApp .command-button[aria-disabled="true"] {opacity:1;background:#080b09 !important;}
#graylineApp .command-button:disabled :is(span,strong,small),
#graylineApp .command-button[aria-disabled="true"] :is(span,strong,small) {color:#a0a8a4 !important;}
#graylineApp .command-copy strong {overflow:visible;text-overflow:clip;}
#graylineApp .command-button .command-reason {max-height:none;}
#graylineApp .command-tabs button[aria-selected="true"] {color:#fff;background:#24302a;}
#graylineApp :is(.settings-section > header p,.settings-panel > header small,.settings-section .setting-row small,.settings-nav button span,.settings-note,.settings-footer,.help-grid p,.help-grid li) {color:#c3cbc6 !important;font-size:var(--v050-text-min) !important;line-height:1.5;}
#graylineApp .settings-section .setting-row {min-height:78px;}
#graylineApp .resource-item em {max-width:none;}
html:root {--deck-height:calc(340px * max(1,var(--ui-text-scale,1)));--deck-map-width:330px;--deck-command-width:600px;}
html:root.interface-large,html:root.interface-compact {--deck-height:calc(340px * max(1,var(--ui-text-scale,1)));--deck-map-width:330px;--deck-command-width:600px;}
html:root.research-deck-expanded,html:root.command-mode-active:not(.research-deck-expanded),html:root.command-mode-active.research-deck-expanded {--deck-height:calc(400px * max(1,var(--ui-text-scale,1)));}
.bottom-hud {grid-template-columns:var(--deck-map-width) minmax(0,1fr) var(--deck-command-width);}
.command-panel {grid-template-rows:48px minmax(72px,auto) auto minmax(0,1fr) !important;}
.command-context-copy {min-width:0;}
.command-grid {overflow:auto;}
.command-grid.research-readable {overflow:auto !important;}
.command-grid.research-readable .command-button {min-height:120px !important;}
.selection-panel {grid-template-columns:150px minmax(0,1fr) minmax(160px,.7fr);}
.selection-panel.tactical-overview {grid-template-columns:150px minmax(0,1fr);}
.selection-panel.tactical-overview .tactical-overview {grid-template-columns:repeat(2,minmax(0,1fr));}
.selection-panel.tactical-overview .selection-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
.minimap-meta {flex-wrap:wrap;gap:6px;}
.top-hud {grid-template-columns:minmax(360px,510px) minmax(0,1fr);right:70px;}
.objective-panel,.resource-panel {min-height:116px;}
.resource-panel {flex-wrap:wrap;}
.resource-item {flex:1;min-width:100px;}
.logistics-strip {top:144px;}
.event-rail {top:212px;width:min(490px,30vw);max-height:calc(100vh - var(--deck-height) - 250px);}
.bottom-hud::before {font-size:13px;color:#b9c2bd;top:-20px;}
@media (min-width:2400px) and (min-height:1000px) {
  :root {--v050-text-min:calc(16px * var(--ui-text-scale,1));--v050-text-small:calc(18px * var(--ui-text-scale,1));--v050-text-body:calc(19px * var(--ui-text-scale,1));--v050-text-label:calc(19px * var(--ui-text-scale,1));}
  html:root,html:root.interface-large,html:root.interface-compact {--deck-map-width:400px;--deck-command-width:790px;--deck-height:calc(370px * max(1,var(--ui-text-scale,1)));}
  html:root.research-deck-expanded,html:root.command-mode-active:not(.research-deck-expanded),html:root.command-mode-active.research-deck-expanded {--deck-height:calc(450px * max(1,var(--ui-text-scale,1)));}
  .top-hud {grid-template-columns:600px minmax(0,1fr);}
  .selection-panel {grid-template-columns:205px minmax(0,1fr) minmax(230px,.7fr);}
  .selection-panel.tactical-overview {grid-template-columns:205px minmax(0,1fr);}
  .selection-panel.tactical-overview .tactical-overview {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width:1500px) {
  html:root,html:root.interface-large,html:root.interface-compact {--deck-map-width:230px;--deck-command-width:510px;--deck-height:calc(350px * max(1,var(--ui-text-scale,1)));}
  .selection-panel,.selection-panel.tactical-overview {grid-template-columns:minmax(0,1fr);overflow:auto;}
  .selection-portrait-wrap {display:none;}
  .top-hud {grid-template-columns:340px minmax(0,1fr);}
  .resource-item {min-width:80px;}
}
.resource-item em {grid-column:1 / -1;}
@media (min-width:1800px) {
  .resource-panel .resource-item:nth-child(-n+2) {min-width:220px;}
}
#objectiveToggleButton {font-size:18px;}
#graylineApp :is(.title-kicker,.skirmish-setup label > span,.unit-card strong) {font-size:var(--v050-text-min) !important;line-height:1.35;color:#c7ceca;}
#graylineApp .unit-card strong {white-space:normal;}
#graylineApp .unit-card::after {font-size:var(--v050-text-min);}
#graylineApp :is(.dialog-subtitle,.settings-panel > header strong) {font-size:var(--v050-text-small) !important;line-height:1.4;color:#d0d7d3;}
