/* The theme is presentation-only; incident and activity colors remain semantic. */
.management-identity{display:flex;flex-direction:column;gap:3px;min-width:0}
.management-picker .theme-picker{display:flex!important;align-items:center;gap:6px;margin:0;padding:0 3px;letter-spacing:0;font-size:10px!important;color:#b8c8b2}
.management-picker .theme-picker select{width:auto!important;max-width:160px;min-width:0;margin:0;padding:1px 16px 1px 4px;font-size:10px!important;line-height:16px;border:1px solid transparent;background:transparent;color:inherit;cursor:pointer}
.theme-picker select:hover,.theme-picker select:focus-visible{border-color:currentColor;background:#294c3b}
.theme-picker option{background:#243c30;color:#eef2de}
:root[data-theme=field]{--ui-bg:#f1e2a0;--ui-panel:#fff3bc;--ui-control:#f8edb9;--ui-ink:#283f2d;--ui-muted:#526047;--ui-line:#a5a16d;--ui-accent:#344f33;--ui-accent-ink:#fff6c9;--ui-paper:repeating-linear-gradient(0deg,transparent 0 25px,#7b874812 26px 27px)}
:root[data-theme=alpine]{--ui-bg:#dce6e6;--ui-panel:#f0f5f2;--ui-control:#e0eae7;--ui-ink:#233c40;--ui-muted:#4e686b;--ui-line:#9bb4b3;--ui-accent:#35646b;--ui-accent-ink:#f7ffff;--ui-paper:none}
:root[data-theme=cedar]{--ui-bg:#30281f;--ui-panel:#3e3328;--ui-control:#514334;--ui-ink:#f1e4cc;--ui-muted:#c4b69e;--ui-line:#8c7153;--ui-accent:#d3a06c;--ui-accent-ink:#30251c;--ui-paper:none}
:root[data-theme=blueprint]{--ui-bg:#112c48;--ui-panel:#173b5b;--ui-control:#224b6d;--ui-ink:#e6f3ff;--ui-muted:#abc8e0;--ui-line:#537f9f;--ui-accent:#a7d8ed;--ui-accent-ink:#16324a;--ui-paper:linear-gradient(#b9d9f008 1px,transparent 1px),linear-gradient(90deg,#b9d9f008 1px,transparent 1px);--ui-grid:20px 20px}
:root[data-theme=moonlit]{--ui-bg:#202a38;--ui-panel:#2a3546;--ui-control:#344255;--ui-ink:#e8edf6;--ui-muted:#bac5d8;--ui-line:#62718b;--ui-accent:#bdc4e7;--ui-accent-ink:#252e43;--ui-paper:none}
:root[data-theme]:not([data-theme=current]) body{color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.clock-panel,.operation-panel,.panel-dock-strip,.dock-popover,.mobile-camera,.mobile-nav,dialog,#forestHealthPanel,.timber-logistics,.prescription-review,.quest,.workspace-navigation){background-color:var(--ui-panel);background-image:var(--ui-paper);background-size:var(--ui-grid,auto);border-color:var(--ui-line);color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) header{background-color:var(--ui-bg)}
:root[data-theme]:not([data-theme=current]) :is(button,select,input,textarea){background-color:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(button:hover,.workspace-tabs button.active,.primary){background:var(--ui-accent);color:var(--ui-accent-ink);border-color:var(--ui-accent)}
:root[data-theme]:not([data-theme=current]) :is(.brand,.brand small,h1,h2,h3,strong,label,.eyebrow,.workspace-heading,.workspace-tabs button,.theme-picker,.clock-panel strong,.clock-panel small,.stand-panel .metrics strong,.metrics small,.species-mix,.mix-row,.modeled-row,.modeled-row strong,.scenario-tag,.workspace-note,.inventory-caption,.management-dialog p,.management-dialog label,.training-record summary,.score,.layers label,.map-note,.graphics-options,.graphics-options p,.operation-top strong,.operation-top .eyebrow,#jobDetail,.stand-panel p,.right-panel p,.management-picker label){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(small,.intro,.workspace-note,.inventory-caption,.modeled-metrics small,.clock-caption,.save-status){color:var(--ui-muted)}
:root[data-theme]:not([data-theme=current]) :is(.workspace-navigation,.workspace-tabs,.metrics,.inventory-table td,.inventory-table th,.activity-log li,.progress-track,.panel-grip){border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(.inventory-table td,.inventory-table th,.activity-log,.activity-log li,.activity-log time){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) .theme-picker select{background:transparent;color:var(--ui-muted);border-color:transparent}
:root[data-theme]:not([data-theme=current]) .theme-picker select:hover{border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) .theme-picker option{background:var(--ui-panel);color:var(--ui-ink)}
/* Floating status cards retain dark, high-contrast operational colors. */
:root[data-theme]:not([data-theme=current]) .stand-label{color:#eef2de;background-color:#193829}
:root[data-theme]:not([data-theme=current]) .stand-label.selected{background-color:#355235}
@media(max-width:900px){.management-identity{flex:1}.management-picker .theme-picker select{min-height:28px;font-size:12px!important}.management-picker .theme-picker{font-size:11px!important}}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.operation-panel,dialog) :is(p,span,small,strong,em,summary,label,h2,h3,time,output){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(.workspace-heading,.panel-grip,.panel-dock-strip,.control-group,.control-group>summary,.management-combo,#managementName,.training-record,.map-panel,.ecology-panel,.score,.clock-state,#weather,#soil){background-color:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(.workspace-tabs button.active,.workspace-tabs button.active span,.control-group>summary:hover){background-color:var(--ui-accent);color:var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) .stand-label :is(strong,small){color:#eef2de}
:root[data-theme]:not([data-theme=current]) :is(.activity-cost,.production-summary,.fund-summary,#activityCost,#fundSummary,#productionSummary,#jobStatus,.speed-control,.workspace-heading>span){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(button:disabled){opacity:.55}
:root[data-theme]:not([data-theme=current]) :is(.header-action-menu>summary,.header-action-menu>div,.dock-panel,.dock-content){background-color:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(button,button span,button strong,button small){color:inherit}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.operation-panel) button{color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.operation-panel) button :is(span,strong,small){color:inherit}
:root[data-theme]:not([data-theme=current]) .workspace-tabs button.active{color:var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) :is(.camera-controls,.camera-mini,.camera-mini-controls,.dispatch-card,.panel-drag-handle,.prescription-review,.quest,.disturbance-callout,.road-project,.access-recovery,.notice,.sale-card){background-color:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(.right-panel,.stand-panel,.operation-panel,header,dialog) :is(div,a){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(.stand-panel,.right-panel) a{text-decoration:underline}
:root[data-theme]:not([data-theme=current]) header :is(.camera-mini-caption){color:#eef2de}
:root[data-theme]:not([data-theme=current]) :is(.workspace-tabs button.active,.workspace-tabs button.active span){color:var(--ui-accent-ink)!important}
:root[data-theme]:not([data-theme=current]) #nextShift.shift-ended{color:var(--ui-ink)!important;background:var(--ui-control)!important}
:root[data-theme]:not([data-theme=current]) .workspace-tabs button{font-weight:600;color:var(--ui-ink);opacity:1}
:root[data-theme]:not([data-theme=current]) .workspace-tabs button :is(.tab-indicator,.workspace-indicator,[class*=indicator]){color:inherit;background:transparent}
:root[data-theme]:not([data-theme=current]) .workspace-tabs button.active{border-bottom:3px solid var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) :is(#fundSummary small,#productionSummary b,#disturbanceHistory,#disturbanceHistory p,.ecology-history,.ecology-history p){color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) :is(.stand-panel,.right-panel,dialog) :is(b,a){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(.stand-panel,.right-panel,dialog) :is(li,td,th){color:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) :is(dialog th,.setup-table th,.growth-table th){background:var(--ui-control);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(#clockToggle,.operation-panel button){color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) .operation-panel button:disabled{background:var(--ui-control)!important}
:root[data-theme]:not([data-theme=current]) #clockToggle{background:var(--ui-control)!important}
/* Preserve the current palette while correcting two existing low-contrast labels. */
.workspace-note{color:#b8cbb9}.ecology-panel a{color:#e5d29b}
.name-suggestion-row{display:flex;align-items:center;gap:6px;margin-top:5px}.name-suggestion-row input{flex:1;min-width:0;margin-top:0!important}.name-suggestion-row .name-suggestion{flex:none;white-space:nowrap;padding:7px 9px;min-height:34px;font-size:12px}.stand-rename-button{flex:none;padding:4px 7px;font-size:14px}
:root[data-theme]:not([data-theme=current]) :is(.badge,.forest-process-panel,.stand-boundary-tools,.resource-related button,.resource-actions button,.inventory-table tr.selected,.inventory-table tr:hover){background:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(#stageTrack span,#roadIssues,#workspace-roads p,#growthReference a){color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) .resource-related button :is(span,strong,small){color:inherit}
:root[data-theme]:not([data-theme=current]) .resource-overview svg text{fill:var(--ui-ink)}
:root[data-theme]:not([data-theme=current]) .resource-expense{color:#ffcc9a!important}
:root[data-theme]:not([data-theme=current]) .resource-income{color:#a7e4b9!important}
:root:is([data-theme=field],[data-theme=alpine]) .resource-expense{color:#84380f!important}
:root:is([data-theme=field],[data-theme=alpine]) .resource-income{color:#185b35!important}
:root[data-theme=field],:root[data-theme=alpine]{--ui-expense:#84380f;--ui-income:#185b35}
:root[data-theme]:not([data-theme=current]) .resource-expense{color:var(--ui-expense,#ffcc9a)!important}
:root[data-theme]:not([data-theme=current]) .resource-income{color:var(--ui-income,#a7e4b9)!important}
:root[data-theme]:not([data-theme=current]) #stageTrack span{background:var(--ui-control)}
:root[data-theme]:not([data-theme=current]) #stageTrack .done{border-color:var(--ui-accent);font-weight:700}
:root[data-theme]:not([data-theme=current]) :is(.stand-panel,.right-panel) a{color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) #workspace-roads small{color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) .resource-related button{background:var(--ui-control)!important;color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) .resource-related button *{color:inherit!important}
:root[data-theme]:not([data-theme=current]) .mobile-nav button[aria-pressed=true]{background:var(--ui-accent);color:var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) .mobile-nav button span{color:inherit}
/* Theme swaps and active-state changes are immediate so text never fades through low contrast. */
:root[data-theme]:not([data-theme=current]) :is(button,summary,a,.workspace-tabs span){transition:box-shadow .15s,border-color .15s;}
:root[data-theme]:not([data-theme=current]) .workspace-tabs button:hover,:root[data-theme]:not([data-theme=current]) .workspace-tabs button:hover .tab-indicator{color:var(--ui-accent-ink)!important;background-color:var(--ui-accent)}

/* Floating map cards keep their operational palette even when UI hover accents are pale. */
:root .stand-label:hover,:root .stand-label:focus-visible{background:#284c36!important;color:#f3f6e9!important;border-color:#e9dba8}
:root .stand-label:hover :is(strong,small),:root .stand-label:focus-visible :is(strong,small){color:#f3f6e9!important}
:root .outside-disturbance-badge:hover,:root .outside-disturbance-badge:focus-visible{background:#704025!important;color:#fff3df!important;border-color:#ffcf94}
:root .outside-disturbance-badge[data-kind=health]:is(:hover,:focus-visible){background:#503653!important;color:#fff1ff!important}
:root .outside-disturbance-badge[data-kind=review]:is(:hover,:focus-visible){background:#41452a!important;color:#fff4cb!important}
#featureRuleSettings{margin:14px 0;padding:12px;border:1px solid #a5b99866;border-radius:6px}#featureRuleSettings legend{font-weight:700;font-size:13px}#featureRuleSettings p{font-size:12px;line-height:1.5}.outside-disturbance-badge[data-kind=rule]{background:#254660;color:#eaf5ff;border-color:#a1d5f5}
:root .outside-disturbance-badge[data-kind=rule]:is(:hover,:focus-visible){background:#2b506a!important;color:#eff9ff!important}
:root[data-theme]:not([data-theme=current]) .operation-choice.selected,:root[data-theme]:not([data-theme=current]) .operation-choice.selected :is(span,small){background-color:#34523b!important;color:#fff2cd!important}

:root[data-theme]:not([data-theme=current]) .operation-choice.selected :is(svg,path){color:#fff2cd!important}
:root[data-theme]:not([data-theme=current]) #nextStepPrompt{background:var(--ui-panel)!important;color:var(--ui-ink);border-color:var(--ui-accent)}
:root[data-theme]:not([data-theme=current]) #nextStepAction{background:var(--ui-accent);color:var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) #nextStepPrompt{color:var(--ui-ink)!important}
:root[data-theme]:not([data-theme=current]) #nextStepPrompt :is(#nextStepContext,#nextStepDetail){color:var(--ui-ink)!important}

/* Calendar-advance review uses one coherent palette per theme. */
#growthReview{--growth-bg:var(--ui-panel,#18382b);--growth-ink:var(--ui-ink,#edf3e2);--growth-muted:var(--ui-muted,#c4d3b9);--growth-control:var(--ui-control,#284a36);--growth-line:var(--ui-line,#8da687);--growth-risk-bg:#4a3b27;--growth-risk-ink:#fff0cf;background:var(--growth-bg);color:var(--growth-ink);border:1px solid var(--growth-line);border-radius:10px;width:min(1040px,94vw);max-width:min(1040px,94vw);padding:24px;font-size:14px;line-height:1.55}
:root[data-theme=field] #growthReview{--growth-risk-bg:#f3e4a6;--growth-risk-ink:#3f311a}
:root[data-theme=alpine] #growthReview{--growth-risk-bg:#f5ead3;--growth-risk-ink:#4c381a}
:root[data-theme=cedar] #growthReview{--growth-risk-bg:#51402c}
:root[data-theme=blueprint] #growthReview{--growth-risk-bg:#31455a}
:root[data-theme=moonlit] #growthReview{--growth-risk-bg:#374253}
#growthReview :is(h2,p,label,span,b,strong,small,th,td){color:inherit}
#growthReview h2{font-size:24px;line-height:1.25;margin:10px 0}
#growthReview .eyebrow{color:var(--growth-muted);font-size:11px}
#growthReview>p{font-size:14px;line-height:1.6;margin:10px 0}
#growthReview #growthDates{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
#growthReview .growth-table-wrap{border:1px solid var(--growth-line);border-radius:5px;max-height:45dvh;overflow:auto}
#growthReview .growth-table{font-size:14px;line-height:1.5;min-width:640px}
#growthReview .growth-table :is(th,td){padding:12px 10px;border-color:var(--growth-line)}
#growthReview .growth-table th{font-size:12px;font-weight:750;letter-spacing:.02em;background:var(--growth-control);color:var(--growth-ink);z-index:1}
#growthReview .growth-table td{background:var(--growth-bg);color:var(--growth-ink)}
#growthReview .growth-table td:first-child{width:19%}
#growthReview .growth-table td:nth-child(2){font-variant-numeric:tabular-nums}
#growthReview .growth-table small{font-size:12px;line-height:1.5;color:var(--growth-muted)}
#growthReview .growth-risk>td{background:var(--growth-risk-bg);color:var(--growth-risk-ink)}
#growthReview .growth-risk>td:first-child{box-shadow:inset 3px 0 0 var(--growth-risk-ink)}
#growthReview .growth-risk :is(p,small,b){color:var(--growth-risk-ink)}
#growthReview .growth-table p{font-size:13px;line-height:1.55;margin:7px 0}
#growthReview button{font-size:13px;line-height:1.4;min-height:38px;background:var(--growth-control);color:var(--growth-ink);border:1px solid var(--growth-line)}
#growthReview button:hover:not(:disabled),#growthReview .primary:not(:disabled){background:var(--ui-accent,#d8cc8b);color:var(--ui-accent-ink,#213c2c);border-color:var(--ui-accent,#d8cc8b)}
#growthReview button:disabled{opacity:1;background:var(--growth-control);color:var(--growth-muted);border-style:dashed;cursor:not-allowed}
#growthReview button:focus-visible,#growthReview input:focus-visible{outline:3px solid var(--ui-accent,#d8cc8b);outline-offset:3px}
#growthReview .growth-ack{font-size:14px;line-height:1.55;background:var(--growth-control);color:var(--growth-ink);border:1px solid var(--growth-line);padding:12px;border-radius:5px;margin:14px 0}
#growthReview .growth-ack input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:var(--ui-accent,#d8cc8b)}
#growthReview .growth-actions{position:sticky;bottom:-24px;background:var(--growth-bg);border-top:1px solid var(--growth-line);padding:12px 0 4px;gap:10px;flex-wrap:wrap}
#growthReview .growth-actions button{font-size:14px;min-height:42px}
@media(max-width:650px){#growthReview h2{font-size:21px}#growthReview .growth-actions{bottom:-18px}#growthReview .growth-actions button{flex:1;white-space:normal}}

/* Keep regeneration review content and its fixed action footer on the same palette. */
#freeGrowDialog{--review-bg:var(--ui-panel,#edf0e7);--review-ink:var(--ui-ink,#243b30);--review-card:var(--ui-control,#fff);--review-line:var(--ui-line,#82968a);--review-action:var(--ui-accent,#315e46);--review-action-ink:var(--ui-accent-ink,#fff);background:var(--review-bg)!important;color:var(--review-ink)!important;background-image:none!important}
#freeGrowDialog :is(.mobile-review-body,.dialog-actions){background:var(--review-bg)!important;color:var(--review-ink)!important}
#freeGrowDialog :is(h2,p,label,strong,small,span,.eyebrow,.free-grow-card div){color:var(--review-ink)!important}
#freeGrowDialog .free-grow-card{background:var(--review-card);border-color:var(--review-line);color:var(--review-ink);padding:14px}
#freeGrowDialog .mobile-review-body{font-size:16px;line-height:1.55}
#freeGrowDialog .free-grow-card strong{font-size:16px;line-height:1.4}
#freeGrowDialog .free-grow-card div>span{font-size:15px;line-height:1.5}
#freeGrowDialog :is(#freeGrowJudgment,#freeGrowMessage,#freeGrowSubtitle){font-size:15px;line-height:1.55}
#freeGrowDialog .eyebrow{font-size:11px;letter-spacing:1.3px}
#freeGrowDialog h2{font-size:26px;line-height:1.2}
#freeGrowDialog .dialog-actions{border-color:var(--review-line)}
#freeGrowDialog .dialog-actions button{background:var(--review-card)!important;color:var(--review-ink)!important;border-color:var(--review-line)!important;min-height:46px;font-size:15px}
#freeGrowDialog .dialog-actions .primary,#freeGrowDialog .dialog-actions button:hover:not(:disabled){background:var(--review-action)!important;color:var(--review-action-ink)!important;border-color:var(--review-action)!important}
#freeGrowDialog .free-grow-emblem{color:var(--review-ink)!important}
#freeGrowDialog.milestone-earned .free-grow-emblem{background:var(--review-action)!important;color:var(--review-action-ink)!important}
#freeGrowDialog :is(button,input):focus-visible{outline:3px solid var(--review-action);outline-offset:3px}
@media(max-width:900px){#freeGrowDialog .mobile-review-body{padding:18px}#freeGrowDialog .free-grow-card{gap:10px;padding:12px}#freeGrowDialog .free-grow-emblem{width:52px;height:52px;font-size:32px;margin:4px auto 10px}#freeGrowDialog h2{font-size:24px}#freeGrowDialog .dialog-actions button{font-size:15px!important}}
#freeGrowDialog[open]{display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:calc(100dvh - 24px)}
#freeGrowDialog>.mobile-review-body{flex:1 1 auto;min-height:0;overflow:auto;padding:20px 24px 8px;overscroll-behavior:contain}
#freeGrowDialog>.dialog-actions{flex:0 0 auto;margin:0;padding:12px 24px 18px;border-top:1px solid var(--review-line)}
@media(max-width:900px){#freeGrowDialog>.mobile-review-body{padding:18px 16px 8px}}

/* Spatial notices must carry their own paired colors, never themed text over pale fills. */
.spatial-dialog{--spatial-bg:var(--ui-panel,#edf0e7);--spatial-ink:var(--ui-ink,#243b30);--spatial-card:var(--ui-control,#fff);--spatial-line:var(--ui-line,#82968a);background-color:var(--spatial-bg)!important;color:var(--spatial-ink)!important}
.spatial-dialog :is(#gradeNotice,#spatialNotice,#draftAccessResult,.spatial-notice){background:var(--spatial-card)!important;color:var(--spatial-ink)!important;border:1px solid var(--spatial-line);border-left:4px solid var(--ui-accent,#315e46);border-radius:5px;padding:12px 14px;font-size:15px!important;line-height:1.6!important;margin:8px 0}
.spatial-dialog #draftAccessResult:empty{display:none}
.spatial-dialog :is(.planning-guide,.planning-guide p,.planning-guide summary,.spatial-fields label,.spatial-fields p,#spatialStatus){color:var(--spatial-ink)!important;font-size:14px;line-height:1.55;letter-spacing:0}
.spatial-dialog>.dialog-actions{background:var(--spatial-bg)!important;color:var(--spatial-ink)!important;border-top:1px solid var(--spatial-line);padding-top:10px}
.spatial-dialog :is(button,input,select){font-size:14px;min-height:40px}
@media(max-width:900px){.spatial-dialog :is(#gradeNotice,#spatialNotice,#draftAccessResult){font-size:16px!important}.spatial-dialog :is(button,input,select){font-size:15px;min-height:44px}.spatial-dialog h2{font-size:23px;line-height:1.25}}
/* Nested cards and popup tools use the same matched surface/ink pair. */
.income-missions{background:var(--ui-panel,#203b2d);color:var(--ui-ink,#ecf1db)}
:root[data-theme]:not([data-theme=current]) :is(.tree-selection-hint,.custom-layer-badge,.walk-tools-body,.tree-quick-menu,.unit-quick-menu,.camera-mode-picker){background-color:var(--ui-panel);color:var(--ui-ink);border-color:var(--ui-line)}
:root[data-theme]:not([data-theme=current]) :is(.tree-selection-hint,.custom-layer-badge,.walk-tools-body,.tree-quick-menu,.unit-quick-menu) :is(strong,small,p,label){color:inherit}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.operation-panel,.right-panel-rail,.mobile-nav,.tree-selection-hint,.camera-mode-picker,.walk-ground-controls) :is(button:hover:not(:disabled),button[aria-pressed=true],button[aria-selected=true],button.primary:not(:disabled)){background-color:var(--ui-accent);color:var(--ui-accent-ink)}
:root[data-theme]:not([data-theme=current]) :is(header,.panel,.operation-panel,.right-panel-rail,.mobile-nav,.tree-selection-hint,.camera-mode-picker,.walk-ground-controls) :is(button:hover:not(:disabled),button[aria-pressed=true],button[aria-selected=true],button.primary:not(:disabled)) :is(span,strong,small){color:inherit!important}
/* Review inset cards retain readable text even inside paper-style dialogs. */
:root[data-theme] .contract-review-dialog :is(.contract-review-pager,.treatment-recap){color:var(--ui-ink,#edf4df)!important}
:root[data-theme] .contract-review-dialog :is(.contract-review-pager,.treatment-recap) :is(strong,small,p,summary,a,li,th,td,caption){color:var(--ui-ink,#edf4df)!important}
:root[data-theme]:not([data-theme=current]) .camera-flight-tools>label{background:var(--ui-control);color:var(--ui-ink);border-color:var(--ui-line)}
