/* Modern presentation only. Keep war models and shared CRT/Lite assets untouched. */
body {
  --body-size: clamp(15px, .25vw + 12px, 17px);
  --secondary-size: clamp(13px, .12vw + 11px, 14px);
  --heading-size: clamp(19px, .2vw + 15px, 22px);
  --planet-size: clamp(17px, .12vw + 15px, 19px);
  --value-size: clamp(22px, .2vw + 18px, 26px);
  font-size: var(--body-size);
}
body .command-shell { width:100%; max-width:none; padding-inline:clamp(16px, 1.1vw, 24px); }
body .masthead { justify-content:space-between; gap:24px; min-height:90px; }
body .header-tools { margin-left:auto; }
body .navigation { gap:clamp(16px, 2vw, 40px); flex-wrap:wrap; }
body .navigation>a { font-size:16px; min-height:48px; }
body .technical, body .text-link, body .text-button, body summary { font-size:var(--secondary-size); line-height:1.55; letter-spacing:.025em; }
body .wordmark small { font-size:10px; }
body .uplink, body footer, body .version-selector { font-size:13px; }
body .section-heading { flex-wrap:wrap; height:auto; }
body .section-heading h2 { font-size:var(--heading-size); line-height:1.2; }
body[data-view=overview] #overview-content { grid-template-columns:minmax(0,33fr) minmax(0,22fr) minmax(0,23fr) minmax(0,22fr); align-items:stretch; }
body[data-view=overview] .comms-preview { grid-column:4; grid-row:auto; margin-top:0; }
body[data-view=overview] #latest-dispatches { grid-template-columns:minmax(0,1fr); }
body[data-view=overview] #overview-content :is(.front-summary,.station,.opportunities,.comms-preview)>.section-heading { padding:16px; min-height:70px; }
body[data-view=overview] .section-heading>.text-link { font-size:var(--secondary-size); max-width:none; }
body[data-view=overview] :is(.section-heading h2,.galactic-modifier h2) { font-size:var(--heading-size); }
body[data-view=overview] :is(.technical,.metric-label,.metric-detail,.objective-bottom,.objective-eta,.objective-index,.objective-tally span,.status-label,.funding-numbers,.subtle-note,.station-action summary,.front-brief .technical,.front-brief-right span,.faction-title>span:not(.warfront-faction-name),.transmission-meta,.briefing-button,.order-state,.directive-eyebrow) { font-size:var(--secondary-size); line-height:1.55; letter-spacing:.025em; }
body[data-view=overview] #main #directive .directive-summary>.order-brief,
body[data-view=overview] :is(.tactical-item p,.preview-transmission p,.transmission-body p,.report-preview,.report-narrative) { font-size:var(--body-size); line-height:1.65; }
body[data-view=overview] :is(.front-brief h3,.station-location h3,.action-head h3,.tactical-item h3,.opportunities .opportunity-name,.objective h3,.objective-list[data-count="2"] h3,.preview-transmission h3) { font-size:var(--planet-size); line-height:1.3; }
body[data-view=overview] :is(.metric-value,.meta-value,.objective-percentage,.objective-tally strong,.front-brief-right) { font-size:var(--value-size); line-height:1.3; }
body[data-view=overview] :is(.front-sector,.tactical-item,.opportunities .tactical-item,.preview-transmission,.comms-preview .preview-transmission) { padding:16px; }
body[data-view=overview] .front-brief { padding-block:14px; gap:12px; }
body[data-view=overview] .faction-title { font-size:var(--heading-size); }
body[data-view=overview] .station .station-action { padding-block:14px; }
body[data-view=overview] .station .station-location { padding:16px; }
body[data-view=overview] .station .subtle-note { padding:12px 16px; }
body[data-view=overview] #war-metrics .metric { padding:16px; }
body[data-view=overview] #directive .module-heading.priority { height:auto; min-height:64px; flex-wrap:wrap; gap:12px; }
body[data-view=overview] #directive .module-heading h2 { font-size:var(--heading-size); }
body[data-view=overview] #directive .directive-eyebrow { font-size:12px; }
body[data-view=overview] #directive .order-state { font-size:13px; }
body[data-view=overview] #directive .projection { font-size:14px; line-height:1.6; flex-wrap:wrap; padding:14px 16px; }
body[data-view=overview] #directive .projection span { font-size:15px; }
body[data-view=overview] .objective-list:not([data-count="1"]):not([data-count="2"]) { max-height:none; overflow:visible; }
body[data-view=overview] .objective-list[data-count="2"] .objective { display:block; padding:16px; }
body[data-view=overview] #directive .galactic-modifier { flex-wrap:wrap; padding:14px 16px; }
body #galactic-modifier-trend, body #explain-galactic-modifier { font-size:var(--secondary-size); }
body :is(.console-section,.metric,.transmission,.preview-transmission,.front-brief>div,.tactical-item,.station-action,.section-heading>div) { min-width:0; overflow-wrap:anywhere; }
body :is(.action-head,.funding-numbers) { flex-wrap:wrap; }
@media(min-width:1200px) {
 body[data-view=overview] #main #directive .directive-summary { display:block; padding:20px; }
 body[data-view=overview] #directive .order-meta { display:grid; grid-template-columns:1fr 1fr; margin-top:16px; padding:12px 0 0; border-left:0; border-top:1px solid var(--line); }
}
@media(max-width:1799px) {
 body[data-view=overview] #overview-content { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body[data-view=overview] .front-summary { grid-column:1; }
 body[data-view=overview] .station { grid-column:2; }
 body[data-view=overview] .opportunities { grid-column:1; }
 body[data-view=overview] .comms-preview { grid-column:2; }
}
@media(max-width:800px) {
 body[data-view=overview] #overview-content { grid-template-columns:minmax(0,1fr); }
 body[data-view=overview] :is(.front-summary,.station,.opportunities,.comms-preview) { grid-column:1; }
 body[data-view=overview] #latest-dispatches { grid-template-columns:1fr; }
 body .navigation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; overflow:visible; }
 body .navigation>a { justify-content:center; white-space:normal; text-align:center; font-size:15px; padding:8px 4px; }
 body .navigation .uplink { display:none; }
 body .section-heading { gap:12px; }
}
@media(max-width:480px) {
 body { --body-size:15px; --secondary-size:13px; --heading-size:19px; --planet-size:17px; --value-size:22px; }
 body .command-shell { padding-inline:12px; }
 body .masthead { gap:12px; flex-wrap:wrap; padding-block:12px; }
 body .wordmark small { font-size:8px; }
 body .header-tools { min-width:0; }
 body[data-view=overview] #directive .projection span { text-align:left; }
 body[data-view=overview] .objective-top { column-gap:8px; }
}
/* Component-specific rules previously used smaller fixed fonts. */
body[data-view=overview] .preview-transmission .transmission-body p,
body[data-view=overview] .opportunities .opportunity-details p { font-size:var(--body-size); line-height:1.65; }
body[data-view=overview] .preview-transmission :is(.transmission-meta,.text-link),
body[data-view=overview] .opportunities :is(.opportunity-telemetry,.opportunity-details summary,.opportunities-toggle) { font-size:var(--secondary-size); line-height:1.55; }

