/* The appearance trigger is navigation text; only the picker is a panel. */
html body #radiance-appearance-button{
 display:inline;
 font:inherit!important;
 letter-spacing:normal!important;
 line-height:inherit!important;
 white-space:nowrap;
 min-height:0!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 color:inherit;
 background:transparent!important;
 box-shadow:none!important;
 text-decoration:underline;
 text-underline-offset:2px;
 cursor:pointer;
}
html body #radiance-appearance-button:hover{
 background:transparent!important;
 box-shadow:none!important;
 text-decoration-thickness:2px;
}
#radiance-appearance-dialog{max-width:min(360px,calc(100vw - 32px));width:360px;padding:22px;border:1px solid #c4a66a88;border-radius:12px;background:#101715!important;color:#f1eee5!important;z-index:10000;box-sizing:border-box}
#radiance-appearance-dialog::backdrop{background:#0008}#radiance-appearance-dialog label{display:block;margin:12px 0 6px;color:inherit}#radiance-appearance-dialog select{width:100%;min-height:44px;background:#202925!important;color:#f1eee5!important;padding:9px;border:1px solid #c4a66a88}#radiance-appearance-dialog option{background:#101715;color:#f1eee5}.appearance-actions{display:flex;gap:10px;flex-wrap:wrap}.appearance-actions button{min-height:44px;color:#f1eee5;background:#202925;border:1px solid #c4a66a88;padding:8px 12px;border-radius:6px}#radiance-appearance-message{font-size:13px;min-height:20px;margin:12px 0}.appearance-floating{position:fixed;right:14px;top:14px;z-index:1000}
html[data-appearance]:not([data-appearance=classic]){--bg:var(--appearance-bg);--background:var(--appearance-bg);--ink:var(--appearance-ink);--text:var(--appearance-ink);--foreground:var(--appearance-ink);--cream:var(--appearance-ink);--muted:var(--appearance-muted);--lime:var(--appearance-accent);--gold:var(--appearance-accent);--accent:var(--appearance-accent);--primary:var(--appearance-accent);--mint:var(--appearance-accent)}
html[data-appearance]:not([data-appearance=classic]) body{background:var(--appearance-bg)!important;color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.config-window,.setup-window,input,textarea,select,.transcript,.chatspace,.transport,.notice,header,#dmr-dashboard){color:var(--appearance-ink)!important;border-color:var(--appearance-accent)}
html[data-appearance]:not([data-appearance=classic]) :is(.muted,small,.eyebrow,.empty,.foot,#dmr-speaker,#dmr-talkgroup-name,#dmr-feed-status){color:var(--appearance-muted)!important}
html[data-appearance]:not([data-appearance=classic]) :is(.empty strong,h1,h2,h3,label,summary){color:var(--appearance-ink)}
html[data-appearance]:not([data-appearance=classic]) #radiance-appearance-button{color:var(--appearance-ink)}
html[data-appearance=daylight]{color-scheme:light}html[data-appearance=daylight] :is(.ambient,.welcome-scenery,.space-scene,#radiance-background-embed,#fwarc-radiance-scene){opacity:.16!important}html[data-appearance=daylight] #surface-scene{mix-blend-mode:normal;opacity:.65}html[data-appearance=dusk] :is(.ambient,.welcome-scenery){filter:sepia(.2) brightness(.8)}html[data-appearance=night] :is(.ambient,.welcome-scenery){filter:brightness(.55)}html[data-appearance=deep-space] :is(.ambient,.welcome-scenery,.space-scene,#radiance-background-embed,#fwarc-radiance-scene){filter:brightness(.3) saturate(.65)}html[data-appearance=deep-space] :is(.ambient-light,.aurora-veil){opacity:.1}
/* Signal displays and transport LEDs retain their operational colors. */
html[data-appearance]:not([data-appearance=classic]) :is(.waterfall,.waterfall span,.scale){color:#b7bfb8!important}
#radiance-appearance-button:focus-visible,#radiance-appearance-dialog :focus-visible{outline:2px solid #c4a66a;outline-offset:3px}@media(max-width:700px){.view-controls{flex-wrap:wrap}}

#radiance-appearance-dialog :is(h2,label){color:#f1eee5!important}

html[data-appearance]:not([data-appearance=classic]) :is(button,a,.freq,.notearea,.tools,.heading,.modes,.sdr-meter,.mode-menu,.health b){color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) :is(button.primary,.primary,#dmr-dashboard-quiet){background:var(--appearance-accent)!important;color:var(--appearance-bg)!important}
html[data-appearance]:not([data-appearance=classic]) .view-controls{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
html[data-appearance]:not([data-appearance=classic]):not([data-appearance=daylight]) :is(#radiance-appearance-dialog button,#radiance-appearance-dialog h2,#radiance-appearance-dialog label){color:#f1eee5!important}

html[data-appearance=crimson] :is(.ambient,.welcome-scenery,.space-scene,#radiance-background-embed,#fwarc-radiance-scene){filter:sepia(.25) hue-rotate(285deg) brightness(.55)}

html[data-appearance]:not([data-appearance=classic]) :is(#dmr-dashboard-state,#dmr-dashboard-label,.sdr-meter-label,#rx-level){color:var(--appearance-ink)!important}html[data-appearance]:not([data-appearance=classic]) :is(input,textarea)::placeholder{color:var(--appearance-muted)!important;opacity:1}

/* Daylight controls use an opaque light surface so scenery cannot wash out text. */
html[data-appearance=daylight] :is(.fwarc-return-nav a,button,.nav-link,.r-feature-action,.simulation-buttons a,.station-nav a,input,textarea,select){background:#fff9e9!important;background-image:none!important;color:#25352b!important;border-color:#70531b!important;text-shadow:none!important}
html[data-appearance=daylight] :is(.fwarc-return-nav a,button,.nav-link,.r-feature-action):hover{background:#e7dfc8!important;color:#25352b!important}
html[data-appearance=daylight] :is(.panel,.r-panel,.r-feature-card,.config-window,.setup-window,.transcript,.chatspace,.club-message,.demo-chat){background:#fff9e9f5!important;background-image:none!important;color:#25352b!important}
html[data-appearance=daylight] :is(button.primary,.primary,button[aria-pressed=true]){background:#70531b!important;color:#fff9e9!important}
html[data-appearance=daylight] :is(#radiance-appearance-dialog,#radiance-appearance-dialog button,#radiance-appearance-dialog select){background:#fff9e9!important;color:#25352b!important}
html[data-appearance=daylight] #radiance-appearance-dialog :is(h2,label){color:#25352b!important}
html[data-appearance=daylight] :is(a,button,input,select,textarea):focus-visible{outline:3px solid #70531b!important;outline-offset:3px}

/* Homepage reading copy follows Daylight ink instead of the dark scene palette. */
html[data-appearance=daylight] .home-expedition-site .hero-copy{color:var(--appearance-ink,#25352b)!important;text-shadow:none!important;font-size:14px;line-height:1.8}
html[data-appearance=daylight] .home-expedition-site :is(.small-note,.home-feature-description,.home-feature-note,.feature-list-label,.home-feature-promise,.feature-status){color:var(--appearance-ink,#25352b)!important;text-shadow:none!important}
html[data-appearance=daylight] .home-expedition-site :is(.site-hero,.home-feature-card){text-shadow:none!important}

/* Scenic cards need their own Daylight reading palette, including open roadmaps. */
html[data-appearance=daylight] .home-expedition-site{
 --site-ink:#25352b;--site-muted:#435748;--site-line:#70531b33;--radiance-brass:#70531b;
 background:#f2eedf!important;color:#25352b;
}
html[data-appearance=daylight] .home-expedition-site :is(.home-feature-card,.what-is-radiance){
 background-color:#fff9e9!important;background-image:none!important;color:#25352b!important;border-color:#70531b33!important;
}
html[data-appearance=daylight] .home-expedition-site :is(.home-feature-card h2,.home-feature-card ul,.home-feature-card li,.feature-roadmap summary,.feature-roadmap h3,.feature-roadmap p,.what-is-radiance span){
 color:#25352b!important;text-shadow:none!important;
}
html[data-appearance=daylight] .home-expedition-site :is(.home-feature-kicker,.eyebrow,.site-hero h1 em,.what-is-radiance small){color:#70531b!important}
html[data-appearance=daylight] .home-expedition-site :is(.feature-roadmap,.roadmap-disclaimer){border-color:#70531b33!important}
html[data-appearance=daylight] .home-expedition-site .home-feature-card li::before{background:#70531b!important}
html[data-appearance=daylight] .home-expedition-site .home-feature-card li::marker{color:#70531b}
html[data-appearance=daylight] .home-expedition-site a.home-feature-cta:hover{background:#e7dfc8!important;color:#25352b!important}
/* Picker options must match the light select, even with the site's dark defaults. */
html[data-appearance=daylight] #radiance-appearance-dialog :is(h2,label,p,button,select,option){color:#25352b!important}
html[data-appearance=daylight] #radiance-appearance-dialog :is(select,option,button){background:#fff9e9!important}

/* Theme the reading surface and its copy together, including inner pages. */
html[data-appearance]:not([data-appearance=classic]) .radiance-site:not(.tutorial-page-shell){
 --site-ink:var(--appearance-ink);--site-muted:var(--appearance-muted);--radiance-brass:var(--appearance-accent);
 color:var(--appearance-ink);
}
html[data-appearance]:not([data-appearance=classic]) .radiance-site:not(.tutorial-page-shell) :is(.build-intro p,.home-feature-description,.home-feature-note,.feature-list-label,.feature-status,.home-feature-card li,.feature-roadmap p){color:var(--appearance-muted)!important}
html[data-appearance]:not([data-appearance=classic]) .radiance-site:not(.tutorial-page-shell) :is(.home-feature-promise,.home-feature-card h2){color:var(--appearance-ink)!important}
html[data-appearance=daylight] .radiance-site:not(.tutorial-page-shell) :is(.home-feature-card,.product-card,.download-card){background:#fff9e9!important;color:var(--appearance-ink)!important;text-shadow:none!important}
html[data-appearance]:not([data-appearance=classic]) :is(.trial-signup,.signup-result){color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) .trial-signup :where(p:not(.signup-error),label){color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) .trial-signup :is(.signup-privacy,small){color:var(--appearance-muted)!important}
html[data-appearance]:not([data-appearance=classic]) .signup-result{background:var(--appearance-bg);border-color:var(--appearance-accent)}
html[data-appearance=daylight] .trial-signup .signup-error{color:#853719!important}

/* Support is a reading destination, not a permanently dark instrument. */
html[data-appearance]:not([data-appearance=classic]) :is(.support-hub,.support-guide,.support-private){color:var(--appearance-ink)}
html[data-appearance]:not([data-appearance=classic]) :is(.support-hub-intro,.support-hub-card,.support-hub-note,.support-guide-header,.support-guide-section,.support-guide-callout,.support-guide-status,.support-tabs,.support-note){background:var(--appearance-bg)!important;color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) :is(.support-hub,.support-guide,.support-private) :where(h1,h2,h3,p,li,strong){color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) :is(.support-card-meta,.support-card-action,.support-guide-status){color:var(--appearance-accent)!important}
html[data-appearance]:not([data-appearance=classic]) .radiance-site:not(.tutorial-page-shell) :is(a.home-return,a.site-primary,a.support-hub-primary),html[data-appearance]:not([data-appearance=classic]) .legacy-footer a.home-return{background:var(--appearance-accent)!important;color:var(--appearance-bg)!important;border-color:var(--appearance-accent)}
html[data-appearance]:not([data-appearance=classic]) .support-tabs button[data-state=active]{outline:2px solid var(--appearance-accent);outline-offset:-2px}

/* The always-visible notice must not leave Daylight headings on a dark strip. */
html[data-appearance]:not([data-appearance=classic]) .radiance-website-notice{background:var(--appearance-bg)!important;color:var(--appearance-ink)!important}
html[data-appearance]:not([data-appearance=classic]) .radiance-website-notice :is(summary,h2,h3,.notice-read){color:var(--appearance-ink)!important}

/* Standalone CW Trainer: its main element is not a generic .panel. */
html[data-appearance]:not([data-appearance=classic]) main:has(#practice){background:var(--appearance-bg);color:var(--appearance-ink)}
html[data-appearance]:not([data-appearance=classic]) main:has(#practice) :is(p,#status){color:var(--appearance-muted)}

/* Wav Lab keeps its oscilloscope dark; reading copy follows the chosen theme. */
html[data-appearance]:not([data-appearance=classic]) body:has(.workbench .generator) :is(.library,.notes,.protocol,.file-kind,footer){background:var(--appearance-bg);color:var(--appearance-ink)}
html[data-appearance]:not([data-appearance=classic]) body:has(.workbench .generator) :is(.intro>.lede,.help,.privacy-note,.file-details,.notes p,.small,.local-badge){color:var(--appearance-muted)}
html[data-appearance]:not([data-appearance=classic]) body:has(.workbench .generator) :is(.protocol b,#status,.glass-control output){color:var(--appearance-accent)}
html[data-appearance]:not([data-appearance=classic]) body:has(.workbench .generator) .brand-symbol{color:var(--appearance-bg)}
html[data-appearance]:not([data-appearance=classic]) body:has(.workbench .generator) .primary span{color:inherit}
html[data-appearance=daylight] body:has(.workbench .generator) :is(.intro,.generator,.preview,.library,.notes,.glass-control){text-shadow:none}
html[data-appearance=daylight] body:has(.workbench .generator) .error{color:#853719}

/* Wav Lab has four local scene layers, not the shared background iframe.
   Bound even overlapping black frames against Daylight's reading background;
   keep the pane-tint slider, animation and all control geometry unchanged. */
html[data-appearance=daylight] body:has(.workbench .generator) :is(#spaceScene,.space-fallback,.left-ridge,.avatar-scene){opacity:.03!important}
html[data-appearance=daylight] body:has(.workbench .generator) :is(.generator,.preview){color:var(--appearance-ink)!important}
html[data-appearance=daylight] body:has(.workbench .generator) :is(.panel-top,.quality-options,.quality-buttons label,.offset-condition){background:#fff9e9}
html[data-appearance=daylight] body:has(.workbench .generator) :is(.intro>h1,.intro>.lede){text-shadow:none}
html[data-appearance=daylight] body:has(.workbench .generator) .scope{background:#020b0c}

/* Keep the picker usable at short landscape heights and large text sizes. */
#radiance-appearance-dialog{max-height:calc(100dvh - 32px);overflow:auto}

/* Owner request cards are rendered after load and keep their Classic inline fallback. */
html[data-appearance]:not([data-appearance=classic]) .trial-signup-report{background:var(--appearance-bg)!important;color:var(--appearance-ink)!important}

/* Portable collection adapter: colors/material only; preserve host geometry and scenes. */
html[data-appearance-scheme=light]{color-scheme:light}
html[data-appearance-scheme=dark]{color-scheme:dark}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) :is(input,textarea,select){color:var(--appearance-ink)!important;background-color:var(--appearance-surface)!important}
html:is([data-appearance=blue-console],[data-appearance=distant-weather],[data-appearance=moonlit-porcelain],[data-appearance=moss-quartz],[data-appearance=copper-nebula],[data-appearance=cobalt-ember],[data-appearance=violet-signal]) :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.product-card,.trial-signup,.welcome-card,.review-card){color:var(--appearance-ink)!important;background-color:var(--appearance-surface)!important;border-color:color-mix(in srgb,var(--appearance-accent) 55%,transparent)}
@media(forced-colors:active){html[data-appearance-scheme] :is(input,textarea,select){color:CanvasText!important;background-color:Canvas!important}}

/* Collection material layer: package blur and reflection, no geometry or scene ownership. */
html[data-appearance-scheme=dark]:not([data-appearance=classic]) body:not(.station-page) :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.product-card,.trial-signup,.welcome-card,.review-card),
html[data-appearance-scheme=dark]:is([data-appearance=blue-console],[data-appearance=distant-weather],[data-appearance=copper-nebula],[data-appearance=cobalt-ember],[data-appearance=violet-signal]) body.station-page :is(.panel,.glass,.pane,.card,.r-panel){
 backdrop-filter:blur(var(--appearance-blur));
 -webkit-backdrop-filter:blur(var(--appearance-blur));
 box-shadow:inset 0 1px #ffffff55,inset 0 -1px #ffffff0b,0 8px 28px #0003;
 border-color:color-mix(in srgb,var(--appearance-accent) 55%,transparent);
}
/* Existing Operate Glass materials retain their source-owned reflection gradients. */
html[data-appearance-scheme=dark][data-appearance^=glass] body.station-page{--glass-blur:var(--appearance-blur)}
@media(prefers-reduced-transparency:reduce){
 html[data-appearance-scheme=dark]:not([data-appearance=classic]) :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.product-card,.trial-signup,.welcome-card,.review-card){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background-color:var(--appearance-surface)!important}
}
@supports not (backdrop-filter:blur(1px)){
 html[data-appearance-scheme=dark]:not([data-appearance=classic]) :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.product-card,.trial-signup,.welcome-card,.review-card){background-color:var(--appearance-surface)!important}
}
@media(forced-colors:active){
 html[data-appearance-scheme] :is(.panel,.glass,.pane,.card,.r-panel,.home-feature-card,.product-card,.trial-signup,.welcome-card,.review-card){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
}

/* Collection light palettes pair readable copy with light surfaces. */
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) :is(h1,h2,h3,p,label,summary,.freq,.section-label,.tag){text-shadow:none!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) :is(.beta-error,#source-status.beta-error,#file-check[data-state=error],.signup-error){color:#853719!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) #file-check[data-state=ready]{color:#196c39!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) #radiance-background-embed{opacity:.16!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) .home-expedition-site{background:var(--appearance-bg)!important;--site-ink:var(--appearance-ink);--site-muted:var(--appearance-muted);--radiance-brass:var(--appearance-accent)}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) .home-expedition-site :is(.hero-copy,.small-note,.home-pricing-note,.site-footer,.feature-roadmap p,.what-is-radiance span){color:var(--appearance-ink)!important;text-shadow:none!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) .home-expedition-site :is(.what-is-radiance,.home-radios-lab,.home-feature-offer,.home-feature-cta){background:var(--appearance-surface)!important;color:var(--appearance-ink)!important;text-shadow:none!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) .home-expedition-site :is(.eyebrow,.home-feature-kicker,.site-hero h1 em){color:var(--appearance-accent)!important}
html:is([data-appearance=moonlit-porcelain],[data-appearance=moss-quartz]) #radiance-appearance-dialog :is(select,option,button,h2,label,p){color:#f1eee5!important;background-color:#202925!important}

/* Native selected text must stay light inside the intentionally dark picker. */
html[data-appearance][data-appearance-scheme=light]:not([data-appearance=daylight]) body #radiance-appearance-dialog :is(select,option){color:#f1eee5!important;background:#202925!important;color-scheme:dark}
