.theme-menu { position:relative; flex:none; color:var(--muted); font:inherit; }
.theme-menu>summary { display:flex; align-items:center; gap:8px; min-height:36px; padding:7px 11px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); cursor:pointer; list-style:none; white-space:nowrap; }
.theme-menu>summary::-webkit-details-marker { display:none; }
.theme-menu>summary::after { content:'▾'; font-size:11px; margin-left:5px; }
.theme-menu>summary>svg { width:16px; height:16px; }
.theme-menu[open]>summary { color:var(--gold-ink); border-color:var(--gold-light,var(--gold2)); }
.theme-menu .theme-switch { position:absolute; top:calc(100% + 7px); right:0; z-index:10010; display:grid; gap:4px; min-width:170px; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px #0003; }
.theme-menu .theme-switch button { display:flex; align-items:center; justify-content:flex-start; gap:9px; width:100%; padding:9px 11px; font:inherit; border:0; border-radius:5px; }
.theme-menu .theme-switch button span { display:inline; }
.theme-menu .theme-switch button:hover { background:var(--surface-soft); color:var(--gold-ink); }
.theme-menu .theme-switch [aria-pressed=true] { background:var(--surface-soft); color:var(--gold-ink); }
.theme-menu summary:focus-visible,.theme-menu button:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
