/* This presentation stays below the existing HUD and outside the input plane. */
.tvdb-night-backdrop-r7 {position:absolute;inset:0;z-index:0;pointer-events:none!important;user-select:none;overflow:hidden;background:#142c46;opacity:0;}
.tvdb-night-backdrop-r7 picture {display:block;width:100%;height:100%;}
.tvdb-night-backdrop-r7 img {display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none!important;user-select:none;}
.tvdb-night-lighting-r7 {position:absolute;z-index:22;pointer-events:none!important;user-select:none;display:block;contain:strict;}
.tvdb-night-lighting-r7[hidden],.tvdb-night-backdrop-r7[hidden] {display:none!important;}
/* Keep the native modal dimmer while avoiding a full animated-world blur pass. */
.tvdb-night-active-r7.tvdb-night-modal-r10 .farm-dialog::backdrop {backdrop-filter:none;}
/* Only bare text on the scenery changes color; cream controls stay intact. */
.tvdb-night-active-r7 .brand h1,.tvdb-night-active-r7 .brand-sub,.tvdb-night-active-r7 #save-status:not(.save-error) {color:#f3f3dc;}
#night-world-toggle-r7 {position:static;flex:none;display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid #e5dfc6;border-radius:13px;background:#fff8e6f5;color:#4a6850;box-shadow:0 3px 0 #3153380d;pointer-events:auto;touch-action:manipulation;}
#night-world-toggle-r7 svg {width:25px;height:25px;pointer-events:none;}
#night-world-toggle-r7[data-phase="night"] {color:#415780;background:#fff8e8;}
#night-world-toggle-r7:focus-visible,.tvdb-night-panel-r7 :focus-visible {outline:3px solid #328775;outline-offset:3px;}
.tvdb-night-panel-r7 {position:fixed;z-index:1230;width:min(310px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:16px;border:1px solid #d9cda9;border-radius:20px;background:#fffaf0;color:#355343;box-shadow:0 16px 40px #143b3c40;font:14px/1.5 system-ui,-apple-system,sans-serif;pointer-events:auto;}
.tvdb-night-panel-r7[hidden] {display:none!important;}
.tvdb-night-panel-r7 header {display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 11px;}
.tvdb-night-panel-r7 h2 {font-size:17px;line-height:1.25;margin:0;color:#355343;}
.tvdb-night-panel-r7 [data-night-close] {width:40px;min-width:40px;height:40px;border:1px solid #e3dac2;border-radius:11px;background:#f4efdf;font:25px/1 system-ui;}
.tvdb-night-panel-r7 fieldset {border:0;padding:0;margin:0;display:grid;gap:6px;}
.tvdb-night-panel-r7 legend {font-size:12px;color:#76816b;padding:0;margin:0 0 7px;}
.tvdb-night-panel-r7 .night-choice-r7 {display:flex;align-items:center;gap:10px;padding:10px 11px;min-height:44px;border:1px solid #e2ddc9;border-radius:12px;cursor:pointer;background:#fffdf6;}
.tvdb-night-panel-r7 .night-choice-r7:has(input:checked) {border-color:#9fb999;background:#edf3e5;}
.tvdb-night-panel-r7 input {accent-color:#416b4f;flex:none;width:17px;height:17px;margin:0;}
.tvdb-night-panel-r7 .night-choice-r7 span {display:grid;gap:1px;}
.tvdb-night-panel-r7 strong {font-size:13px;}
.tvdb-night-panel-r7 small {font-size:11px;color:#78816d;}
.tvdb-night-panel-r7 .night-follow-r7 {display:flex;gap:10px;align-items:flex-start;margin:13px 0 0;padding:11px 0;border-top:1px solid #e5dfcd;cursor:pointer;}
.tvdb-night-panel-r7 .night-follow-r7 input {margin-top:2px;}
.tvdb-night-panel-r7 .night-clock-r7 {margin:4px 0 0;color:#75816d;font-size:11px;line-height:1.6;}
@media(max-width:700px) {.tvdb-night-panel-r7 {padding:14px;border-radius:18px;}}
@media(prefers-reduced-motion:reduce) {#night-world-toggle-r7,.tvdb-night-panel-r7 * {scroll-behavior:auto!important;}}
