/* This control is inserted only on localhost/file previews. */
.theme-preview{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:40;max-width:calc(100vw - 24px);width:244px;font:14px/1.5 'DM Sans',Arial,sans-serif;color:var(--theme-text);background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:12px;box-shadow:0 4px 22px #0002}
.theme-preview summary{min-height:44px;display:flex;align-items:center;padding:10px 14px;cursor:pointer;font-weight:600;list-style:none}
.theme-preview summary::after{content:'+';margin-left:auto;padding-left:8px}
.theme-preview details[open] summary::after{content:'−'}
.theme-preview summary::-webkit-details-marker{display:none}
.theme-preview label{display:block;margin:4px 14px 6px}
.theme-preview select{display:block;width:calc(100% - 28px);margin:0 14px;min-height:44px;padding:8px;font:inherit;color:var(--theme-text);background:var(--theme-surface);border:1px solid var(--theme-accent);border-radius:6px}
.theme-preview p{margin:8px 14px 12px;color:var(--theme-text-secondary);font-size:12px}
.theme-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.theme-preview :focus-visible{outline:3px solid var(--theme-accent-hover);outline-offset:3px}
@media print{.theme-preview{display:none}}
