/* One transmitted-glass material for menus, surfaces and controls.
   Keep layout/size untouched. No animated filters or per-icon blur layers. */
html[data-theme="glass"] {
 --water-tint:rgba(222,236,247,.16);
 --water-light:linear-gradient(140deg,#ffffff48,transparent 48%,#91afd325);
 --water-rim:inset 0 2px 1px #ffffffb8,inset 0 -2px 2px #24476548,0 5px 12px #18375224;
}
html[data-theme="glass"][data-glass-finish="liquid"] :is(.card,.auth-card,.app-toolbar,fieldset,.notice,.badge,
 .icon-button,.secondary-link,.button-link,.button,.user-menu>summary,.notification-bell,
 .avatar,.primary-nav-links>a,.sidebar nav a,.view-tabs button,#language-flags button,.glass-settings>summary,
 .theme-select-trigger,.theme-select-menu,.glass-settings-panel,.user-menu-popover,
 .notification-popover,.picker-menu,.portal-calendar,.work-surface,.task-card,
 .role-card,.metrics>div,.sidebar,.topbar,.auth-layout,.auth-story,.auth-form,.view-toolbar,
 .status-pill,.private-badge,button:not(.theme-select-option),
 input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea) {
 background-color:var(--water-tint)!important;
 background-image:var(--water-light)!important;
 border-color:#ffffffad;
 box-shadow:var(--water-rim);
 color:var(--text,#172a40);
}
/* A visible refracted lip, with a clear centre rather than a white fill. */
html[data-theme="glass"][data-glass-finish="liquid"] {
 --water-tint:rgba(222,236,247,var(--liquid-fill,.075));
 --water-light:linear-gradient(140deg,#ffffff48,transparent 48%,#91afd325);
 --water-rim:inset 0 2px 1px #ffffffb8,inset 1px 0 1px #ffffff80,inset 0 -2px 2px #24476548,0 5px 12px #18375224;
}
html[data-theme="glass"] :is(.theme-select-option,.notification-preview,.picker-menu button,
 .user-menu-popover a,.user-menu-popover .link-button) {
 background-color:transparent!important;background-image:none!important;box-shadow:none;
}
html[data-theme="glass"] :is(.theme-select-option:hover,.theme-select-option.highlighted,
 .notification-preview:hover,.picker-menu button:hover,.user-menu-popover a:hover,
 .user-menu-popover .link-button:hover) {background-color:#ffffff36!important}
html[data-theme="glass"] :is(.theme-select-option[aria-selected="true"],
 #language-flags button[aria-pressed="true"],.parser-tabs a[aria-current="page"]) {
 background-color:rgba(69,115,163,.12)!important;border-color:#58789c88;
}
/* Scrolling optimisation: never filter the entire long report/card or nest
   filters. Gradient wallpaper is already soft; only compact chrome/popups blur. */
html[data-theme="glass"] body {background-attachment:scroll!important}
html[data-theme="glass"] :is(.card,.auth-card,fieldset,.work-surface,.task-card,
 .card .card,input,select,textarea,button,.avatar,.primary-nav-links>a,.icon-button) {
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html[data-theme="glass"] :is(body>header,.app-toolbar,.topbar,.sidebar) {
 backdrop-filter:blur(6px) saturate(125%)!important;
 -webkit-backdrop-filter:blur(6px) saturate(125%)!important;
}
html[data-theme="glass"] :is(.theme-select-menu,.glass-settings-panel,.user-menu-popover,
 .notification-popover,.picker-menu,.portal-calendar) {
 background-color:rgba(222,236,247,.26)!important;
 backdrop-filter:blur(14px) saturate(140%)!important;
 -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
}
/* Header creates a backdrop stacking context: lift that context above the
   toolbar, not just its child. Open account menus must not sit under chrome. */
body>header {position:relative;z-index:60;overflow:visible}
body>.app-toolbar {position:relative;z-index:40}
body>header :is(.header-inner,nav,.account-controls,.notification-menu,.user-menu) {overflow:visible}
body>header .primary-nav-links {overflow-x:auto}
body>header :is(.user-menu-popover,.notification-popover) {z-index:80}
body>header :is(.user-menu[open],.notification-menu[open]) {z-index:90}
.glass-settings[open] {z-index:70}
html[data-theme="glass"] body>header:has(.account-controls details[open]),
html[data-theme="glass"] .app-toolbar:has(.glass-settings[open]) {
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
/* Report details are plain readable text, not a dark horizontally scrolling log. */
.outcome-reasons {
 font:inherit;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;
 background:none!important;background-image:none!important;color:var(--text);
 border:0;padding:8px 0;margin:8px 0;max-height:none;overflow:visible;
 box-shadow:none;backdrop-filter:none;
}
#outcome-summary .summary-line {padding-block:2px}
#outcome-summary .summary-line.category-reason {margin:0 0 12px;color:var(--muted)}
#outcome-summary .summary-line.hold-category {margin-top:12px}
@media(prefers-reduced-transparency:reduce),(forced-colors:active) {
 html[data-theme="glass"] {--water-tint:#f5f8fc;--water-light:none}
 html[data-theme="glass"] :is(body>header,.app-toolbar,.topbar,.sidebar,
 .theme-select-menu,.glass-settings-panel,.user-menu-popover,.notification-popover,
 .picker-menu,.portal-calendar) {background-color:#f5f8fc!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
