.theme-picker { position:relative; flex:none; margin-inline:.3rem; color:var(--fg); } .theme-picker summary { display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; cursor:pointer; list-style:none; font-size:1.4rem; } .theme-picker summary::-webkit-details-marker { display:none; } .theme-picker summary:hover, .theme-picker summary:focus-visible { background:var(--button-hover-bg); outline:1px solid var(--border); } .theme-picker-panel { position:absolute; z-index:100; right:0; top:calc(100% + .5rem); width:min(17rem,calc(100vw - 2rem)); box-sizing:border-box; padding:.8rem; background:var(--input-bg); color:var(--fg); border:1px solid var(--border); border-radius:.5rem; box-shadow:0 .4rem 1.2rem #0005; } .theme-picker-panel label { display:grid; gap:.4rem; } .theme-picker-panel select { width:100%; min-height:2.4rem; background:var(--input-bg); color:var(--input-fg); border:1px solid var(--input-border); } .theme-picker-panel small { display:block; color:var(--muted); margin-top:.4rem; } .theme-picker-panel [role="status"] { font-size:.85rem; color:var(--danger); }