/* Palette adapters use the tokens of the current Uva surface. */
.uva-select-sheet[data-theme="storefront"] { --ss-bg:var(--uva-white); --ss-ink:var(--uva-ink); --ss-muted:var(--uva-muted); --ss-accent:var(--uva-olive); --ss-on-accent:var(--uva-white); --ss-soft:var(--uva-card); --ss-line:var(--uva-line); }
.uva-select-sheet[data-theme="miniapp"] { --ss-bg:var(--bg); --ss-ink:var(--ink); --ss-muted:var(--muted); --ss-accent:var(--wine); --ss-on-accent:var(--onwine); --ss-soft:var(--panel); --ss-line:var(--line); }
.uva-select-sheet[data-theme="admin"] { --ss-bg:var(--panel); --ss-ink:var(--ink); --ss-muted:var(--muted); --ss-accent:var(--accent); --ss-on-accent:var(--accent-text); --ss-soft:var(--soft); --ss-line:var(--line); }
.uva-select-sheet { box-sizing:border-box; position:fixed; inset:auto 0 0; width:min(100%,560px); max-width:100%; max-height:85vh; max-height:85dvh; margin:0 auto; padding:10px 20px calc(24px + env(safe-area-inset-bottom)); border:0; border-radius:28px 28px 0 0; background:var(--ss-bg); color:var(--ss-ink); font:400 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-shadow:0 -8px 36px color-mix(in srgb,var(--ss-ink) 12%,transparent); overflow:auto; overscroll-behavior:contain; }
.uva-select-sheet * { box-sizing:border-box; }
.uva-select-sheet::backdrop { background:light-dark(color-mix(in srgb,var(--ss-ink) 38%,transparent),color-mix(in srgb,var(--ss-bg) 78%,transparent)); }
.uva-select-handle { width:36px; height:4px; margin:0 auto 14px; border-radius:4px; background:var(--ss-line); }
.uva-select-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.uva-select-heading h2 { margin:0; font:400 26px/1.2 Georgia,"Times New Roman",serif; letter-spacing:-.025em; color:var(--ss-ink); overflow-wrap:anywhere; }
.uva-select-close { flex:0 0 44px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--ss-soft); color:var(--ss-muted); font:400 29px/1 sans-serif; cursor:pointer; }
.uva-select-options { display:grid; gap:5px; max-height:calc(85vh - 135px); max-height:calc(85dvh - 135px); overflow:auto; overscroll-behavior:contain; }
.uva-select-option { display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding:13px 14px; border:0; border-radius:13px; background:transparent; color:var(--ss-ink); font:400 17px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; cursor:pointer; }
.uva-select-option:hover { background:var(--ss-soft); }
.uva-select-option[aria-selected="true"] { background:color-mix(in srgb,var(--ss-accent) 10%,var(--ss-bg)); color:var(--ss-accent); font-weight:500; }
.uva-select-option:disabled { opacity:.55; cursor:default; }
.uva-select-option-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.uva-select-check { flex:0 0 25px; display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--ss-accent); color:var(--ss-on-accent); font-size:16px; visibility:hidden; }
.uva-select-option[aria-selected="true"] .uva-select-check { visibility:visible; }
.uva-select-option-hint { display:block; margin-top:4px; color:var(--ss-muted); font-size:12px; font-weight:400; }
.uva-select-other { margin-top:10px; padding-top:16px; border-top:1px solid var(--ss-line); border-radius:0 0 13px 13px; }
.uva-select-sheet button:focus-visible { outline:3px solid var(--ss-accent); outline-offset:-3px; }
@media (max-width:360px) { .uva-select-sheet { padding-left:14px; padding-right:14px; } .uva-select-heading h2 { font-size:24px; } .uva-select-option { font-size:16px; } }
