.theme-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-surface);color:var(--theme-ink);font:inherit;font-size:12px;cursor:pointer}
.theme-trigger:focus-visible,.theme-choice:focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
.theme-trigger-icon{display:none}
.theme-picker-panel{position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:16px;background:var(--theme-raised);color:var(--theme-ink);border:1px solid var(--theme-line);border-radius:14px;box-shadow:var(--theme-shadow-pop);z-index:10000;font-family:var(--theme-font-ui)}
.theme-picker-panel:not(:popover-open):not([data-fallback-open="true"]){display:none}
.theme-picker-title{display:block;margin-bottom:12px;font-size:14px;font-weight:600}
.theme-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.theme-choice{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;padding:8px;text-align:left;font:inherit;font-size:12px;border:1px solid var(--theme-line);border-radius:9px;background:var(--theme-surface);color:var(--theme-ink);cursor:pointer}
.theme-choice:hover{background:var(--theme-hover)}
.theme-choice.is-current{border-color:var(--theme-accent);box-shadow:0 0 0 1px var(--theme-accent)}
.theme-choice-tick{position:absolute;right:9px;bottom:7px;display:none;color:var(--theme-accent-ink)}
.theme-choice.is-current .theme-choice-tick{display:block}
.theme-mini{position:relative;display:block;width:100%;height:72px;overflow:hidden;border:1px solid var(--theme-line);border-radius:5px;background:var(--theme-page-background)}
.theme-mini-nav{position:absolute;inset:0 auto 0 0;width:22%;background:var(--theme-nav-background)}
.theme-mini-hero{position:absolute;left:28%;right:6%;top:12%;height:40%;border-radius:3px;background:var(--theme-hero-background);border:1px solid var(--theme-line)}
.theme-mini-card{position:absolute;left:28%;right:6%;bottom:12%;height:25%;border-radius:3px;background:var(--theme-surface);border:1px solid var(--theme-line)}
.theme-mini-button{position:absolute;left:31%;top:23%;width:24%;height:9%;border-radius:2px;background:var(--theme-accent-fill)}
.theme-picker-status{margin:10px 0 0;font-size:11px;line-height:1.6;color:var(--theme-ink-secondary)}
.theme-picker-status:empty{display:none}
