:root { --tw-page:#EBEBE9; --tw-panel:#fff; --tw-ink:#1C201F; --tw-muted:#59635e; --tw-line:#A1A69F; --tw-map-bg:#e3e7e3; color-scheme:light; }
html[data-tw-theme="dark"] { --tw-page:#1C201F; --tw-panel:#292E2C; --tw-ink:#EBEBE9; --tw-muted:#c0c8c1; --tw-line:#56625c; --tw-map-bg:#303936; color-scheme:dark; }
body { background-color:var(--tw-page); color:var(--tw-ink); }
/* Leaflet controls and overlays, without altering incident/risk category colors */
html[data-tw-theme="dark"] .leaflet-container { background:var(--tw-map-bg); color:var(--tw-ink); }
html[data-tw-theme="dark"] .leaflet-control-zoom a,
html[data-tw-theme="dark"] .leaflet-control-layers,
html[data-tw-theme="dark"] .leaflet-popup-content-wrapper,
html[data-tw-theme="dark"] .leaflet-control-scale-line { background:var(--tw-panel); color:var(--tw-ink); border-color:var(--tw-line); }
html[data-tw-theme="dark"] .leaflet-popup-tip { background:var(--tw-panel); }
html[data-tw-theme="dark"] .leaflet-control-attribution { background:rgba(41,46,44,.9); color:var(--tw-ink); }
html[data-tw-theme="dark"] .leaflet-control-attribution a,
html[data-tw-theme="dark"] .leaflet-popup-content a { color:#c1d5cd; }
/* Only base raster tiles receive a dark treatment; overlays and markers remain unchanged. */
html[data-tw-theme="dark"] .leaflet-tile-pane { filter:brightness(.78) saturate(.65) contrast(1.08); }
.tw-theme-control { position:fixed;right:18px;top:18px;bottom:auto;z-index:99990;display:flex;gap:3px;padding:4px;background:var(--tw-panel);border:1px solid var(--tw-line);border-radius:24px;box-shadow:0 3px 18px #0002; }
.tw-theme-control button { appearance:none;cursor:pointer;border:0;background:transparent;color:var(--tw-ink);font:600 15px/1 system-ui,sans-serif;width:35px;height:35px;border-radius:50%; }
.tw-theme-control button[aria-pressed="true"] { background:#6C7B76;color:white; }
.tw-theme-control button:focus-visible { outline:2px solid #6C7B76;outline-offset:2px; }
@media (max-width:600px) { .tw-theme-control {right:10px;top:10px;bottom:auto;} }

/* V0.2: The switch stays away from the chapter navigation at the bottom. */
.tw-theme-control { max-width:calc(100vw - 20px); }
/* Preserve geographic incident/risk coloring; only borders and chrome change. */
/* Vector overlay strokes retain their original classification colors. */
html[data-tw-theme="dark"] .leaflet-popup-content [style*="color: #000811"] { color:var(--tw-ink) !important; }
html[data-tw-theme="dark"] .leaflet-popup-content [style*="color: #019AAA"] { color:#a4c7bf !important; }
html[data-tw-theme="dark"] .leaflet-tooltip {background:#292E2C;color:#EBEBE9;border-color:#56625c;}
html[data-tw-theme="dark"] .leaflet-tooltip:before {border-top-color:#292E2C;}
@media(max-width:600px){.tw-theme-control button{width:32px;height:32px}}

/* v0.3: Position above the existing vertical navigation, set by JS. */
#tw-theme-control.tw-theme-control {position:fixed!important;top:var(--tw-switch-top,12px)!important;left:var(--tw-switch-left,auto)!important;right:var(--tw-switch-right,18px)!important;bottom:auto!important;z-index:2147481000!important;box-sizing:border-box!important;}
/* The country template uses inline !important rules; override only surfaces/text. */
html[data-tw-theme="dark"] body,
html[data-tw-theme="dark"] .tw-page-wrapper,
html[data-tw-theme="dark"] .tw-app-wrapper {background-color:#1C201F!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-right-pane,
html[data-tw-theme="dark"] .tw-tabs-wrapper,
html[data-tw-theme="dark"] .tw-tabs-nav,
html[data-tw-theme="dark"] .tw-tabs-content,
html[data-tw-theme="dark"] .tw-basisdaten-container {background-color:#292E2C!important;color:#EBEBE9!important;border-color:#56625c!important;}
html[data-tw-theme="dark"] .tw-tab-btn.active,
html[data-tw-theme="dark"] .tw-right-pane p,
html[data-tw-theme="dark"] .tw-right-pane li,
html[data-tw-theme="dark"] .tw-wysiwyg-content p,
html[data-tw-theme="dark"] .tw-wysiwyg-content li,
html[data-tw-theme="dark"] .tw-wysiwyg-content div,
html[data-tw-theme="dark"] .tw-basis-value,
html[data-tw-theme="dark"] .tw-analysis-title,
html[data-tw-theme="dark"] .tw-analysis-text,
html[data-tw-theme="dark"] .tw-analysis-text h2,
html[data-tw-theme="dark"] .tw-analysis-text h3,
html[data-tw-theme="dark"] .tw-analysis-text h4,
html[data-tw-theme="dark"] .tw-analysis-text strong {color:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-analysis-item,
html[data-tw-theme="dark"] .tw-analysis-body,
html[data-tw-theme="dark"] .tw-basis-card,
html[data-tw-theme="dark"] .tw-counter-card,
html[data-tw-theme="dark"] .tw-accordion-content {background:#343B38!important;color:#EBEBE9!important;border-color:#56625c!important;}
html[data-tw-theme="dark"] .tw-vertical-menu,
html[data-tw-theme="dark"] .tw-vertical-menu a {background:#292E2C!important;color:#EBEBE9!important;border-color:#56625c!important;}
html[data-tw-theme="dark"] .tw-vertical-menu .tw-menu-dots-grid span {background:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-analysis-preview,
html[data-tw-theme="dark"] .tw-basis-label {color:#C0C8C1!important;}
/* Do not recolor the map risk polygons, event markers, or the emergency alert. */

/* v0.4 vertical control aligned with vertical site navigation */
#tw-theme-control.tw-theme-control{flex-direction:column!important;width:42px!important;max-width:42px!important;padding:4px!important;gap:2px!important;border-radius:22px!important;align-items:center!important}
#tw-theme-control.tw-theme-control button{flex:0 0 33px!important;width:33px!important;height:33px!important;padding:0!important;display:grid!important;place-items:center!important}
/* Incident/event listing: dark panels, white type and separators, light icons */
html[data-tw-theme="dark"] #tab-incidents,
html[data-tw-theme="dark"] #tab-events,
html[data-tw-theme="dark"] #tab-ereignisse {background:#292E2C!important;color:#fff!important}
html[data-tw-theme="dark"] :is(#tab-incidents,#tab-events,#tab-ereignisse) :is(li,article,.incident-item,.event-item,.tw-incident-item,.tw-event-item,.tw-incident-row,.tw-event-row){background-color:#292E2C!important;color:#fff!important;border-bottom-color:rgba(255,255,255,.65)!important}
html[data-tw-theme="dark"] :is(#tab-incidents,#tab-events,#tab-ereignisse) :is(p,span,a,strong,small,h2,h3,h4,time){color:#fff!important}
html[data-tw-theme="dark"] :is(#tab-incidents,#tab-events,#tab-ereignisse) :is(svg,svg path,svg circle,svg line,svg polyline){stroke:#EBEBE9!important}
html[data-tw-theme="dark"] :is(#tab-incidents,#tab-events,#tab-ereignisse) :is(i,.dashicons,.fa,.fas,.far){color:#EBEBE9!important}
html[data-tw-theme="dark"] :is(#tab-incidents,#tab-events,#tab-ereignisse) img:not(.leaflet-marker-icon){filter:grayscale(1) brightness(0) invert(1)}
/* Preserve colored alerts, incident/risk badges and category markers */

/* v0.5: dark-green analysis card header; expanded analysis body remains dark. */
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header {
 background:#434C49!important;
 color:#EBEBE9!important;
 border-bottom:1px solid rgba(235,235,233,.22)!important;
}
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header .tw-analysis-title,
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header .tw-analysis-preview,
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header h2,
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header h3,
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header p {
 color:#EBEBE9!important;
 opacity:1!important;
}
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header::after {
 color:#DCE4DF!important;
}
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header .tw-accordion-arrow {
 background:#29322E!important;
 color:#EBEBE9!important;
 border-color:#66756D!important;
}
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header .tw-accordion-arrow::before,
html[data-tw-theme="dark"] .tw-analysis-item .tw-analysis-header .tw-accordion-arrow::after {
 color:#EBEBE9!important;
}

/* v0.6 – exact country-template selectors; avoid altering risk markers and breaking alerts */
html[data-tw-theme="dark"] #twSiteNavigation .tw-vertical-login {background:#434C49!important;color:#EBEBE9!important;border-color:#73817a!important;}
html[data-tw-theme="dark"] #twSiteNavigation .tw-vertical-login img {filter:brightness(0) invert(1)!important;opacity:1!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-btn {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-btn.active {color:#FFFFFF!important;border-bottom-color:#A1A69F!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-scroll-btn {background:#434C49!important;color:#EBEBE9!important;border:1px solid #66756D!important;border-radius:5px!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-scroll-btn:hover {background:#596962!important;color:#FFFFFF!important;}
/* The real events pane is #tab-dashboard, not #tab-incidents. */
html[data-tw-theme="dark"] #tab-dashboard,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer {background:#292E2C!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > :not(.tw-eilmeldung):not([class*="breaking"]):not([class*="alert"]),
html[data-tw-theme="dark"] #tab-dashboard #postsContainer :is(.post-item,.post-card,.tw-post-item,.tw-post-card,.incident-item,.event-item,.tw-incident-item,.tw-event-item,.post-row,.incident-row,.event-row,li,article) {background-color:#292E2C!important;color:#EBEBE9!important;border-bottom-color:rgba(235,235,233,.58)!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer :is(.post-item,.post-card,.tw-post-item,.tw-post-card,.incident-item,.event-item,.tw-incident-item,.tw-event-item,.post-row,.incident-row,.event-row,li,article) :is(a,p,span,strong,small,time,h2,h3,h4) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer :is(.post-item,.post-card,.tw-post-item,.tw-post-card,.incident-item,.event-item,.tw-incident-item,.tw-event-item,.post-row,.incident-row,.event-row,li,article) :is(svg,svg path,svg circle,svg line,svg polyline) {stroke:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer :is(.post-item,.post-card,.tw-post-item,.tw-post-card,.incident-item,.event-item,.tw-incident-item,.tw-event-item,.post-row,.incident-row,.event-row,li,article) :is(i,.dashicons,.fa,.fas,.far) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .no-posts {color:#EBEBE9!important;}

/* v0.7: event list is injected by JS into #postsContainer; target real children. */
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row {
  background:#292E2C!important;color:#EBEBE9!important;
  border-color:rgba(235,235,233,.55)!important;
}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row :is(a,p,span,strong,small,time,h2,h3,h4,div) {
  color:#EBEBE9!important;
}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row :is(button,article,li) {
  color:#EBEBE9!important;background-color:transparent!important;
  border-bottom-color:rgba(235,235,233,.55)!important;
}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row :is(svg,svg path,svg line,svg polyline,svg circle) {
  stroke:#EBEBE9!important;
}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row :is(i,.dashicons,.fa,.fas,.far) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-theme-event-row img:not(.leaflet-marker-icon) {filter:grayscale(1) brightness(0) invert(1);}
/* Restore colored alert content when nested within the events list. */
html[data-tw-theme="dark"] #tab-dashboard #postsContainer :is(.tw-eilmeldung,[class*="eilmeldung"],[class*="breaking"],[class*="alert"],[role="alert"]) {
  color:#fff!important;
}

/* v0.8 – exact JS-generated incident rows (.tw-post-row) */
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row.tw-timeline-archive {background:#292E2C!important;color:#EBEBE9!important;border:0!important;border-bottom:1px solid rgba(235,235,233,.55)!important;box-shadow:none!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row :is(.tw-post-title,.tw-post-title a,.tw-post-icon,span,strong,small,p) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row .tw-post-icon img {filter:brightness(0) invert(1)!important;opacity:1!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row .tw-post-icon svg {color:#EBEBE9!important;stroke:currentColor!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer .tw-post-row:hover {background:#39433E!important;}
/* Light theme restores template appearance without changing JS or alert colors. */
html[data-tw-theme="light"] #tab-dashboard #postsContainer .tw-post-row {background:#EBEBE9!important;color:#1C201F!important;border-bottom:1px solid #A1A69F!important;}
html[data-tw-theme="light"] #tab-dashboard #postsContainer .tw-post-row .tw-post-title,
html[data-tw-theme="light"] #tab-dashboard #postsContainer .tw-post-row .tw-post-title a {color:#1C201F!important;}
html[data-tw-theme="light"] #tab-dashboard #postsContainer .tw-post-row .tw-post-icon img {filter:none!important;}

/* v0.9: precise overrides for generated event rows and top navigation. */
html[data-tw-theme="dark"] #tab-dashboard #postsContainer.tw-query-container,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer.tw-query-container > .tw-post-row,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer.tw-query-container > .tw-post-row.tw-timeline-archive {
 background-color:#292E2C!important;color:#EBEBE9!important;
 border-bottom:1px solid rgba(235,235,233,.65)!important;
}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-post-row .tw-post-title,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-post-row .tw-post-title a,
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-post-row .tw-post-title * {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-post-row .tw-post-icon img {filter:brightness(0) invert(1)!important;}
html[data-tw-theme="dark"] #tab-dashboard #postsContainer > .tw-post-row:hover {background-color:#39433E!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-btn,
html[data-tw-theme="dark"] .tw-tabs-wrapper .tw-tab-btn {color:#EBEBE9!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-scroll-btn,
html[data-tw-theme="dark"] .tw-tabs-wrapper .tw-tab-scroll-btn {background:#434C49!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-scroll-btn svg,
html[data-tw-theme="dark"] .tw-tabs-wrapper .tw-tab-scroll-btn svg {stroke:#EBEBE9!important;fill:none!important;}
html[data-tw-theme="dark"] .tw-vertical-menu .tw-vertical-login img {filter:brightness(0) invert(1)!important;}
/* Keep emergency announcements and risk/category colors untouched. */

/* v1.0 – country information, accordion and countermeasure panels.
   Scoped to dark theme; preserve the existing layout and risk classifications. */
html[data-tw-theme="dark"] .tw-right-pane :is(.tw-basisdaten-container,.tw-accordion-item,.tw-basis-grid) {background-color:#292E2C!important;border-color:#65726B!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-accordion-header {background-color:#434C49!important;color:#EBEBE9!important;border-bottom-color:rgba(235,235,233,.28)!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-accordion-header:hover {background-color:#53635B!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-accordion-content {background-color:#303834!important;color:#EBEBE9!important;border-bottom-color:rgba(235,235,233,.25)!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-basis-card,
html[data-tw-theme="dark"] .tw-right-pane .tw-counter-card {background-color:#343D38!important;color:#EBEBE9!important;border:1px solid #627168!important;box-shadow:none!important;}
html[data-tw-theme="dark"] .tw-right-pane :is(.tw-basis-value,.tw-counter-card h3,.tw-stat-section-heading) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-right-pane :is(.tw-basis-label,.tw-counter-pending) {color:#CAD4CE!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-subtabs-nav {border-bottom-color:#829087!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-subtabs-nav :is(button,a) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-subtabs-nav :is(button,a).active {border-color:#CAD4CE!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-analysis-body {background:#303834!important;border-top-color:#65726B!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-analysis-text blockquote {background:#39443D!important;color:#EBEBE9!important;border-left-color:#A1A69F!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-analysis-text a {color:#C4DED3!important;}
html[data-tw-theme="dark"] .tw-right-pane .tw-analysis-pdf a {background:#434C49!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] .tw-right-pane :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]) {color-scheme:dark;}
/* Never change map polygons, classification colors or warning badges here. */

/* v1.1 – accessible focus and readable controls; no changes to map risk colors. */
#tw-theme-control button:focus-visible,
html[data-tw-theme="dark"] .tw-right-pane :is(button,a,input,select,textarea):focus-visible,
html[data-tw-theme="dark"] #twTabsWrapper :is(button,a):focus-visible {
 outline:2px solid #B8D8CB!important;outline-offset:3px!important;
}
html[data-tw-theme="dark"] #tw-theme-control button[aria-pressed="true"] {
 background:#6C7B76!important;color:#fff!important;
}
html[data-tw-theme="dark"] #tw-theme-control button[aria-pressed="false"] {
 color:#EBEBE9!important;
}
html[data-tw-theme="dark"] #twTabsWrapper .tw-tab-scroll-btn:disabled {
 opacity:.5!important;cursor:default!important;
}
@media (prefers-reduced-motion:reduce) {
 #tw-theme-control *,html[data-tw-theme="dark"] .tw-right-pane * {
  scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;
 }
}

/* v1.2 – theme selector remains legible for keyboard and high-contrast users. */
#tw-theme-control button:focus-visible {outline:2px solid #B8D8CB!important;outline-offset:2px!important;}
@media (forced-colors:active) {
 #tw-theme-control button[aria-pressed="true"] {outline:2px solid Highlight!important;outline-offset:-2px!important;}
}

/* v1.6 – Threat statistics: inline-styled Chart.js panels in the country template. */
html[data-tw-theme="dark"] #subtab-statistics div:has(> canvas#countryChartTypes),
html[data-tw-theme="dark"] #subtab-statistics div:has(> canvas#countryChartGroups) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) div:has(> div > canvas#countryChartTypes),
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) div:has(> div > canvas#countryChartGroups) {background:#343D39!important;border-color:#66756D!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] div:has(> div > canvas#countryChartTypes),
html[data-tw-theme="dark"] div:has(> div > canvas#countryChartGroups) {background:#343D39!important;border-color:#66756D!important;color:#EBEBE9!important;}
html[data-tw-theme="dark"] div:has(> div > canvas#countryChartTypes) > h4,
html[data-tw-theme="dark"] div:has(> div > canvas#countryChartGroups) > h4 {color:#EBEBE9!important;}
html[data-tw-theme="dark"] div:has(> div:has(> div > canvas#countryChartTypes)) > div:first-child {color:#EBEBE9!important;}
html[data-tw-theme="dark"] div:has(> div:has(> div > canvas#countryChartTypes)) > div:first-child > span {color:#58C9D1!important;}

/* v1.7: threat chart card backgrounds and labels, including nested wrappers. */
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) :is(.tw-chart-card,.tw-stat-chart-card,.tw-threat-chart-card) {
 background:#343D39!important;color:#EBEBE9!important;border-color:#66756D!important;
}
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) :is(.tw-chart-card,.tw-stat-chart-card,.tw-threat-chart-card) :is(h2,h3,h4,h5,p,small,label) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) :is(.tw-chart-card,.tw-stat-chart-card,.tw-threat-chart-card) canvas {background:transparent!important;}

/* v1.8: threat-statistic chart card boundaries and tooltip-safe labels. */
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) :is(.tw-chart-card,.tw-stat-chart-card,.tw-threat-chart-card) :is(.chart-title,.chart-subtitle,.tw-chart-title) {color:#EBEBE9!important;}
html[data-tw-theme="dark"] :is(#tab-threat,#tab-bedrohung,#subtab-statistics) :is(.tw-chart-card,.tw-stat-chart-card,.tw-threat-chart-card) {box-shadow:none!important;}

/* v1.9 – print layout and high-contrast accessibility. */
@media print {
  #tw-theme-control {display:none!important;}
  html,body {color-scheme:light!important;background:#fff!important;color:#1C201F!important;}
  .tw-right-pane,.tw-analysis-body,.tw-analysis-item,.tw-post-row {box-shadow:none!important;}
}
@media (forced-colors:active) {
  #tw-theme-control {forced-color-adjust:auto!important;border:1px solid ButtonText!important;}
  #tw-theme-control button {forced-color-adjust:auto!important;color:ButtonText!important;background:ButtonFace!important;}
  #tw-theme-control button[aria-pressed="true"] {border:2px solid Highlight!important;color:Highlight!important;}
}

/* v1.10: native controls and keyboard contrast in both themes. */
html[data-tw-theme="dark"] .tw-right-pane :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]) {background-color:#303834!important;color:#EBEBE9!important;border-color:#66756D!important;}
html[data-tw-theme="dark"] .tw-right-pane :is(input,textarea)::placeholder {color:#BCC9C1!important;opacity:1;}
html[data-tw-theme="dark"] .tw-right-pane select option {background:#303834;color:#EBEBE9;}
html[data-tw-theme="dark"] .tw-right-pane :is(input,textarea,select):disabled {opacity:.6;}
