/* Convex water-drop material, including the open menus. No text opacity. */
.theme-select{display:inline-grid;position:relative;min-width:0;width:100%;vertical-align:middle}
.inline-control>.theme-select,.glass-control>.theme-select{width:auto}
.theme-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;clip-path:inset(50%)!important;overflow:hidden!important;opacity:0;pointer-events:none}
.theme-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--border,#a8b3c4);border-radius:9px;background:var(--field,#fff);color:var(--text,#172a40);font:inherit;text-align:start;cursor:pointer}
.theme-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.theme-select-arrow{width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin:-4px 2px 0 4px;flex-shrink:0}
.theme-select-trigger:focus-visible,.glass-settings>summary:focus-visible{outline:2px solid #48678d;outline-offset:3px}
.theme-select-trigger:disabled{cursor:not-allowed;opacity:.55}
.theme-select-menu{position:fixed;z-index:10000;margin:0;padding:8px;border:1px solid var(--border,#a8b3c4);border-radius:16px;background:var(--surface,#fff);color:var(--text,#172a40);overflow:auto;box-shadow:0 12px 32px #142f4b33;overscroll-behavior:contain;scrollbar-width:thin}
.theme-select-option{display:block;width:100%;padding:10px 12px;text-align:start;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:normal;box-shadow:none}
.theme-select-option[hidden]{display:none}
.theme-select-option[aria-selected="true"]{font-weight:700;background:#5983b226;border-color:#5983b250}
.theme-select-option.highlighted,.theme-select-option:hover{background:#5983b21c}
.theme-select-option:disabled{opacity:.4;cursor:not-allowed}
.theme-select-group{padding:8px 12px 4px;font-size:11px;font-weight:700;color:var(--muted)}
.theme-select-search{width:100%;min-height:38px;padding:8px 10px;margin-bottom:6px;font:inherit}
.glass-settings>summary{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 11px}
.glass-settings>summary::after{content:"";width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);margin-top:-4px}
.glass-settings[open]>summary::after{transform:rotate(225deg);margin-top:4px}
html[data-theme="dark"] .theme-select-menu{background:#192331;color:#edf5ff;border-color:#61718a}
html[data-theme="dark"] .glass-settings-panel{background:#192331;color:#edf5ff;border-color:#61718a}
@media(prefers-color-scheme:dark){html[data-theme="system"] :is(.theme-select-menu,.glass-settings-panel){background:#192331;color:#edf5ff;border-color:#61718a}}
/* The translucent menu uses the same material as its selected page theme,
   instead of the OS-native opaque white option list. */
html[data-theme="glass"] :is(.theme-select-menu,.glass-settings-panel,.picker-menu,.portal-calendar,.notification-popover,.user-menu-popover){background:rgba(222,236,247,.26);background-image:linear-gradient(140deg,#ffffff48,transparent 48%,#91afd325);color:var(--text,#172a40);border:1px solid #ffffffad;backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);box-shadow:inset 0 2px 1px #ffffffb8,inset 0 -2px 2px #24476548,0 14px 32px #18375236}
html[data-theme="glass"] .theme-select-option{background:transparent;background-image:none;border-color:transparent;box-shadow:none;backdrop-filter:none}
html[data-theme="glass"] .theme-select-option[aria-selected="true"]{background:#517cad26;border-color:#58789c66}
html[data-theme="glass"] :is(.theme-select-option.highlighted,.theme-select-option:hover){background:#ffffff40}
html[data-theme="glass"] :is(.glass-settings-panel option,.picker-menu button,.notification-preview){background:transparent;color:var(--text,#172a40)}
/* Wet convex lens: a fine darker refracted lower rim and broad curved
   specular light. Centre remains transparent even on the White background. */
html[data-theme="glass"][data-glass-finish="liquid"] :is(.card,.auth-card,.app-toolbar,fieldset,.icon-button,.secondary-link,.button-link,.button,.theme-select-trigger,.glass-settings>summary,.user-menu>summary,.notification-bell,.primary-nav-links>a,button:not(.theme-select-option)){
 background-color:rgba(194,219,235,var(--liquid-fill,.035));
 background-image:radial-gradient(ellipse at 24% -12%,#ffffffb8 0%,#ffffff1c 23%,transparent 53%),radial-gradient(ellipse at 86% 115%,#91bbd638,transparent 52%),linear-gradient(155deg,#ffffff0a,transparent 58%,#446b8b0e);
 border:1px solid #7892a456;
 border-top-color:#ffffffed;border-left-color:#ffffffc9;border-radius:22px;
 box-shadow:inset 0 3px 1px #ffffffe0,inset 2px 0 2px #ffffffb3,inset -2px -4px 3px #1b486744,inset 0 -9px 14px #6d9fbd0b,0 1px 1px #ffffffd9,0 7px 13px #203f5729;
}
html[data-theme="glass"][data-glass-finish="liquid"] :is(.card,.auth-card){border-radius:30px}
html[data-theme="glass"][data-glass-finish="liquid"] :is(.icon-button,.notification-bell){border-radius:42%}
html[data-theme="glass"][data-glass-finish="liquid"] :is(.theme-select-trigger,.glass-settings>summary){border-radius:999px}
html[data-theme="glass"][data-glass-finish="liquid"] .theme-select-option{box-shadow:none;background-image:none;border-radius:11px}
@media(prefers-reduced-transparency:reduce),(forced-colors:active){html[data-theme="glass"] :is(.theme-select-menu,.glass-settings-panel){background:#e9f0f7;backdrop-filter:none;-webkit-backdrop-filter:none}}
