/* Shared water-clear material. Text/children never inherit transparency. */
html[data-theme="glass"]{color-scheme:light;--bg:#e8effb;--text:#172a40;--muted:#344b64;--nav:#20344e;--border:#8ea3bd66;--field:rgba(255,255,255,var(--glass-alpha,.25));--surface:var(--field);--glass-alpha:.25;--glass-highlight:.12;--glass-blur:3px;--line:#8ea3bd66}
html[data-theme="glass"] body{background:radial-gradient(ellipse at 5% 5%,#b8d7ff 0,transparent 52%),radial-gradient(ellipse at 95% 24%,#d5bbf5 0,transparent 48%),radial-gradient(ellipse at 36% 88%,#b6ebdd 0,transparent 52%),#e8effb;background-attachment:scroll;color:var(--text)}
html[data-theme="glass"] :is(header,.card,.auth-card,.app-toolbar,fieldset,.notice,.badge,.icon-button,.secondary-link,.button-link,.button,.user-menu>summary,.notification-bell,.avatar,.work-surface,.task-card,.role-card,.metrics>div,.sidebar,.topbar,.auth-layout,.auth-story,.auth-form,.view-toolbar,.notification,.status-pill,.private-badge,button,input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea){
 background-color:rgba(255,255,255,var(--glass-alpha,.25));
 background-image:linear-gradient(145deg,rgba(255,255,255,var(--glass-highlight,.12)),rgba(255,255,255,0) 42%,rgba(255,255,255,0) 65%,rgba(255,255,255,var(--glass-highlight,.12)));
 border:1px solid #ffffffbf;box-shadow:inset 0 1px 1px #ffffffad,inset 0 -1px 2px #6688ad1a,0 3px 12px #34547812;color:var(--text);
}
/* Blur large top-level surfaces only; no expensive nested blur on every icon. */
html[data-theme="glass"] :is(body>header,.card,.app-toolbar,.sidebar,.topbar,.work-surface){backdrop-filter:blur(var(--glass-blur,3px));-webkit-backdrop-filter:blur(var(--glass-blur,3px))}
html[data-theme="glass"] :is(.card .card,.auth-card,input,select,textarea,button,.task-card){backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-theme="glass"] :is(.auth-main,.board,.empty-state,.form-grid,.sidebar nav,.app-main,.auth-form-inner){background:transparent;background-image:none}
html[data-theme="glass"] :is(h1,h2,h3,label,th,.brand,.task-title,.sidebar a,.workspace-name,.breadcrumb,.board-title){color:var(--text)}
html[data-theme="glass"] :is(p,small,.workspace-label,.side-heading,.task-meta,.sidebar-bottom>small,.auth-story p:not(.eyebrow),.auth-story>small){color:var(--muted)}
html[data-theme="glass"] :is(.picker-menu,.portal-calendar,.notification-popover,.user-menu-popover){background:#f5f8fc;color:var(--text);box-shadow:0 8px 28px #243d6326}
html[data-theme="glass"] :is(.notification-preview,.picker-menu button){background:#f5f8fc;color:var(--text)}
html[data-theme="glass"] :is(option,optgroup){background:#f5f8fc;color:#172a40}
html[data-theme="glass"] :is(.parser-tabs a[aria-current="page"],#language-flags button[aria-pressed="true"],.view-tabs .selected,.project-nav .active){background-color:rgba(155,188,227,var(--glass-alpha,.25));border-color:#617e9f;color:#102c4e;box-shadow:inset 0 1px #ffffffad,0 2px 5px #47658c1a}
html[data-theme="glass"] :is(.log,pre.log){background:#142032;color:#eff5ff}
html[data-theme="glass"] table th{background:rgba(255,255,255,var(--glass-alpha,.25));border-bottom:1px solid #ffffff8c}
html[data-theme="glass"] table td{border-bottom-color:#91a7c133}
html[data-theme="glass"] .connection-action,html[data-theme="glass"] .global-connection-action{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;padding:0}
.connection-help{display:block;margin-top:7px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.4;background:none;border:0;box-shadow:none}
.glass-control{display:none;gap:6px;align-items:center;font-size:12px;white-space:nowrap}
html[data-theme="glass"] .glass-control{display:flex}
.glass-control input{width:88px;padding:0;accent-color:#4b6a87;min-height:28px}
.glass-control output{min-width:4ch;font-variant-numeric:tabular-nums}
.appearance-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
/* Keep account controls in the same header row; only the navigation links scroll. */
body>header{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:14px;padding-inline:clamp(12px,2vw,28px)}
body>header .brand{flex-shrink:0;font-size:18px}
body>header>nav{display:flex;flex:1;min-width:0;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:8px}
.primary-nav-links{display:flex;flex:0 1 auto;min-width:0;align-items:center;flex-wrap:nowrap;gap:4px;overflow-x:auto;scrollbar-width:thin}
body>header .primary-nav-links>a{flex-shrink:0;white-space:nowrap;font-size:13px;padding:7px 8px}
body>header :is(.account-controls,.user-menu,.notification-menu){flex-shrink:0;flex-wrap:nowrap;white-space:nowrap}
body>header .account-controls{margin-left:0;gap:8px}
html[data-theme="glass"] body>header .primary-nav-links>a{background:rgba(255,255,255,var(--glass-alpha,.25));background-image:linear-gradient(145deg,rgba(255,255,255,var(--glass-highlight,.12)),transparent);box-shadow:inset 0 1px #ffffff8c}
@media(max-width:1050px){body>header .brand-copy{display:none}body>header .brand{padding:0}.preference-controls{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:700px){body>header{padding:9px 12px;gap:8px}body>header .primary-nav-links>a{font-size:12px;padding:7px}.primary-nav-links{flex:1}.topbar{flex-wrap:wrap;height:auto;min-height:60px;gap:10px;padding-block:10px}.topbar-right{flex-wrap:wrap;justify-content:flex-end}.glass-control input{width:75px}}
@media(prefers-reduced-transparency:reduce),(forced-colors:active){html[data-theme="glass"]{--glass-alpha:1!important;--glass-highlight:0!important;--glass-blur:0px!important}}
@media print{html[data-theme="glass"] body{background:white}html[data-theme="glass"] :is(.card,.work-surface,header){background:white;box-shadow:none;backdrop-filter:none}}