/* Four peer panels share a stretched Grid row; the original transmission DOM is reused. */
body[data-view=overview] #overview-content :is(.front-summary,.station,.opportunities,.comms-preview) {
  margin:0; border:1px solid var(--region-border); min-width:0;
}
body[data-view=overview] #overview-content :is(.front-summary,.station,.opportunities,.comms-preview)>.section-heading {
  height:40px; min-height:40px; padding:8px 16px; flex-direction:row; align-items:center;
  justify-content:flex-start; flex-wrap:nowrap; gap:0;
}
body[data-view=overview] .comms-preview .preview-transmission {
  border-right:0; border-bottom:1px solid var(--line);
}
body[data-view=overview] .comms-preview .preview-transmission:last-child { border-bottom:0; }
@media(min-width:801px) {
 body[data-view=overview] #overview-fronts { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body[data-view=overview] #overview-fronts .front-brief { grid-template-columns:minmax(0,1fr); }
 body[data-view=overview] #overview-fronts .front-brief-right { text-align:left; }
 body[data-view=overview] #overview-fronts .front-brief-right span { display:inline; margin-left:5px; }
 body[data-view=overview] #overview-fronts .faction-title>span:not(.warfront-faction-name) { flex-basis:100%; text-align:left; }
}
@media(min-width:801px) and (max-width:1199px) {
 /* Give the existing order rows room above the two-column dashboard. */
 body[data-view=overview] #order-content { display:block; }
 body[data-view=overview] .objective-top { grid-template-columns:24px minmax(0,1fr) auto; }
 body[data-view=overview] .objective-index { grid-column:1; grid-row:1; }
 body[data-view=overview] .objective h3 { grid-column:2; grid-row:1; }
 body[data-view=overview] #overview-fronts .front-sector { padding-inline:10px; }
 body[data-view=overview] #overview-fronts .faction-title>.warfront-faction-name { font-size:17px; gap:4px; }
 body[data-view=overview] #overview-fronts .warfront-faction-icon { width:18px; height:18px; flex-basis:18px; }
}
@media(min-width:801px) and (max-width:1799px) {
 body[data-view=overview] #overview-fronts .front-brief-right span { display:block; margin-left:0; }
}
/* Compact Major Order metadata and the consolidated live deployment strip. */
body[data-view=overview] #directive .order-meta {
 display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;
}
body[data-view=overview] #directive .order-meta>div { min-width:0; overflow-wrap:anywhere; }
body[data-view=overview] #directive .order-deployment {
 display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
 margin-top:auto; width:100%; border-top:1px solid #3b6074; background:rgba(25,42,53,.7);
}
body[data-view=overview] #directive .order-deployment .metric {
 min-width:0; padding:16px; border:0; border-right:1px solid #2d414e; overflow-wrap:anywhere;
 --deployment-color:#83b7d0;
}
body[data-view=overview] #directive .order-deployment .metric:last-child { border-right:0; }
body[data-view=overview] #directive .order-deployment .metric[data-faction=automatons] { --deployment-color:var(--automatons); }
body[data-view=overview] #directive .order-deployment .metric[data-faction=illuminate] { --deployment-color:var(--illuminate); }
body[data-view=overview] #directive .order-deployment .metric[data-faction=terminids] { --deployment-color:var(--terminids); }
body[data-view=overview] #directive .order-deployment :is(.metric-label,.metric-value) { color:var(--deployment-color); }
body[data-view=overview] #directive .order-deployment .metric-detail { color:#b2b6aa; }
body[data-view=overview] #directive .order-deployment .metric-primary .metric-label::before { content:'▥'; margin-right:6px; }
body[data-view=overview] #directive[data-order-state=standby] .order-deployment { grid-column:1/-1; }
@media(max-width:700px) {
 body[data-view=overview] #directive .order-deployment { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:380px) {
 body[data-view=overview] #directive .order-deployment { grid-template-columns:minmax(0,1fr); }
}

