/* 8.14: original steel-and-brass command interface; no third-party game assets. */
:root{--ink:#e0e4d9;--muted:#b2bdb5;--paper:#242b2b;--panel:#293130;--line:#525c54;--olive:#a5b88e;--green:#4b6553;--gold:#d0b477;--red:#dc9583;--desk-paper:#293130;--paper-soft:#303936}
body{background:#171e20;color:var(--ink);color-scheme:dark}
button:hover:not(:disabled){color:#ffe0a1}
button:disabled{opacity:.48}
.app-shell{min-height:600px}
.resource-bar{order:0;height:54px;background:linear-gradient(#343d3c,#242b2c);border-bottom:1px solid #0f1619;padding:0 16px;color:#e2e7dd;box-shadow:inset 0 1px #69716644}
.nation-identity{width:220px;gap:10px}.nation-identity strong{font-size:12px}.nation-identity small{font-size:9px;margin-top:4px;color:#b2bcb0}.nation-identity .flag{width:43px;height:29px;box-shadow:0 2px 4px #0008;outline:1px solid #b6a57c66;outline-offset:3px}
.resource{padding:0 20px;border-left-color:#68726755;gap:10px}.resource>.icon{color:#b4b59b;width:19px;height:19px}.resource strong{font:21px Georgia,var(--serif);color:#e8e5d5}.resource strong em{font:9px var(--sans);color:#aeb9af}.resource small{color:#bac4b8;font-size:9px;margin-top:2px}.resource small b{color:#bed0a4}.treasury-resource strong{color:#e3c785}.treasury-resource:hover{background:#515d4d55}
.resource-bar .supply-resource{display:flex!important}
.world-tension{max-width:140px}.world-tension>div{color:#b8c2b6;font-size:9px}.world-tension strong{color:#e3ba86}.tension-track{background:#111b20}.tension-track i{background:#bd9960}
.masthead{order:1;height:50px;padding:0 16px;background:linear-gradient(#343d39,#202a29);border-top:1px solid #66705a;border-bottom:2px solid #9e8b5c;box-shadow:0 3px 8px #0008;z-index:10}
.brand{min-width:205px;gap:9px;font-size:20px;letter-spacing:3px}.brand-year{font-size:20px}.brand small{font-size:6px;letter-spacing:2px}.brand-emblem{width:28px;height:31px;background:#192222}.brand-emblem .icon{width:22px;height:22px}
.masthead nav{gap:4px;align-items:center;background:none}.nav-button{height:38px;min-width:68px;justify-content:center;padding:0 10px;color:#d0d2bd;border:1px solid #737d6555;background:linear-gradient(#48504455,#26302b66);box-shadow:inset 0 1px #b4b89b22,0 1px 2px #0005;font-size:11px;letter-spacing:1px}.nav-button .icon{width:20px;height:20px;color:#c7b986}.nav-button.active{background:linear-gradient(#67634b,#464b39);border-color:#ac9d68;color:#fff1c8;box-shadow:inset 0 1px #d3c28c55}.nav-button.active:after{height:2px;background:#dbc58d;bottom:0}.nav-button:hover{background:#555f48}
.header-tools{min-width:95px;gap:8px}.solo-label{display:none}.icon-button{color:#bfc6b8}.icon-button:hover{background:#4d594a}
.workspace-utility{order:2;height:34px;min-height:34px;padding:0 14px;background:#1b2527;border-bottom:1px solid #4b5953;color:#a6b5a8}.workspace-utility>span{font-size:10px;letter-spacing:1px}.workspace-utility>div{gap:5px}.workspace-utility button,.workspace-utility [data-action="statistics"]{background:#303d37;border:1px solid #53604f;color:#d1d8c5;padding:5px 10px;font-size:10px}.workspace-utility [data-staff-badge]{background:#49553d;color:#f0dfac}
.command-layout{order:3;grid-template-columns:268px minmax(0,1fr) 232px;min-height:0;border-top:1px solid #111c20}
.management-panel,.intel-panel{background:linear-gradient(115deg,#303733,#242d2c);border-color:#566052;box-shadow:2px 0 10px #07101455;z-index:2}
.panel-heading{height:36px;min-height:36px;padding:0 16px;background:linear-gradient(#414a40,#303a34);border-bottom:1px solid #68705a;color:#bdc5ad;font-size:9px;letter-spacing:1.5px}
.panel-scroll{padding:18px 16px}.intel-scroll{padding:0 16px 18px}.management-footer{background:#202a28;border-color:#525d4d;color:#b8c3ab;padding:10px 12px;min-height:35px}.management-footer button{color:#bec9b4}
.panel-title,.country-heading h1{font-size:24px;margin-top:0}.panel-description{margin:8px 0 18px;font-size:11px}.section-heading{margin-top:20px;letter-spacing:1px}.panel-view-tabs{padding:8px 0;gap:4px;border-color:#56604c}
.panel-view-tabs button,.filter-tabs button,.military-tabs button{background:linear-gradient(#424e41,#303b32);border-color:#626d53;color:#ccd6bf;padding:8px;font-size:10px}.panel-view-tabs button.active,.filter-tabs button.active,.military-tabs button.active{background:linear-gradient(#727455,#505a3c);border-color:#b7a971;color:#fff1be}
/* All management surfaces share one palette, including less common dialogs. */
body.command-theme :is(.management-panel,.intel-panel,.modal){color:#e1e5d9}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(h1,h2,h3,h4,strong,b){color:#e5dfc6}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(p,small,label,li,td,th,.inline-note,.empty-note,.panel-description,.modal-intro,.select-label,.training-resources,.rule-content,.terrain-row,.mini-label,.section-heading,.country-meta,.item-effect,.focus-detail-duration,.country-political-summary,.support-pie-body li,.decision-cost,.decision-status,.political-decision-room-summary,.group-card-heading,.service-list-detail,.statistics-toolbar,.statistics-metrics span){color:#bac7b6}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.item-card,.leader-card,.focus-feature,.force-tile,.stock-cell,.stock-grid>div,.objective-note,.empty-note,.national-agenda,.policy-option,.intel-brief,.country-card,.country-save-note,.guide-box,.guide-basics,.event-option,.result-stats>div,.battle-move-from,.battle-intel,.unit-control-instruction,.direct-control-guide,.scenario-options button,.country-intel-grid>div,.country-action-note,.event-budget-note,.peace-scoreboard>div,.peace-note,.peace-regions button,.peace-demand-card,.peace-bid,.peace-last-round,.subject-intro,.subject-card,.alignment-card,.workshop-intro,.tank-stat-grid>div,.tank-help,.tank-unlocks,.tank-unit-spec,.tank-mobile-summary,.battle-assessment,.group-selection-summary,.group-create,.group-assign,.army-group-card,.inspector-group,.service-overview,.service-status-card,.war-summary-card,.war-report-country,.completion-card,.service-guide-steps article,.service-roster-card,.balance-breakdown,.current-force-facts,.hq-shortcuts button,.directory-feature,.rule-search-result,.world-event-watch,.strait-passage-hint,.july-tracker,.political-metrics>div,.political-ready,.archive-dossier,.archive-empty,.item-effect,.slot-icon,.allocation-control,.context-nation-card,.unit-selection-stats,.service-list-row,.service-transfer-form,.service-manifest,.intel-comparison,.war-metrics>div,.current-force-facts>div,.stat-summary>div,.training-resources,.political-support,.july-facts>div,.july-snapshot-note,.political-choices button,.staff-summary,.staff-advice,.storage-notice,.air-effects-readout,.blockade-readout,.save-mechanism article,.country-political-overview,.support-pie-card,.political-decision-card,.decision-active-summary,.statistics-metrics article){background:linear-gradient(115deg,#364139,#2e3833);border-color:#5b6853;box-shadow:inset 0 1px #9aa47a15}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.track,.tank-stat-grid,.tension-track){background:#17251f}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.field-select,input[type=number],input[type=search],input[type=text],select,#tankName){background:#1c2927;color:#e5e9d7;border-color:#6e795e}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.action-button.secondary,.action-button.light){background:linear-gradient(#465244,#334032);color:#e3e4c6;border-color:#748066;box-shadow:inset 0 1px #c5d09b22}
body.command-theme :is(.management-panel,.intel-panel,.modal) .action-button{color:#f7f0ce;background:linear-gradient(#6a7250,#495c3e);border-color:#89946b;box-shadow:inset 0 1px #d4ddaa33}
body.command-theme :is(.management-panel,.intel-panel,.modal) .action-button:hover:not(:disabled){background:linear-gradient(#82875b,#5b6d49);color:#fff5cf;border-color:#cabd7d}
body.command-theme :is(.management-panel,.intel-panel,.modal) .action-button.danger{color:#ffccc0;background:#654236;border-color:#aa7864}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.training-shortage,.tank-error,.tank-warning){background:#4c3a2d;color:#ffd3a4;border-color:#a38151}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.country-card.selected,.policy-option.active,.scenario-options button.active,.peace-regions button.active){border-color:#c9b271;background:linear-gradient(#515e41,#3d4c36)}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.rule-chapters button.active,.statistics-tabs button.active){background:#596747;color:#fff2bf;border-color:#c1b27b}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.rule-content pre,.rule-table tr:first-child,.statistics-table-scroll th,.statistics-table-scroll tbody tr:nth-child(even)){background:#354438;color:#dde5cf}
.modal{background:linear-gradient(115deg,#303b35,#212d2a);border:1px solid #8b8e6d;box-shadow:0 18px 80px #000a,inset 0 0 0 4px #16251e55;color:#e2e5d8}.modal-backdrop{background:#081214b0;backdrop-filter:blur(3px)}.modal-close{background:#394739;color:#d9dec8;border-color:#72815b}.modal-close:hover{background:#5a6445;color:#ffdc9a}.modal-eyebrow{color:#bdac7d}.modal h2{letter-spacing:2px}.modal .rule-table td,.modal .statistics-table-scroll :is(td,th){border-color:#56634c}.statistics-table-scroll,.statistics-tabs{border-color:#647153}.statistics-tabs button{background:#354437;color:#d7dfc8;border-color:#657253}.country-political-overview{border-color:#6f7857}.support-pie-card{box-shadow:inset 0 1px #8a946633}.statistics-metrics strong{font-size:26px}.political-decision-tabs{border-color:#637057}
.province-heading{background:linear-gradient(#38453a,#2b3730);border-color:#72775a;padding-top:18px}.province-heading h2{font-size:30px}.province-owner{color:#bdc6b3}.territory-tag{color:#acb79d}.dispatch.context-fold{background:#24312a;border-color:#5c694c;color:#c8d0b8}.context-fold{border-color:#58644f}.context-fold>summary{color:#bfcaaf}.context-tip{border-color:#58644f}.dispatch-more{color:#b9c69f}
.track i{background:linear-gradient(90deg,#66845b,#a2b57c)}.track.gold i{background:linear-gradient(90deg,#997a40,#d2ba76)}
.budget-card{background:linear-gradient(#48563c,#2b3b2c);border-color:#839064}.budget-card :is(strong,b){color:#e5d4a3}.leader-medallion{background:#465840;border-color:#9d9a69;color:#e6d49d}.region-art{background:linear-gradient(transparent,#263e31);color:#819478}
.focus-atlas-header{background:linear-gradient(#3c493a,#27372d);border-color:#777953}.focus-atlas-tools,.focus-detail{background:#2d3b31;color:#d8e0cb;border-color:#667354}.focus-atlas-tools :is(button,input){color:#d5ddc5;background:#354632;border-color:#697b55}.focus-atlas-tools nav button.active{background:#576746;color:#fff1be}.focus-detail section{border-color:#5f6e50}.focus-atlas-footer{background:#1c2c25;color:#aebba1}
/* International bulletins retain a deliberate newspaper sheet inside the steel frame. */
.news-modal .news-masthead,.news-modal .news-banner{border-color:#8e956d}.news-choices .news-choice,.news-archive-row,.news-response{background:#374831;border-color:#6d7c52;color:#e0e6ca}.news-choice:hover:not(:disabled){background:#536341}
/* Map is the brightest, largest surface; every ornamental layer ignores pointer input. */
.map-panel{background:#29485d;box-shadow:inset 0 0 0 1px #151e22}.map-viewport{background:#31536e}.map-toolbar{background:linear-gradient(#36443e,#25342e);border-color:#738063;padding:5px 9px!important;gap:4px!important}
.map-toolbar .service-view-tabs{background:none;gap:3px!important}.map-toolbar .service-view-tabs button{background:linear-gradient(#495748,#354331);border:1px solid #6c785a;color:#d4dec4;min-height:30px;font-size:10px;padding:5px 8px!important}.map-toolbar .service-view-tabs button.active{background:linear-gradient(#7a7d58,#525f3d);border-color:#c3b27b;color:#fff3c8;box-shadow:inset 0 -2px #d8c58d}
.map-toolbar .map-display-tools button,.map-toolbar :is(select,.map-staff-button){background:#293b31;color:#d5dfc4;border:1px solid #687b58}.map-toolbar .map-display-tools button:hover{background:#536347}.map-secondary-controls>strong,.map-secondary-controls>small,.map-service-control,.map-layer-control{color:#b8c7ac}.map-toolbar .map-display-tools button{font-size:9px!important;min-height:30px}.map-secondary-controls{min-height:22px!important}.map-secondary-controls select{min-height:23px}
.map-hint{background:#152731d9;border:1px solid #91a49c77;color:#e3e8da;box-shadow:0 2px 6px #0005;font-size:9px;padding:5px 10px;top:10px}.map-legend{background:#1e3339e8;border-color:#96aaa077;color:#d7e0cc;box-shadow:0 3px 9px #0005}.map-caption{color:#ecf2df;text-shadow:0 1px 3px #18303a}.map-caption small{color:#c7d8d2}.map-scale i{border-color:#bdc9bd}.compass{color:#c5d4ca;text-shadow:0 2px 5px #152b34}.map-zoom{border-color:#9ba486;background:#273d37;box-shadow:0 2px 8px #00131f88}.map-zoom button{background:linear-gradient(#4b5c4a,#2e4337);border-color:#73805e;color:#eee7c9}.map-zoom button:hover{background:#65724d}
.country-label{fill:#f2efdd;stroke:#28393b;stroke-width:1.15;paint-order:stroke;stroke-linejoin:round;opacity:.84!important;font-family:var(--serif);font-weight:600;text-shadow:0 2px 3px #182b3677}.country-subject-label{stroke-width:.7}.sea-label{fill:#d5e1df;letter-spacing:4px;font-family:var(--serif);opacity:.62}.sea-en{fill:#bdd1d5;letter-spacing:3px;opacity:.6}.capital-label{fill:#fff2d4;paint-order:stroke;stroke:#273a42;stroke-width:2;font-size:9px;font-weight:600}.city-marker circle{fill:#f8e2a0;stroke:#2f3f42;stroke-width:1.5}.strait-link{stroke:#b5d9cc;opacity:.8}.front-line{stroke:#efb09b;filter:none}.naval-boundary-casing{stroke:#1b3c53;opacity:.9}.naval-sea-boundaries{stroke:#b7d1d4;opacity:.75}.naval-selected-outline.active{stroke:#f1d78a}.background-region-labels text{fill:#e1ddc2;paint-order:stroke;stroke:#40505a;stroke-width:1}
.map-relief-disabled .terrain-relief{display:none}.terrain-relief{pointer-events:none}
.division-token>rect:not(.unit-hitbox){filter:none}.division-token .division-flag{filter:drop-shadow(0 1px 1px #14222c)}.division-token.is-selected{filter:drop-shadow(0 0 2px #ffe7a7)}
.army-group-bar{background:linear-gradient(#303e37,#1c2b28);border-color:#7b835b;padding:7px 12px;min-height:47px}.group-bar-label{color:#becaa9}.army-group-shortcut{background:linear-gradient(#4e5a42,#2c3f32);color:#e0e4c7;border-color:#9b9a67;box-shadow:inset 0 1px #b4bd8f33,0 2px 4px #0005;min-height:34px;padding:7px 11px}.army-group-shortcut.active{background:linear-gradient(#7b8057,#4a603c);border-color:#ddc781;color:#fff2c0}.group-edit-button,.select-army-button{background:#3c4f3a;border-color:#85906a;color:#dae1c3}
.unit-command-bar{background:linear-gradient(#394b3b,#283b30);border-color:#809069;min-height:54px;padding:8px 12px}.command-selection strong{color:#ede8cb}.command-selection small,.command-key-hint{color:#bfceb3}.unit-command-buttons button{background:#334a36;color:#e0e6c9;border-color:#829268}.unit-command-buttons button.active{background:#717b4e;color:#fff2bd}
.situation-bar{height:33px;min-height:33px;padding:0 12px;background:#1d3031;border-color:#637966;color:#bdcdbd}.situation-title{color:#d5e0ca}.battle-count{color:#d9ba8f}
.time-bar{order:4;height:55px;min-height:55px;padding:0 18px;background:linear-gradient(#353e37,#1c2a27);border-top:2px solid #8d8259;box-shadow:0 -3px 9px #07161977}.campaign-label strong{font-size:15px;color:#e2dcc0}.campaign-label small{color:#b2c0a4}.date-calendar{width:30px;height:33px}.time-controls{gap:7px}.time-controls .step-button,.speeds button.active{background:linear-gradient(#4b5842,#33412f);border-color:#879064;color:#e5deb9}.play-button{width:40px;height:37px;background:linear-gradient(#69734d,#415335);border-color:#b8ad73;color:#f3e1aa}.speeds button{color:#aebea1;font-size:10px;width:29px;height:28px}.footer-hint{color:#bac5ab;font-size:8px}
/* Separate panel folding keeps resources and navigation available on the map. */
.panels-collapsed .command-layout{grid-template-columns:minmax(0,1fr)}.panels-collapsed .management-panel,.panels-collapsed .intel-panel{display:none}.map-expanded #panelsButton{display:none}
.front-menu{background:#142a26}.front-menu::before{background-image:url('assets/command-atlas.svg');filter:saturate(.65)}.front-header{background:linear-gradient(#35403988,#15292766)}
.save-alert{color-scheme:light}.save-alert button{color:#38472d}.save-failed{color:#f5a08e!important}.save-conflict{color:#eacb88!important}
@media(min-width:1500px){.command-layout{grid-template-columns:288px minmax(0,1fr) 260px}.masthead nav{gap:8px}.nav-button{min-width:78px}.resource{padding:0 26px}}
@media(max-width:1200px){.brand{min-width:150px}.nav-button{min-width:57px;padding:0 7px;gap:5px}.header-tools{min-width:88px}.nation-identity{width:207px}.resource{padding:0 14px}.command-layout{grid-template-columns:248px minmax(0,1fr) 216px}.footer-hint>kbd,.footer-hint>span:not(.version){display:none}.situation-text{font-size:8px}.map-secondary-controls>small{display:none}}
@media(max-width:1000px) and (min-width:821px){.brand{min-width:130px;font-size:18px}.brand-emblem{display:none}.masthead nav{gap:2px}.nav-button{min-width:52px;font-size:10px}.resource{padding:0 11px}.nation-identity{width:200px}.world-tension{width:110px}.command-layout{grid-template-columns:230px minmax(0,1fr) 200px}.resource-bar .supply-resource{display:flex!important}}
@media(max-width:820px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.resource-bar{order:0;height:60px;overflow-x:auto;padding:0 12px;gap:12px}.resource-bar .resource{display:flex;min-width:80px;padding:0 10px}.nation-identity{width:180px;flex-shrink:0}.world-tension{min-width:100px}.masthead{order:1;height:auto;min-height:50px;padding:7px 12px;flex-wrap:wrap;gap:8px}.brand{min-width:0;font-size:19px}.masthead nav{order:3;width:100%;position:static;overflow-x:auto;display:flex;min-height:39px;gap:4px;padding:0}.nav-button{flex:1;min-width:58px;font-size:10px}.header-tools{margin-left:auto}.workspace-utility{height:auto;min-height:36px}.workspace-utility button{font-size:9px;padding:5px 7px}.command-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:620px auto auto}.map-panel{grid-row:1;min-height:0}.management-panel{grid-row:2}.intel-panel{grid-row:3;display:block}.panel-scroll,.intel-scroll{max-height:none;overflow:visible}.panel-heading{min-height:34px}.time-bar{height:auto;min-height:100px;flex-wrap:wrap;padding:10px 12px;gap:7px}.time-controls{flex-wrap:wrap;margin-left:auto;gap:5px}.footer-hint{display:none}.map-toolbar .map-primary-controls .service-view-tabs{width:auto!important;flex:1 1 auto!important}.map-toolbar .map-primary-controls .map-display-tools{width:100%}.map-toolbar .map-display-tools button{font-size:9px!important}.map-secondary-controls>strong{font-size:9px}.map-hint{white-space:normal;max-width:80%;font-size:8px}.map-legend{bottom:90px}.panels-collapsed .command-layout{grid-template-rows:minmax(500px,calc(100dvh - 270px))}.map-expanded .command-layout{grid-template-rows:minmax(0,1fr)}.map-expanded .time-bar{min-height:90px;flex-shrink:0}.map-expanded .map-toolbar .map-primary-controls .service-view-tabs{flex:1 1 auto!important}.modal{padding:26px 20px}}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important}.movement-line{animation:none}}

body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.staff-peek,.staff-next,.staff-peek>span,.staff-summary .section-heading button,.country-meta,.country-meta span,.resource-hint,.country-subtitle,.panel-title+.panel-description){color:#c6d0b8}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.country-meta b,.intelligence-label,.intelligence-label.detailed,.july-state,.war-badge,.peace-badge){background:#44523a;border-color:#8c9264;color:#e5d69f}
.staff-advice:hover,.staff-progress:hover,.staff-peek:hover{background:#4b5940}
.service-zone-label,.naval-zone-name{fill:#e7e8d2;stroke:#1f4052;stroke-opacity:.9;paint-order:stroke}.naval-zone-control,.naval-basin-label{fill:#c6d7d0;stroke:#214357;stroke-opacity:.9;paint-order:stroke}.service-map-token .marker-frame{fill:#2c4242;stroke:#b9b68a}.service-map-token .marker-count{fill:#f3ebc9;stroke:#1d3335}
#reliefButton{padding:4px 8px;color:#cbd9bf;border:1px solid #697b59;background:#30452f;font-size:9px;white-space:nowrap}#reliefButton[aria-pressed="false"]{background:#243a35;color:#a8bbb0}
.division-token .unit-number{font-size:5.5px;fill:#fff4d1}.division-token .division-flag{filter:none}
@media(min-width:821px){.panels-collapsed .map-toolbar,.map-expanded .map-toolbar{flex-direction:row!important;align-items:center!important;gap:14px!important}.panels-collapsed .map-primary-controls,.map-expanded .map-primary-controls{width:auto!important;flex:1}.panels-collapsed .map-secondary-controls,.map-expanded .map-secondary-controls{width:auto!important;flex:none;gap:7px}.panels-collapsed .map-secondary-controls>strong,.map-expanded .map-secondary-controls>strong,.panels-collapsed .map-service-control,.map-expanded .map-service-control,.panels-collapsed .map-secondary-controls>small{display:none}.panels-collapsed .map-toolbar,.map-expanded .map-toolbar{min-height:42px!important}.panels-collapsed .map-primary-controls .map-display-tools,.map-expanded .map-primary-controls .map-display-tools{margin-left:auto!important}}

.service-map-token .marker-badge{fill:#273e38;stroke:#a8b387}.service-map-token .marker-badge-label{fill:#e0e5c5}
.focus-map-node,.focus-map-node.locked{background:linear-gradient(115deg,#3d5041,#2c3f35);border-color:#748268;color:#d7dfc8;box-shadow:0 4px 7px #08191266,inset 0 0 0 3px #74846622}
.focus-map-node.available{background:linear-gradient(115deg,#65704b,#465a3b);border-color:#c3b47d;box-shadow:0 4px 12px #08191266,inset 0 0 0 3px #b2a67333}
.focus-map-node.done{background:linear-gradient(115deg,#4e6844,#344f38);border-color:#9fb47b}
.focus-map-node.working{background:linear-gradient(115deg,#827244,#5b6038);border-color:#e5c883}
.focus-map-node .focus-map-status,.focus-map-node.locked .focus-map-status,.focus-map-node.done .focus-map-status{background:#182c2455;color:#d0dcbc;border-color:#74846188}
.focus-map-node.working .focus-map-status{background:#4b472c;color:#ffdf9e}
.focus-map-node:hover{box-shadow:0 0 16px #c4bc7a44,inset 0 0 0 2px #cfbf8c;color:#eee8c9}

/* 8.14.1: parchment daylight and steel night share the same layout and map. */
:root[data-ui-theme="light"]{--ink:#2c3c39;--muted:#606a5d;--paper:#f1eee4;--panel:#f8f5eb;--line:#c6c7b6;--olive:#4c6043;--green:#405b48;--gold:#876c36;--red:#984e3e;--desk-paper:#f1eee4;--paper-soft:#e8e8d9;color-scheme:light}
:root[data-ui-theme="light"] body{background:#e5e5da;color:var(--ink);color-scheme:light}
.theme-toggle{white-space:nowrap;border:1px solid #8e9b76;background:#3c4e3f;color:#eee5c5;padding:6px 10px;font-size:10px;min-height:30px}
.theme-toggle:hover{background:#5a684b!important;color:#fff0bf!important}
.front-header .theme-toggle{margin-left:auto}.front-header .front-edition{margin-right:auto}
body.light-theme button:hover:not(:disabled){color:#6b5428}
body.light-theme :is(.resource-bar,.masthead,.time-bar){background:linear-gradient(#f1efdf,#d6d9c8);border-color:#9c9e83;color:#293d36;box-shadow:0 2px 7px #44534422,inset 0 1px #fff9}
body.light-theme .masthead{border-bottom-color:#9b8957}
body.light-theme :is(.brand,.brand-year,.brand-emblem){color:#6d5c35}
body.light-theme .brand-emblem{background:#e9e7d4}
body.light-theme :is(.brand small,.nation-identity small,.resource small,.resource strong em,.world-tension>div,.campaign-label small,.footer-hint){color:#596853}
body.light-theme :is(.resource strong,.nation-identity strong,.campaign-label strong){color:#2b4038}
body.light-theme :is(.resource>.icon,.icon-button){color:#576747}
body.light-theme .resource{border-color:#a6ad9555}
body.light-theme .resource small b{color:#456336}
body.light-theme :is(.treasury-resource strong,.world-tension strong){color:#86662d}
body.light-theme .treasury-resource:hover{background:#c7cfb766}
body.light-theme .nav-button{background:linear-gradient(#f0f0e2,#dce1cd);color:#394c3c;border-color:#abb59b;box-shadow:inset 0 1px #fff9,0 1px 2px #31432918}
body.light-theme .nav-button .icon{color:#776235}
body.light-theme .nav-button.active{background:linear-gradient(#d8d1ad,#b5c09c);color:#293c2b;border-color:#8e8656}
body.light-theme .nav-button.active:after{background:#8b793f}
body.light-theme :is(.nav-button,.icon-button):hover{background:#c5cfb5}
body.light-theme .workspace-utility{background:#dce2d2;color:#41543d;border-color:#a7b399}
body.light-theme .workspace-utility :is(button,[data-action="statistics"]){background:#f2f2e5;border-color:#a7b393;color:#354a32}
body.light-theme .workspace-utility [data-staff-badge]{background:#cad4b7;color:#3d4d29}
body.light-theme .command-layout{border-color:#b3bca8}
body.light-theme :is(.management-panel,.intel-panel){background:linear-gradient(115deg,#f8f5eb,#eeeddf);border-color:#bfc4af;box-shadow:2px 0 8px #32452a17}
body.light-theme .panel-heading{background:linear-gradient(#e3e8d7,#d3dcc7);color:#44543b;border-color:#b6c09f}
body.light-theme .management-footer{background:#e7e9db;border-color:#bec7af;color:#4d5d45}
body.light-theme .management-footer button{color:#4d5d45}
body.light-theme .panel-view-tabs{border-color:#c1c9ae}
body.light-theme :is(.panel-view-tabs,.filter-tabs,.military-tabs) button{background:linear-gradient(#f4f3e7,#e1e6d3);color:#3d5134;border-color:#afbd97}
body.light-theme :is(.panel-view-tabs,.filter-tabs,.military-tabs) button.active{background:linear-gradient(#cfdbb8,#b7c79a);color:#2f4626;border-color:#7d9462}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal){color:#314336}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(h1,h2,h3,h4,strong,b){color:#304331}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(p,small,label,li,td,th,.inline-note,.empty-note,.panel-description,.modal-intro,.select-label,.training-resources,.rule-content,.terrain-row,.mini-label,.section-heading,.country-meta,.item-effect,.focus-detail-duration,.country-political-summary,.support-pie-body li,.decision-cost,.decision-status,.political-decision-room-summary,.group-card-heading,.service-list-detail,.statistics-toolbar,.statistics-metrics span,.staff-peek,.staff-next,.staff-peek>span,.staff-summary .section-heading button,.country-meta span,.resource-hint,.country-subtitle){color:#5a684f}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.item-card,.leader-card,.focus-feature,.force-tile,.stock-cell,.stock-grid>div,.objective-note,.empty-note,.national-agenda,.policy-option,.intel-brief,.country-card,.country-save-note,.guide-box,.guide-basics,.event-option,.result-stats>div,.battle-move-from,.battle-intel,.unit-control-instruction,.direct-control-guide,.scenario-options button,.country-intel-grid>div,.country-action-note,.event-budget-note,.peace-scoreboard>div,.peace-note,.peace-regions button,.peace-demand-card,.peace-bid,.peace-last-round,.subject-intro,.subject-card,.alignment-card,.workshop-intro,.tank-stat-grid>div,.tank-help,.tank-unlocks,.tank-unit-spec,.tank-mobile-summary,.battle-assessment,.group-selection-summary,.group-create,.group-assign,.army-group-card,.inspector-group,.service-overview,.service-status-card,.war-summary-card,.war-report-country,.completion-card,.service-guide-steps article,.service-roster-card,.balance-breakdown,.current-force-facts,.hq-shortcuts button,.directory-feature,.rule-search-result,.world-event-watch,.strait-passage-hint,.july-tracker,.political-metrics>div,.political-ready,.archive-dossier,.archive-empty,.item-effect,.slot-icon,.allocation-control,.context-nation-card,.unit-selection-stats,.service-list-row,.service-transfer-form,.service-manifest,.intel-comparison,.war-metrics>div,.current-force-facts>div,.stat-summary>div,.training-resources,.political-support,.july-facts>div,.july-snapshot-note,.political-choices button,.staff-summary,.staff-advice,.storage-notice,.air-effects-readout,.blockade-readout,.save-mechanism article,.country-political-overview,.support-pie-card,.political-decision-card,.decision-active-summary,.statistics-metrics article){background:linear-gradient(115deg,#f1f2e4,#e4e9d6);border-color:#b6c2a0;box-shadow:inset 0 1px #ffffff66}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.track,.tank-stat-grid,.tension-track){background:#d4dcc6}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.field-select,input[type=number],input[type=search],input[type=text],select,#tankName){background:#fffdf3;color:#304332;border-color:#a1b28b}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) .action-button{color:#fff6d9;background:linear-gradient(#687d54,#49633f);border-color:#70865b;box-shadow:inset 0 1px #cbdca655}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.action-button.secondary,.action-button.light){background:linear-gradient(#f6f5e8,#dfe7cf);color:#354c2b;border-color:#9caf83;box-shadow:inset 0 1px #fff9}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) .action-button:hover:not(:disabled){background:#d3dfba;color:#2d4726;border-color:#708957}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) .action-button.danger{color:#7e3a2d;background:#eddbd0;border-color:#bf9380}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.training-shortage,.tank-error,.tank-warning){background:#f4e8cb;color:#80582d;border-color:#cbb380}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.country-card.selected,.policy-option.active,.scenario-options button.active,.peace-regions button.active){border-color:#849b62;background:linear-gradient(#e0e9cd,#cfddba)}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.rule-chapters button.active,.statistics-tabs button.active){background:#c6d6ae;color:#2e4824;border-color:#8ba468}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.rule-content pre,.rule-table tr:first-child,.statistics-table-scroll th,.statistics-table-scroll tbody tr:nth-child(even)){background:#e0e7d4;color:#344b2e}
body.light-theme .modal{background:linear-gradient(115deg,#faf7ed,#e9eddf);border-color:#a8ae90;box-shadow:0 18px 80px #1d352c66,inset 0 0 0 4px #d3d9bf77}
body.light-theme .modal-backdrop{background:#28403380}
body.light-theme .modal-close{background:#dce6ca;color:#405a32;border-color:#9caf83}
body.light-theme .modal-close:hover{background:#c4d2ab;color:#35462a}
body.light-theme .modal-eyebrow{color:#806935}
body.light-theme :is(.modal .rule-table td,.modal .statistics-table-scroll :is(td,th),.statistics-table-scroll,.statistics-tabs,.political-decision-tabs){border-color:#bcc9a7}
body.light-theme .statistics-tabs button{background:#e4ebd5;color:#415638;border-color:#a9bb8f}
body.light-theme .province-heading{background:linear-gradient(#e8edda,#e0e6d3);border-color:#aebd95}
body.light-theme :is(.province-owner,.territory-tag,.context-fold>summary,.dispatch-more){color:#566a48}
body.light-theme :is(.context-fold,.context-tip){border-color:#bcc8aa}
body.light-theme .dispatch.context-fold{background:#e6eddb;border-color:#b6c59f;color:#465f38}
body.light-theme .budget-card{background:linear-gradient(#e5ebd7,#d3dfbd);border-color:#a0b480}
body.light-theme .leader-medallion{background:#d6dfbb;border-color:#a5ad77;color:#4b5c31}
body.light-theme .region-art{background:linear-gradient(transparent,#d3ddbf);color:#819665}
body.light-theme .focus-atlas-header{background:linear-gradient(#e8eddb,#d5dfc7);border-color:#a5b48b}
body.light-theme :is(.focus-atlas-tools,.focus-detail){background:#eef1e1;color:#405436;border-color:#adbe95}
body.light-theme .focus-atlas-tools :is(button,input){background:#f4f5e8;color:#405633;border-color:#acbe91}
body.light-theme .focus-atlas-tools nav button.active{background:#c9d9af;color:#2d4727}
body.light-theme .focus-detail section{border-color:#b4c49c}
body.light-theme .focus-atlas-footer{background:#dae4ca;color:#4d643d}
body.light-theme :is(.news-choice,.news-archive-row,.news-response){background:#e8eddb;color:#3e5231;border-color:#b0c196}
body.light-theme .news-choice:hover:not(:disabled){background:#d5e1c1}
body.light-theme .map-toolbar{background:linear-gradient(#e4ead7,#cbd7c2);border-color:#9dad8b}
body.light-theme .map-toolbar .service-view-tabs button{background:linear-gradient(#f1f2e3,#dce5cc);border-color:#a6b88d;color:#3a522f}
body.light-theme .map-toolbar .service-view-tabs button.active{background:linear-gradient(#c3d2a7,#a8bf89);border-color:#718d52;color:#2c4625;box-shadow:inset 0 -2px #8b9a58}
body.light-theme .map-toolbar :is(.map-display-tools button,select,.map-staff-button),body.light-theme #reliefButton,body.light-theme .theme-toggle{background:#edf1e0;color:#3c5630;border-color:#9fb58b}
body.light-theme .theme-toggle:hover{background:#c7d8ad!important;color:#2d4525!important}
body.light-theme #reliefButton[aria-pressed="false"]{background:#d3dfc8;color:#52674a}
body.light-theme .map-toolbar .map-display-tools button:hover{background:#c4d4b1}
body.light-theme :is(.map-secondary-controls>strong,.map-secondary-controls>small,.map-service-control,.map-layer-control){color:#4d6341}
body.light-theme :is(.army-group-bar,.unit-command-bar,.situation-bar){background:linear-gradient(#e2e9d4,#cfdcc1);border-color:#9caf83;color:#415a36}
body.light-theme :is(.group-bar-label,.command-selection small,.command-key-hint,.situation-title){color:#4b633b}
body.light-theme .command-selection strong{color:#334d2b}
body.light-theme :is(.army-group-shortcut,.group-edit-button,.select-army-button,.unit-command-buttons button){background:linear-gradient(#f1f2df,#d6e1c2);border-color:#99ae7a;color:#38512b;box-shadow:inset 0 1px #fff8,0 2px 4px #344d291a}
body.light-theme :is(.army-group-shortcut.active,.unit-command-buttons button.active){background:#bbcd9a;color:#2f4722;border-color:#7d945b}
body.light-theme .battle-count{color:#785c31}
body.light-theme :is(.time-controls .step-button,.speeds button.active){background:linear-gradient(#eef0dd,#cfdcba);border-color:#9aaf7c;color:#3c522a}
body.light-theme .play-button{background:linear-gradient(#dae0ba,#b7c793);color:#3b4f27;border-color:#93a568}
body.light-theme .speeds button{color:#556948}
body.light-theme .save-failed{color:#a13c2f!important}body.light-theme .save-conflict{color:#8e6326!important}
body.light-theme.command-theme :is(.management-panel,.intel-panel,.modal) :is(.country-meta b,.intelligence-label,.intelligence-label.detailed,.july-state,.war-badge,.peace-badge){background:#e0e6c9;border-color:#afbb8a;color:#536434}
body.light-theme :is(.staff-advice,.staff-progress,.staff-peek):hover{background:#d4dfbd}
body.light-theme .focus-map-node,body.light-theme .focus-map-node.locked{background:linear-gradient(#ecf0e2,#d9e3cd);border-color:#a9bc94;color:#405b33;box-shadow:0 4px 7px #2d482522,inset 0 0 0 3px #afbe9a33}
body.light-theme .focus-map-node.available{background:linear-gradient(#e1e9c9,#ceddb2);border-color:#91ab6c}
body.light-theme .focus-map-node.done{background:linear-gradient(#d6e5c7,#b9d09f);border-color:#88a76c}
body.light-theme .focus-map-node.working{background:linear-gradient(#f0e5c0,#dfd3a3);border-color:#ad9557}
body.light-theme .focus-map-node .focus-map-status{background:#edf2dd;color:#4f6839;border-color:#adbd8f}
body.light-theme .focus-map-node.working .focus-map-status{background:#e7dcae;color:#786022}
body.light-theme .front-menu{background:#eae7d9;color:#314635}
body.light-theme .front-menu::before{opacity:.6;filter:saturate(.55)}
body.light-theme .front-menu::after{background:linear-gradient(90deg,#f3eedf 0%,#eeecddf5 28%,#eeecddca 44%,#eff1df20 74%),linear-gradient(0deg,#e0e5cfee,transparent 55%,#edf0dc66)}
body.light-theme .front-header{background:linear-gradient(#f3f0e2bb,#dde3d088);border-color:#a8b38c77}
body.light-theme :is(.front-wordmark,.front-introduction h1){color:#304936;text-shadow:1px 2px #fff8}
body.light-theme :is(.front-wordmark .icon,.front-introduction h1 span,.front-years b,.front-kicker,.front-seal .icon){color:#8b713a}
body.light-theme :is(.front-wordmark small,.front-edition,.front-manual-link,.front-overline,.front-introduction h1 small,.front-years span,.front-description,.front-reference,.front-atlas-note p,.front-seal span){color:#536849}
body.light-theme .front-action{background:linear-gradient(100deg,#faf7e8dd,#e5ead6dd);border-color:#aab98d;color:#36502d;box-shadow:inset 0 0 0 2px #b7c39a33}
body.light-theme .front-action :is(small,.front-action-number,.icon,b){color:#596e43}
body.light-theme .front-action.primary{background:linear-gradient(110deg,#e5d4a4,#cbbb83);border-color:#b29d64;color:#334627;box-shadow:inset 0 0 0 3px #e7dbb0,0 6px 18px #354c271a}
body.light-theme .front-action:hover:not(:disabled){background:#e0e8ce;color:#2d4829;border-color:#92a66c}
body.light-theme .front-atlas-note{color:#344d32;text-shadow:0 1px #fff8}
body.light-theme .front-atlas-note>small{color:#5c683f}
body.light-theme .front-footer{color:#516744;border-color:#acb998}
body.light-theme .front-menu .storage-notice{background:#edf0dfdf;border-color:#a7b78b;color:#4b603a}
body.light-theme .front-menu .storage-notice :is(strong,p){color:#4b603a}
body.light-theme .front-menu .storage-notice .action-button{background:#fffbed;color:#3e542d;border-color:#a5b884}
@media(max-width:820px){.front-header{flex-wrap:wrap}.front-header .front-edition{display:none}.front-header .theme-toggle{margin-left:auto}.front-header .front-manual-link{font-size:10px}}
body.light-theme .focus-chart-viewport{background-color:#e4e9d9;background-image:radial-gradient(#8b9e6f44 .8px,transparent .8px),linear-gradient(90deg,#e6ebda22,#d3debc33);scrollbar-color:#99ab7c #dde4cd}
body.light-theme .focus-root-label{color:#53663e}
body.light-theme .focus-edge{stroke:#8b9e70}body.light-theme .focus-edge.fulfilled{stroke:#89713b}
body.light-theme :is(.focus-atlas-close,.focus-atlas-footer b,.front-footer b){color:#657348}

/* Shared inner surfaces: legacy autonomy/politics cards must follow the active palette. */
:root{--inner-surface:#344037;--inner-border:#647456;--inner-hover:#49593e;--inner-active:#4d6140;--inner-done:#3e593b;--inner-working:#5f5a39;--inner-text:#d8e1c7}
:root[data-ui-theme="light"]{--inner-surface:#e9eddd;--inner-border:#b5c39e;--inner-hover:#d7e1c5;--inner-active:#d7e4bd;--inner-done:#ccdfb8;--inner-working:#e9dfb9;--inner-text:#38502d}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.political-columns>section,.political-conditions,.political-front-grid>article,.peace-quote,.peace-contribution,.production-visual,.welcome-strip,.tank-ready,.focus-node,.focus-zoom-controls button){background:var(--inner-surface);border-color:var(--inner-border);color:var(--inner-text)}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.political-columns>section,.political-conditions){padding:16px;box-shadow:inset 0 1px #ffffff0c}
body.command-theme :is(.management-panel,.intel-panel,.modal) .political-conditions{padding-left:32px}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.subject-card summary,.diplomatic-status span,.focus-node .node-status,.production-visual .icon){color:var(--inner-text)}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.focus-node.available,.peace-scoreboard>div.ours){background:var(--inner-active);border-color:var(--inner-border)}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.focus-node.done,.item-card.done){background:var(--inner-done);border-color:var(--inner-border)}
body.command-theme :is(.management-panel,.intel-panel,.modal) .focus-node.working{background:var(--inner-working);border-color:var(--gold)}
body.command-theme :is(.management-panel,.intel-panel,.modal) :is(.directory-feature,.rule-search-result,.hq-shortcuts button,.diplomacy-country,.event-option,.political-choices button):hover:not(:disabled){background:var(--inner-hover);color:var(--inner-text);border-color:var(--inner-border)}
body.command-theme .diplomacy-risk{background:var(--inner-working);border:1px solid var(--gold);padding:14px;margin:16px 0;line-height:1.8;color:var(--inner-text)}
body.command-theme .diplomacy-risk ul{margin:8px 0;padding-left:20px}

/* Resistance uses the same surfaces in both themes. */
.resistance-overview{margin:18px 0;padding:18px;border:1px solid var(--inner-border);background:var(--inner-surface);color:var(--inner-text)}
.resistance-overview p{font-size:12px;line-height:1.8;margin:8px 0}.resistance-summary{font-weight:600}.resistance-facts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:11px;padding:10px 0}.resistance-facts b{margin-left:6px}.resistance-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.resistance-routes article{padding:12px;border:1px solid var(--inner-border)}.resistance-routes .counting{background:var(--inner-working);border-color:var(--gold)}.resistance-routes article>div{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;font-size:12px}.resistance-routes small{font-size:10px}.resistance-routes progress{width:100%;height:5px;accent-color:var(--gold);margin-top:10px}.resistance-routes p{font-size:11px}.resistance-overview details{font-size:11px;margin-top:12px}.resistance-overview summary{cursor:pointer;color:var(--gold)}
@media(max-width:650px){.resistance-routes{grid-template-columns:1fr}.resistance-overview{padding:12px}}
.resistance-routes progress{background:var(--inner-border);border:0}.resistance-routes progress::-webkit-progress-bar{background:var(--inner-border)}.resistance-routes progress::-webkit-progress-value{background:var(--gold)}.resistance-routes progress::-moz-progress-bar{background:var(--gold)}
.resistance-routes article.immediate{grid-column:1/-1}

/* 8.14.6: an autonomy dossier with explicit roles, actions and eligibility. */
.modal.autonomy-modal{width:min(1060px,calc(100vw - 40px));padding:30px 34px;overflow-x:hidden}
.autonomy-modal .modal-intro{margin-bottom:18px}
.autonomy-modal :is(.autonomy-countries,.autonomy-tabs){display:flex;gap:6px;overflow-x:auto;padding:3px 0 10px;scrollbar-width:thin}
.autonomy-modal .autonomy-countries button{display:flex;align-items:center;gap:9px;flex:0 0 auto;min-height:42px;padding:8px 16px;background:var(--inner-surface);border:1px solid var(--inner-border);color:var(--inner-text)}
.autonomy-modal .autonomy-countries .flag{width:24px;height:16px;flex-shrink:0}
.autonomy-modal .autonomy-countries button.active{border-color:var(--gold);background:var(--inner-active);box-shadow:inset 0 -2px var(--gold)}
.autonomy-modal .autonomy-identity{display:flex;gap:16px;align-items:center;padding:18px 0 14px;border-bottom:1px solid var(--inner-border)}
.autonomy-modal .autonomy-identity>.flag{width:48px;height:32px;flex-shrink:0}
.autonomy-modal .autonomy-identity h3{font:25px var(--serif);margin:0 0 5px}
.autonomy-modal .autonomy-identity p{font-size:12px;margin:0;line-height:1.6}
.autonomy-role{margin-left:auto;border:1px solid var(--inner-border);padding:6px 9px;white-space:nowrap;font-size:11px;color:var(--inner-text)}
.autonomy-modal .autonomy-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:14px 0;font-size:12px}
.autonomy-summary>b{font-size:13px}.autonomy-summary>span{color:var(--muted)}.autonomy-summary>small{flex-basis:100%}.autonomy-summary>.action-button{margin-left:auto}
.autonomy-modal .autonomy-tabs{gap:0;border-bottom:1px solid var(--inner-border);padding:0;margin:8px 0 20px}
.autonomy-tabs button{flex:1;min-height:44px;min-width:100px;background:transparent;border:0;border-bottom:3px solid transparent;padding:12px;color:var(--inner-text);font-size:13px}
.autonomy-tabs button[aria-pressed="true"]{border-bottom-color:var(--gold);background:var(--inner-active);font-weight:700}
.autonomy-modal :is(.autonomy-countries,.autonomy-tabs) button:hover{background:var(--inner-hover);color:var(--inner-text)}
.autonomy-modal button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.autonomy-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.autonomy-modal :is(.autonomy-metrics>article,.autonomy-action-card){background:var(--inner-surface);border:1px solid var(--inner-border);padding:18px}
.autonomy-metrics small{font-size:12px}.autonomy-metrics strong{display:block;font:30px Georgia,var(--serif);margin:10px 0}.autonomy-metrics em{font:12px var(--sans);color:var(--muted)}
.autonomy-modal .autonomy-metrics p{font-size:12px;line-height:1.75;margin:0}
.autonomy-section-heading{display:flex;gap:10px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin:24px 0 12px}.autonomy-modal .autonomy-section-heading h3{margin:0;font-size:17px}.autonomy-section-heading>span{color:var(--muted);font-size:12px}
.autonomy-actions-grid,.autonomy-response-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.autonomy-action-card{display:flex;flex-direction:column}.autonomy-modal .autonomy-action-card h4{font-size:16px;margin:0 0 8px}
.autonomy-modal .autonomy-action-card p{font-size:12px;line-height:1.75;margin:0 0 12px}
.autonomy-effects{display:flex;flex-wrap:wrap;gap:8px 16px;border-top:1px solid var(--inner-border);padding:12px 0;font-size:12px}.autonomy-effects b{white-space:nowrap}
.autonomy-modal .autonomy-action-card .autonomy-tribute-note{font-size:11px}
.autonomy-action-bottom{margin-top:auto;border-top:1px solid var(--inner-border);padding-top:12px;display:grid;gap:10px}.autonomy-action-bottom>span{font-size:12px}.autonomy-action-bottom>.action-button{width:100%;min-height:40px}
.autonomy-modal .autonomy-action-bottom .autonomy-action-state{margin:0;min-height:21px;font-size:12px}.autonomy-modal .unmet{color:var(--red)!important}.autonomy-modal .met{color:var(--inner-text)}
.autonomy-modal .autonomy-help{font-size:12px;line-height:1.8;margin:12px 0}
.autonomy-route-intro{padding:0 0 16px}.autonomy-modal .autonomy-route-intro h3{font-size:16px;margin:0 0 8px}.autonomy-modal .autonomy-route-intro p{font-size:12px;line-height:1.8;margin:0}
.autonomy-progress-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px}.autonomy-progress-columns>section{min-width:0}.autonomy-modal .autonomy-progress-columns h3{display:flex;gap:10px;justify-content:space-between;align-items:baseline;font-size:15px;margin:0 0 12px}.autonomy-progress-columns h3 small{font:11px var(--sans);white-space:nowrap}
.autonomy-table-wrap{overflow-x:auto;border:1px solid var(--inner-border)}.autonomy-requirements{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.autonomy-requirements :is(td,th){padding:10px 8px;border-bottom:1px solid var(--inner-border);font-weight:400}.autonomy-requirements thead{background:var(--inner-surface)}.autonomy-requirements tbody tr:last-child>*{border-bottom:0}.autonomy-requirements :is(td:last-child,th:last-child){text-align:right;white-space:nowrap}.autonomy-check{font-size:11px}
.autonomy-checklist{padding:0;list-style:none;display:grid;gap:8px;margin:14px 0}.autonomy-checklist li{display:flex;gap:8px;font-size:11px;line-height:1.7}.autonomy-checklist small{display:block}
.autonomy-stage-list{display:grid;gap:10px}.autonomy-stage{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--inner-border);padding:13px;background:var(--inner-surface)}.autonomy-stage>div{min-width:0;flex:1}.autonomy-stage.done{background:var(--inner-done)}.autonomy-stage.working{border-color:var(--gold)}
.autonomy-stage-number{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border:1px solid var(--inner-border);color:var(--inner-text);font:14px Georgia}
.autonomy-modal .autonomy-stage h4{font-size:13px;margin:0 0 5px}.autonomy-stage small{font-size:11px}.autonomy-modal .autonomy-stage p{font-size:11px;line-height:1.7;margin:6px 0}.autonomy-stage progress{width:100%;height:5px;accent-color:var(--gold)}.autonomy-stage .action-button{margin-top:5px}
.autonomy-prerequisite{padding:12px;border:1px solid var(--gold);margin-bottom:12px;font-size:12px}.autonomy-prerequisite p{font-size:11px}
.autonomy-petition{background:var(--inner-working);border:1px solid var(--gold);padding:18px;margin:8px 0 20px}.autonomy-kicker{font-size:10px;letter-spacing:2px;color:var(--inner-text)}.autonomy-modal .autonomy-petition h3{font-size:18px;margin:8px 0}.autonomy-modal .autonomy-petition p{font-size:12px;line-height:1.8;margin:8px 0 12px}.autonomy-response-grid>div{border-top:1px solid var(--inner-border);padding-top:12px}.autonomy-response-grid .action-button{width:100%}
.autonomy-submit{border-top:1px solid var(--inner-border);padding:14px 0;margin-top:14px}.autonomy-modal .autonomy-submit p{font-size:12px;line-height:1.8;margin-bottom:0}.autonomy-submit .action-button{max-width:100%;white-space:normal}
.autonomy-war-note{border-left:3px solid var(--red);padding-left:14px;margin-bottom:12px}
.autonomy-modal .autonomy-footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;padding-top:16px}.autonomy-footer .action-button:last-child{margin-left:auto}
@media(max-width:760px){.modal.autonomy-modal{width:calc(100vw - 20px);padding:24px 18px}.autonomy-progress-columns{grid-template-columns:1fr;gap:24px}.autonomy-modal .autonomy-metrics>article{padding:12px}.autonomy-metrics strong{font-size:25px}.autonomy-identity{flex-wrap:wrap}.autonomy-role{margin-left:64px}.autonomy-summary>.action-button{margin-left:0}.autonomy-modal .autonomy-identity h3{font-size:21px}}
@media(max-width:520px){.autonomy-metrics,.autonomy-actions-grid,.autonomy-response-grid{grid-template-columns:1fr}.autonomy-metrics>article{display:grid;grid-template-columns:1fr auto;gap:8px}.autonomy-metrics strong{margin:0;grid-row:span 2}.autonomy-metrics p{grid-column:1}.autonomy-modal .autonomy-footer .action-button{width:100%;margin:0}.autonomy-requirements :is(td,th){padding:9px 5px;font-size:11px}}
