/* CEO sea (ceo-sea-exact.js): the Water Lab preview's full-page water and sea life behind every card, its Pipeline
   River channel and the Dive easter egg. The canvases sit below the page; cards and figures always paint above them. */
#wl-water, #wl-life { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#wl-water, #wl-life { z-index: -2; }
/* The ambient sea is the shared platform sea (app/shared/aqua-sea). These two canvases only show during the Dive game. */
html:not([data-sea-game]):not([data-dive]) :is(#wl-water, #wl-life) { display: none; }
html[data-sea-game] #study-life, html[data-dive] #study-life { visibility: hidden; }
/* One sea: the old Water / Network choice is gone with the old water. */
#themes .iovo-sea-seg--fx { display: none; }
.rv-water { height: 86px; position: relative; }
#rvNet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.rv > .stages, .rv > .stages-sk { position: relative; z-index: 3; }
.rv > .rpin { z-index: 4; }
.rv-water .flag { position: absolute; z-index: 4; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; border: 1px solid; background: var(--gl-fill-strong, var(--glass-solid)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rv-water .flag.w { color: var(--warn); }
.rv-water .flag.g { color: var(--good); }
/* Dive: the whole screen evaporates into the sea (owner, Oct 30) — every chrome element fades out, the water stays. */
.top, #main, .srcnote, #aquis, .badge-preview { transition: opacity .38s ease; }
[data-dive] .top, [data-dive] #main, [data-dive] .srcnote, [data-dive] #aquis, [data-dive] .badge-preview { opacity: 0 !important; pointer-events: none; }
.ceo-dive { position: fixed; right: 18px; bottom: 112px; z-index: 16; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--gl-fill-strong, var(--glass-solid)); color: var(--text); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ceo-dive svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ceo-dive .ic { width: 16px; height: 16px; --ic-size: 16px; }
/* Owner R5: the "Dive" word is hidden (icon-only); the span stays for ceo-sea-exact.js to write to, aria-label names it. */
.ceo-dive.no-label { padding: 0; width: 30px; justify-content: center; }
.ceo-dive.no-label > span { display: none; }
.ceo-dive[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, #04121c); border-color: var(--accent); }
@media (max-width: 760px) { .rv > .rv-water, .rv > #rvNet { min-width: 860px; } .ceo-dive { bottom: 92px; right: 10px; } }
@media print { #wl-water, #wl-life, #rvNet, .ceo-dive { display: none !important; } }
.ceo-dive-game { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 14; pointer-events: none; display: none; }
.ceo-dive-hud { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 17; display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--gl-solid, #0a2a4c) 80%, transparent); border: 1px solid var(--line, rgba(255,255,255,.18)); color: var(--text, #fff); font-size: 13px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ceo-dive-hud[hidden] { display: none; }
.ceo-dive-hud b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ceo-dive-hud span { font-variant-numeric: tabular-nums; color: var(--text-2, #cde); }
.ceo-dive-hud small { color: var(--text-2, #cde); }
.ceo-dive-hud button { border: 0; border-radius: 999px; padding: 4px 12px; background: var(--accent, #2ee8ff); color: var(--accent-ink, #00222a); font: inherit; font-weight: 700; cursor: pointer; }

/* Keep negative-z sea layers above the opaque body painted by shared/theme-top.css. */
body { isolation: isolate; }

/* Glass rule: no blur inside the map card's blur. */
.card :is(.atlas-expand, .fit, .alegend) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