/* Panel headings have no secondary row or decorative title marker. */
body[data-view=overview] #overview-content :is(.front-summary,.station,.opportunities,.comms-preview)>.section-heading h2 {
 margin:0; white-space:nowrap; line-height:1.2;
}
body[data-view=overview] #overview-content :is(.front-summary,.station,.opportunities,.comms-preview)>.section-heading h2::before { content:none; }
/* Original flat SVGs beside planet names; no map rendering or transforms. */
body[data-view=overview] #overview-fronts .warfront-planet-name {
 display:flex; align-items:center; gap:6px; min-width:0;
}
body[data-view=overview] #overview-fronts .warfront-planet-text { min-width:0; overflow-wrap:anywhere; }
body[data-view=overview] #overview-fronts .warfront-planet-icons {
 display:inline-flex; flex-shrink:0; align-items:center; gap:4px;
}
body[data-view=overview] #overview-fronts .warfront-planet-icons:empty { display:none; }
body[data-view=overview] #overview-fronts .warfront-planet-icon {
 display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px;
 padding:0; border:0; background:none; flex:0 0 18px; cursor:help;
}
body[data-view=overview] #overview-fronts .warfront-planet-icon img { width:18px; height:18px; object-fit:contain; }
.warfront-icon-tooltip {
 position:fixed; z-index:1000; max-width:calc(100vw - 16px); padding:6px 9px;
 border:1px solid var(--line-light); background:var(--surface); color:var(--ivory);
 font:13px/1.5 var(--mono); pointer-events:none; overflow-wrap:anywhere;
}
/* Ownership is the official current owner, independent of the attacking front. */
body[data-view=overview] #overview-fronts .warfront-planet-text[data-owner="1"] { color:#64B5F6; }
body[data-view=overview] #overview-fronts .warfront-planet-text[data-owner="3"] { color:#FF7070; }
body[data-view=overview] #overview-fronts .warfront-planet-text[data-owner="4"] { color:#BB99FF; }
body[data-view=overview] #overview-fronts .warfront-planet-text[data-owner="2"] { color:#FFD166; }
/* Keep the existing explanation button next to the reading instead of at the edge. */
body[data-view=overview] #directive .galactic-modifier { column-gap:18px; justify-content:flex-start; }
body[data-view=overview] #directive #explain-galactic-modifier { margin-left:0; padding-inline:0; }
@media(min-width:1100px) {
 body[data-view=overview] #directive .galactic-modifier,
 body[data-view=overview] #directive .galactic-modifier-reading { flex-wrap:nowrap; }
}
/* Original SVG alpha masks; allegiance comes from shared subfaction metadata. */
body[data-view=overview] #overview-fronts .warfront-planet-icon[data-allegiance="Automatons"] { color:#FF7070; }
body[data-view=overview] #overview-fronts .warfront-planet-icon[data-allegiance="Illuminate"] { color:#BB99FF; }
body[data-view=overview] #overview-fronts .warfront-planet-icon[data-allegiance="Terminids"] { color:#FFD166; }
body[data-view=overview] #overview-fronts .warfront-planet-icon[data-allegiance="Super Earth"] { color:#64B5F6; }
body[data-view=overview] #overview-fronts .warfront-icon-shape {
 display:block; width:18px; height:18px; background-color:currentColor;
 -webkit-mask:var(--warfront-icon-art) center/contain no-repeat;
 mask:var(--warfront-icon-art) center/contain no-repeat;
 mask-mode:alpha;
}
/* One local countdown under progress; use the existing page clock. */
body[data-view=overview] #overview-fronts .warfront-countdown {
 margin-top:2px; font:clamp(12px,.07vw + 11px,13px)/1.4 var(--mono);
 color:var(--muted); overflow-wrap:normal;
}
body[data-view=overview] #overview-fronts .warfront-countdown[data-state=eta] { color:#64B5F6; }
body[data-view=overview] #overview-fronts .warfront-countdown[data-state=defence] { color:#FFD166; }
body[data-view=overview] #overview-fronts .warfront-countdown[data-state=urgent] { color:#FF7070; }

