
:root{color-scheme:dark;--panel:#121822ef;--line:#ffffff2a;--dim:#c4cad6;--white:#fff}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#000;color:#fff;font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid white;outline-offset:3px}
#player{position:relative;width:100vw;height:100dvh;overflow:hidden;background:#000;isolation:isolate}
#player.pseudo-fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh}
#viewport{position:absolute;inset:0;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
#player.is-auto #viewport{cursor:default}
#gpu,#cpu{position:absolute;inset:0;width:100%;height:100%;display:block;transform-origin:center center;user-select:none;pointer-events:none}
#cpu{display:none;image-rendering:auto}
.shade{position:absolute;pointer-events:none;left:0;right:0;z-index:4}.shade-top{top:0;height:117px;background:linear-gradient(#0009,transparent)}.shade-bottom{bottom:0;height:174px;background:linear-gradient(transparent,#000b)}
#blackout{position:absolute;inset:0;z-index:5;background:black;opacity:0;pointer-events:none}
button.ui{display:grid;place-items:center;border:1px solid #ffffff3b;background:#080e1abd;color:#fff;border-radius:15px;width:47px;height:47px;padding:0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
button.ui:active{transform:scale(.95)}button.ui svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.top{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;display:flex;gap:8px;z-index:8}
.readout{position:absolute;left:15px;top:calc(19px + env(safe-area-inset-top,0px));z-index:8;border-radius:999px;background:#070b14b5;border:1px solid #ffffff23;padding:7px 11px;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none;max-width:calc(100vw - 205px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bottom{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom,0px));display:flex;align-items:end;justify-content:space-between;z-index:8;padding:0 16px;gap:7px;pointer-events:none}
.bottom>*{pointer-events:auto}
.color-controls{display:flex;gap:7px;align-items:center;min-height:66px}
.color-btn{width:38px;height:38px;display:grid;place-items:center;padding:0;border:2px solid transparent;outline:0;border-radius:50%;background:#1119;box-shadow:0 0 0 1px #fff5;transition:transform .15s,border-color .15s}
.color-btn .swatch-circle{width:28px;height:28px;border-radius:50%;display:block}
.color-btn.selected{border-color:white;box-shadow:0 0 0 2px #0009,0 0 0 3px #fffd;transform:scale(1.08)}
.mode-controls{display:flex;gap:6px;align-items:center;justify-content:center;min-height:66px}
.mode-btn{width:49px;height:54px;border-radius:16px;border:1px solid #fff5;background:#111c2dd8;display:grid;place-items:center;padding:0;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#e0e5ed}
.mode-btn.selected{background:white;color:#0b1120;border-color:white;box-shadow:0 2px 18px #ffffff3b}
.mode-btn svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mode-btn#modeAuto svg{fill:currentColor;stroke:none}
.shutter{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;padding:0;border:4px solid white;background:#ffffff20;box-shadow:0 0 0 2px #0005,0 3px 15px #0009;flex-shrink:0}
.shutter span{display:grid;place-items:center;width:47px;height:47px;border-radius:50%;background:#fff;color:#101827}
.shutter svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#toast{position:absolute;z-index:14;left:50%;top:21%;transform:translateX(-50%);background:#101722ee;color:#fff;border:1px solid #ffffff40;box-shadow:0 8px 30px #000a;border-radius:14px;padding:12px 17px;font-size:14px;line-height:1.4;text-align:center;opacity:0;transition:opacity .25s ease;pointer-events:none;max-width:calc(100% - 34px)}
#toast[data-kind="limit"]{top:50%;transform:translate(-50%,-50%);background:#000f;border-color:#ffffff55;padding:22px 19px;font-size:clamp(22px,5.8vw,25px);font-weight:540;line-height:1.38;max-width:min(570px,calc(100% - 28px));width:calc(100% - 28px);border-radius:17px;box-shadow:0 14px 42px #000d;transition:opacity 1s ease}
#settingsSheet{position:absolute;z-index:12;top:calc(62px + env(safe-area-inset-top,0px));right:12px;width:min(363px,calc(100% - 24px));max-height:calc(100dvh - 83px - env(safe-area-inset-bottom,0px) - env(safe-area-inset-top,0px));overflow:auto;border-radius:19px;background:#111924f5;box-shadow:0 15px 50px #000b;border:1px solid #ffffff30;padding:17px 17px 14px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);scrollbar-width:thin}
#settingsSheet[hidden]{display:none!important}
.settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.settings-head h2{font-size:17px;margin:0}.settings-head button{width:44px;height:44px;border-radius:12px;border:1px solid #ffffff4a;background:#ffffff1a;font-size:27px;line-height:1;font-weight:300;display:grid;place-items:center}
.option{margin:12px 0 15px}.option-name{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;margin-bottom:7px}.option output{font-size:12px;font-variant-numeric:tabular-nums;color:#ccd8e5}
input[type="range"]{display:block;width:100%;accent-color:white;min-height:26px}
.checkbox{display:flex;align-items:center;gap:11px;margin:16px 0;font-size:13px;cursor:pointer}.checkbox input{accent-color:white;width:20px;height:20px;flex:none}
select{display:block;width:100%;background:#243040;color:white;border:1px solid #ffffff35;border-radius:10px;padding:12px;font-size:14px}
.signature{margin-top:21px;padding-top:19px;border-top:1px solid #ffffff28;text-align:center}.signature strong{display:block;font-weight:600;font-size:14px;letter-spacing:.015em}.signature span{display:block;color:#c1c8d3;font-size:12px;margin-top:3px}
@media(max-width:375px){.bottom{padding:0 10px;gap:2px}.color-controls{gap:5px}.color-btn{width:34px;height:34px}.color-btn .swatch-circle{width:26px;height:26px}.mode-btn{width:45px;height:51px}.mode-controls{gap:5px}.shutter{width:59px;height:59px}.shutter span{width:42px;height:42px}.top{right:9px;gap:5px}.top button.ui{width:43px;height:43px}.readout{left:9px;max-width:calc(100vw - 170px);font-size:11px}}
@media(max-height:500px){.top{top:calc(4px + env(safe-area-inset-top,0px))}.bottom{bottom:calc(4px + env(safe-area-inset-bottom,0px))}.settings-head{margin-bottom:0}#settingsSheet{top:49px;max-height:calc(100dvh - 57px)}}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}
.top{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;display:flex;gap:8px;z-index:9}
.top button.ui{width:47px;height:47px}

/* Video player layout: large, labeled tap targets; all palettes in settings. */
.bottom{bottom:calc(8px + env(safe-area-inset-bottom,0px));padding:9px 9px 4px;gap:5px;display:flex;align-items:center;justify-content:space-evenly;background:linear-gradient(transparent,#05080ecf 23%,#03060be8);}
.bottom>button{flex:1 1 0;min-width:0;max-width:72px;height:68px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:15px;font-size:11px;line-height:1.1;font-weight:600;white-space:nowrap}
.bottom .mode-btn{width:auto;padding:5px 2px}
.bottom .mode-btn svg{width:26px;height:26px;flex-shrink:0}
.bottom .mode-btn#modeAuto svg{fill:none;stroke:currentColor;stroke-width:1.8}
.bottom .mode-btn.selected{background:#fff;color:#0d1521}
.bottom button.ui.tool{width:auto;height:68px;padding:5px 1px;background:#090e1acb;border-color:#ffffff2d}
.bottom button.ui.tool svg{width:25px;height:25px;flex-shrink:0}
.bottom button.shutter{width:auto;height:68px;border:1px solid #ffffff40;background:#090e1acb;box-shadow:none;padding:5px 2px}
.bottom .shutter-icon{height:39px;width:39px;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;background:#fff;color:#111925}
.bottom .shutter-icon svg{width:22px;height:22px}
.bottom .tool-label{font-size:11px}
.readout{top:calc(13px + env(safe-area-inset-top,0px));max-width:calc(100vw - 32px);font-size:12px;padding:9px 12px}
#settingsSheet{top:calc(13px + env(safe-area-inset-top,0px));max-height:calc(100dvh - 27px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));}
#settingsSheet .color-controls{display:flex;justify-content:space-between;gap:8px;width:100%;}
#settingsSheet .color-btn{height:77px;width:auto;min-width:0;flex:1;border-radius:12px;background:#1b2936;display:flex;flex-direction:column;gap:5px;justify-content:center;color:#fff;font-size:11px;font-weight:500}
#settingsSheet .color-btn .swatch-circle{width:37px;height:37px;flex-shrink:0;}
#settingsSheet .color-btn.selected{border:2px solid white;box-shadow:0 0 0 1px #fff5;transform:none}
.shade-bottom{height:140px;}
@media(max-width:375px){.bottom{padding:8px 4px 2px;gap:3px}.bottom>button,.bottom button.ui.tool,.bottom button.shutter{height:64px}.bottom button>span:not(.shutter-icon){font-size:10px}.bottom .mode-btn svg,.bottom button.ui.tool svg{width:23px;height:23px}.bottom .shutter-icon{width:35px;height:35px}}

/* Compact, unlabeled six-button video toolbar. Full-size touch targets. */
.bottom{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:5px;padding:10px 8px calc(6px + env(safe-area-inset-bottom,0px));bottom:0;background:linear-gradient(transparent,#03060ad9 23%,#03060bf2)}
.bottom>button,.bottom button.ui.tool,.bottom button.shutter{display:grid;place-items:center;min-width:0;max-width:none;width:100%;height:59px;border-radius:14px;padding:0;margin:0;gap:0}
.bottom .mode-btn svg,.bottom button.ui.tool svg{width:29px;height:29px;flex-shrink:0}
.bottom .mode-btn#modeAuto svg{stroke-width:2.2}
.bottom button.shutter{background:#101724d9;border:1px solid #ffffff4b}
.bottom .shutter-icon{width:47px;height:47px;display:grid;place-items:center;border:2px solid white;border-radius:14px;background:#fff;color:#0b1020}
.bottom .shutter-icon svg{width:32px;height:32px;stroke-width:1.9}
.bottom button span.tool-label,.bottom button span#autoLabel{display:none!important}
#targetMarker{position:absolute;z-index:6;width:16px;height:16px;left:0;top:0;display:none;pointer-events:none;border:2px solid #fff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #090d19,0 0 10px #fff8;background:transparent}
#targetMarker:after{content:"";position:absolute;width:4px;height:4px;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:50%}
@media(max-width:375px){.bottom{gap:3px;padding-left:5px;padding-right:5px}.bottom>button,.bottom button.ui.tool,.bottom button.shutter{height:54px}.bottom .mode-btn svg,.bottom button.ui.tool svg{width:25px;height:25px}.bottom .shutter-icon{width:44px;height:44px}.bottom .shutter-icon svg{width:29px;height:29px}}

/* Floating camera readout: zoom persists, mode fades after switches. */
.readout{left:auto!important;right:71px!important;top:calc(13px + env(safe-area-inset-top,0px));max-width:calc(100vw - 24px);display:flex;align-items:baseline;gap:10px;background:transparent!important;border:0!important;border-radius:0!important;padding:2px 3px!important;white-space:nowrap;overflow:visible!important;filter:drop-shadow(0 1px 3px #000) drop-shadow(0 0 1px #000);pointer-events:none}
#zoomValue{font-size:18px;font-weight:650;letter-spacing:.005em;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 1px 3px #000e,0 0 6px #0009}
.mode-badge{font-size:12px;font-weight:600;color:#f1f5ff;opacity:0;transition:opacity .6s ease;text-shadow:0 1px 3px #000}
.mode-badge.visible{opacity:.9}
@media(max-width:375px){#zoomValue{font-size:17px}.readout{right:60px!important;gap:6px}.mode-badge{font-size:11px}}

/* V4 cinematic fullscreen: no header controls, and a single discreet night toolbar. */
#player:fullscreen .top,#player:fullscreen .readout,#player:fullscreen .shade-top,
#player.pseudo-fullscreen .top,#player.pseudo-fullscreen .readout,#player.pseudo-fullscreen .shade-top{display:none!important}
#player:fullscreen .bottom,#player.pseudo-fullscreen .bottom{background:#050811f7!important;border-top:1px solid #ffffff20;box-shadow:0 -7px 24px #0005;padding-top:8px;cursor:pointer}
#player:fullscreen .bottom>button,#player.pseudo-fullscreen .bottom>button{background:#0d1420!important;border:1px solid #ffffff17!important;box-shadow:none!important}
#player:fullscreen .bottom>button.selected,#player.pseudo-fullscreen .bottom>button.selected{background:#f7f9ff!important;color:#101726!important}
#player:fullscreen .bottom .shutter-icon,#player.pseudo-fullscreen .bottom .shutter-icon{background:#f7f9ff;color:#101726}

/* v5: Compact, mobile-first full-window Color Studio. */
#settingsSheet{position:absolute!important;inset:calc(5px + env(safe-area-inset-top,0px)) 5px calc(5px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:none!important;height:auto!important;border-radius:15px;padding:10px 12px 12px;overflow-y:auto;overscroll-behavior:contain;background:#101720fa;scrollbar-width:thin}
#settingsSheet .settings-head{position:sticky;top:-10px;z-index:5;background:#101720fa;min-height:44px;margin:-10px -12px 8px;padding:8px 12px 4px;border-radius:15px 15px 0 0;border-bottom:1px solid #ffffff24}
#settingsSheet .settings-head h2{font-size:17px}
#settingsSheet .settings-head button{font-size:30px;width:44px;height:44px;line-height:1;background:#273443;border:1px solid #ffffff6b}
.color-studio{display:grid;gap:9px;margin-bottom:9px}
.cs-title{display:flex;justify-content:space-between;align-items:baseline;font-weight:620;font-size:13px;gap:6px}
.cs-subtitle{font-size:11px;color:#bfc7d5;font-weight:400}
.cs-cards{display:grid;grid-template-columns:repeat(var(--palette-count,3),minmax(0,1fr));gap:5px}
.cs-card{background:#1a2733;border:1px solid #ffffff40;border-radius:10px;min-width:0;min-height:55px;padding:6px 3px;display:grid;grid-template-rows:20px 1fr;align-items:center;gap:4px;color:white}
.cs-card[aria-pressed="true"]{border:2px solid #fff;background:#293a47;padding:5px 2px}
.cs-card .mini-swatch{height:20px;width:100%;border-radius:5px;display:flex;overflow:hidden}
.cs-card .mini-swatch span{height:100%;flex:1}
.cs-card .cs-name{font-size:clamp(9px,2.65vw,11px);font-weight:560;text-align:center;line-height:1.1;overflow-wrap:anywhere}
.cs-chips{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.cs-chip{border:2px solid transparent;background:transparent;border-radius:8px;min-width:0;padding:3px;height:39px}
.cs-chip.selected{border-color:#fff;background:#ffffff20}
.cs-chip span{display:block;width:100%;height:100%;border:1px solid #ffffff30;border-radius:5px}
.cs-hue-line{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px}
#hueSlider{appearance:none;-webkit-appearance:none;display:block;margin:0;width:100%;height:24px;border-radius:12px;border:1px solid #ffffff70;background:linear-gradient(90deg,#f00 0%,#ff0 16.667%,#0f0 33.333%,#0ff 50%,#00f 66.667%,#f0f 83.333%,#f00 100%);cursor:pointer;touch-action:pan-x}
#hueSlider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:32px;width:16px;border-radius:7px;border:3px solid #fff;box-shadow:0 0 0 2px #0009;background:#ffffff75}
#hueSlider::-moz-range-thumb{height:27px;width:13px;border-radius:7px;border:3px solid white;box-shadow:0 0 0 2px #0009;background:#ffffff75}
.cs-preview{position:relative;border:1px solid #ffffff3b;overflow:hidden;border-radius:10px;height:clamp(88px,15vh,116px);background:#050914}
.cs-preview canvas{display:block;width:100%;height:100%;image-rendering:auto}
.cs-preview .cs-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#cdd5e6;pointer-events:none}
.cs-preview.ready .cs-loading{display:none}
.cs-save{min-height:44px;border:1px solid #ffffffaf;background:#e9edf4;color:#0d1624;border-radius:10px;font-size:13px;font-weight:650;padding:9px 10px;width:100%}
.cs-save:disabled{opacity:.65}
.cs-status{color:#bfcbdc;font-size:11px;min-height:13px;text-align:center;margin-top:-4px}
.settings-fold{border-top:1px solid #ffffff2e;margin-top:1px}
.settings-fold summary{list-style:none;cursor:pointer;padding:9px 2px;min-height:37px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:580}
.settings-fold summary::-webkit-details-marker{display:none}
.settings-fold summary:after{content:"⌄";font-size:19px;line-height:1;color:#d4e0f0}
.settings-fold[open] summary:after{content:"⌃"}
.settings-fold .option{margin:3px 2px 8px}
.settings-fold .checkbox{margin:7px 2px;font-size:12px;min-height:28px}
.settings-fold input[type=range]{min-height:26px}
.settings-fold select{padding:9px;font-size:13px}
#settingsSheet .signature{margin-top:10px;padding-top:8px}
#settingsSheet .signature strong{font-size:12px}
#settingsSheet .signature span{font-size:10px}
@media(max-height:660px){#settingsSheet{padding-top:6px!important}.cs-preview{height:78px}.cs-card{min-height:48px}.cs-chip{height:33px}.color-studio{gap:6px}.settings-fold summary{min-height:32px;padding:5px 2px}#settingsSheet .signature{margin-top:5px}}
/* v6: square preview, ordered impact swatches, compact About. */
.cs-preview{height:160px;width:160px;max-width:100%;aspect-ratio:1;justify-self:center;border-radius:12px}
.cs-preview canvas{width:100%;height:100%;object-fit:contain}
.cs-chip{height:39px;position:relative}
.cs-chip .cs-rank{position:absolute;bottom:0;right:3px;font:10px/1 ui-monospace,monospace;text-shadow:0 1px 3px #000;pointer-events:none}
.cs-preview-label{text-align:center;margin-top:-6px;color:#aebdd0;font-size:11px}
.cs-compact-note{font-size:11px;color:#b3c0d1;line-height:1.3}
.settings-fold .about-copy{font-size:12px;color:#d9e1e9;line-height:1.42;margin:5px 2px 9px}
.settings-fold .about-formula{font:15px/1.4 Georgia,serif;color:#fff;text-align:center;background:#192536;border-radius:8px;padding:8px 4px;margin:6px 2px}
.settings-fold .about-credit{border-top:1px solid #ffffff24;padding-top:9px;margin-top:9px;text-align:center;font-size:12px}
.settings-fold .about-credit strong{display:block;font-size:13px}
.settings-fold .about-credit span{display:block;color:#b8c6d5;margin-top:3px}
#settingsSheet .signature{display:none}
@media(max-height:660px){.cs-preview{height:126px;width:126px}.cs-preview-label{margin-top:-4px}}
@media(min-width:700px){.cs-preview{height:180px;width:180px}}


/* v7: compact single-open accordion, readable article, understated credits */
#settingsSheet{display:flex;flex-direction:column;overflow:hidden!important;min-height:0}
#settingsSheet .settings-head{flex:0 0 auto;top:0;margin:-10px -12px 7px}
.menu-panels{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column}
.menu-panels>.settings-fold{flex-shrink:0}
.menu-panels>.settings-fold[open].reading-fold{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.settings-fold summary{font-size:15px;font-weight:600;min-height:40px;touch-action:manipulation}
.settings-fold .option-name,.settings-fold .checkbox{font-size:14px}
.settings-fold .checkbox small{display:block;font-size:12px;color:#b8c5d5;font-weight:400;margin-top:2px}
.settings-fold select{font-size:14px;padding:11px}
.color-studio{padding:2px 2px 10px;gap:8px}
.cs-card .cs-name{font-size:12px}
.cs-preview-label{font-size:13px;margin-top:-2px}
.cs-save-row{display:flex;justify-content:center}
.cs-save{width:auto!important;min-height:40px;font-size:13px;padding:8px 13px;white-space:nowrap}
.cs-status{font-size:12px;min-height:0;margin:0}
.cs-status:empty{display:none}
.about-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px 11px 20px 3px;scrollbar-width:thin}
.about-essay{font-size:16px;line-height:1.66;color:#e8eaf0}
.about-essay p{margin:0 0 1.05em}
.about-essay strong{font-weight:670;color:#fff}
.about-essay p:has(>strong:only-child){margin:1.25em 0 1.2em}
.about-essay p:has(>strong:only-child):first-of-type{margin-top:0}
.about-essay p:has(>strong:only-child):nth-of-type(5){font-family:Georgia,serif;font-size:21px;text-align:center;padding:12px 4px;background:#1d2b3b;border-radius:10px}
.about-footnotes{border-top:1px solid #ffffff38;margin:20px 0 5px;padding-top:15px;font-size:12px;line-height:1.52;color:#b3bfce}
.about-footnotes h3{font-size:14px;color:#e4e9f2;font-weight:650;margin:0 0 14px}
.about-footnotes p{margin:0 0 .75em}
.about-footnotes p:has(>strong:only-child){margin-top:14px;margin-bottom:4px;color:#cdd6e4}
.about-footnotes a{color:#8bc1ff;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.about-footnotes ul{padding-left:18px;margin:4px 0 14px}
.credits-copy{text-align:center;padding:17px 7px 25px;font-size:14px;line-height:1.7;color:#cdd7e6}
.credits-copy strong{display:block;font-size:18px;color:#fff;font-weight:650}
.credits-copy span{display:block}
#homeGlow{position:absolute;inset:0;z-index:6;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,rgba(28,170,210,.32) 0%,transparent 67%);mix-blend-mode:screen}
@media(max-height:660px){.cs-preview{width:126px;height:126px}.settings-fold summary{min-height:37px}}
@media(max-width:375px){.about-essay{font-size:15px;line-height:1.58}.about-scroll{padding-right:6px}}


/* v7.1: Chromium <details> has a non-flex internal content wrapper. Explicitly
 * constrain the article viewport, otherwise it extends behind Credits. */
#aboutFold[open]{display:block!important;flex:0 0 auto!important;min-height:0!important}
#aboutFold .about-scroll{display:block!important;flex:none!important;height:calc(100dvh - 290px);max-height:calc(100dvh - 290px);min-height:140px;overflow-y:auto!important;overscroll-behavior:contain}
@media(max-height:570px){#aboutFold .about-scroll{height:calc(100dvh - 272px);max-height:calc(100dvh - 272px)}}


/* Compact phone ergonomics without tiny labels. */
@media(max-height:700px){
 .cs-preview{width:110px;height:110px}
 .cs-card{min-height:44px}
 .cs-chip{height:32px}
 .color-studio{gap:5px;padding-bottom:5px}
 .settings-fold summary{min-height:35px;padding:6px 2px}
 .cs-save{min-height:36px;padding:6px 12px}
}

/* v8: mobile-first UI, readable laptop sidebar, genuine local progressive Buddhabrot. */
#buddhaCanvas{position:absolute;inset:0;width:100%;height:100%;display:none;pointer-events:none;background:#000;image-rendering:auto}
#player.buddha-active #buddhaCanvas{display:block;z-index:2;opacity:0;transition:opacity 950ms ease}
#player.buddha-active.buddha-ready #buddhaCanvas{opacity:1}
#player.buddha-active #homeGlow{display:none}
#player.buddha-active #autoplayFold .checkbox{display:none} /* Deep Dive applies only to Mandelbrot. */
.settings-head h2{font-size:20px}
.settings-fold summary{font-size:15px;min-height:43px}
#settingsSheet{width:min(398px,calc(100% - 20px))}
#settingsSheet .settings-head{margin-bottom:12px}
.cs-preview-label{display:none!important}
.cs-save-row{margin:1px 0 0;padding:0}
.cs-save,.cs-save:focus{padding:2px 7px!important;min-height:0!important;line-height:18px!important;font-size:13px!important;background:#717984!important;color:#fff!important;border:1px solid #a3abb3!important;border-radius:6px!important;width:max-content!important;height:auto!important}
#lightSlider{appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,#000,#f00,#fff);border-radius:8px;height:13px;min-height:13px!important;margin:2px 0 6px;border:1px solid #ffffff50}
#lightSlider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:30px;background:#c9d0d9aa;border:3px solid #fff;border-radius:7px;box-shadow:0 0 0 1px #000}
#lightSlider::-moz-range-thumb{width:13px;height:25px;background:#c9d0d9aa;border:3px solid white;border-radius:7px}
.nerd-fold{border:1px solid #ffffff24;border-radius:10px;padding:0 10px;margin:11px 2px;font-size:13px;color:#c7d1df}
.nerd-fold summary{font-size:13px;min-height:32px}
.nerd-formula{font:16px Georgia,serif;text-align:center;color:#fff}
#nerdStats{white-space:pre-line;font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;padding-bottom:9px}
.buddha-intro{padding:4px 3px 15px;font-size:14px;line-height:1.65;color:#e2e7ee}
.buddha-intro p{margin:3px 0 13px}
.buddha-switch{display:block;background:#dee5f0;color:#101927;border:0;border-radius:10px;font-weight:650;padding:12px 16px;min-height:44px;margin:auto}
.menu-about-button{width:100%;text-align:left;color:#fff;background:transparent;border:0;border-top:1px solid #ffffff2e;min-height:44px;padding:10px 2px;display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:15px}
.menu-about-button span{font-size:23px;font-weight:400;color:#d4e0f0}
#aboutReader{position:absolute;z-index:13;top:calc(13px + env(safe-area-inset-top,0px));right:12px;bottom:calc(13px + env(safe-area-inset-bottom,0px));width:min(710px,calc(100% - 24px));background:#111924f8;border:1px solid #ffffff3b;border-radius:18px;box-shadow:0 15px 50px #000c;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#aboutReader[hidden]{display:none!important}
#settingsSheet.reader-under{visibility:hidden;pointer-events:none}
.reader-head{display:flex;align-items:center;gap:11px;flex:0 0 auto;padding:9px 13px 7px;border-bottom:1px solid #ffffff27;font-size:18px}
.reader-head strong{flex:1}
.reader-head button{width:42px;height:42px;border:1px solid #ffffff35;border-radius:11px;background:#ffffff16;color:#fff;font-size:28px;display:grid;place-items:center}
.reader-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;padding:20px clamp(14px,3vw,38px) 34px;overscroll-behavior:contain;scrollbar-width:thin}
.reader-scroll .about-essay{font-size:16px;line-height:1.7}
.reader-scroll .about-footnotes{font-size:11.5px;line-height:1.58}
.about-buddha-hint{font-style:italic;color:#bacbd9;border-left:2px solid #7c96ba;padding-left:13px;margin:5px 0 22px!important}
.butter-section{padding:0 4px 20px;text-align:center}
.butter-secret{font-size:12px;color:#c5cdd9;margin:0 0 10px}
.butter-display{width:100%;background:#000;border:1px solid #ffffff30;border-radius:10px;overflow:hidden;position:relative}
.butter-telemetry{display:flex;justify-content:space-between;position:absolute;top:8px;left:11px;right:11px;z-index:1;font:12px/1.3 ui-monospace,Consolas,monospace;color:#eaeef8;text-shadow:0 1px 3px black;pointer-events:none}
#butterCanvas{width:100%;height:auto;display:block}
.butter-title{font-size:16px;font-weight:650;margin:10px 0 1px}
.butter-quote{font-size:13px;color:#c5d0e0}
@media(min-width:900px){#settingsSheet{inset:18px 20px 18px auto!important;width:415px!important;max-height:calc(100dvh - 36px)!important;height:auto!important}#aboutReader{top:18px;right:20px;bottom:18px;width:min(760px,calc(100vw - 60px))}.bottom{left:50%;right:auto;transform:translateX(-50%);width:min(600px,95vw);border-radius:20px}}
@media(max-height:660px){#settingsSheet .cs-preview{height:95px;width:95px}.buddha-intro{line-height:1.5}.reader-scroll{padding-top:12px}}


/* v9 · compact but touch-friendly palette controls. */
#settingsSheet .settings-head{margin-bottom:5px}
.color-studio{gap:4px!important;padding:0 1px 5px!important;margin-bottom:3px!important}
.cs-cards{gap:4px}
.cs-card{min-height:48px!important;grid-template-rows:15px 1fr!important;gap:3px!important;padding:4px 3px!important}
.cs-card .mini-swatch{height:15px!important}
.cs-card[aria-pressed="true"]{padding:3px 2px!important}
.cs-chips{gap:3px!important}
.cs-chip{height:34px!important;padding:2px!important}
.cs-title{font-size:12px!important;line-height:1.15}
.cs-hue-line{line-height:1.15;min-height:16px}
#hueSlider{height:19px!important;margin:1px 0 4px!important}
#lightSlider{margin:1px 0 4px!important}
.cs-preview{width:116px!important;height:116px!important;margin:0 auto}
.cs-save-row{margin:0!important}
.cs-save{padding:2px 7px!important;min-height:0!important;line-height:18px!important}
#settingsSheet .menu-panels>.settings-fold summary{min-height:39px;padding:7px 2px}
@media(max-height:700px){.cs-preview{width:96px!important;height:96px!important}#settingsSheet .menu-panels>.settings-fold summary{min-height:34px;padding:5px 2px}.cs-card{min-height:43px!important}.cs-chip{height:31px!important}}
@media(max-height:580px){.cs-preview{width:82px!important;height:82px!important}}

/* v9 · Buddhabrot as a quiet four-control light installation, not a zoom player. */
.bottom #bRefresh{display:none}
#player.buddha-active .bottom{grid-template-columns:repeat(4,minmax(0,1fr));width:min(420px,100%)}
#player.buddha-active .bottom #modeAuto,
#player.buddha-active .bottom #fastForward,
#player.buddha-active .bottom #modeManual{display:none!important}
#player.buddha-active .bottom #bRefresh{display:grid!important}
#player.buddha-active #modeBadge{display:none}
#player.buddha-active #viewport{cursor:default}

/* v9 · in-application Butterbrot Easter egg. A tap anywhere closes it. */
.butter-launch{display:block;margin:8px auto 4px;background:#737b86;color:white;border:1px solid #acb2b9;
 font:600 13px/20px system-ui,sans-serif;border-radius:7px;padding:5px 12px;min-height:36px;cursor:pointer}
#butterOverlay{position:absolute;inset:0;z-index:31;background:#000;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:10px;cursor:pointer;touch-action:manipulation;padding:20px 10px}
#butterOverlay[hidden]{display:none!important}
#butterOverlay .butter-stage{width:min(580px,94vw);position:relative;max-height:68vh}
#butterOverlay #butterCanvas{width:100%;max-height:62vh;object-fit:contain}
#butterOverlay .butter-telemetry{top:3px;left:12px;right:12px;letter-spacing:.02em;font-size:15px}
#butterOverlay .butter-title{font-size:19px;margin:0}
#butterOverlay .butter-quote{font-size:15px;color:#d9d9d9}


/* v11: two stable Explorer menus, short optional mathematical explanations. */
.explorer-current{color:#9eb3c7;font-size:12px;font-weight:450;margin-left:auto;margin-right:11px}
.explorer-current[hidden],.explorer-active[hidden],.explorer-intro button[hidden]{display:none!important}
.explorer-intro{padding:5px 3px 13px;font-size:14px;line-height:1.55;color:#e2e8f0}
.explorer-intro>p{margin:3px 0 12px}
.explorer-active{color:#b1bfd0;font-size:12px;text-align:center;margin:8px}
.math-more{margin:13px 0 3px;border-top:1px solid #ffffff2b}
.math-more>summary{font-size:13px!important;font-weight:500!important;min-height:38px!important;color:#cad8ea;display:flex;justify-content:space-between;align-items:center}
.math-more>summary::after{content:"⌄";font-size:18px}
.math-more[open]>summary::after{content:"⌃"}
.math-explanation{font-size:14px;line-height:1.62;color:#e0e6ed;max-height:39dvh;overflow-y:auto;overscroll-behavior:contain;padding:4px 10px 10px 2px}
.math-explanation p{margin:0 0 10px}
.math-formula{font:18px/1.5 Georgia,serif;text-align:center;color:#fff;background:#1b2838;border-radius:8px;padding:9px 3px}
/* Buddhabrot uses a dedicated five-control toolbar and an optional manual timeline. */
.bottom #bBack,.bottom #bFull,.bottom #bTimelineToggle{display:none!important}
#bTimelineWrap{display:none;margin-top:8px;padding:8px 10px 9px;border-radius:12px;background:#05101fd9;border:1px solid #b8d7ff2f;box-shadow:0 10px 24px #0007;min-width:min(320px,calc(100vw - 28px))}
#bTimelineWrap label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#c8d8ed}
#bTimelineLabel{font-weight:700;color:#fff;font-size:14px;letter-spacing:0;text-transform:none}
#bTimeline{width:100%;margin-top:8px;accent-color:#dbe7fb}
#player.buddha-active.manual-buddha #bTimelineWrap{display:block}
#player.buddha-active .bottom{grid-template-columns:minmax(126px,1.42fr) repeat(4,minmax(43px,1fr));width:min(560px,100%)}
#player.buddha-active .bottom #home,#player.buddha-active .bottom #modeAuto,#player.buddha-active .bottom #fastForward{display:none!important}
#player.buddha-active .bottom #bBack,#player.buddha-active .bottom #bFull,#player.buddha-active .bottom #modeManual{display:flex!important}
#player.buddha-active .bottom #bBack{flex-direction:row;gap:4px;font-size:clamp(11px,3.2vw,14px);font-weight:600;white-space:nowrap}
#player.buddha-active .bottom #bBack svg{width:20px;height:20px;flex:none}
#player.buddha-active .bottom #bFull svg,#player.buddha-active .bottom #modeManual svg{width:24px;height:24px}
#player.buddha-active.manual-buddha .bottom #modeManual{background:#ebf0f8;color:#0c1524}
#player.buddha-active .top{display:none!important}
#player.buddha-active #modeBadge{display:none!important}
#player.buddha-active #viewport{cursor:default}
#player.buddha-active #zoomValue{font-variant-numeric:tabular-nums}
#player.buddha-active.cinematic-full .readout{display:none!important}
/* v11: optional scientific live overlay, never shown in fullscreen. */
#liveMetrics{position:absolute;z-index:7;left:12px;top:calc(74px + env(safe-area-inset-top,0px));width:min(330px,calc(100vw - 24px));max-height:calc(100dvh - 170px);overflow:hidden;background:#02070bdc;border:1px solid #69bca54e;border-radius:10px;padding:11px 12px;color:#bbf2df;font:11px/1.48 ui-monospace,SFMono-Regular,Consolas,"Courier New",monospace;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none;box-shadow:0 6px 28px #0009;tab-size:2}
#liveMetrics[hidden],#player.cinematic-full #liveMetrics{display:none!important}
@media(max-width:375px){#liveMetrics{font-size:10px;width:min(290px,calc(100vw - 20px));padding:9px;top:65px}}

/* Finetuning · 2026-11-19 · shared cinematic HUD, zero ornamental chrome */
:root{--hud-shadow:0 1px 3px #000,0 2px 7px #000d,0 0 2px #000}
.top{display:none!important}
.bottom{left:0!important;right:0!important;transform:none!important;width:100%!important;bottom:calc(0px + env(safe-area-inset-bottom,0px));height:56px;min-height:56px;padding:2px max(7px,env(safe-area-inset-left,7px)) 3px max(7px,env(safe-area-inset-right,7px));background:#000!important;display:flex!important;align-items:center;justify-content:space-evenly;gap:1px;box-shadow:none;border:0}
.bottom>button,.bottom .mode-btn,.bottom button.ui.tool,.bottom .shutter{display:flex;align-items:center;justify-content:center;flex-direction:row;width:auto;max-width:none;height:49px;min-width:0;flex:1 1 0;border-radius:10px;padding:0;margin:0;background:transparent!important;border:1px solid transparent!important;color:#929292!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;font-size:0!important;gap:0!important}
.bottom button svg,.bottom .mode-btn svg,.bottom button.ui.tool svg,.bottom .shutter svg{width:22px!important;height:22px!important;stroke-width:1.7!important;stroke:currentColor!important;fill:none!important;flex-shrink:0}
.bottom .mode-btn.selected{border:1px solid #7c7c7c!important;background:transparent!important;color:#c5c5c5!important;box-shadow:none!important}
.bottom button:active{background:#ffffff0a!important;transform:none}
.bottom button.ui.tool:focus-visible,.bottom .mode-btn:focus-visible,.bottom .shutter:focus-visible{outline:1px solid #bbb;outline-offset:-1px}
.bottom .shutter-icon{display:grid!important;place-items:center!important;width:auto!important;height:auto!important;background:none!important;color:inherit!important;border:0!important;border-radius:0!important}
.bottom .tool-label,.bottom .ui-label,.bottom button>span:not(.shutter-icon){display:none!important}
.bottom #fastForward,.bottom #bTimelineToggle,.bottom #bRefresh{display:none!important}
.bottom #home{order:1}.bottom #bBack{order:1}.bottom #modeManual{order:2}.bottom #modeAuto{order:3}.bottom #save{order:4}.bottom #fullscreen{order:5}.bottom #bFull{order:5}.bottom #settings{order:6}
#player:not(.buddha-active) .bottom #bBack,#player:not(.buddha-active) .bottom #bFull{display:none!important}
#player.buddha-active .bottom #home,#player.buddha-active .bottom #fullscreen,#player.buddha-active .bottom #settings{display:none!important}
#player.buddha-active .bottom #bBack,#player.buddha-active .bottom #bFull,#player.buddha-active .bottom #modeManual,#player.buddha-active .bottom #modeAuto{display:flex!important}
#player.buddha-active .bottom #bBack{flex:1 1 0;min-width:0;font-size:0!important;gap:0!important}
#player.buddha-active .bottom #bBack svg{width:22px!important;height:22px!important}
#player.buddha-active .bottom #modeManual.selected{background:transparent!important;color:#c5c5c5!important;border:1px solid #929292!important}
#player.cinematic-full .bottom{height:39px;min-height:39px;padding:1px max(17px,env(safe-area-inset-left,17px)) 1px max(17px,env(safe-area-inset-right,17px));background:#000e!important;gap:8px}
#player.cinematic-full .bottom>button{height:35px;opacity:.65;flex:0 1 76px}
#player.cinematic-full .bottom button svg{width:19px!important;height:19px!important}
#player.cinematic-full .bottom #home,#player.cinematic-full .bottom #modeManual,#player.cinematic-full .bottom #settings,#player.cinematic-full .bottom #fullscreen,#player.cinematic-full .bottom #bFull{display:none!important}
#player.cinematic-full .bottom #bBack,#player.cinematic-full .bottom #modeAuto,#player.cinematic-full .bottom #save{display:flex!important}
#player.cinematic-full .bottom #bBack{font-size:0!important}
#zoomReadout.readout{position:absolute;top:calc(6px + env(safe-area-inset-top,0px));right:8px;left:auto;width:auto;max-width:calc(100% - 16px);z-index:9;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:13px;background:transparent!important;border:none!important;border-radius:0!important;padding:0!important;font:500 11px/1.3 system-ui,-apple-system,Roboto,Arial,sans-serif!important;color:#eee;text-align:right;box-shadow:none;pointer-events:none;font-variant-numeric:tabular-nums;text-shadow:var(--hud-shadow)}
#zoomValue{display:inline-block;white-space:nowrap}
#modeBadge,#bTimelineWrap{display:none!important}
#player.cinematic-full .readout,#player.cinematic-full #liveMetrics{display:none!important}
#bSceneRail{display:none;gap:3px;align-items:center;justify-content:flex-end;pointer-events:auto;min-width:0;width:min(54vw,280px);height:28px}
#player.buddha-active.manual-buddha:not(.cinematic-full) #bSceneRail{display:flex}
#bSceneRail .scene-stop{display:grid;place-items:center;flex:1 1 0;padding:0;height:28px;border:0;background:none;min-width:0;touch-action:manipulation}
#bSceneRail .scene-stop:before{content:"";display:block;height:2px;width:100%;border-radius:2px;background:#686868;box-shadow:var(--hud-shadow)}
#bSceneRail .scene-stop.current:before{height:4px;background:#e0e0e0}
#liveMetrics{left:auto!important;right:8px!important;top:calc(29px + env(safe-area-inset-top,0px))!important;width:max-content!important;max-width:min(88vw,340px)!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;color:#e3e3e3!important;font:400 10px/1.48 system-ui,-apple-system,Roboto,Arial,sans-serif!important;text-shadow:var(--hud-shadow);text-align:left;white-space:pre-line}
#buttonBrief{position:absolute;z-index:16;bottom:80px;left:50%;transform:translateX(-50%);opacity:0;pointer-events:none;white-space:nowrap;font:500 12px/1.25 system-ui,-apple-system,Roboto,Arial,sans-serif;color:#ededed;text-shadow:var(--hud-shadow);transition:opacity .25s ease}
#buttonBrief.on{opacity:1}
#toast{position:absolute;z-index:16;top:50%;left:50%;transform:translate(-50%,-50%);color:#f1f1f1;text-shadow:var(--hud-shadow);background:transparent!important;border:0!important;box-shadow:none!important;max-width:min(600px,88vw);white-space:pre-line;text-align:center;font-size:14px;line-height:1.9;opacity:0;pointer-events:none;padding:0!important}
#toast[data-kind="limit"]{font:500 clamp(17px,4vw,25px)/1.6 system-ui,-apple-system,Roboto,Arial,sans-serif!important;max-width:min(590px,85vw);background:transparent!important;border:0!important}
#targetMarker{display:none!important}
.shade-bottom{height:68px;background:linear-gradient(transparent,#0005)}
.shade-top{height:46px;background:linear-gradient(#0005,transparent)}
#warpOverlay{position:absolute;z-index:6;inset:0;pointer-events:none;opacity:0;overflow:hidden;background:radial-gradient(ellipse at center,transparent,#0008)}
#warpOverlay canvas{width:100%;height:100%;object-fit:fill;transform-origin:center center}
#warpOverlay.warp-active{animation:warpFade 2.05s ease-in-out both}
#warpOverlay.warp-active canvas{animation:warpRush 2.05s ease-in both}
@keyframes warpFade{0%{opacity:1}65%{opacity:1}100%{opacity:0}}
@keyframes warpRush{0%{transform:scale(1);filter:blur(0)}55%{transform:scale(1.8);filter:blur(2px)}100%{transform:scale(5);filter:blur(12px)}}
@media (prefers-reduced-motion:reduce){#warpOverlay.warp-active,#warpOverlay.warp-active canvas{animation-duration:.3s}#buttonBrief{transition:none}}
@media(max-width:390px){.bottom{height:53px;min-height:53px}.bottom>button{height:46px}.bottom button svg{width:21px!important;height:21px!important}#zoomReadout.readout{right:7px}}

#fullscreen svg,#bFull svg{filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 3px #000c)}


/* v12.1 · Ultra-slim HUD and minimal independent navigation; override legacy layouts. */
#player .bottom{height:46px!important;min-height:46px!important;bottom:env(safe-area-inset-bottom,0px)!important;padding:1px max(4px,env(safe-area-inset-left,4px))!important;background:#000!important;border:0!important;box-shadow:none!important;gap:0!important;align-items:center!important;}
#player .bottom>button{height:44px!important;min-height:44px!important;position:relative!important;isolation:isolate;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;max-width:none!important;min-width:44px!important;flex:1 1 0!important;padding:0!important;color:#929292!important;opacity:1!important;}
#player .bottom>button::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:33px;height:33px;border:1px solid transparent;border-radius:8px;pointer-events:none;}
#player .bottom>button.selected::before{border-color:#888!important;}
#player .bottom>button.selected{border:0!important;background:transparent!important;color:#c0c0c0!important;}
#player .bottom>button svg{width:21px!important;height:21px!important;stroke-width:1.65!important;}
#player .bottom>button:active::before{background:#ffffff0b;}
#player .bottom .shutter-icon,#player .bottom .shutter{background:none!important;border:0!important;box-shadow:none!important;}
#player.cinematic-full .bottom{height:38px!important;min-height:38px!important;gap:3px!important;padding:0 max(10px,env(safe-area-inset-left,10px))!important;background:#000!important;}
#player.cinematic-full .bottom>button{height:44px!important;min-height:44px!important;flex:0 1 80px!important;border:0!important;background:none!important;color:#858585!important;opacity:.7!important;}
#player.cinematic-full .bottom>button.selected{background:transparent!important;color:#aaa!important;}
#player.cinematic-full .bottom>button svg{width:19px!important;height:19px!important;}
#player.cinematic-full .bottom>button.selected::before{width:31px;height:31px;border-color:#777!important;}
#player.cinematic-full .bottom #home,#player.cinematic-full .bottom #modeManual,#player.cinematic-full .bottom #settings,#player.cinematic-full .bottom #fullscreen,#player.cinematic-full .bottom #bFull{display:none!important;}
#player.cinematic-full .bottom #bBack,#player.cinematic-full .bottom #modeAuto,#player.cinematic-full .bottom #save{display:flex!important;}
#player.buddha-active.cinematic-full .bottom #home,#player.buddha-active.cinematic-full .bottom #modeManual,#player.buddha-active.cinematic-full .bottom #settings,#player.buddha-active.cinematic-full .bottom #fullscreen,#player.buddha-active.cinematic-full .bottom #bFull{display:none!important;}
#player.buddha-active.cinematic-full .bottom #bBack,#player.buddha-active.cinematic-full .bottom #modeAuto,#player.buddha-active.cinematic-full .bottom #save{display:flex!important;}
#player:fullscreen .bottom,#player.pseudo-fullscreen .bottom{background:#000!important;border:0!important;box-shadow:none!important;}
#player:fullscreen .bottom>button,#player.pseudo-fullscreen .bottom>button,#player:fullscreen .bottom>button.selected,#player.pseudo-fullscreen .bottom>button.selected{background:transparent!important;border:0!important;box-shadow:none!important;color:#929292!important;}
#player:fullscreen .bottom .shutter-icon,#player.pseudo-fullscreen .bottom .shutter-icon{background:none!important;color:#929292!important;}
#zoomReadout.readout{position:absolute!important;left:5px!important;right:auto!important;top:calc(5px + env(safe-area-inset-top,0px))!important;z-index:9!important;justify-content:flex-start!important;text-align:left!important;gap:10px!important;max-width:calc(100vw - 10px)!important;font:400 11px/1.4 system-ui,-apple-system,Roboto,Arial,sans-serif!important;}
#zoomValue{order:1!important;}
#bSceneRail{order:2!important;width:min(62vw,285px)!important;}
#liveMetrics{position:absolute!important;left:5px!important;right:auto!important;top:calc(5px + env(safe-area-inset-top,0px))!important;font:400 10px/1.48 system-ui,-apple-system,Roboto,Arial,sans-serif!important;max-width:calc(100vw - 10px)!important;text-align:left!important;white-space:pre-line!important;}
#player.nerd-live #zoomReadout{display:none!important;}
#player.cinematic-full #zoomReadout,#player.cinematic-full #liveMetrics{display:none!important;}
#buttonBrief{bottom:65px;}
#settingsSheet #mandelFold,#settingsSheet #buddhaFold,#settingsSheet #openAbout,#settingsSheet .signature{display:none!important;}
















@media(max-width:375px){#player .bottom{height:45px!important;min-height:45px!important}}



/* ============================================================
   v12.2 · STABLE UI REFERENCE · 2026-11-20
   Deliberately last: overrides historical v5-v12.1 selectors.
   No changes to math, flight targets, camera rendering, density.
   ============================================================ */
:root{--v122-font:system-ui,-apple-system,Roboto,Arial,sans-serif;--v122-gray:#e3e3e3;--v122-border:#292929}

/* Compact zoom and nerd telemetry: same typography, identical top-left anchor.
   The class is driven by the user's setting and prevents duplicate readouts
   even while menu panels toggle the internal live-metrics visibility. */
#zoomReadout.readout,#player #zoomReadout.readout{
  left:5px!important;right:auto!important;
  top:calc(5px + env(safe-area-inset-top,0px))!important;
  font:400 10px/1.48 var(--v122-font)!important;
  letter-spacing:normal!important;color:#e3e3e3!important;
  text-align:left!important;justify-content:flex-start!important;
  text-shadow:var(--hud-shadow)!important;box-shadow:none!important;
  padding:0!important;border:0!important;background:transparent!important;
}
#zoomReadout #zoomValue{font:inherit!important;letter-spacing:inherit!important}
#player.nerd-enabled #zoomReadout,#player.nerd-live #zoomReadout,
#player.cinematic-full #zoomReadout{display:none!important}
#player #liveMetrics{
  left:5px!important;right:auto!important;
  top:calc(5px + env(safe-area-inset-top,0px))!important;
  font:400 10px/1.48 var(--v122-font)!important;
  letter-spacing:normal!important;color:#e3e3e3!important;
  text-shadow:var(--hud-shadow)!important;
  padding:0!important;background:transparent!important;border:0!important;
  text-align:left!important;box-shadow:none!important;
}

/* Navigation: no redundant heading, more readable and a small live location dot. */







/* Settings become a floating content-height panel, without bottom anchoring.
   It grows as accordion content opens; only overlong content scrolls. */
#settingsSheet{
 position:absolute!important;
 inset:auto 8px calc(54px + env(safe-area-inset-bottom,0px)) auto!important;
 top:auto!important;left:auto!important;right:8px!important;
 width:min(355px,calc(100vw - 16px))!important;
 height:max-content!important;min-height:0!important;
 max-height:calc(100dvh - 74px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
 margin:0!important;padding:14px 15px!important;
 display:flex!important;flex-direction:column!important;
 overflow:hidden!important;overscroll-behavior:contain!important;
 background:#000!important;color:#e7e7e7!important;
 border:1px solid var(--v122-border)!important;border-radius:12px!important;
 box-shadow:0 8px 25px #000c!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 font:400 13px/1.5 var(--v122-font)!important;
 letter-spacing:.02em!important;
}
#settingsSheet[hidden]{display:none!important}
#settingsSheet .settings-head{
 position:relative!important;top:auto!important;
 flex:0 0 auto!important;z-index:auto!important;
 padding:0 0 8px!important;margin:0 0 6px!important;min-height:34px!important;
 background:#000!important;border:0!important;border-bottom:1px solid #292929!important;
 border-radius:0!important;
}
#settingsSheet .settings-head h2{
 font:500 14px/1.45 var(--v122-font)!important;
 letter-spacing:.05em!important;text-transform:uppercase!important;color:#ededed!important;
}
#settingsSheet .settings-head button{
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;color:#aaa!important;
 font:300 25px/1 var(--v122-font)!important;
 width:36px!important;height:36px!important;padding:0!important;
}
#settingsSheet .menu-panels{
 flex:0 1 auto!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;scrollbar-width:thin;
}
#settingsSheet .menu-panels>.settings-fold{flex:0 0 auto!important;min-height:0!important}
#settingsSheet .menu-panels>.settings-fold[open].reading-fold{flex:0 0 auto!important;min-height:0!important}
#settingsSheet .menu-panels>.settings-fold summary{
 font:500 13px/1.5 var(--v122-font)!important;
 letter-spacing:.045em!important;text-transform:uppercase!important;
 color:#e5e5e5!important;padding:8px 1px!important;min-height:37px!important;
}
#settingsSheet .settings-fold summary::after{color:#a1a1a1!important}
#settingsSheet .menu-panels>.settings-fold{border-color:#292929!important}
#settingsSheet .option-name label,#settingsSheet .checkbox,#settingsSheet .cs-title,#settingsSheet .cs-hue-line label,
#settingsSheet .cs-card .cs-name,#settingsSheet .cs-save,#settingsSheet select,#settingsSheet .buddha-switch{
 font-family:var(--v122-font)!important;font-weight:500!important;
 letter-spacing:.03em!important;text-transform:uppercase!important;
}
#settingsSheet .cs-card{
 background:#080808!important;border-color:#555!important;color:#ddd!important;
 border-radius:6px!important;
}
#settingsSheet .cs-card[aria-pressed="true"]{background:#101010!important;border-color:#d5d5d5!important}
#settingsSheet .cs-chip{background-color:#151515}
#settingsSheet select{background:#111!important;color:#ddd!important;border-color:#555!important}
#settingsSheet .cs-save,#settingsSheet .buddha-switch{
 background:#151515!important;color:#e1e1e1!important;
 border:1px solid #575757!important;border-radius:6px!important;
 font-size:12px!important;padding:5px 9px!important;line-height:1.5!important;
}
#settingsSheet .cs-preview{
 width:clamp(116px,19dvh,176px)!important;height:clamp(116px,19dvh,176px)!important;
 max-width:100%!important;aspect-ratio:1!important;
 margin:9px auto 8px!important;border-radius:7px!important;
 border:1px solid #555!important;box-shadow:0 3px 15px #000a!important;
 overflow:hidden!important;background:#050505!important;
}
#settingsSheet .cs-preview canvas{width:100%!important;height:100%!important}
#settingsSheet .credits-copy{font-family:var(--v122-font)!important}
#settingsSheet .v122-project-credit{
 display:flex;flex-direction:column;align-items:center;gap:3px;
 margin:19px 0 4px;padding:15px 3px 0;border-top:1px solid #292929;
 font:400 11px/1.5 var(--v122-font);letter-spacing:.015em;
 color:#ddd;text-align:center;overflow-wrap:anywhere;
}
#settingsSheet .v122-project-credit span:first-child{font-size:12px;color:#eee}
#settingsSheet .v122-project-credit span:last-child{color:#999}
/* Safe small screens: keep the panel inside the viewport rather than anchoring it to bottom. */
@media(max-height:580px){#settingsSheet{
 max-height:calc(100dvh - 62px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
 bottom:calc(48px + env(safe-area-inset-bottom,0px))!important;
}}



/* ============================================================
   v12.3 · Finished UI polish and live palette editing
   ============================================================ */
:root{--v123-glass:rgba(0,0,0,.85);--v123-shadow:0 1px 3px #000,0 0 5px #000b}

/* Menu sits at top right without a blank heading row or a top divider. */










/* Settings shares the same slightly translucent, floating appearance. */
#settingsSheet{background:var(--v123-glass)!important;
  border-color:#353535!important;box-shadow:0 7px 24px #000b!important;
  padding:10px 15px 10px!important;}
#settingsSheet .settings-head{background:transparent!important;min-height:29px!important;
  padding:0 0 3px!important;margin:0 0 2px!important;}
#settingsSheet .settings-head h2{text-shadow:var(--v123-shadow)!important}
#settingsSheet .settings-head button{width:36px!important;height:36px!important;}
#settingsSheet .menu-panels>.settings-fold summary{min-height:34px!important;
  padding:5px 1px!important;text-shadow:var(--v123-shadow)!important;}
#settingsSheet #creditsFold>summary{min-height:31px!important;padding:4px 1px!important;}
#settingsSheet .v122-project-credit{margin:5px 0 4px!important;padding:8px 3px 0!important;
  text-shadow:var(--v123-shadow)!important;}

/* Compact palette names, original capitalization and one line on any supported phone. */
#settingsSheet .cs-card .cs-name{
  font:450 clamp(8px,2.38vw,10.5px)/1.16 var(--v122-font)!important;
  letter-spacing:-.018em!important;text-transform:none!important;
  white-space:nowrap!important;overflow-wrap:normal!important;
}
#settingsSheet .cs-card{padding:4px 2px!important;min-width:0!important;}
#settingsSheet .cs-card[aria-pressed="true"]{padding:3px 1px!important;}

/* Remove verbose descriptions, while the original label and IDs remain accessible. */
#settingsSheet .cs-title{display:none!important;}
#settingsSheet .cs-hue-line{justify-content:flex-end!important;min-height:14px!important;
  margin-top:-2px!important;}
#settingsSheet .cs-hue-line label{position:absolute!important;width:1px!important;height:1px!important;
  clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;}
#settingsSheet #hueHex,#settingsSheet #lightValue{font-size:12px!important;
  font-variant-numeric:tabular-nums!important;text-shadow:var(--v123-shadow)!important;}

/* Wide, color-discriminating miniature: keep full image in view (not a crop). */
#settingsSheet .cs-preview{
  display:block!important;width:100%!important;
  height:auto!important;max-width:100%!important;
  aspect-ratio:620/250!important;
  margin:8px auto 9px!important;border-radius:7px!important;
  background:#050505!important;border:1px solid #484848!important;
  overflow:hidden!important;
}
#settingsSheet .cs-preview canvas{display:block!important;width:100%!important;
  height:100%!important;object-fit:fill!important;}
/* Viewport-height determines whether the complete floating panel must scroll, not the artwork ratio. */

