/* Night is a change of light; the photographs, films and compositions stay authored. */
.neon-controls{display:flex;align-items:center;gap:3px;margin-left:auto;flex:none}
.neon-controls button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 13px;border:1px solid currentColor;border-radius:28px;background:transparent;color:inherit;font:10px/1 var(--sans,Arial,sans-serif);letter-spacing:.055em;text-transform:uppercase;cursor:pointer}
.neon-controls[hidden],.neon-controls button[hidden]{display:none!important}
.neon-controls button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.neon-controls button:hover{background:#dfff70;color:#171715}
.neon-controls [data-neon-pause]{width:44px;min-width:44px;padding:0;border-color:transparent;font-size:15px}
.neon-moon{width:12px;height:12px;border:1px solid currentColor;border-radius:50%;box-shadow:inset 4px 0 currentColor;flex:none}
.neon-controls~.menu-toggle{flex:none}
.neon-rain-canvas{position:fixed;inset:0;z-index:28;display:block;width:100%;height:100%;pointer-events:none!important;contain:strict}
html:not([data-neon-theme=dark]) .neon-rain-canvas{display:none!important}
body:is(.modal-open,.menu-open,.bonanza-active) .neon-rain-canvas{visibility:hidden}
body:has(dialog[open]) .neon-rain-canvas{visibility:hidden}

html[data-neon-theme=dark]{color-scheme:dark;--paper:#020305;--ink:#f0f3fa;--muted:#a2aab9;--line:#343944;--signal:#ff6589;background:#020305}
html[data-neon-theme=dark] body{--paper:#020305;--ink:#f0f3fa;--muted:#a2aab9;--line:#343944;background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] :is(.site-header,.site-footer,.site-nav.menu-enabled,.directory-masthead){background:#020305;color:#f0f3fa;border-color:#343944}
html[data-neon-theme=dark] :is(.brand,.footer-brand) img{filter:invert(1)}
html[data-neon-theme=dark] body.menu-open .site-nav .brand img{filter:invert(1)!important}
html[data-neon-theme=dark] .neon-controls{color:#ebf4ff}
html[data-neon-theme=dark] .neon-controls [data-neon-toggle]{color:#a3faff;border-color:#72e9ff80}
html[data-neon-theme=dark] .neon-controls [data-neon-toggle]:hover{background:#a3faff;color:#020305}
html[data-neon-theme=dark] :is(.directory-intro,.menu-secondary,.world-overview){border-color:#343944}
html[data-neon-theme=dark] .site-header .nav-world-status:not(.sr-only){color:#a2aab9}
html[data-neon-theme=dark] .site-header .nav-card:is(:hover,:focus-visible) .nav-title{background:#eef4ff;color:#080c13}
html[data-neon-theme=dark] .nav-lab .nav-object{color:#ff7cbb}
html[data-neon-theme=dark] .nav-index .nav-object{color:#94c4ff}
html[data-neon-theme=dark] .nav-world-family{background:linear-gradient(180deg,#75aaff0c,transparent 90%)}
html[data-neon-theme=dark] .nav-world-family::before{background:#465166}

/* Local room palettes must not bring white paper back into the night. */
html[data-neon-theme=dark] :is(.world-composition,.world-nabil,.nn-world,.loe-world,.bg-world,.physics-chrome){--paper:#020305;--ink:#f0f3fa;--muted:#a2aab9;--line:#343944;--world-rule:#343944;--nn-paper:#020305;--nn-rule:#343944;background:#020305;color:#f0f3fa;color-scheme:dark}
html[data-neon-theme=dark] :is(.world-register-line,.world-image-room,.world-object-room,.world-listening,.world-motion-room,.world-film,.world-radio,.ramdaq-collage-room,.jenn-cover-room,.nn-editorial,.loe-stage,.loe-television,.bg-sound){background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] :is(.loe-stage h1,.loe-stage-edge,.loe-stage-edge>span:last-child,.loe-stage-edge .loe-tagline){color:#f0f3fa}
html[data-neon-theme=dark] :is(.loe-stage-edge>span:last-child,.loe-stage-edge .loe-tagline){background:#020305}
html[data-neon-theme=dark] .loe-waveform svg{stroke:#d9e7ff}
html[data-neon-theme=dark] .loe-wordmark{filter:brightness(0) invert(1)}
html[data-neon-theme=dark] .loe-track:hover{background:#111925}
html[data-neon-theme=dark] :is(.loe-image-controls,.bg-console){border-color:#343944}
html[data-neon-theme=dark] .world-listening article{border-color:#343944}
html[data-neon-theme=dark] :is(.ex-tarns,.ex-release,.ex-graphics,.ex-screened,.ex-objects,.ex-object-elevation,.ex-object-detail,.ex-object-plinth,.ex-press,.ex-world-doors,.ex-worm-archive,.ex-cinema,.ex-theatre,.ex-production,.ex-motion,.ex-live-sequence){background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] :is(.ex-tarns-question,.ex-release-details,.ex-programme-number){color:#a2aab9}
html[data-neon-theme=dark] .ex-tarns-question{color:#d2dae8}
html[data-neon-theme=dark] :is(.home-fashion,.fashion-screen,.plate-synth,.plate-rubens,.plate-type,.rubens-chamber){background:#06080e;color:#f0f3fa}
html[data-neon-theme=dark] :is(.plate-synth,.plate-type) .plate-drawing{color:#f0f3fa}
html[data-neon-theme=dark] :is(#motion-viewer,.motion-playback-status){color:#f0f3fa}
html[data-neon-theme=dark] #lightbox.light-surface{background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] .physics-chrome{--signal:#ff6589}
html[data-neon-theme=dark] .physics-chrome .expand-object:hover{background:#171e2b}

/* Instruments retain their own canvas pixels; only their surrounding controls change. */
html[data-neon-theme=dark] .midi-lab{--lab-paper:#020305;--lab-ink:#f0f3fa;--lab-rule:#343944;--lab-red:#ff6589}
html[data-neon-theme=dark] .midi-row-sharp{background:#0c1019}
html[data-neon-theme=dark] .midi-row button:is(:hover,.is-playing){background:#243048}
html[data-neon-theme=dark] .mirror-music{--mm-paper:#f0f3fa;--mm-rule:#343944;color:#f0f3fa}
html[data-neon-theme=dark] :is(.mirror-controls legend,.mirror-exposure,.mirror-offsets,.mirror-transport output,.mirror-capture dl,.mirror-about){color:#a2aab9}
html[data-neon-theme=dark] :is(.mirror-exposure output,.mirror-offsets summary,.mirror-capture){color:#f0f3fa}
html[data-neon-theme=dark] .mirror-capture-button{border-color:#c4cfe1!important}
html[data-neon-theme=dark] .bird-midi{--bird-paper:#070c15;--bird-rule:#343944;background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] :is(.bird-arrival,.bird-controls select,.bird-flight){background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] :is(.bird-arrival-action,.bird-instrument-heading button,.bird-play):is(:hover,:focus-visible){color:#171715}
html[data-neon-theme=dark] .bird-analysis-register span:first-child{color:#a2aab9}

/* Atlas remains a legible map, with its actual node colours intact. */
html[data-neon-theme=dark] :is(.atlas,.atlas-stage,.atlas-workbench,.atlas-directory,.atlas-finder input,.trinket-card){background:#020305;color:#f0f3fa;border-color:#343944}
html[data-neon-theme=dark] .atlas-stage{background:radial-gradient(ellipse at 50% 62%,#111a2b,#020305 72%)}
html[data-neon-theme=dark] :is(.atlas-toolbar,.atlas-workbench,.atlas-directory,.atlas-record){border-color:#343944}
html[data-neon-theme=dark] .atlas button{background:#0c111b;color:#f0f3fa;border-color:#465166}
html[data-neon-theme=dark] .atlas button[aria-pressed=true]{background:#dbff70;color:#101510;border-color:#dbff70}
html[data-neon-theme=dark] :is(.atlas-result,.atlas-neighbour){color:#e5ecfa!important;border-color:#343944!important}
html[data-neon-theme=dark] :is(.atlas-result,.atlas-neighbour):hover{color:#a3faff!important}
html[data-neon-theme=dark] :is(.atlas-result small,.atlas-neighbour small,.atlas-corner,.atlas-detail>p:not(.micro),.atlas-directory small,.atlas [data-atlas-status]){color:#a2aab9}
html[data-neon-theme=dark] .atlas-label{background:#07101ae8;color:#edf4ff;box-shadow:0 2px 18px #000}
html[data-neon-theme=dark] .atlas-label.is-selected{background:#e4ff00;color:#111}
html[data-neon-theme=dark] [data-atlas-records] .atlas-record{color:#f0f3fa;border-color:#343944}
html[data-neon-theme=dark] :is(.atlas-record-types,.atlas-record-foot){border-color:#343944}
html[data-neon-theme=dark] :is(.atlas-record-kind,.atlas-record-context,.atlas-record-foot>span,.atlas-record-types button){color:#a2aab9}
html[data-neon-theme=dark] :is(.atlas-record-foot button,.atlas-record-types .atlas-record-wander,.atlas-record-types button[aria-pressed=true]){color:#f0f3fa}
html[data-neon-theme=dark] .atlas-record-plate{background:#080c14}
html[data-neon-theme=dark] .atlas-record-plate svg{color:#a2aab9}

/* Collection dialogs keep their previews and acquire the surrounding night. */
html[data-neon-theme=dark] :is(.trinket-claim,.trinket-claim-field input){background:#080c14;color:#f0f3fa;border-color:#465166}
html[data-neon-theme=dark] .trinket-claim::backdrop{background:#020305b3}
html[data-neon-theme=dark] :is(.trinket-claim-object,.trinket-claim-field,.trinket-claim-optin,.trinket-claim-privacy,.trinket-claim-returning,.trinket-claim-count,.trinket-claim-board,.trinket-claim-account-copy,.trinket-hunt-intro>p,.trinket-hunt-whisper,.trinket-hunt-account>button){color:#a2aab9}
html[data-neon-theme=dark] :is(.trinket-claim-board:hover,.trinket-hunt-unavailable button,.trinket-hunt-account>button:hover){color:#f0f3fa}
html[data-neon-theme=dark] .trinket-claim-close:hover{background:#171e2b;color:#f0f3fa}
html[data-neon-theme=dark] :is([data-trinket-leaderboard],.trinket-hunt-leaders>li,.trinket-hunt-account,.trinket-hunt-explore){border-color:#343944}

/* RELAY has a separate document shell; share the same mode and control semantics. */
.neon-relay .masthead .neon-controls{margin-left:0}
html[data-neon-theme=dark] .neon-relay{--paper:#020305;--ink:#f0f3fa;--muted:#a2aab9;--line:#343944;--stage:#070b13;--cream:#f0f3fa;background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] .neon-relay :is(.masthead,.control-deck,.action-row,.lineage,.worlds,.world){background:#020305;color:#f0f3fa}
html[data-neon-theme=dark] .neon-relay .masthead{position:relative;z-index:30}
html[data-neon-theme=dark] .neon-relay :is(.ancestor:hover,.ancestor[aria-current=true],.world-actions button[aria-pressed=true]){background:#171e2b}

@media(max-width:760px){
 .nav-masthead:has(>.neon-controls){height:auto;min-height:68px;flex-wrap:wrap;row-gap:0;padding-top:12px}
 .nav-masthead:has(>.neon-controls)>.nav-identity{top:17px}
 .nav-masthead>.neon-controls{order:1;flex-basis:100%;justify-content:flex-end;padding-bottom:8px}
 .neon-controls{position:static;margin:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none}
 .neon-controls [data-neon-toggle]{border-color:transparent}
 html[data-neon-theme=dark] .neon-controls{background:transparent;box-shadow:none}
 html[data-neon-theme=dark] .neon-controls [data-neon-toggle]{border-color:transparent;box-shadow:none}
 .neon-relay .masthead .neon-controls{margin:0}
}
@media(prefers-reduced-transparency:reduce){.neon-controls{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(forced-colors:active){.neon-rain-canvas{display:none!important}.neon-controls{background:Canvas;color:CanvasText}.neon-controls button{border:1px solid ButtonText;box-shadow:none!important}}
@media print{.neon-controls,.neon-rain-canvas{display:none!important}}
