/* The aquarium is an exhibition: a quiet room around one living object. */
.reef-gallery{
 --reef-ink:#f3ead6;--reef-muted:#b1c9c6;--reef-edge:#496562;--reef-bg:#081d25;
 --reef-panel:#102c34;--reef-brass:#ceb68a;--reef-light:#8dbaaf;--reef-clear:transparent;
 --reef-wall:#153d43;--reef-warm:#51473536;--reef-halo:#297d7740;--reef-scrim:#03131ce8;
 --reef-gutter:clamp(24px,4vw,64px);background:var(--reef-bg);
}
html.reef-gallery body[data-ui=aquarium]{background:radial-gradient(ellipse at 50% 73%,var(--reef-halo),var(--reef-clear) 57%),radial-gradient(ellipse at 82% 0,var(--reef-warm),var(--reef-clear) 55%),var(--reef-bg);color:var(--reef-ink)}
.reef-gallery body:before{content:'';position:fixed;inset:0;pointer-events:none;background:linear-gradient(115deg,var(--reef-clear) 32%,var(--reef-halo) 50%,var(--reef-clear) 67%);opacity:.22}
body[data-ui=aquarium]>.reef-header{position:fixed;z-index:35;left:var(--reef-gutter);right:var(--reef-gutter);top:18px;padding:0;min-height:0;display:block;border:0;background:none;color:var(--reef-ink);font-family:var(--font-body)}
.reef-mast{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:42px}
.reef-mast a{text-decoration:none;color:var(--reef-muted)}
.reef-wordmark{display:flex;align-items:center;gap:16px;white-space:nowrap}
.reef-wordmark span{font:9px var(--font-mono);letter-spacing:.16em;color:var(--reef-muted)}
.reef-site-nav{display:flex;align-items:center;gap:8px}
body[data-ui=aquarium] .reef-header .reef-site-nav a{font-size:12px;padding:8px 12px;min-height:40px;display:inline-flex;align-items:center;white-space:nowrap}
body[data-ui=aquarium] .reef-header .reef-site-nav a[aria-current]{color:var(--reef-ink);border-color:var(--reef-edge);background:none}
.reef-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin:28px 0 24px}
.reef-heading>div{min-width:0}
.reef-eyebrow{font:10px var(--font-mono);letter-spacing:.15em;color:var(--reef-brass);margin:0 0 11px}
.reef-heading h1{margin:0;white-space:nowrap}
.reef-description{max-width:650px;margin:13px 0 0;color:var(--reef-muted);font:14px/1.55 var(--font-body)}
.reef-census{display:grid;grid-template-columns:auto;gap:6px;margin:0 0 2px;padding:0 0 2px 24px;border-left:1px solid var(--reef-edge);flex-shrink:0}
.reef-census>strong{font-family:var(--font-display);font-size:40px;line-height:1;font-weight:750;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.reef-census>span{font-size:12px;color:var(--reef-muted)}
.reef-census i{font-style:normal;opacity:.65;margin:0 6px}
.reef-census b{font-weight:500;color:var(--reef-ink)}
body[data-ui=aquarium] .reef-header .reef-controls{display:flex;align-items:center;gap:10px;padding:12px 0;border-block:1px solid var(--reef-edge)}
.reef-controls button,.reef-controls select{font:12px var(--font-body);color:var(--reef-ink);border:1px solid var(--reef-edge);border-radius:6px;padding:10px 15px;min-height:42px;background:var(--reef-bg);cursor:pointer;white-space:nowrap}
.reef-views{display:flex;gap:4px}
.reef-controls button[aria-pressed=true]{background:var(--reef-panel);border-color:var(--reef-brass);color:var(--reef-ink)}
.reef-controls button:hover,.reef-controls select:hover{border-color:var(--reef-brass)}
.reef-controls button:active{transform:translateY(1px)}
.reef-density{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:11px;color:var(--reef-muted)}
.reef-controls select{padding-right:28px}
.reef-controls .reef-find{background:var(--reef-ink);color:var(--reef-bg);border-color:var(--reef-ink);font-weight:650}
.reef-find span{margin-left:24px}
.reef-gallery :is(button,a,select):focus-visible{outline:2px solid var(--reef-brass);outline-offset:4px}
.reef-footer{position:fixed;bottom:16px;left:var(--reef-gutter);right:var(--reef-gutter);display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:12px 24px;color:var(--reef-muted);font:11px var(--font-body);z-index:35}
.reef-footer a,.reef-footer button{color:var(--reef-ink);text-decoration:none;display:inline-flex;align-items:center;min-height:32px;white-space:nowrap}
.reef-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.reef-instruction{font:10px var(--font-mono);letter-spacing:.02em}
.reef-holder-note{display:none}
.reef-keeper-project{font:inherit;border:0;background:none;padding:0;cursor:pointer}
.reef-footer .status-rail{position:static;transform:none;grid-column:1/-1;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px 20px;flex-wrap:wrap;pointer-events:none}
.reef-footer .status-rail:empty{display:none}
html.reef-gallery .reef-footer .status-chip{font:11px/1.4 var(--font-body);letter-spacing:0;white-space:normal;border:0;border-radius:0;padding:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;color:var(--reef-muted);animation:none;max-width:100%}
.reef-footer .status-chip:before{flex-shrink:0;background:var(--reef-brass);width:4px;height:4px}
.reef-panel-open .reef-footer{background:var(--reef-bg)}
/* Keep the original accessible wallet and ledger panels, and their data bindings. */
.reef-gallery .hud :is(.brand,.hero,.stats,.ca,.keeper,.keeper-bubble,.keeper-leader,.pills,.agent){display:none!important}
.reef-gallery .hud :is(.panel,.foot,.prints){display:none!important}
.reef-gallery.reef-panel-open .hud{z-index:48}
.reef-gallery .hud .note{font-size:11px;padding:5px 8px;opacity:.82}
.reef-gallery.reef-panel-open .hud .panel:not([hidden]){display:flex!important;height:auto;position:fixed;top:calc(var(--reef-panel-top,225px) + 44px);right:24px;bottom:92px;left:auto;width:340px;max-height:none;margin:0;border:1px solid var(--reef-edge);border-radius:12px;background:var(--reef-panel);z-index:48}
.reef-gallery.reef-panel-open .hud .foot{display:block!important;position:fixed;left:auto;right:24px;bottom:24px;width:340px;transform:none;margin:0;z-index:48}
.reef-gallery .hud .foot :is(.block,.agent){display:none!important}
.reef-gallery .hud .dock-wrap{width:100%}
.reef-gallery .hud .dock{background:var(--reef-panel)}
.reef-gallery.reef-panel-open .hud .prints:not([hidden]){display:block!important;z-index:48;top:calc(var(--reef-panel-top,225px) + 44px);bottom:90px;right:24px;left:auto;width:min(650px,calc(100% - 48px))}
.reef-close{position:fixed;z-index:51;right:24px;top:var(--reef-panel-top,183px);color:var(--reef-ink);background:var(--reef-panel);border:1px solid var(--reef-edge);font:12px var(--font-body);border-radius:6px;padding:10px 17px;min-height:38px;cursor:pointer}
.reef-scrim{display:none;border:0}
.reef-gallery .hud .panel-body{flex:1;padding-top:24px}
.reef-gallery .hud .panel .handle{display:none}
.reef-load-state{display:block;font:12px/1.5 var(--font-body);color:var(--reef-muted);margin-top:6px;letter-spacing:0}
.reef-census[aria-busy=true]>span{opacity:.65}
.reef-load-state[hidden],.reef-gallery [hidden]{display:none!important}
@media(max-width:1000px){
 .reef-wordmark span{display:none}.reef-heading{gap:24px}.reef-census{padding-left:18px}.reef-census>strong{font-size:32px}
 .reef-description{max-width:48ch}.reef-density{font-size:0;gap:0}.reef-footer{column-gap:16px}
}
@media(max-width:700px){
 .reef-gallery{--reef-gutter:20px}
 body[data-ui=aquarium]>.reef-header{top:12px}
 .reef-mast{flex-wrap:wrap;gap:4px;min-height:0}
 .reef-wordmark .tank-logo{width:80px;height:20px}
 body[data-ui=aquarium] .reef-site-nav{width:100%;justify-content:space-between;gap:0}
 body[data-ui=aquarium] .reef-header .reef-site-nav a{font-size:12px;padding:5px 8px;min-height:34px}
 .reef-site-nav a:first-child{margin-left:-8px}
 .reef-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0}
 .reef-eyebrow{font-size:8px;margin-bottom:9px}
 body[data-ui=aquarium] .reef-heading h1{font-size:clamp(33px,9vw,44px);letter-spacing:-.05em}
 .reef-description{font-size:12px;line-height:1.45;margin-top:10px;max-width:44ch}
 .reef-census{display:flex;align-items:baseline;gap:8px;border:0;padding:0;margin:0}
 .reef-census>strong{font-size:23px;letter-spacing:-.025em}.reef-census>span{font-size:11px}
 .reef-load-state{font-size:10px;margin:0}
 body[data-ui=aquarium] .reef-header .reef-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 6px;padding:10px 0}
 .reef-views{gap:4px}.reef-controls button,.reef-controls select{font-size:11px;padding:9px 10px;min-height:38px}
 .reef-views button{flex:1;padding-inline:8px}
 .reef-density{margin:0}.reef-density select{width:120px;padding-right:16px}
 .reef-controls .reef-find{min-width:0}.reef-find span{margin-left:10px}
 .reef-footer{bottom:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;font-size:10px}
 .reef-footer .reef-instruction{display:none}.reef-footer .status-rail{flex:0 0 100%;justify-content:flex-start;gap:4px;order:-1;padding-bottom:4px}
 html.reef-gallery .reef-footer .status-chip{font-size:10px;line-height:1.35}.reef-footer a,.reef-footer button{min-height:30px}
 .reef-gallery.reef-panel-open :is(.reef-description,.reef-census){display:none}
 .reef-gallery.reef-panel-open .hud .panel:not([hidden]){top:calc(var(--reef-panel-top) + var(--reef-status-height,0px) + 50px);left:12px;right:12px;width:auto;bottom:91px;z-index:50}
 .reef-gallery.reef-panel-open .hud .foot{left:12px;right:12px;width:auto;bottom:22px;z-index:50}
 .reef-close{right:16px}
 .reef-panel-open .reef-close{top:calc(var(--reef-panel-top) + var(--reef-status-height,0px) + 6px)}
 .reef-gallery.reef-panel-open .reef-scrim{display:block;position:fixed;inset:var(--reef-panel-top,216px) 0 0;z-index:45;background:var(--reef-scrim)}
 .reef-gallery.reef-panel-open .reef-footer{visibility:hidden;z-index:51}
 .reef-gallery.reef-panel-open .reef-footer .status-rail{visibility:visible;position:fixed;top:var(--reef-panel-top);bottom:auto;left:var(--reef-gutter);right:var(--reef-gutter);width:auto;padding:0;background:var(--reef-bg)}
 .reef-gallery.reef-panel-open .hud .prints:not([hidden]){top:calc(var(--reef-panel-top) + var(--reef-status-height,0px) + 50px);bottom:90px;left:12px;right:12px;width:auto}
}
@media(max-width:370px){.reef-gallery{--reef-gutter:16px}.reef-density select{width:110px}.reef-controls button,.reef-controls select{font-size:10px}.reef-heading{gap:8px;margin:10px 0}.reef-eyebrow{margin-bottom:6px}}
@media(max-height:740px) and (min-width:701px){.reef-heading{margin:16px 0}body[data-ui=aquarium] .reef-heading h1{font-size:48px}.reef-description{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.reef-gallery *{scroll-behavior:auto}}

/* All stations stay visible, with room reserved above the station grid. */
.reef-gallery .hud .dock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px;overflow:visible;mask-image:none;-webkit-mask-image:none;border:1px solid var(--reef-edge);border-radius:12px}
.reef-gallery .hud .dock .tab{min-width:0;width:100%;padding:10px 4px;min-height:40px;font-size:12px;text-align:center}
.reef-gallery.reef-panel-open .hud .panel:not([hidden]),.reef-gallery.reef-panel-open .hud .prints:not([hidden]){bottom:calc(var(--reef-dock-height,104px) + 36px)}