/* Major Order: content-driven 30/70 summary and objectives, all rows visible. */
body[data-view=overview] #directive #order-content{height:auto;min-height:0;align-items:start}
body[data-view=overview] #directive .objective-list{max-height:none;overflow:visible;display:block}
body[data-view=overview] #directive .holding-reason{font:10px/1.4 var(--mono);color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
body[data-view=overview] #directive .objective{padding:6px 14px}
body[data-view=overview] #directive .objective-forecasts{margin-top:4px}
body[data-view=overview] #directive .order-deployment{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
body[data-view=overview] #directive .order-deployment .metric{padding:7px 10px;min-width:0}
body[data-view=overview] #directive .order-deployment .metric-value{font-size:clamp(13px,1.1vw,20px);overflow-wrap:anywhere}
body[data-view=overview] #directive .order-deployment .metric-label{font-size:8px;overflow-wrap:anywhere}
body[data-view=overview] #directive .order-deployment .metric-detail{font-size:8px}
@media(min-width:1000px){
 body[data-view=overview] #directive #order-content{grid-template-columns:minmax(0,3fr) minmax(0,7fr)}
 body[data-view=overview] #main #directive .directive-summary{display:block;padding:12px 16px;align-self:start}
 body[data-view=overview] #directive .order-meta{display:grid;grid-template-columns:1fr 1fr;border:0;border-top:1px solid var(--line);margin-top:10px;padding:8px 0;gap:10px}
}
@media(max-width:999px){
 body[data-view=overview] #directive #order-content{grid-template-columns:minmax(0,1fr)}
 body[data-view=overview] #directive .objective{padding:10px 14px}
}
@media(max-width:600px){body[data-view=overview] #directive .order-deployment{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){body[data-view=overview] #directive #order-content{display:grid}}
body[data-view=overview] #directive .objective-list .objective{display:block}
body[data-view=overview] #directive .objective-eta{font-size:11px;line-height:1.4}
body[data-view=overview] #directive .objective-bottom{font-size:11px;line-height:1.4}
/* Central forecast telemetry wraps without increasing the objective minimum size. */
body[data-view=overview] #directive .holding-telemetry{font:10px/1.4 var(--mono);color:var(--muted);margin-top:4px;overflow-wrap:anywhere}

/* Active Major Order: the existing deployment and modifier components live in
   the summary, leaving the objectives column entirely content-driven. */
body[data-view=overview] #directive .directive-summary #order-deployment{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
 margin:12px 0 0;padding:0;border:0;background:none;
}
body[data-view=overview] #directive .directive-summary #order-deployment .metric{
 padding:8px;min-width:0;border:1px solid #2d414e;background:rgba(25,42,53,.45);
}
body[data-view=overview] #directive .directive-summary #order-deployment .metric-label{
 font-size:9px;line-height:1.4;letter-spacing:.02em;
}
body[data-view=overview] #directive .directive-summary #order-deployment .metric-value{
 font-size:clamp(14px,1.2vw,18px);line-height:1.4;
}
body[data-view=overview] #directive .directive-summary #order-deployment .metric-detail{
 font-size:9px;line-height:1.4;
}
body[data-view=overview] #directive .directive-summary #galactic-modifier{
 display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;
 margin:10px 0 0;padding:9px 0 0;border-top:1px solid var(--line);background:none;
}
body[data-view=overview] #directive .directive-summary #galactic-modifier h2{
 grid-column:1/-1;font:10px/1.4 var(--mono);letter-spacing:.1em;color:var(--gold);
}
body[data-view=overview] #directive .directive-summary .galactic-modifier-reading{
 flex-direction:column;align-items:flex-start;flex-wrap:wrap;gap:2px;min-width:0;
}
body[data-view=overview] #directive .directive-summary #galactic-modifier-value{
 font-size:24px;
}
body[data-view=overview] #directive .directive-summary #explain-galactic-modifier{
 justify-self:start;align-self:start;margin:0;padding:0;min-height:30px;font-size:10px;
}
@media(max-width:359px){
 body[data-view=overview] #directive .directive-summary #order-deployment{grid-template-columns:minmax(0,1fr)}
}
