/* Device preference only; legacy declarations retain their exact light colour. */
:root{color-scheme:light dark;--theme-bg:light-dark(#f3f8f9,#0d2124);--theme-surface:light-dark(#ffffff,#143035);--theme-sunken:light-dark(#e9f1f2,#0f282c);--theme-text:light-dark(#15383d,#e7f3f2);--theme-muted:light-dark(#557078,#9db8bb);--theme-line:light-dark(#d5e2e5,#27474c);--theme-accent:light-dark(#087f80,#6fd6bf);--theme-accent-ink:light-dark(#ffffff,#06282b);--theme-accent-soft:light-dark(#dff3ef,#1c4544);--theme-good:light-dark(#0b7a5c,#7fdcb8);--theme-good-soft:light-dark(#dcf3ea,#173f38);--theme-warn:light-dark(#8a5a0b,#f1c985);--theme-warn-soft:light-dark(#fbeed2,#3f3518);--theme-crit:light-dark(#a43a2a,#f2a595);--theme-crit-soft:light-dark(#fbe3dd,#47231d);--theme-shadow:light-dark(#15383d0d,transparent)}
.relto-dark-logo{display:none}
@media(prefers-color-scheme:dark){
 :root{--theme-field-line:#5c8a90}
 dialog{background:var(--theme-surface)}
 dialog::backdrop{background:rgb(13 33 36/.7)}
 html,body{background-color:var(--theme-bg);color:var(--theme-text)}
 *,*::before,*::after{box-shadow:none!important}
 .btn.primary,.primary,.assistant-launcher{background:var(--theme-accent)!important;border-color:var(--theme-accent)!important;color:var(--theme-accent-ink)!important}
 .btn.primary:hover,.primary:hover,.assistant-launcher:hover{background:var(--theme-accent)!important}
 :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline-color:var(--theme-accent)!important}
 input,select,textarea{color:var(--theme-text);accent-color:var(--theme-accent)}
 :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background-color:var(--theme-sunken)!important;border-color:var(--theme-field-line)!important}
 input::placeholder,textarea::placeholder{color:var(--theme-muted);opacity:1}
 select{background-image:none!important;appearance:auto}
 input:autofill{color:var(--theme-text);background:var(--theme-sunken)}
 input:-webkit-autofill{-webkit-text-fill-color:var(--theme-text);-webkit-box-shadow:0 0 0 1000px var(--theme-sunken) inset!important;caret-color:var(--theme-text)}
 :is(.btn.primary,button,input,select,textarea):disabled{opacity:1;color:var(--theme-muted)!important;background-color:var(--theme-sunken)!important}
 .comparison-tag.lowest,.terms-tag{color:var(--theme-good);background:var(--theme-good-soft)}
 .comparison-tag.outlier-high,.review-badge.blocked,.notice.warning{color:var(--theme-warn);background:var(--theme-warn-soft)}
 .comparison-tag.outlier-low,.form-error,.review-error{color:var(--theme-crit);background:var(--theme-crit-soft)}
 .ranking-bar>span,.ranking-bar>.lowest-marker,.queue-mini-bars i{background:var(--theme-accent)}
 .ranking-bar,.queue-mini-bars span{background:var(--theme-sunken)}
 input[type=range]{accent-color:var(--theme-accent)}
 .brand:has(>.relto-dark-logo),.session-brand:has(>.relto-dark-logo){position:relative}
 .brand>.relto-symbol,.brand>.relto-wordmark,.session-brand>.relto-symbol,.session-brand>.relto-wordmark{visibility:hidden}
 .brand>.relto-dark-logo,.session-brand>.relto-dark-logo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:left center}
 [dir=rtl] :is(.brand,.session-brand)>.relto-dark-logo{object-position:right center}
}
