/* Shared sheets: native dialogs keep focus and background gestures contained. */
.sheet{padding:0;border:1px solid #d9b47752;border-radius:22px;background:#24251ff8;color:#f5efdf;box-shadow:0 24px 90px #0006;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:hidden}
.sheet[open]{display:flex;flex-direction:column}.sheet[hidden]{display:none!important}.sheet::backdrop{background:#11160e4a;backdrop-filter:blur(3px)}
.sheet-header{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:20px 22px 16px;border-bottom:1px solid #ffffff12}.sheet-title-icon{width:42px;height:46px;border:1px solid #dab77d30;border-radius:12px;display:grid;place-items:center;color:var(--gold);background:#dab77d0c;flex-shrink:0}.sheet-header h2{font-size:21px;line-height:1.5;margin:0}.sheet-header .eyebrow{font-size:11px;color:#c6bda9}.sheet-close{position:static;width:44px;height:44px;min-width:44px;display:grid;place-items:center;border:1px solid #ffffff20;border-radius:12px;background:#ffffff05;color:#eee5d5;margin-inline-start:auto;padding:0}.sheet-close:hover{background:#ffffff12}
.sheet-body{padding:20px 22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#dab77d55 transparent}.sheet-footer{padding:14px 22px 20px;border-top:1px solid #ffffff12;flex-shrink:0}.sheet-footer .primary{width:100%;min-height:48px;border-radius:12px;margin:0}
.light-presets{display:flex;gap:8px;margin:0 0 24px}.light-presets button{flex:1;min-width:0;min-height:52px;display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid #ffffff24;background:transparent;border-radius:12px;padding:8px 6px;font-size:14px}.light-presets button[aria-pressed=true]{background:#dab77d;color:#25271e;border-color:#dab77d;font-weight:700}.light-presets .ui-icon{width:19px;height:19px}
.light-setting+.light-setting{margin-top:17px}.light-setting label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}.light-setting output{direction:ltr;font-size:13px;color:var(--gold);font-variant-numeric:tabular-nums;min-width:62px;text-align:left}.light-setting input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:44px;margin:4px 0 0;background:transparent;cursor:pointer;direction:ltr;touch-action:pan-y;border-radius:6px}.light-setting input[type=range]::-webkit-slider-runnable-track{height:4px;background:#b5a78b50;border-radius:8px}.light-setting input[type=range]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border-radius:50%;border:3px solid #f6e3bd;background:#dab77d;margin-top:-9px;box-shadow:0 2px 8px #0004}.light-setting input[type=range]::-moz-range-track{height:4px;background:#b5a78b50;border-radius:8px}.light-setting input[type=range]::-moz-range-thumb{width:17px;height:17px;border-radius:50%;border:3px solid #f6e3bd;background:#dab77d}.light-setting input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.range-endpoints{display:flex;justify-content:space-between;direction:ltr;color:#c1b9a7;font-size:12px;margin-top:-3px}
@media(max-width:900px),(pointer:coarse){.sheet{margin:auto auto calc(env(safe-area-inset-bottom) + 12px);width:calc(100vw - 24px);max-width:480px;max-height:calc(92dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:22px}.sheet-header{padding:17px 18px 14px;gap:10px}.sheet-header h2{font-size:20px}.sheet-body{padding:18px 18px 22px}.sheet-footer{padding:12px 18px 16px}.light-presets{margin-bottom:21px}.light-presets button{font-size:13px;gap:6px}}
@media(max-height:520px){.sheet{margin:auto;max-height:calc(100dvh - 20px)}.sheet-header{padding:10px 18px}.sheet-body{padding-top:14px}.sheet-footer{padding:8px 18px}.light-setting+.light-setting{margin-top:10px}}
