/* CEO glass modes (owner round 10); ceo-glass-mode.js sets html[data-glass]. Loaded last. */
/* Full: only the panel itself blurs. A blur inside a blurred panel is the expensive part and adds nothing visible. */
html body :is(.top, .card, dialog, .gpop, .ceo-aquis, .ceo-map3d-panel) :not(#ceo-n1):not(#ceo-n2),
html body #ceo-dive { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Light: no backdrop-filter anywhere. Panels keep their own tint, border and highlight over the one blurred layer. */
html:root[data-glass="light"] body :not(.ceo-glass-probe):not(#ceo-n1):not(#ceo-n2) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Raised surfaces need their own reading plane in EVERY glass mode. Dashboard glass stays unchanged.
   Keep this after ceo-platform.css: its !important material rule otherwise makes every dialog transparent. */
:root { --ceo-reading-plane: #062d36; }
:root[data-theme="light"] { --ceo-reading-plane: #ffffff; }
:root[data-theme="dark"] { --ceo-reading-plane: #100e0c; }
html:root body :is(dialog, .gpop, #ceo-account-menu, .atip, .map-quick, .ceo-aquis, .ceo-map3d-panel, .m3-stage, .m3-panel, .m3-card, .m3-tip) {
  background: var(--ceo-reading-plane) !important;
  color: var(--text);
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
/* Remove only the CEO reef photograph; retain the shared plate, water/light and character renderer mounts. */
html body #reef-plate > img { display: none !important; }
/* Map text/controls use the same theme ink as every other raised reading surface. */
html body .m3-root :is(.m3-title, .m3-rv) { color: var(--text); text-shadow: none; }
html body .m3-root :is(.m3-status, .m3-sub, .m3-sec, .m3-note, .m3-rk) { color: var(--text-2); }
html body .m3-root :is(.m3-fit, .m3-control, .m3-close, .m3-customer) {
  background: var(--ceo-reading-plane) !important; color: var(--text); border-color: var(--line-strong);
}
/* A map reading plane and its controls never fade as a group. FLIP still moves the stage. */
html body .m3-root, html body .m3-panelwrap, html body .m3-stage { opacity: 1 !important; }
.call-detail { overflow-wrap: anywhere; }
.call-detail p { line-height: 1.5; }
.call-detail h3 { margin-top: 20px; }
#ceo-glass-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; contain: strict; }
#ceo-glass-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#ceo-glass-layer canvas[hidden] { display: none; }
:root:not([data-glass="light"]) #ceo-glass-layer { display: none; }
.ceo-glass-probe { display: none !important; }
.ceo-visual-settings .ceo-glass-choice { justify-content: space-between; }
.ceo-visual-settings select { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--glass-hi); color: var(--text); font: inherit; }
@media print { #ceo-glass-layer { display: none; } }
