/* Real refraction of the shared painted backdrop. DOM labels stay sharp. */
#optical-backdrop { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
#app { z-index:1; }
.optical-control { isolation:isolate; background:transparent!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; filter:none!important; border:1px solid rgba(255,255,255,.78); box-shadow:inset 0 1px 0 #fff9,0 4px 18px #23456810,0 1px 2px #23456812; }
.optical-control > :not(.optical-lens) { position:relative; z-index:1; }
.optical-lens { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; pointer-events:none; z-index:0; }
#app .tabs button[aria-pressed=true] { background:#ffffffa8; box-shadow:inset 0 1px 0 #fff,0 1px 4px #23456810; }
@media(prefers-contrast:more),(prefers-reduced-transparency:reduce) {
 #optical-backdrop,.optical-lens { display:none; }
 .optical-control { background:#fff!important; border-color:#6e6f73; box-shadow:none; }
}

/* Reading surfaces stay solid. Glass belongs to controls and overlays. */
.attach,.card,.doc .paper { background:#fff; }
.optical-control > .optical-lens { margin:0; padding:0; }
#sheet.optical-control { background:transparent!important; box-shadow:inset 0 1px 0 #fff,0 24px 70px #172d4c24; border:1px solid #ffffffb8; }
#sheet::backdrop { background:rgba(25,40,65,.20); backdrop-filter:blur(3px); }
#sheet .sheet-head { padding-bottom:8px; border-bottom:1px solid #536e9212; }
#sheet .choice:hover { background:#ffffff80; }
#sheet .choice:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
#sheet .seg button[aria-pressed=true] { background:#ffffffd9; box-shadow:0 1px 4px #23456812; }
.react-row.optical-control,.pop-list.optical-control { background:transparent!important; }
.react-row button:hover,.pop-list button:hover { background:#ffffffa8; }
.close { width:44px; height:44px; }
.follow button { min-height:44px; }
.consent-row .deny.optical-control { color:#26364e; }
/* Positive decisions keep a solid accessible blue rather than translucent text. */
.consent-row .allow { background:#1769d2; color:#fff; }
#notice { background:#f5f9ffed; border:1px solid #fff; color:#233752; box-shadow:0 4px 20px #23456815; }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .optical-lens,#optical-backdrop { display:none!important; }
 .optical-control,#sheet.optical-control,.react-row.optical-control,.pop-list.optical-control { background:#fff!important; border-color:#6e6f73; box-shadow:none; }
}
