:root{color-scheme:dark;font-family:system-ui,sans-serif;color:#edf2e6;background:#101914;--lime:#c9f45b;--muted:#b3bfb0;--edge:#3c4b3c}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top right,#354c2c55,transparent 65%)}button,select,input{font:inherit;min-height:44px;border:1px solid #67785f;border-radius:7px;background:#263729;color:#eef3e7;padding:8px 10px;max-width:100%}button{cursor:pointer}button:hover:not(:disabled){border-color:var(--lime)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:2px}.primary{background:var(--lime);color:#21301a;font-weight:750}a{color:inherit}.site-header,main{width:min(1450px,calc(100% - 32px));margin:auto}.site-header{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--edge);gap:12px}.brand{font-weight:bold;text-decoration:none;font-size:20px}.brand b{background:var(--lime);border-radius:7px;color:#172116;padding:2px 11px;margin-right:9px}.site-header label{font-size:12px}.heading{padding:22px 0 12px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--lime)}h1{font-family:Georgia,serif;font-size:clamp(25px,3vw,40px);margin:0}h2{font-size:21px;margin:0 0 12px}h3{font-size:16px}p{line-height:1.7}label{display:block;font-size:13px}label>input,label>select{display:block;width:100%;margin:5px 0 10px}.site-header label>select{display:inline;width:auto;margin:0 0 0 8px}.campaign-bar{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;border:1px solid var(--edge);background:#1b2b20;padding:15px;border-radius:10px}.campaign-bar small,.stats small{display:block;color:var(--muted);font-size:12px}.campaign-bar strong{font-size:22px}.toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.toolbar button{font-size:13px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 335px;border:1px solid var(--edge);border-radius:12px;overflow:hidden}.map-panel{background:#ddcfae;color:#31412f;min-width:0}.map-top{padding:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.map-top h2{margin:0;font-family:Georgia,serif}.map-top>div{display:flex;gap:6px;flex-wrap:wrap}.map-top button{font-size:12px;padding:7px 9px}.city-picker{display:flex;align-items:center;gap:12px;padding:0 14px 8px}.city-picker>span{display:none}.city-picker select{max-width:260px;margin:0;background:#e9dfc5;color:#253525;border-color:#91876b;font-size:13px}#map{display:block;width:100%;height:auto;max-height:none}.river{fill:none;stroke:#628f96;stroke-width:5}.mountains{fill:none;stroke:#8b9175;stroke-width:12;stroke-dasharray:4 6;stroke-linejoin:round}.roads path{stroke:#6b705b;fill:none;stroke-width:1;stroke-dasharray:5 6;opacity:.35}.roads .sea{stroke:#276c90;stroke-dasharray:2 6;stroke-width:2;opacity:.6}.neighbor{fill:none;stroke:#334832;stroke-width:3;stroke-dasharray:7 6}.country-halo{fill:none;stroke:#f8efd1;stroke-width:6}.country-border{fill:none;stroke:#345038;stroke-width:3}.sea-label{font:italic 14px Georgia;fill:#527780;letter-spacing:3px}.city{cursor:pointer}.city rect{fill:transparent;stroke:transparent;stroke-width:2}.city.selected rect{fill:#f3e9cf;stroke:#3a5036}.city.batch rect{fill:#ddf0bc;stroke:#3c6d3d;stroke-dasharray:5 3}.city:focus rect{stroke:#284b38;stroke-width:4}.city text{fill:#203929;font:600 13px system-ui;pointer-events:none}.city .count{font:12px system-ui}.city .mark{font:700 16px system-ui}.city .badge{font:bold 14px system-ui;fill:#455824;paint-order:stroke;stroke:#e8dfc4;stroke-width:3}.route{fill:none;stroke-width:4;stroke-dasharray:8 4;opacity:.85}.army{stroke:#953f35}.supply{stroke:#286d98}.officer{stroke:#80519e}#legend{display:flex;flex-wrap:wrap;gap:9px;padding:12px 14px;font-size:12px}#legend i{display:inline-block;width:11px;height:11px;background:var(--flag);border:1px solid #65705a;margin-right:4px}.map-note{margin:0;padding:0 14px 12px;font-size:11px}.supply-legend{color:#205e83}.officer-legend{color:#754590}#panel{background:#1a2a1e;padding:16px;min-width:0}#panel h2{margin-bottom:8px}.country-tag{font-size:12px;padding:2px 6px;border-left:5px solid var(--flag);margin-right:6px}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:12px 0}.stats strong{font-size:18px}.stats em{font-style:normal;font-size:11px;color:#c8dfa8;display:block}.muted,.footnote,#save-status{font-size:12px;color:var(--muted)}details{margin:10px 0;border-block:1px solid var(--edge);padding:8px 0}summary{cursor:pointer;min-height:30px;font-size:12px;line-height:1.8}.readiness{font-size:12px;display:flex;gap:9px;flex-wrap:wrap}.toggles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.toggles label{display:flex;gap:5px;align-items:center;font-size:12px}.toggles input{width:18px;min-height:18px;flex-shrink:0}.pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.unit-input{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.unit-input input{width:100%;margin-bottom:6px}.order-preview{background:#2e3e29;padding:9px;border-left:3px solid #b5cd6e;font-size:12px;line-height:1.8;margin:10px 0;overflow-wrap:anywhere}.error{color:#ffd0a0}.buttons{display:flex;gap:8px;flex-wrap:wrap}.buttons>*{flex:1}#notice:not(:empty){border:1px solid #b6a26b;background:#493d27;padding:10px;margin-bottom:12px;line-height:1.6}.report-panel{padding:18px;border:1px solid var(--edge);border-radius:9px;margin:15px 0;background:#19291f}.report-panel>header{display:flex;justify-content:space-between;gap:12px;align-items:center}.report-panel li{font-size:13px;line-height:1.8;margin-bottom:8px}#reports{max-height:300px;overflow:auto}#playback{padding:14px;background:#203325;color:#eef4e7}#playback>header{display:flex;align-items:center;justify-content:space-between;gap:8px}#playback h3{margin:0 0 8px}#playback p{font-size:11px;margin:7px 0 0;color:#bdcdb9}.replay-controls{display:flex;gap:6px;flex-wrap:wrap}.replay-controls button{font-size:12px;flex:1}dialog{width:min(700px,calc(100% - 24px));max-height:90dvh;overflow:auto;background:#1d2e22;color:#edf3e6;border:1px solid #7d8c69;border-radius:12px;padding:22px}dialog::backdrop{background:#080f0bdc}dialog p{font-size:13px}#countries{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}#countries button{text-align:left;border-left:5px solid var(--flag);padding:12px}#countries strong{font-size:18px}#countries span{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}.officer-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.officer-list article{border:1px solid var(--edge);border-radius:7px;padding:10px;font-size:13px}.officer-list p{font-size:12px;margin:6px 0}.batch-list{max-height:200px;overflow:auto}.batch-list label{display:flex;align-items:center;gap:8px;min-height:36px}.batch-list input{min-height:18px;width:18px}.batch-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}.batch-tools button{font-size:12px}
@media(max-width:900px){.workspace{grid-template-columns:1fr}#panel{border-top:1px solid var(--edge)}#map{max-height:none}.campaign-bar{grid-template-columns:repeat(3,1fr)}.city text{font-size:17px}.city .count{font-size:15px}.city rect{width:88px;x:-44px}}
@media(max-width:500px){.site-header,main{width:calc(100% - 20px)}.site-header{flex-wrap:wrap}.heading{padding-top:16px}.heading p{font-size:12px}h1{font-size:27px}.campaign-bar{gap:8px;padding:12px}.campaign-bar strong{font-size:18px}.toolbar button{flex:1;font-size:12px}.map-top{padding:12px}.map-top h2{font-size:20px}.map-top>div{width:100%}.map-top button{flex:1;min-width:55px;font-size:11px;padding:6px 3px}.city text{font-size:20px}.city .count{font-size:19px}.city rect{y:-25px;height:49px;width:96px;x:-48px}dialog{padding:16px}#countries{gap:8px}#countries button{padding:10px}#legend{gap:6px;font-size:11px}.officer-list{grid-template-columns:1fr}.pair{gap:6px}.footnote{line-height:1.8}#replay-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.overview-detail{margin:0 14px 8px;border-color:#c4baa3}.overview-detail summary{color:#344550}#map .national-inset{display:none}#national-overview{display:block!important}#national-overview .national-inset{display:block}
.real-rivers{fill:none;stroke:#659baa;stroke-width:1.6;opacity:.8}.label-leader{fill:none;stroke:#526b59;stroke-width:.8;opacity:.6}.geography-labels text{font:italic 15px Georgia,serif;letter-spacing:.5px;pointer-events:none}.geo-sea{fill:#356477}.geo-context{fill:#6d685a;paint-order:stroke;stroke:#ddd7c5;stroke-width:3px}.city text{font-size:13px;paint-order:stroke;stroke:#e8e3cf;stroke-width:2.5px;stroke-linejoin:round}.city .count{font-size:12px;stroke-width:2px}.city.selected text{stroke:#f3e9cf}.city rect{width:revert;x:revert;y:revert;height:revert}.city .mark{stroke-width:2px;font-size:14px}
.compact-map .city text{font-size:31px;stroke-width:4px}.compact-map .city .count{display:none}.compact-map .minor-city:not(.selected)>g,.compact-map .minor-city:not(.selected)>.label-leader{display:none}.compact-map .city.selected .count{display:block;font-size:27px;transform:translateY(17px)}.compact-map .city.selected rect{y:-32px;height:68px}.compact-map .city>circle{r:6px}.compact-map .geography-labels text{font-size:25px}.compact-map .geo-context{display:none}.compact-map .city .mark{font-size:21px}
#map:not(.compact-map) .city text{font-size:13px}#map:not(.compact-map) .city .count{font-size:11px}

:root{--lime:#e6bd75}.primary{background:var(--lime);color:#302b20}.brand b{background:var(--lime)}.map-panel{background:#e1d4b5}.roads .rail{stroke:#5d5144;stroke-width:2;stroke-dasharray:7 2;opacity:.45}.roads .river{stroke:#327b9c;stroke-width:2;stroke-dasharray:2 3;opacity:.65}.compact-map .capital-city .count{display:none}#campaign-bar strong{font-size:18px}
.map-panel{background:#eee5d3}.state-borders path{fill:none;stroke:#fcf6e8;stroke-width:2.2;pointer-events:none}.great-lakes{fill:#e4ede9;stroke:#94aaa8;stroke-width:.8;pointer-events:none}.state-names text{font:600 17px Georgia,serif;letter-spacing:2px;fill:#344b5e;opacity:.7;pointer-events:none}.roads path{opacity:.18}.roads .rail{stroke-width:1.1;opacity:.22}.roads .river{stroke-width:1.5;opacity:.4}.real-rivers{stroke:#5c94ac;stroke-width:1.5;opacity:.8}.national-inset{pointer-events:none}.national-inset rect{fill:#f5efdf;stroke:#c7bca7;stroke-width:1}.national-inset path{stroke:#f7efd9;stroke-width:.8}.national-inset .inset-title{font:600 13px system-ui;fill:#344550;letter-spacing:1px}.national-inset .inset-caption{font:11px system-ui;fill:#45535d}.city text{fill:#203242;stroke:#f5efdf}.city .count{fill:#394a54}.city.selected rect{fill:#fff3cd;stroke:#4c6380}.compact-map .national-inset{display:none}.compact-map .state-names text{font-size:30px;opacity:.6}.compact-map .state-borders path{stroke-width:3}#national-overview{display:none;width:282px;max-width:calc(100% - 28px);margin:12px auto}.compact-map .geo-context{display:block}.geo-context{fill:#8c8574} @media(max-width:600px){#national-overview{display:block}}

/* The complete label is a hit target; leader lines are decorative. */
.city .city-hit{pointer-events:all}.city text{pointer-events:auto}.label-leader{pointer-events:none}
