/* TekTristan display themes. Load after styles.css / admin.css to avoid leaking styling into editor state. */
:root{color-scheme:light}
:root[data-theme="dark"]{
 color-scheme:dark;
 --ink:#edf3ff;--muted:#b7c5d9;--line:#35465c;--paper:#0e1726;
 --tt-surface:#101b2c;--tt-accent:#8eb1ff;
}
.theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;
 width:42px;height:42px;border:1px solid #cbd6e7;border-radius:50%;
 background:#f2f5fb;color:#263b60;cursor:pointer;
 transition:background .2s,border-color .2s,color .2s;
}
.theme-toggle:hover{background:#e5ecff;border-color:#a8bee9}
.theme-toggle:focus-visible{outline:3px solid #7199ef;outline-offset:3px}
.theme-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-icon-sun{display:none}
:root[data-theme="dark"] .theme-icon-moon{display:none}
:root[data-theme="dark"] .theme-icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle{background:#1b2b43;color:#c6d8fc;border-color:#455a7a}
:root[data-theme="dark"] .theme-toggle:hover{background:#293e5b;border-color:#7699d8}
@media(max-width:730px){
 .nav{gap:8px}
 .theme-toggle{width:40px;height:40px;flex-basis:40px}
 .nav-mobile-products{margin-left:auto}
}
@media(max-width:370px){.nav-mobile-products{font-size:11px;padding:7px 8px}.brand{font-size:16px}}
/* Public site in dark mode: distinct backgrounds, legible controls, and true dark product cards. */
:root[data-theme="dark"] body{background:#0b1220;color:#edf3ff}
:root[data-theme="dark"] .nav{
 background:rgba(10,18,32,.96);border-color:#2a3a51;box-shadow:0 7px 22px #0003;
}
:root[data-theme="dark"] .nav .brand,
:root[data-theme="dark"] .nav nav a{color:#e6efff}
:root[data-theme="dark"] .nav nav a:hover{color:#a8c4ff}
:root[data-theme="dark"] .navstatus{color:#afbed4;border-color:#3c4e66}
:root[data-theme="dark"] .nav-mobile-products{color:#d4e2ff;background:#23395b;border-color:#405e91}
:root[data-theme="dark"] .hero.home-hero{
 background:radial-gradient(ellipse at 94% 30%,#244b9b70,transparent 62%),linear-gradient(115deg,#070d19,#10264b);
}
:root[data-theme="dark"] .home-hero .hero-copy .hero-eyebrow{color:#b9d1ff}
:root[data-theme="dark"] .home-hero .hero-copy p{color:#d8e4f6}
:root[data-theme="dark"] .recommendations{background:#0e1726}
:root[data-theme="dark"] .recommendations>.eyebrow{color:#99baff}
:root[data-theme="dark"] .recommendations .section-top h2,
:root[data-theme="dark"] .section h2,
:root[data-theme="dark"] .about h2{color:#f0f5ff}
:root[data-theme="dark"] .section h2 em{color:#a5b8d5}
:root[data-theme="dark"] .recommendations .section-top p,
:root[data-theme="dark"] .section-top p{color:#b4c2d8}
:root[data-theme="dark"] .search,
:root[data-theme="dark"] .sort{
 background:#172438;border-color:#3a4d66;box-shadow:none;color:#d0dcf0;
}
:root[data-theme="dark"] .search svg{stroke:#b4c7e3}
:root[data-theme="dark"] .search input,
:root[data-theme="dark"] .sort select{color:#f2f6ff;background:transparent}
:root[data-theme="dark"] .sort option,
:root[data-theme="dark"] .rec-filter-options option{background:#172438;color:#f2f6ff}
:root[data-theme="dark"] .search input::placeholder{color:#a7b8d3}
:root[data-theme="dark"] .rec-filter-toggle{
 background:#172438;color:#e6f0ff;border-color:#425571;box-shadow:none;
}
:root[data-theme="dark"] .recommendation-pick,
:root[data-theme="dark"] .rec-status,
:root[data-theme="dark"] .price-warning{color:#b1c1d8}
:root[data-theme="dark"] .recommendation-pick strong{color:#bcd0ff}
:root[data-theme="dark"] .recommendations .product-card{
 background:#172337;color:#edf3ff;border-color:#344963;box-shadow:0 8px 28px #03091466;
}
:root[data-theme="dark"] .recommendations .product-card:hover{
 border-color:#739aee;box-shadow:0 18px 40px #0008;
}
:root[data-theme="dark"] .product-visual{background:linear-gradient(145deg,#263754,#1e2e48)}
:root[data-theme="dark"] .recommendations .product-info{background:#172337}
:root[data-theme="dark"] .recommendations .product-info h3{color:#f3f6fc}
:root[data-theme="dark"] .product-teaser{color:#becbe0}
:root[data-theme="dark"] .product-bottom{border-top-color:#394b62}
:root[data-theme="dark"] .product-bottom strong{color:#f3f6fc}
:root[data-theme="dark"] .product-bottom span{color:#9bbaff}
:root[data-theme="dark"] .deal-chip{background:#293b53;border-color:#455c7c;color:#d3e1f5}
:root[data-theme="dark"] .deal-chip.deal-chip-buy{background:#173c34;border-color:#356e57;color:#a8efc8}
:root[data-theme="dark"] .deal-chip.deal-chip-consider{background:#493a1d;border-color:#73602c;color:#ffe2a0}
:root[data-theme="dark"] .deal-chip.deal-chip-wait{background:#30445d;border-color:#52657f;color:#d2e0f5}
:root[data-theme="dark"] .pick-chip{background:#233b73;border-color:#4568ae;color:#c9dbff}
:root[data-theme="dark"] .catalog-empty{border-color:#435673;color:#b9c9df}
:root[data-theme="dark"] .catalog.section{background:#0c1523}
:root[data-theme="dark"] .catalog .tile{
 background:linear-gradient(145deg,#1b2940,#162337);border-color:#394c65;color:#f0f5ff;box-shadow:0 8px 24px #0004;
}
:root[data-theme="dark"] .catalog .tile:hover{border-color:#769be6;background:#223551}
:root[data-theme="dark"] .catalog .tile h3{color:#f3f7ff}
:root[data-theme="dark"] .catalog .tile p{color:#b6c6df}
:root[data-theme="dark"] .catalog .tile .symbol{background:#293f62;border-color:#47638c;color:#b2ceff}
:root[data-theme="dark"] .catalog .disclaimer,
:root[data-theme="dark"] .catalog .empty{color:#b6c6df}
:root[data-theme="dark"] .story{background:#131f33}
:root[data-theme="dark"] .storyhead p,
:root[data-theme="dark"] .methodnote{color:#c1cde0}
:root[data-theme="dark"] .methods article{
 background:#1c2a40;border-color:#3b506d;box-shadow:0 8px 23px #0003;color:#eef5ff;
}
:root[data-theme="dark"] .methods article p{color:#bbc9df}
:root[data-theme="dark"] .methods .mark{background:#2c4261;border-color:#4c6992;color:#b8d0ff}
:root[data-theme="dark"] .methods .special{background:#0e1727;border-color:#425572}
:root[data-theme="dark"] .about.section{background:#0c1523}
:root[data-theme="dark"] .bodycopy p{color:#bbcadf}
:root[data-theme="dark"] .bodycopy .sig{color:#f1f6ff}
:root[data-theme="dark"] .sig span{color:#a7b9d4}
:root[data-theme="dark"] footer{background:#070d18;color:#f2f6ff;border-top:1px solid #243348}
:root[data-theme="dark"] footer>span,
:root[data-theme="dark"] footer small,
:root[data-theme="dark"] .footer-admin{color:#afbed4}
:root[data-theme="dark"] .outlet-section{background:#091120}
:root[data-theme="dark"] .outlet-card{background:#18263e;border-color:#3d516d}
:root[data-theme="dark"] .outlet-section .rec-status,
:root[data-theme="dark"] .outlet-footnote{color:#b7c6dc}
:root[data-theme="dark"] .outlet-controls label{background:#21324b;border-color:#4e6688}
:root[data-theme="dark"] .outlet-status-note{color:#b2c4de}
/* Native product dialog, prices, highlights, documents and links. */
:root[data-theme="dark"] .detail-dialog{background:#131e2e;color:#edf3ff;border:1px solid #334b6a}
:root[data-theme="dark"] .detail-dialog::backdrop{background:#030915cf}
:root[data-theme="dark"] .detail-content,
:root[data-theme="dark"] .detail-content-v2{background:#131e2e;color:#edf3ff}
:root[data-theme="dark"] .detail-close{background:#253751;color:#e5efff;border-color:#485d7b}
:root[data-theme="dark"] .detail-category,
:root[data-theme="dark"] .detail-v2-path{color:#b0c0d8}
:root[data-theme="dark"] .detail-content h2,
:root[data-theme="dark"] .detail-content h3{color:#eff5ff}
:root[data-theme="dark"] .detail-content p{color:#b8c9e0}
:root[data-theme="dark"] .detail-v2-visual{background:linear-gradient(145deg,#263752,#1b2b42)}
:root[data-theme="dark"] .detail-placeholder{color:#bdcce1}
:root[data-theme="dark"] .detail-v2-highlight{background:#22334c;border-color:#3a516f}
:root[data-theme="dark"] .detail-v2-highlight small{color:#afc2dd}
:root[data-theme="dark"] .detail-v2-highlight strong{color:#f3f7ff}
:root[data-theme="dark"] .detail-v2-price{border-top-color:#3a4e69}
:root[data-theme="dark"] .detail-v2-price span,
:root[data-theme="dark"] .detail-v2-price small{color:#b5c7df}
:root[data-theme="dark"] .detail-v2-price strong{color:#f5f8ff}
:root[data-theme="dark"] .detail-v2-wait{color:#cad6e8!important}
:root[data-theme="dark"] .detail-v2-opinion{background:#223553;border-color:#3c5b90}
:root[data-theme="dark"] .detail-v2-eyebrow{color:#adc7ff}
:root[data-theme="dark"] .detail-v2-opinion p{color:#edf3ff!important}
:root[data-theme="dark"] .detail-v2-audience-card p{color:#bdcbe0!important}
:root[data-theme="dark"] .detail-v2-shop{border-top-color:#3b4d67}
:root[data-theme="dark"] .detail-v2-subtitle,
:root[data-theme="dark"] .detail-v2-legal{color:#b2c3da!important}
:root[data-theme="dark"] .offer-row{background:#18263a;border-color:#394c69}
:root[data-theme="dark"] .offer-row small,
:root[data-theme="dark"] .detail-v2-store small,
:root[data-theme="dark"] .detail-v2-store-price small{color:#afc2dc}
:root[data-theme="dark"] .offer-link{background:#3868e2;color:#fff}
:root[data-theme="dark"] .detail-v2-nooffers{background:#182639;border-color:#445c7c;color:#c4d2e5}
:root[data-theme="dark"] .detail-v2-specs{border-color:#3c4f6b}
:root[data-theme="dark"] .detail-v2-specs summary{color:#f0f5fe}
:root[data-theme="dark"] .detail-v2-specs summary small{color:#b6c5da}
:root[data-theme="dark"] .detail-v2-specs .detail-specs{border-top-color:#3d526f}
:root[data-theme="dark"] .detail-specs dt,
:root[data-theme="dark"] .detail-specs dd{border-bottom-color:#364c68}
:root[data-theme="dark"] .detail-specs dt{color:#b8c8de}
:root[data-theme="dark"] .detail-v2-specs .spec-source{color:#a6c3ff}
:root[data-theme="dark"] .consent-banner{background:#1b2940;border:1px solid #4c6588;box-shadow:0 16px 45px #0008}
:root[data-theme="dark"] .consent-banner p{color:#c5d2e5}
/* The redaksjon/admin experience uses the same preference and genuine dark form surfaces. */
:root[data-theme="dark"] .admin-body{background:#0b1321;color:#edf3ff}
:root[data-theme="dark"] .admin-heading p,
:root[data-theme="dark"] .state-box p,
:root[data-theme="dark"] .admin-panel>p,
:root[data-theme="dark"] .panel-top p{color:#b4c4db}
:root[data-theme="dark"] .state-box,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .admin-stats article,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .review-spec-details,
:root[data-theme="dark"] .admin-legacy-details{
 background:#172337;color:#edf3ff;border-color:#3a506e;box-shadow:0 8px 22px #0003;
}
:root[data-theme="dark"] .manual-import-panel{background:linear-gradient(135deg,#172337,#1c2c47)}
:root[data-theme="dark"] .admin-stats span,
:root[data-theme="dark"] .review-summary,
:root[data-theme="dark"] .record p,
:root[data-theme="dark"] .record .record-meta,
:root[data-theme="dark"] .admin-message,
:root[data-theme="dark"] .review-empty,
:root[data-theme="dark"] .empty-record{color:#b5c5dc}
:root[data-theme="dark"] .admin-tabs button,
:root[data-theme="dark"] .ghost,
:root[data-theme="dark"] .record-actions button,
:root[data-theme="dark"] .review-submit-actions .review-save-button{
 background:#21334c;border-color:#435b7c;color:#f0f5ff;
}
:root[data-theme="dark"] .admin-tabs button:hover,
:root[data-theme="dark"] .ghost:hover,
:root[data-theme="dark"] .record-actions button:hover{background:#2a4060}
:root[data-theme="dark"] .admin-tabs button.selected{background:#3868e2;border-color:#6a94ef;color:#fff}
:root[data-theme="dark"] .solid{background:#315edf;color:#fff;border-color:#5380ef}
:root[data-theme="dark"] .solid:hover{background:#4776ed}
:root[data-theme="dark"] .record,
:root[data-theme="dark"] .review-store,
:root[data-theme="dark"] .review-price-rules,
:root[data-theme="dark"] .review-image-preview,
:root[data-theme="dark"] .review-quality,
:root[data-theme="dark"] .review-pick-draft,
:root[data-theme="dark"] .review-pick-quick,
:root[data-theme="dark"] .price-editor-card{
 background:#1b2a40;color:#eaf1fe;border-color:#405674;
}
:root[data-theme="dark"] .form-grid label,
:root[data-theme="dark"] .review-field,
:root[data-theme="dark"] .review-check,
:root[data-theme="dark"] .review-card-head h3,
:root[data-theme="dark"] .review-spec-line strong{color:#e4edff}
:root[data-theme="dark"] .form-grid input:not([type=checkbox]),
:root[data-theme="dark"] .form-grid select,
:root[data-theme="dark"] .form-grid textarea,
:root[data-theme="dark"] .review-field input,
:root[data-theme="dark"] .review-field textarea,
:root[data-theme="dark"] .review-field select,
:root[data-theme="dark"] .review-pick-field select,
:root[data-theme="dark"] .review-pick-field textarea,
:root[data-theme="dark"] .review-image-manual-fields input,
:root[data-theme="dark"] .review-image-permission select,
:root[data-theme="dark"] .manual-link-controls input,
:root[data-theme="dark"] .price-review-toolbar input,
:root[data-theme="dark"] .price-review-toolbar select,
:root[data-theme="dark"] .price-editor-field input,
:root[data-theme="dark"] .price-editor-field select{
 background:#0e192b;border-color:#4a5f7f;color:#f0f5fe;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{color:#9fafc7;opacity:1}
:root[data-theme="dark"] .review-spec-line:nth-child(even){background:#22344d}
:root[data-theme="dark"] .review-detail,
:root[data-theme="dark"] .review-spec-line,
:root[data-theme="dark"] .review-spec-table{border-color:#3e536f}
:root[data-theme="dark"] .review-description,
:root[data-theme="dark"] .review-hint,
:root[data-theme="dark"] .review-caveat,
:root[data-theme="dark"] .review-feedback,
:root[data-theme="dark"] .review-field-label{color:#c9d7e9!important}
:root[data-theme="dark"] .review-caveat{background:#223650}
:root[data-theme="dark"] .review-image-artwork,
:root[data-theme="dark"] .review-image-option{background:#26374d;border-color:#536880}
:root[data-theme="dark"] .review-price-alert,
:root[data-theme="dark"] .review-warnings{background:#3d301b;border-color:#806437;color:#ffe0a4!important}
:root[data-theme="dark"] .review-blocking{background:#442433;border-color:#875266;color:#ffc6d2}
:root[data-theme="dark"] .review-ok{background:#163d31;color:#afecc9}
:root[data-theme="dark"] .review-warning{background:#49381d;color:#ffe0a4}
:root[data-theme="dark"] .review-actions a,
:root[data-theme="dark"] .review-source,
:root[data-theme="dark"] .record a{color:#a4c3ff}
:root[data-theme="dark"] .tiny{color:#b6c6db!important}
:root[data-theme="dark"] .import-ai-setup{background:#1d2e4b;color:#e7f0ff;border-color:#506a90}
:root[data-theme="dark"] .import-ai-setup a{color:#b4cdff}
:root[data-theme="dark"] .import-ai-setup code{background:#324866;color:#edf4ff}
:root[data-theme="dark"] .price-stat-link:hover{background:#2a3e5b}
:root[data-theme="dark"] .state-pill{background:#35455b;color:#e5eefd}
:root[data-theme="dark"] .review-store+.review-image-note+.review-check{background:#22334b;border-color:#405774}
:root[data-theme="dark"] .review-pick-open{background:#243d6d;color:#d6e4ff;border-color:#4b6fb4}
:root[data-theme="dark"] .review-quality-badge,
:root[data-theme="dark"] .review-pick-indicator{background:#233b68;color:#d0e0ff}
:root[data-theme="dark"] .price-status{background:#30445d;color:#d2e0f5}
:root[data-theme="dark"] .review-image-option.is-selected{background:#29477c;border-color:#8dabed}


/* Contrast assurance, November 2026: no layout changes. WCAG AA target >= 4.5:1
   for normal text, including small labels, helper copy, badges and editor metadata.
   Keep dark mode genuinely dark, and avoid light-only text colors on dark panels. */

/* Small light-mode editor labels were too faint even before dark mode. */
:root[data-theme="light"] .review-overline{color:#3e577f!important}
:root[data-theme="light"] .review-image-note,
:root[data-theme="light"] .review-image-heading p,
:root[data-theme="light"] .review-image-permission .review-image-note,
:root[data-theme="light"] .review-store-current,
:root[data-theme="light"] .review-store-checked,
:root[data-theme="light"] .review-price-help,
:root[data-theme="light"] .review-original-price,
:root[data-theme="light"] .review-price-feedback,
:root[data-theme="light"] .price-review-notice,
:root[data-theme="light"] .price-editor-merchant,
:root[data-theme="light"] .review-image-option-label,
:root[data-theme="light"] .review-image-empty,
:root[data-theme="light"] .review-store-head p,
:root[data-theme="light"] .review-spec-details summary small{color:#536477!important}
:root[data-theme="light"] .review-image-permission select:disabled{color:#526174}

/* Dark mode public interface: headings, metadata, links and notices. */
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .recommendations>.eyebrow,
:root[data-theme="dark"] .detail-v2-eyebrow,
:root[data-theme="dark"] .detail-category{color:#b6cdf7}
:root[data-theme="dark"] .detail-content .detail-reason{color:#e1eafb}
:root[data-theme="dark"] .detail-content .spec-source,
:root[data-theme="dark"] .detail-v2-specs .spec-source{color:#b7d0ff}
:root[data-theme="dark"] .offer-row .ad-label{color:#ffca8a}
:root[data-theme="dark"] .outlet-extra,
:root[data-theme="dark"] .outlet-meta,
:root[data-theme="dark"] .outlet-price span{color:#c0cee2}
:root[data-theme="dark"] .outlet-section .outlet-eyebrow{color:#b6cced}
:root[data-theme="dark"] .outlet-heading p,
:root[data-theme="dark"] .outlet-desc{color:#bdcce0}
:root[data-theme="dark"] .outlet-chip{background:#2c415d;border-color:#536b8a;color:#e5efff}
:root[data-theme="dark"] .outlet-saving{background:#244633;color:#c2f6d0}
:root[data-theme="dark"] .detail-v2-specs summary::after{color:#c3d4eb}
:root[data-theme="dark"] .stat-settings{color:#c6d9fa}

/* Dark editor: resolve remaining dark text on dark surfaces. */
:root[data-theme="dark"] .review-spec-details summary,
:root[data-theme="dark"] .review-price-rule-toggle,
:root[data-theme="dark"] .price-stat-link strong,
:root[data-theme="dark"] .review-image-state,
:root[data-theme="dark"] .review-image-toggle,
:root[data-theme="dark"] .review-image-verified,
:root[data-theme="dark"] .price-editor-field,
:root[data-theme="dark"] .price-editor-check,
:root[data-theme="dark"] .review-pick-switch,
:root[data-theme="dark"] .review-pick-field,
:root[data-theme="dark"] .admin-legacy-details>summary{color:#eef4ff}
:root[data-theme="dark"] .review-overline{color:#b8ceff!important}
:root[data-theme="dark"] .review-image-note,
:root[data-theme="dark"] .review-image-heading p,
:root[data-theme="dark"] .review-image-permission .review-image-note,
:root[data-theme="dark"] .review-store-current,
:root[data-theme="dark"] .review-store-checked,
:root[data-theme="dark"] .review-price-help,
:root[data-theme="dark"] .review-local-status,
:root[data-theme="dark"] .review-nowprice-advice,
:root[data-theme="dark"] .review-original-price,
:root[data-theme="dark"] .price-review-count,
:root[data-theme="dark"] .price-review-notice,
:root[data-theme="dark"] .price-editor-feedback{color:#bfcfe6!important}
:root[data-theme="dark"] .review-spec-details summary::after,
:root[data-theme="dark"] .review-spec-details summary small,
:root[data-theme="dark"] .review-store-head p,
:root[data-theme="dark"] .review-store-main .review-field-label,
:root[data-theme="dark"] .review-store-advanced summary,
:root[data-theme="dark"] .review-image-empty,
:root[data-theme="dark"] .review-image-option-label,
:root[data-theme="dark"] .review-image-manual summary,
:root[data-theme="dark"] .review-image-toggle input:disabled+span,
:root[data-theme="dark"] .review-price-feedback,
:root[data-theme="dark"] .review-discard-local,
:root[data-theme="dark"] .price-review-toolbar label,
:root[data-theme="dark"] .price-editor-merchant,
:root[data-theme="dark"] .price-editor-facts,
:root[data-theme="dark"] .price-empty,
:root[data-theme="dark"] .review-pick-help,
:root[data-theme="dark"] .review-pick-counter,
:root[data-theme="dark"] .review-pick-feedback,
:root[data-theme="dark"] .review-quality-summary,
:root[data-theme="dark"] .review-quality-warnings{color:#c0cfe3}
:root[data-theme="dark"] .review-store-links .review-source,
:root[data-theme="dark"] .review-image-sources a,
:root[data-theme="dark"] .price-editor-store,
:root[data-theme="dark"] .price-stat-link small,
:root[data-theme="dark"] .review-quality-source,
:root[data-theme="dark"] .review-actions .review-source,
:root[data-theme="dark"] .review-quality-badge{color:#b8d0ff}
:root[data-theme="dark"] .review-missing,
:root[data-theme="dark"] .review-quality-caution{color:#ffd59b}
:root[data-theme="dark"] .review-documentation-explainer{color:#ffb9bd}

/* Interactive states must not switch back to light-only surfaces in dark mode. */
:root[data-theme="dark"] .price-editor-delete{background:#3a2431;color:#ffc3cf;border-color:#80516a}
:root[data-theme="dark"] .price-editor-delete:hover{background:#502a3b;border-color:#a36b83}
:root[data-theme="dark"] .review-manage-actions .review-reject{background:#26364d;color:#e5edfb;border-color:#4d6584}
:root[data-theme="dark"] .review-manage-actions .review-reject:hover{background:#324561}
:root[data-theme="dark"] .review-manage-actions .review-delete{background:#452535;color:#ffcad5;border-color:#835469}
:root[data-theme="dark"] .review-manage-actions .review-delete:hover{background:#563044}
:root[data-theme="dark"] .review-pick-open:hover{background:#304a7e;color:#f0f5ff}
:root[data-theme="dark"] .review-discard-local:hover{color:#e7f0ff}
:root[data-theme="dark"] .review-image-permission select:disabled{background:#202d40;border-color:#455972;color:#b8c8de}
:root[data-theme="dark"] .state-pill.approved,
:root[data-theme="dark"] .state-pill.active,
:root[data-theme="dark"] .price-status-fresh{background:#183b31;color:#b9f0d0}
:root[data-theme="dark"] .state-pill.paused,
:root[data-theme="dark"] .state-pill.rejected,
:root[data-theme="dark"] .price-status-expired,
:root[data-theme="dark"] .price-status-paused{background:#344056;color:#d2def0}
:root[data-theme="dark"] .price-status-review,
:root[data-theme="dark"] .review-quality-mixed,
:root[data-theme="dark"] .review-quality-insufficient_evidence{background:#45351e;color:#ffe0a9}
:root[data-theme="dark"] .review-quality-avoid{background:#492834;color:#ffcad5}
:root[data-theme="dark"] .review-manage-actions .review-delete,
:root[data-theme="dark"] .review-card .review-action-feedback{color:#ffbfca}
:root[data-theme="dark"] .review-quality-summary a,
:root[data-theme="dark"] .review-quality-source{color:#b8d0ff}


/* Author and category controls are legible in dark mode too. */
:root[data-theme="dark"] .editor-note{background:#19273d;border-color:#3b526e;box-shadow:0 6px 22px #0002}
:root[data-theme="dark"] .editor-note-avatar{background:#2e4770;color:#d7e5ff}
:root[data-theme="dark"] .editor-note-copy strong{color:#f0f5ff}
:root[data-theme="dark"] .editor-note-copy p{color:#c1d0e5}
:root[data-theme="dark"] .editor-note-copy p span{color:#b4c7e1}
:root[data-theme="dark"] .editor-note-link{color:#b4cdff}
:root[data-theme="dark"] .quick-category-caption{color:#bfd0e8}
:root[data-theme="dark"] .quick-category{background:#1a2a41;border-color:#405a7a;color:#d3e1f5}
:root[data-theme="dark"] .quick-category:hover{background:#294467;border-color:#7099ce}
:root[data-theme="dark"] .quick-category.is-active{background:#89abfa;border-color:#89abfa;color:#0c1c38}
:root[data-theme="dark"] .quick-category-more{background:#263d65;border-color:#506ea6;color:#dce8ff}
:root[data-theme="dark"] .quick-category-more:hover{background:#315282}
:root[data-theme="dark"] .quick-category-more.has-selected-category{box-shadow:inset 0 -3px #8fb2ff}

/* Portrait feature: dark-theme controls and typography. */
:root[data-theme="dark"] .editor-note-kicker{color:#bfd1f5}
:root[data-theme="dark"] .editor-note-copy p{color:#d0dded}
:root[data-theme="dark"] .pick-portrait{background:#344e7a;border-color:#5276b6;color:#dce9ff}
:root[data-theme="dark"] .pick-chip-personal{color:#d8e6ff}
:root[data-theme="dark"] .tt-profile-picture{background:#293f63;border-color:#5674a1;color:#d7e6ff}
:root[data-theme="dark"] .tt-profile-preview-box p{color:#c0cde1}
:root[data-theme="dark"] .tt-profile-form input[type=file]{background:#17243b;border-color:#4f6484;color:#e8efff}
:root[data-theme="dark"] .tt-profile-form label{color:#eaf2ff}

/* v3 homepage: dark treatment for featured buys and category shortcuts. */
:root[data-theme="dark"] .featured-section{background:#0f1a2a}
:root[data-theme="dark"] .featured-section .section-top h2{color:#f0f5ff}
:root[data-theme="dark"] .featured-section .section-top h2 em,
:root[data-theme="dark"] .category-hub .section-top h2 em{color:#b0c3df}
:root[data-theme="dark"] .featured-section .section-top p,
:root[data-theme="dark"] .category-hub .section-top p{color:#bfcde1}
:root[data-theme="dark"] .featured-section .rec-status{color:#b7c8e1}
:root[data-theme="dark"] .section-text-link{color:#a6c3ff}
:root[data-theme="dark"] .featured-section .product-card{background:#172337;border-color:#344963;color:#edf3ff}
:root[data-theme="dark"] .featured-section .product-info{background:#172337}
:root[data-theme="dark"] .featured-section .product-info h3{color:#f3f6fc}
:root[data-theme="dark"] .featured-section .product-teaser{color:#becbe0}
:root[data-theme="dark"] .category-hub.catalog{background:#121e31}
:root[data-theme="dark"] .category-hub .category-grid .tile{background:#1b2a40;border-color:#394c65}
:root[data-theme="dark"] .category-hub .category-grid .symbol{background:#2a4165;color:#bdd5ff}
:root[data-theme="dark"] .category-hub .category-text strong{color:#eef5ff}
:root[data-theme="dark"] .category-hub .category-text small{color:#b4c6e0}
:root[data-theme="dark"] .category-hub .category-arrow{color:#adc6f1}

:root[data-theme="dark"] .detail-permalink{background:#293f63;color:#c7d8ff;border-color:#47658e}
:root[data-theme="dark"] .detail-permalink:hover{background:#35517b;color:#fff}


/* Personal section: the same legible editorial layout in dark mode. */
:root[data-theme="dark"] .about.section{background:#0c1523}
:root[data-theme="dark"] .about-visual{background:#17273e;border-color:#354d6c;box-shadow:0 18px 45px #0004}
:root[data-theme="dark"] .about-story h2{color:#f1f6ff}
:root[data-theme="dark"] .about-story h2 em{color:#a9c6ff}
:root[data-theme="dark"] .about-story .bodycopy p{color:#d6e3f4}
:root[data-theme="dark"] .about-story .bodycopy p:last-child{color:#edf4ff}
:root[data-theme="dark"] .about-trust span{background:#1a2a42;border-color:#415474;color:#dce8ff}
:root[data-theme="dark"] .about-story .sig{border-top-color:#354d6c;color:#eef5ff}
:root[data-theme="dark"] .about-story .sig span{color:#bdcee5}

/* Higher dark-mode contrast for reading long reviews and supporting copy. */
:root[data-theme="dark"] .detail-content p,
:root[data-theme="dark"] .detail-content-v2 p{color:#dee9f8}
:root[data-theme="dark"] .detail-v2-audience-card p{color:#edf4ff!important}
:root[data-theme="dark"] .detail-v2-opinion p{color:#f3f7ff!important}
:root[data-theme="dark"] .detail-v2-subtitle,
:root[data-theme="dark"] .detail-v2-legal{color:#d8e6f7!important}
:root[data-theme="dark"] .detail-v2-path,
:root[data-theme="dark"] .detail-v2-price span,
:root[data-theme="dark"] .detail-v2-price small,
:root[data-theme="dark"] .detail-v2-highlight small,
:root[data-theme="dark"] .detail-v2-store small,
:root[data-theme="dark"] .detail-v2-store-price small,
:root[data-theme="dark"] .detail-v2-specs summary small,
:root[data-theme="dark"] .detail-specs dt{color:#d6e3f5}
:root[data-theme="dark"] .recommendations .product-teaser,
:root[data-theme="dark"] .featured-section .product-teaser{color:#dce7f7}
:root[data-theme="dark"] .featured-section .section-top p,
:root[data-theme="dark"] .recommendations .section-top p,
:root[data-theme="dark"] .category-hub .section-top p,
:root[data-theme="dark"] .section-top p,
:root[data-theme="dark"] .storyhead p,
:root[data-theme="dark"] .methods article p,
:root[data-theme="dark"] .bodycopy p,
:root[data-theme="dark"] .methodnote,
:root[data-theme="dark"] .price-warning,
:root[data-theme="dark"] .rec-status,
:root[data-theme="dark"] .outlet-footnote,
:root[data-theme="dark"] .editor-note-copy p,
:root[data-theme="dark"] .editor-note-copy p span{color:#d6e3f4}
:root[data-theme="dark"] .category-hub .category-text small,
:root[data-theme="dark"] .outlet-desc,
:root[data-theme="dark"] .outlet-meta{color:#d1e0f2}

/* Compact category reveal control for night mode. */
:root[data-theme="dark"] .category-more-toggle:not([hidden]){background:#1b2a40;border-color:#425a7b;color:#c5d9ff}
:root[data-theme="dark"] .category-more-toggle:not([hidden]):hover{background:#294365;border-color:#7598d1}

/* Firsthand testing remains visible on dark backgrounds. */
:root[data-theme="dark"] .tested-chip{background:#143d3b;border-color:#3c847b;color:#b3f3e8}
:root[data-theme="dark"] .tested-check{background:#38a17d;color:#071a14}
:root[data-theme="dark"] .review-tested-indicator{background:#173c32;border:1px solid #3c8069;color:#c1f5df}

/* Dark-mode contrast for editorial verdicts and accessible help bubbles. */
:root[data-theme="dark"] .deal-chip.deal-chip-wait{background:#30445d;border-color:#52657f;color:#d2e0f5}
:root[data-theme="dark"] .deal-chip.deal-chip-avoid{background:#522632;border-color:#a05a69;color:#ffd0d8}
:root[data-theme="dark"] .detail-v2-avoid-note{color:#ffc3d0}
:root[data-theme="dark"] .badge-explainer-tip{background:#20324c;border-color:#50698c;color:#eef4ff;box-shadow:0 18px 38px #030d1a99}
:root[data-theme="dark"] .badge-explainer-tip::before{border-color:#50698c}
:root[data-theme="dark"] .badge-explainer-icon{color:#becde5}

/* Distinct purchase advice palettes in dark mode. */
:root[data-theme="dark"] .methods .method-buy{background:#163329;border-color:#367a58;color:#e8fff1}
:root[data-theme="dark"] .methods .method-buy .mark{background:#245340;border-color:#4a9972;color:#a6efc5}
:root[data-theme="dark"] .methods .method-consider{background:#352b1b;border-color:#88703a;color:#fff5d6}
:root[data-theme="dark"] .methods .method-consider .mark{background:#554225;border-color:#9e8047;color:#ffe2a0}
:root[data-theme="dark"] .methods .method-wait{background:#1b3046;border-color:#4c6c88;color:#e0eeff}
:root[data-theme="dark"] .methods .method-wait .mark{background:#294963;border-color:#6888a8;color:#d2e5ff}
:root[data-theme="dark"] .methods .method-avoid{background:#39232f;border-color:#875369;color:#ffeaf0}
:root[data-theme="dark"] .methods .method-avoid .mark{background:#592d42;border-color:#a0687d;color:#ffd2dc}
:root[data-theme="dark"] .methods .special{background:#192c51;border-color:#4d6eb5;color:#e9f0ff}
:root[data-theme="dark"] .methods .special .mark{background:#254379;border-color:#5b83c6;color:#c6d9ff}
:root[data-theme="dark"] .methods .special p{color:#c7d9f6}
:root[data-theme="dark"] .methods article:not(.special) p{color:#d1deed}
:root[data-theme="dark"] .review-featured-toggle{background:#233c64;color:#d8e8ff;border-color:#567cba}
:root[data-theme="dark"] .review-featured-toggle.is-featured{background:#173f35;color:#bcf2d5;border-color:#4b916f}
:root[data-theme="dark"] .review-featured-indicator{background:#173f35;color:#bcf2d5;border-color:#4b916f}
:root[data-theme="dark"] .featured-admin-guide{background:#1c2c44;border-color:#4b6384;color:#dce8fa}
