/* Classic is the existing palette. Only the two optional themes override it. */
.theme-choices193{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.mechanical-ui #dialog label.theme-choice193{display:flex;flex-direction:column;gap:7px;position:relative;padding:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font:12px var(--ui-font);min-width:0;margin:0}
.theme-choice193>input{position:absolute;top:16px;right:16px;z-index:1;width:17px;height:17px;accent-color:var(--accent)}
body.mechanical-ui #dialog .theme-choice193:has(input:checked){border-color:var(--accent);box-shadow:inset 0 -3px var(--accent)}
.theme-choice193:focus-within{outline:2px solid var(--ui-blue);outline-offset:2px}.theme-choice193 strong{font-size:13px;color:var(--ink)}.theme-choice193 small{color:var(--gold)}.theme-choice193>span:last-child{color:var(--muted);line-height:1.5}
.theme-swatch193{display:block;position:relative;height:90px;overflow:hidden;background:var(--sample-bg);border:2px solid var(--sample-edge);width:100%}
.theme-swatch193 i{display:block;position:absolute}.swatch-rail{inset:0 auto 0 0;width:24%;border-right:2px solid var(--sample-edge);background:var(--sample-panel)}.swatch-head{inset:0 0 auto 24%;height:15px;background:var(--sample-panel);border-bottom:2px solid var(--sample-edge)}.swatch-map{inset:22px 36% 9px 30%;background:#52674e;clip-path:polygon(8% 9%,42% 0,83% 20%,100% 55%,82% 82%,40% 100%,0 60%)}.swatch-panel{inset:24px 6% 9px 71%;background:var(--sample-panel);border-top:3px solid var(--sample-accent);box-shadow:inset 0 -8px var(--sample-edge)}
.swatch-classic{--sample-bg:#11161a;--sample-panel:#242e35;--sample-edge:#56636d;--sample-accent:#dca65b}.swatch-retro90{--sample-bg:#252c22;--sample-panel:#454f39;--sample-edge:#929d6b;--sample-accent:#d9ce81;image-rendering:pixelated}.swatch-historical1099{--sample-bg:#e7dcc2;--sample-panel:#d4c29c;--sample-edge:#a18752;--sample-accent:#803d3c}
html[data-theme=retro90]{color-scheme:dark;--bg:#252c22;--surface:#35402e;--surface2:#454f39;--line:#697455;--ink:#eef0d6;--muted:#bcc6a6;--accent:#d9ce81;--gold:#e5d99b;--red:#ffb69d;--ui-blue:#c0d4aa;--ui-good:#b9d495;--ui-edge:#929d6b;--ui-input:#20281d;--ui-font:'Courier New',Courier,monospace;--ui-heading:'Courier New',Courier,monospace;--ui-number:var(--ui-font);--theme-rail:#303929;--theme-hover:#424c37;--theme-active:#50573b;--theme-radius:0px;--theme-shadow:inset 1px 1px #d6dfa13d,inset -2px -2px #121d1380}
html[data-theme=historical1099]{color-scheme:light;--bg:#e7dcc2;--surface:#f1e7d2;--surface2:#e1d1ad;--line:#b49d71;--ink:#30271d;--muted:#655641;--accent:#803d3c;--gold:#764d22;--red:#973c31;--ui-blue:#3d6470;--ui-good:#3d6143;--ui-edge:#9d845a;--ui-input:#faf3e3;--ui-font:Georgia,'Times New Roman',serif;--ui-heading:'Siliconarya Serif',Georgia,serif;--ui-number:ui-monospace,Consolas,monospace;--theme-rail:#d4c29c;--theme-hover:#e7d7b5;--theme-active:#ddc49a;--theme-radius:2px;--theme-shadow:inset 0 1px #fff9e890,0 2px 3px #62482416}
@font-face{font-family:'Siliconarya Serif';src:url('fonts/DejaVuSerif.woff') format('woff');font-display:swap}
html:is([data-theme=retro90],[data-theme=historical1099]){--panel:var(--surface);--text:var(--ink);--ea-bg:var(--bg);--ea-panel:var(--surface);--ea-muted:var(--muted);--ea-line:var(--line);--ea-gold:var(--gold);--ea-green:var(--ui-good);--command-paper:var(--surface);--command-border:var(--line);--command-ink:var(--ink);--command-muted:var(--muted);--command-brass:var(--gold);--command-friendly:var(--ui-good);--command-enemy:var(--red)}
html:is([data-theme=retro90],[data-theme=historical1099]) body:is(.mechanical-ui,.mechanical-document){background:var(--bg);color:var(--ink);font-family:var(--ui-font)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.sidebar,.header,#moreNav,.province-panel,.army-dock,.front-dock,.nation-chip,.battle-panel,#dialog,.tutorial-coach,.map-error,.boot-actions,.map-advice,.target-bar,.economic-legend){background:var(--theme-rail);color:var(--ink);border-color:var(--ui-edge);box-shadow:var(--theme-shadow)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.system-card,.list-card,.econ-card,.clarity-catalog,.clarity-selection,.clarity-country-browser,.clarity-country-detail,.clarity-queue,.market-card,.market-order,.message-card,.message-item,.plan-card,.plan-note-card,.minister-profile,.ministry-budget,.minister-office,.task-card,.subject-card,.relic-card,.progress-card,.specialty-panel,.policy-panel,.account-note,.dialog-note,.metrics>div,.hub-action,.hub-card,.command-card,.research-metrics190>div,.research-center192,.research-detail190,.research-idle190,.research-overview192,.research-path192,.research-project192,.research-active190,.research-funding190,.clarity-project,.clarity-picked-list,.econ-policy-brief,.econ-note182,.econ-main182,.econ-result182,.ministry-card,.budget-card,.system-notice,.formation-card,.stats-card,.timeline-card){background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:var(--theme-radius);box-shadow:var(--theme-shadow)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.btn,button.header-icon,.account-btn,.ts1-toggle,.ts1-tag,.atlas-controls button,.globe-toolbar button,.camera-tools button,.battle-actions button,.section-nav button,.clarity-project,.color-presets button){background:var(--surface2);color:var(--ink);border-color:var(--ui-edge);border-radius:var(--theme-radius);box-shadow:var(--theme-shadow)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.btn.primary,button.primary){background:var(--accent);color:var(--bg);border-color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.btn,.section-nav button,.main-nav button):hover{background:var(--theme-hover);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.main-nav button.active,.section-nav button.active,.map-modes button.active,.map-projections button.active,.clarity-project[aria-pressed=true]){background:var(--theme-active);color:var(--gold);border-color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(input:not([type=color]):not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea,.resources,.map-search,#mapSearchResults,.map-top .atlas-controls,.globe-toolbar,.map-zoom,.welcome,.found-hint){background:var(--ui-input);color:var(--ink);border-color:var(--line);border-radius:var(--theme-radius)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.game-calendar b,.sidebar-studio b,.header-icon,.resource:nth-child(3),.map-search button,.map-bottom,#mapLegend,.board-help,.board-corner,.battle-scores,.selection-info,.table-wrap,table th,table td,.command-label,.clarity-field,.system-card p,.list-card p,.econ-card p,.research-node190 small){color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.sidebar-help,.nav-caption,.main-nav button::after,.page-context small,.context-path18d1 span,.resource-label,.system-card small,.list-card small){color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.table-wrap,table thead,.map-bottom,.battle-top,.battle-scores,.battle-tools,.battle-actions,.hub-hero,.command-hero,.command-toolbar,.clarity-filters,.clarity-picked,.metrics,.system-summary,.econ-stats){background:var(--surface);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.research-tree-panel190,.research-scroll190,.research-node190,.research-detail190,.research-tree-wrap192){background:var(--surface);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .research-node190:is([aria-pressed=true],.completed){background:var(--theme-active);border-color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .research-node190.locked{background:var(--surface2);color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .research192 :is(.tree-edge191,.research-edge190){stroke:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .research192 :is(.tree-edge191.done,.tree-edge191.path192){stroke:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(.research192,.research193) :is(h2,h3,.research-node190 b,.research-node190 strong,.research-center192 b,.research-card190 b){color:var(--ink)}
html[data-theme=historical1099] body.mechanical-ui :is(.sidebar,.header){background:linear-gradient(90deg,#d4c29c,#e3d2ad);box-shadow:inset 0 -3px #9c784a55}
html[data-theme=historical1099] body.mechanical-ui :is(.page-head,.dialog-head,.section-nav){border-bottom:2px solid var(--ui-edge)}
html[data-theme=historical1099] body.mechanical-ui #app h1{font-weight:400;letter-spacing:-.035em}
html[data-theme=retro90] body.mechanical-ui :is(.page-head,.dialog-head,.section-nav){text-transform:uppercase;letter-spacing:.025em}
html[data-theme=retro90] body.mechanical-ui .sidebar{box-shadow:inset -3px 0 #1c2518,inset -4px 0 #929d6b}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-document :is(.masthead,.page-footer,.preview-header,.hero,.facts,.contents,.guide article,.preview-settings,.preview-battle,.preview-travel,.preview-catalog,.footer,.checks li,.panel){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--theme-shadow)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-document :is(p,li,.preview-header small,.preview-section-head>span,.preview-footnote,.edition,.facts dd,.contents a){color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-document :is(button,select,input,.btn,.preview-back){background:var(--surface2);color:var(--ink);border-color:var(--ui-edge);border-radius:var(--theme-radius)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-document :is(h1,h2,h3,dt,.brand,.history-entry h3){font-family:var(--ui-heading);color:var(--ink)}
/* New banner controls are shared by founding and country editing. */
.banner-editor193{border:1px solid var(--line);padding:16px;min-width:0;margin:18px 0;background:var(--surface);color:var(--ink)}.banner-editor193 legend{font-size:13px;font-weight:700;padding:0 8px;color:var(--gold)}
.banner-preview193{display:grid;grid-template-columns:minmax(120px,190px) 1fr;align-items:center;gap:22px;margin-bottom:18px;border-bottom:1px solid var(--line);padding-bottom:16px}.banner-preview193 [data-banner-preview]{background:var(--surface2);border:1px solid var(--ui-edge);padding:12px}.banner-preview193 svg{display:block;width:100%;height:auto;max-height:130px}.banner-preview193 strong{display:block;font:19px var(--ui-heading);margin:7px 0;overflow-wrap:anywhere}.banner-preview193 small{display:block;color:var(--muted);line-height:1.6}
body.mechanical-ui #dialog .banner-controls193{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:14px}.banner-controls193 input[type=color]{width:100%;height:39px;cursor:pointer;padding:3px;border:1px solid var(--line);background:var(--surface2)}
.banner-palettes193{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 18px}.banner-palettes193 button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);font-size:11px;padding:7px;text-align:left;min-height:35px}.banner-palettes193 i{width:24px;height:18px;background:linear-gradient(90deg,var(--pair-a) 50%,var(--pair-b) 50%);border:1px solid var(--ui-edge);flex:none}
.banner-symbol-head193{display:grid;grid-template-columns:1fr 1fr;gap:12px}.banner-symbols193{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;max-height:310px;overflow:auto;padding:3px;scrollbar-width:thin;border:1px solid var(--line);background:var(--ui-input)}
body.mechanical-ui #dialog label.banner-symbol193{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;margin:0;padding:10px 5px 8px;border:1px solid var(--line);background:var(--surface);cursor:pointer;color:var(--ink);font-size:10px;text-align:center;line-height:1.35}
.banner-symbol193[hidden]{display:none!important}.banner-symbol193 input{position:absolute;top:5px;right:4px;width:11px;height:11px;margin:0;accent-color:var(--accent)}.banner-symbol193 svg{width:29px;height:29px;color:var(--gold)}.banner-symbol193 span{min-height:27px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.banner-symbol193:has(input:checked),.banner-symbol193.selected{border-color:var(--accent)!important;box-shadow:inset 0 -2px var(--accent)}.banner-symbol193:focus-within{outline:2px solid var(--ui-blue);outline-offset:-2px}.banner-tools193{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:12px}.banner-tools193 small{margin-left:auto;color:var(--muted);font-size:11px}
body.mechanical-ui .flag.vector-flag193{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;width:50px;height:34px;flex:none}.flag.vector-flag193>.realm-banner{width:100%;height:100%;display:block}.nation-title .vector-flag193{width:65px!important;height:44px!important}
.preview-theme193{display:flex;align-items:center;gap:10px;font-size:12px}.preview-catalog #previewUnits{width:100%;display:block;height:750px}.preview-legend193{color:var(--muted);font-size:12px;line-height:1.7}
@media(max-width:700px){.theme-choices193{grid-template-columns:1fr}.theme-swatch193{width:92px;height:68px;float:left}.theme-choice193{min-height:100px}.banner-preview193{grid-template-columns:125px 1fr;gap:12px}.banner-preview193 strong{font-size:16px}.banner-symbols193{grid-template-columns:repeat(4,minmax(0,1fr));max-height:295px}.banner-editor193{padding:10px}.banner-controls193{grid-template-columns:1fr 1fr!important}.banner-controls193>label:last-child{grid-column:1/-1}.banner-palettes193{grid-template-columns:repeat(4,minmax(0,1fr))}.banner-palettes193 button{font-size:9px;padding:5px;gap:4px}.banner-palettes193 i{width:17px}.banner-symbol-head193{grid-template-columns:1fr}.banner-tools193 small{width:100%;margin-left:0}.preview-catalog #previewUnits{height:1728px}}
@media(prefers-reduced-motion:reduce){.theme-choice193,.banner-symbol193{transition:none}}
.unit-emblem.character-icon193 img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto}.unit-emblem.character-icon193{width:34px;height:34px;padding:0}.unit-emblem.character-icon193.large{width:50px;height:50px}.large-unit-icons .unit-emblem.character-icon193{width:46px;height:46px}.unit-badge:has(.character-icon193){padding:0;width:auto;height:auto;background:none;border:0}
.preview-duel193{margin-block:22px}.preview-duel193 canvas{width:100%;height:190px;display:block}.preview-duel193 .preview-settings{margin-bottom:14px;gap:16px}.preview-duel193 .preview-settings label{min-width:0;flex-wrap:wrap}.preview-duel193 select{max-width:100%}#previewRoster193{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#previewRoster193 li{padding:10px;border:1px solid var(--line);background:var(--surface)}#previewRoster193 b,#previewRoster193 span{display:block}#previewRoster193 span{font-size:11px;color:var(--muted)}@media(max-width:700px){#previewRoster193{grid-template-columns:1fr}.preview-duel193 .preview-settings{display:grid;grid-template-columns:minmax(0,1fr)}.preview-duel193 select{width:100%}.preview-duel193 h2{font-size:20px}}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(h1,h2,h3,h4,strong,b,label,legend,summary,th,td){color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(p,small,.muted,.dialog-note,.section-description,.research190 small,.research190 label,.research192 small,.research192 label){color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.settings-group,.dialog-head,.empty-note,.research-overview192,.research-groups192,.research-group192,.research-branch192,.research-mini192,.research-reward190,.research-speed-detail190,.research-hint192,.research-results192,.research-detail190,.research-detail190 article,.research-idle190,.research-center192,.research-active190,.research-project192,.research-tree-panel190,.research-node190,.research-stat190,.research-metrics190>div,.econ-metrics182>div,.econ-metric182,.econ-tabs182,.econ-overview182,.econ-summary182,.econ-summary-card182,.econ-intro182,.econ-details182,.econ-explain182,.ministry-shortcut,.system-card,.list-card,.command-hero,.command-card,.command-status,.command-action,.quick-card,.hub-hero,.hub-card,.hub-action,.budget-card,.budget-row,.budget-policy,.system-summary,.army-card,.ship-card,.fleet-card,.naval-card,.battle-status,.battle-preparation,.trade-card,.message-card,.subject-card,.bank-card){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--theme-shadow)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.research-node190.locked,.research-node190.portal192,.research-node190:not(.done):not(.active190),.research192 .research-group192,.research192 .research-reward192,.research192 .unit-reward192,.econ-totals182,.econ-brief182){background:var(--surface2);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) .research192 :is(.research-node190[aria-pressed=true],.research-group192.active,.research-group192[aria-pressed=true]){background:var(--theme-active);border-color:var(--accent)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) .research192 :is(.research-node190 strong,.research-node190 b,.research-metrics190 b,.research-center192 b,.research-group192 b,.research-detail190 h2,.research-detail190 h3,.unit-reward192 b){color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) .research192 :is(.research-node190 small,.research-node190 span,.research-group192 small,.research-center192 p,.research-center192 small,.research-tree-panel190 p,.research-hint192,.research-filter192,.research-mini192,.research-node190 em){color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.research-group192,.research192 .research-groups192 button,.research192 .research-area192,.econ-tabs182 button,.econ-tabs182 button.active,.command-tabs button.active,.system-tabs button.active){background:var(--surface2);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.research192 .research-groups192 button.active,.research192 .research-area192.active,.econ-tabs182 button.active){background:var(--theme-active);border-color:var(--accent);color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .dialog-head{background:var(--surface2);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) a{color:var(--ui-blue)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) .btn.primary{color:var(--bg)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui .ts1-toggle i{color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.overview-metrics>article,.econ-overview>article,.season-metrics>article,.production-strip>div,.clarity-production>div,.econ-summary>div,.world-facts,.journey-card,.dispatch-card,.quick-card,.guide-article,.ts1-feature-list li,.credits-cover,.save-notice,.econ-note182,.clarity-search,.clarity-gain,.clarity-picked-list,.clarity-country.selected,.clarity-offer,.guide-topics,.guide-tip,.admin-target>div,.ministry-journal,.command-empty,.convoy-detail,.army-return,.mobilization-preview,.globe-army-picker,.globe-unit-tooltip,.front-card,.province-economy,.battle-score,.task-note,.role-note,.gate-note,.protection-notice,.research-result192,.research192 .prerequisite192,.center-requirement192,.paid-note192,.research192 .research-state190,.unit-reward192,.training-queue192){background:var(--surface);color:var(--ink);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.econ-overview>article b,.overview-metrics>article b,.production-strip b,.research192 .research-metrics190 b){color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.quick-grid button,.econ-tabs button,.clarity-tabs button,.development-tabs button,.minister-tabs button,.filter-pills button,.clarity-segment button,.clarity-category button,.diplomacy-filter button,.admin-tabs button,.guide-topics button){background:var(--surface2);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(.econ-tabs,.clarity-tabs,.development-tabs,.minister-tabs,.filter-pills,.clarity-segment,.clarity-category,.diplomacy-filter,.admin-tabs,.guide-topics) :is(button.active,[aria-pressed=true],[aria-selected=true]){background:var(--theme-active);color:var(--gold);border-color:var(--accent)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 :is(.research-metrics190,.research-groups192,.tree-map192 svg){background:var(--surface2);color:var(--ink);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .research-groups192 button{background:var(--surface2);color:var(--ink);border-color:var(--ui-edge)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .research-groups192 button[aria-pressed=true]{background:var(--theme-active);color:var(--gold);border-color:var(--accent)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .research-groups192 button small{color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 :is(.research-node190 span,.research-node190 em,.research-node190 small,.research-hint192,.research-toolbar190,.research-toolbar190 label,.research-mini192,.research-tree-panel190>p,.research-center192 small,.research-center192 p,.research-detail190>p,.research-detail190>blockquote,.research-result192 small){color:var(--muted)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 :is(.research-node190 h3,.research-node190 b,.research-detail190 h2,.research-detail190 h3,.research-tree-panel190 h2,.research-center192 h3,.research-center192 b,.unit-reward192 b){color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .research-start190{background:var(--accent);color:var(--bg);border-color:var(--gold)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .research-start190:disabled{background:var(--surface2);color:var(--muted);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 :is(.research-state190,.unit-reward192,.prerequisite192,.center-requirement192,.paid-note192){background:var(--surface2);color:var(--ink);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui :is(#app,#dialog) :is(details>summary,.dialog-head h2,.settings-group legend){color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #dialog .dialog-head{background:var(--surface2);color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #dialog .settings-group{background:var(--surface);color:var(--ink);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]){--theme-panel:var(--surface);--theme-input:var(--ui-input);--theme-control:var(--surface2);--theme-selection:var(--theme-active);--theme-action:var(--accent);--theme-action-ink:var(--bg);--theme-text:var(--ink);--theme-soft:var(--muted);--theme-brass:var(--gold);--theme-negative:var(--red);--theme-positive:var(--ui-good)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192{--r-bronze:var(--gold);--r-steel:var(--ui-edge);--r-ink:var(--surface2);--r-violet:var(--ui-blue);--r-muted:var(--muted);color:var(--ink)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 .page-head h1{color:var(--ink);background:none;-webkit-text-fill-color:var(--ink);font-family:var(--ui-heading)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #dialog .banner-editor193{background:var(--surface);color:var(--ink);border-color:var(--line)}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #dialog .banner-palettes193 i{background:linear-gradient(90deg,var(--pair-a) 50%,var(--pair-b) 50%);border-color:var(--ui-edge);box-shadow:none}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-document :is(.terrain-preview-label,#battleZoomLabel,label){color:var(--muted)}
.palette193-0{--pair-a:#315b48;--pair-b:#e6d8aa}.palette193-1{--pair-a:#622a3f;--pair-b:#e8c983}.palette193-2{--pair-a:#264b70;--pair-b:#ece5c8}.palette193-3{--pair-a:#88703b;--pair-b:#f0dfb0}.palette193-4{--pair-a:#34434d;--pair-b:#cbd8d1}.palette193-5{--pair-a:#843e2e;--pair-b:#ead99a}.palette193-6{--pair-a:#302b4a;--pair-b:#c9b7df}.palette193-7{--pair-a:#365a64;--pair-b:#dcf0e8}
html:is([data-theme=retro90],[data-theme=historical1099]) body.mechanical-ui #app .research192 :is(h1,h2,h3){font-family:var(--ui-heading)}
