/* ============================================================
   SAMI  —  "OCEAN DEPTH" THEME  (Seal Studios) — PARKED, NOT LIVE
   ------------------------------------------------------------
   As of 2026-07-04: Tron/"THE GRID" (shared/tron.css, loads last
   in the cascade) is THE active theme, not a switchable mode.
   Everything below this comment is the ocean-depth base this file
   held before that pivot — kept here (not deleted) because a few
   of its rules are still load-bearing regardless of theme (the
   header/main z-index fix a few lines down, the .page-title/
   .page-head rules near the end) and because ripping the ocean-
   only CSS out cleanly turned out riskier than expected — it's
   interleaved with those shared rules in ways that broke real
   rendering the first time this got attempted tonight.

   A clean, standalone copy of this file (as it stood before the
   Grid pivot) is archived at:
       hub-v1/archive/sami/sea-pastel-theme/theme.css
   That's the reference to build from if the ocean ecosystem
   (creatures/weather/moss) ever gets revived via a GPT image-gen
   pipeline — treat THIS file as current-spec-in-name-only for the
   ocean-specific rules; shared/tron.css is the real source of
   truth for what Sami's hub actually looks like today.

   Load order:  tokens.css → components.css → skins.css → THIS
                → modes.css → shared/tron.css (last, wins).
============================================================ */
:root {
    /* ---- Ocean surfaces ---- */
    --bg-base:        #04070f;
    --bg-card:        #0a1a28;
    --bg-card-hover:  #0d2032;
    --bg-glass:       rgba(8, 20, 32, 0.74);
    --bg-inset:       rgba(120, 200, 255, 0.03);

    /* ---- Ocean borders ---- */
    --border-subtle:  #143047;
    --border-muted:   #1d4256;
    --border-active:  #2c5a78;

    /* ---- Accent: bioluminescent cyan (toned a notch) ---- */
    --accent:         #19a7c4;
    --accent-bright:  #5fdcec;
    --accent-muted:   #0d8aa6;
    --accent-dim:     #0c4f5e;
    --accent-glow:    rgba(95, 220, 235, 0.16);
    --accent-contrast:#04141c;

    /* ---- Secondary data accent: coral ---- */
    --data:           #f0734c;
    --data-muted:     #c2533a;
    --data-glow:      rgba(240, 115, 76, 0.15);

    /* ---- pill radius + z shims ---- */
    --radius-pill:    999px;
    --z-switcher:     9998;
    --z-dock:         9000;

    /* ============================================================
       ZONE ACCENTS  — accent follows DEPTH, not the metric.
       Shallow=tropical teal · Mid=sunset orange · Deep=treasure gold.
    ============================================================ */
    --zone-shallow-accent: #2bc3b4;
    --zone-mid-accent:     #ef7048;
    --zone-deep-accent:    #f0c247;

    /* per-metric calendar dots (overlay legend) */
    --m-fitness:  var(--zone-deep-accent);
    --m-habits:   var(--zone-mid-accent);
    --m-reports:  var(--zone-shallow-accent);
    --m-sleep:    #7c6dfa;

    /* ============================================================
       MISSION CONTROL (Reports page) — the planning surface leans SHALLOWS
       teal, the way Fitness leans deep gold. Impact = treasure-gold
       needle · tropical-teal standard · muted minor. Soft variants
       are the chip fills/glows.
    ============================================================ */
    --wr-accent: var(--zone-shallow-accent);          /* #2bc3b4 shallows teal */
    --card-shade: rgba(7, 39, 63, 0.4);               /* the hard cel-shade drop */

    --impact-needle:       #f0c247;                   /* treasure-gold pearl */
    --impact-needle-soft:  rgba(240, 194, 71, 0.15);
    --impact-standard:     #2bc3b4;                   /* tropical teal */
    --impact-standard-soft:rgba(43, 195, 180, 0.14);
    --impact-minor:        #6f86a0;                   /* muted, recedes */
    --impact-minor-soft:   rgba(111, 134, 160, 0.12);

    /* calendar task markers */
    --task-deadline: var(--impact-needle);            /* solid marker = hard date */
    --task-fuzzy:    var(--accent-muted);             /* ghosted ring = this wk/mo */

    /* ============================================================
       SCENE CONTRACT  (skins.css may override per art style)
       BASE = the approved bright look, pulled down ~12-15% so it
       reads rich & deep instead of glaring.
    ============================================================ */
    --sky-top:      #4aa6d2;
    --sky-bottom:   #79bcd6;
    --surface-glow: rgba(255, 234, 175, 0.42);

    --w1: #319db2;   /* sunlit turquoise shallows */
    --w2: #1c7e95;
    --w3: #0e5572;
    --w4: #093a56;
    --w5: #06283f;
    --w6: #031626;
    --w7: #01080f;   /* pitch blue-black abyss */

    --particle-a: rgba(235, 246, 220, 0.42);
    --particle-b: rgba(130, 220, 235, 0.40);

    --scene-sun:   #f3d680;
    --scene-cloud: #e9f1f4;
    --scene-haze:  rgba(210, 236, 230, 0.34);
    --dock-glow:   rgba(120, 230, 225, 0.80);

    /* signature cel-shaded ink outline on panels */
    --card-outline:   #07273f;
    --card-outline-w: 3px;
}

/* ============================================================
   THE DIVE  — tall gradient over the FULL document height (NOT
   fixed): scrolling down descends from the lit surface to the
   abyss. Stops read from the scene contract so a skin recolors
   the entire water column.
============================================================ */
body {
    background:
        radial-gradient(150% 22% at 50% 2%, var(--surface-glow) 0%, transparent 60%),
        linear-gradient(180deg,
            var(--sky-top)    0%,
            var(--sky-bottom) 5%,
            var(--w1) 10%,
            var(--w2) 17%,
            var(--w3) 26%,
            var(--w4) 37%,
            var(--w5) 50%,
            var(--w6) 66%,
            var(--w7) 84%);
    background-repeat: no-repeat;
    padding-bottom: 120px;          /* clear the fixed critter dock */
}

/* drifting bioluminescent particles — fixed overlay, gentle rise */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, var(--particle-a), transparent),
        radial-gradient(1.5px 1.5px at 75% 18%, var(--particle-b), transparent),
        radial-gradient(2px 2px   at 42% 72%, var(--particle-a),  transparent),
        radial-gradient(1px 1px   at 88% 60%, var(--particle-b), transparent),
        radial-gradient(1.5px 1.5px at 60% 88%, var(--particle-a), transparent),
        radial-gradient(1px 1px   at 12% 84%, var(--particle-b), transparent);
    background-repeat: repeat;
    animation: drift-up 26s linear infinite;
    opacity: 0.55;
}
@keyframes drift-up { from { transform: translateY(0); } to { transform: translateY(-60px); } }

/* keep real content above the particle layer */
header.hub-header, main, .surface-zone, .waterline, .band-label,
.abyss-dock, .sky-scene { position: relative; z-index: 1; }
/* NOTE: .overlay is deliberately NOT in the list above — it must keep the
   position:fixed from components.css so the calendar floats center-screen
   instead of dropping into normal flow at the bottom of the page. */

/* ============================================================
   BRAND  —  glossy deep-blue triton (polished car-paint finish)
============================================================ */
.logo-mark {
    width: auto; height: auto; padding: 0;
    background: none; border: none; box-shadow: none; border-radius: 0;
    font-size: 2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.triton { width: 100%; height: 100%; display: block;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }
.header-title h1 { -webkit-text-stroke: 0.5px rgba(7,39,63,0.45); }

/* ============================================================
   ABOVE-WATER SCENE  — mood-setting sky behind the header.
============================================================ */
.sky-scene {
    position: absolute; top: 0; left: 0; right: 0;
    height: 300px; overflow: hidden; pointer-events: none; z-index: 0;
}
.sky-sun {
    position: absolute; top: 40px; right: 13%;
    width: 82px; height: 82px; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff4cf, var(--scene-sun) 45%, transparent 72%);
    box-shadow: 0 0 60px 16px rgba(255, 236, 170, 0.5);
    opacity: 0.95;
}
/* sun rays — sunny by default; the flicker hints at clouds drifting past */
.sun-rays {
    position: absolute; top: -58px; right: 4%;
    width: 300px; height: 300px; pointer-events: none;
    background: repeating-conic-gradient(from 0deg at 50% 50%,
        rgba(255,240,190,0) 0deg, rgba(255,240,190,0.20) 2.5deg, rgba(255,240,190,0) 8deg);
    -webkit-mask: radial-gradient(closest-side, rgba(0,0,0,0.9) 14%, transparent 66%);
    mask: radial-gradient(closest-side, rgba(0,0,0,0.9) 14%, transparent 66%);
    mix-blend-mode: screen;
    animation: sun-spin 120s linear infinite, sun-flicker 11s ease-in-out infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-flicker { 0%,100% { opacity: 0.85; } 38% { opacity: 0.5; } 64% { opacity: 0.95; } }
.sky-cloud {
    position: absolute; background: var(--scene-cloud);
    border-radius: 50%; filter: blur(0.5px); opacity: 0.85;
    animation: cloud-drift 70s linear infinite;
}
.sky-cloud::before, .sky-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.sky-cloud.c1 { top: 38px;  left: 6%;  width: 120px; height: 32px; }
.sky-cloud.c1::before { width: 58px; height: 58px; top: -25px; left: 22px; }
.sky-cloud.c1::after  { width: 44px; height: 44px; top: -15px; left: 64px; }
.sky-cloud.c2 { top: 92px;  left: 40%; width: 90px;  height: 24px; animation-duration: 95s; opacity: 0.7; }
.sky-cloud.c2::before { width: 42px; height: 42px; top: -19px; left: 16px; }
.sky-cloud.c2::after  { width: 32px; height: 32px; top: -11px; left: 48px; }
.sky-cloud.c3 { top: 150px; left: 20%; width: 66px;  height: 18px; animation-duration: 120s; opacity: 0.5; }
.sky-cloud.c3::before { width: 32px; height: 32px; top: -15px; left: 12px; }
.sky-cloud.c3::after  { width: 24px; height: 24px; top: -8px;  left: 36px; }
@keyframes cloud-drift { from { transform: translateX(-6vw); } to { transform: translateX(112vw); } }

/* ───── the island: tropical isle + pink house (Kame-House vibe) ─────
   Lives in the sea STAGE (.surface-zone). 2× size, off to the right.
   Stylized, not realistic. */
.sky-island {
    position: absolute; bottom: 8px; left: 64%;
    width: min(40vw, 430px); height: 168px;
    margin-left: calc(min(40vw, 430px) / -2);
    transform: scale(2); transform-origin: bottom center;
    opacity: 0.97; z-index: 1;
}
.island-svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* shoreline foam laps in & out (slow now; weather-driven in Phase 2) */
.island-foam-a { animation: foam-a 7s ease-in-out infinite; }
.island-foam-b { animation: foam-b 9.5s ease-in-out infinite; }
@keyframes foam-a { 0%,100% { opacity: 0.08; } 50% { opacity: 0.6; } }
@keyframes foam-b { 0%,100% { opacity: 0.55; } 50% { opacity: 0.05; } }
.sky-island > span { position: absolute; left: 50%; transform: translateX(-50%); }
/* grounding shadow under the isle */
.isl-water { bottom: 8px; width: 76%; height: 18px;
    background: radial-gradient(ellipse at 50% 50%, rgba(2,12,22,0.45), transparent 72%);
    border-radius: 50%; filter: blur(2px); }
/* flat sand mound w/ bold outline (cel-shaded — matches the buoys) */
.isl-sand  { bottom: 16px; width: 60%; height: 36px;
    background: #f0d49a;
    border: 2.5px solid var(--card-outline);
    border-radius: 50% 50% 46% 46% / 66% 66% 40% 40%;
    box-shadow: inset 0 -8px 0 0 #dcb87b; }      /* flat lower shade */
.isl-grass { display: none; }                    /* removed for cohesion */
/* palms — flat, bold-outlined crowns */
.isl-palm { bottom: 42px; width: 6px;
    background: #8a5a32; border-radius: 3px;
    box-shadow: 0 0 0 2px var(--card-outline);
    transform-origin: bottom center; }
.isl-palm::before {  /* flat frond crown */
    content: ''; position: absolute; top: -15px; left: -16px;
    width: 38px; height: 19px; background: #5cb35a;
    border-radius: 52% 52% 42% 42%;
    box-shadow: 0 0 0 2px var(--card-outline); }
.isl-palm::after {   /* inner-shade detail for depth */
    content: ''; position: absolute; top: -7px; left: -2px;
    width: 11px; height: 6px; background: #3f8f44; border-radius: 50%; }
.isl-palm.p1 { left: 27%; height: 38px; transform: translateX(-50%) rotate(-9deg); }
.isl-palm.p2 { left: 71%; height: 44px; transform: translateX(-50%) rotate(9deg); }
.isl-palm.p3 { display: none; }                  /* two palms read cleaner */
/* the pastel-purple house — scooted DOWN so buoys can float above/around it */
.isl-house { bottom: 30px; width: 56px; height: 34px;
    background: #c3a6e8;
    border: 2.5px solid var(--card-outline);
    border-radius: 3px;
    box-shadow: inset 0 -7px 0 rgba(120,90,170,0.40); }
.isl-roof { position: absolute; top: -18px; left: -7px;
    width: 0; height: 0;
    border-left: 35px solid transparent; border-right: 35px solid transparent;
    border-bottom: 20px solid #9a72d0;
    filter: drop-shadow(0 -1.5px 0 var(--card-outline)); }
.isl-window { position: absolute; top: 7px; left: 8px;
    width: 12px; height: 12px;
    background: #eaf6ff; border: 2.5px solid var(--card-outline); border-radius: 2px; }
.isl-door { position: absolute; bottom: 0; right: 8px;
    width: 13px; height: 18px;
    background: #7a4a96; border: 2.5px solid var(--card-outline);
    border-bottom: none; border-radius: 4px 4px 0 0; }

/* Boat removed — returns in Phase 2 (ecosystem): wooden caravel, appears
   ~every 10-15 min, can enter from any direction, scales with distance. */

/* the cinematic god-rays layer — hidden until that skin is built */
.sky-godrays { display: none; }

/* ============================================================
   SURFACE  —  the sea STAGE: scattered floating buoys + the island.
   Phase 1: static scattered positions w/ slight size variation.
   (Slow drift + collision physics = Phase 2.)
============================================================ */
.surface-zone {
    position: relative;
    width: 100%; max-width: 1200px; margin: 0 auto;
    height: 380px;
}
.buoy-row { display: contents; }   /* buoys position against the stage */

/* calm moving water across the surface band */
.sea-surface { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sea-surface svg { width: 100%; height: 100%; display: block; }
.wlayer-a { animation: water-a 9s ease-in-out infinite; }
.wlayer-b { animation: water-b 12s ease-in-out infinite; }
@keyframes water-a { 0%,100% { transform: translateX(-18px); } 50% { transform: translateX(18px); } }
@keyframes water-b { 0%,100% { transform: translateX(14px); } 50% { transform: translateX(-14px); } }

/* override the shared box-style buoy → free-floating buoy graphic */
.buoy {
    position: absolute; z-index: 2;
    background: none; border: none; box-shadow: none; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.buoy:hover { background: none; }
/* shallow-water halo so the buoy sits IN the water as it bobs */
.buoy::before {
    content: ''; position: absolute; left: 50%; top: 74px;
    width: 50px; height: 12px; transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(127,208,198,0.35), transparent 72%);
    border-radius: 50%; z-index: -1; pointer-events: none;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* scattered spots + slight size variation (closer = lower & bigger).
   Maintenance buoy top = the "surface ceiling": nothing floating rises above it. */
#buoyWiki  { --buoy-accent: #c3a6e8; left: 5%;  bottom: 40px;  transform: scale(1.06); }
#buoyMaint { --buoy-accent: #f3dd92; left: 20%; bottom: 150px; transform: scale(0.82); }
#buoyPark  { --buoy-accent: #9fe0d2; left: 36%; bottom: 86px;  transform: scale(0.93); }

.buoy-svg { width: 58px; height: 90px; display: block; overflow: visible; animation: bob 5.5s ease-in-out infinite; }
#buoyMaint .buoy-svg { animation-delay: -1.8s; }
#buoyPark  .buoy-svg { animation-delay: -3.3s; }
/* alert: the buoy lights up + its flag waves when it has something to say */
.buoy.has-badge .buoy-svg { animation: bob 5.5s ease-in-out infinite, buoyGlow 1.9s ease-in-out infinite; }
@keyframes buoyGlow {
    0%,100% { filter: drop-shadow(0 0 0 transparent); }
    50%     { filter: drop-shadow(0 0 7px var(--buoy-accent)); }
}
/* count chip (parking items / days due) */
.buoy-badge {
    position: absolute; top: 12px; right: -4px;
    background: var(--buoy-accent); color: var(--accent-contrast);
    font-size: 0.6rem; font-weight: 800; line-height: 1;
    padding: 3px 6px; border-radius: 999px;
    border: 1.5px solid var(--card-outline);
    display: none;
}
.buoy.has-badge .buoy-badge { display: inline-block; }
.buoy-name { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); }
.buoy-status { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.buoy:hover .buoy-svg { filter: drop-shadow(0 4px 9px rgba(0,0,0,0.45)) brightness(1.08); }
.buoy:hover .buoy-name { color: var(--accent-bright); }

/* the waterline: a wave divider between sky and sea */
.waterline { width: 100%; max-width: 1200px; margin: var(--space-lg) auto 0; line-height: 0; overflow: hidden; }
.waterline svg { width: 100%; height: 38px; display: block; animation: wave-slide 14s ease-in-out infinite alternate; }
.waterline path { fill: var(--scene-haze); }
.waterline .wave-2 { fill: var(--particle-b); }
@keyframes wave-slide { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* ============================================================
   THE DIVE  — stacked depth zones (one metric per depth layer)
   Order top→bottom:  Reports (shallows) · Habits (mid) · Fitness (deep)
============================================================ */
.dive { width: 100%; }
.depth-zone {
    width: 100%; min-height: 88vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: var(--space-2xl) var(--space-lg); position: relative;
}
.zone-shallow { --metric-accent: var(--zone-shallow-accent); }
.zone-mid     { --metric-accent: var(--zone-mid-accent); }
.zone-deep    { --metric-accent: var(--zone-deep-accent); }

.zone-depthmark {
    font-size: clamp(2.4rem, 8vw, 6rem); font-weight: 900; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--metric-accent); opacity: 0.07; line-height: 1;
    position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
    white-space: nowrap; pointer-events: none; user-select: none;
}
.zone-meta { text-align: center; margin-bottom: var(--space-lg); }
.zone-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--metric-accent); opacity: 0.85; }
.zone-depth-readout { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 2px; }

.metric-panel {
    width: 100%; max-width: 560px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), var(--bg-card));
    border: var(--card-outline-w) solid var(--card-outline);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 6px 0 rgba(7,39,63,0.4), 0 20px 60px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
    animation: panel-drift 8s ease-in-out infinite;
}
.zone-mid  .metric-panel { animation-duration: 9.4s; animation-delay: -2s; }
.zone-deep .metric-panel { animation-duration: 7.6s; animation-delay: -4s; }
@keyframes panel-drift { 0%,100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-12px) rotate(0.4deg); } }
.metric-panel .metric-accent-bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--metric-accent); }
.metric-panel:hover { box-shadow: 0 6px 0 rgba(7,39,63,0.4), 0 24px 70px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow); }

.js-reveal .depth-zone .metric-panel,
.js-reveal .depth-zone .zone-meta { opacity: 0; transform: translateY(46px) scale(0.98); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js-reveal .depth-zone.in-view .metric-panel,
.js-reveal .depth-zone.in-view .zone-meta { opacity: 1; transform: none; }

.metric-panel .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.metric-panel .panel-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-sm); }
.metric-panel .metric-headline { display: flex; align-items: baseline; gap: var(--space-sm); margin: var(--space-sm) 0; }
.metric-panel .metric-value { font-size: 3rem; font-weight: 800; font-family: var(--font-mono); line-height: 1; color: var(--metric-accent); }
.metric-panel .metric-unit { font-size: 1rem; color: var(--text-secondary); font-weight: 600; }
.metric-panel .metric-delta { font-size: 0.84rem; font-weight: 700; }
.metric-panel .metric-delta.positive { color: var(--success); }
.metric-panel .metric-delta.negative { color: var(--danger); }
.metric-panel .metric-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: var(--space-sm); }
.metric-panel .spark-row { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: var(--space-md); }
.metric-panel .spark-bar { flex: 1; background: var(--metric-accent); opacity: 0.55; border-radius: 2px 2px 0 0; min-height: 4px; }
.metric-panel .dive-cue { margin-top: var(--space-lg); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--metric-accent); opacity: 0.85; display: inline-flex; align-items: center; gap: 6px; }
.metric-panel .neglect-tag { display: none; font-size: 0.7rem; font-weight: 800; color: var(--warning); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-panel.is-neglected { border-color: rgba(245,158,11,0.4); animation: panel-drift 8s ease-in-out infinite, neglect-pulse 2.6s ease-in-out infinite; }
.metric-panel.is-neglected .metric-accent-bar { background: var(--warning); }
.metric-panel.is-neglected .neglect-tag { display: inline; }
@keyframes neglect-pulse { 0%,100% { box-shadow: 0 6px 0 rgba(7,39,63,0.4), 0 20px 60px rgba(0,0,0,0.5); } 50% { box-shadow: 0 6px 0 rgba(7,39,63,0.4), 0 20px 60px rgba(0,0,0,0.5), 0 0 26px rgba(245,158,11,0.3); } }
.metric-panel.is-empty .metric-value { color: var(--text-muted); }

.dive-divider { width: 100%; text-align: center; color: var(--accent-muted); opacity: 0.5; font-size: 1.2rem; padding: var(--space-md) 0; animation: chev 2.4s ease-in-out infinite; }
@keyframes chev { 0%,100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(6px); opacity: 0.7; } }

/* ============================================================
   ABYSS DOCK  —  nav as bioluminescent deep-sea critters.
============================================================ */
.abyss-dock {
    position: fixed; left: var(--space-md); top: 50%; transform: translateY(-50%);
    z-index: var(--z-dock);
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    padding: 6px 10px;
    opacity: calc(0.4 + 0.6 * var(--dive-progress, 0));
    transition: opacity var(--t-med) ease;
}
.critter { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; cursor: pointer; animation: critter-drift 6s ease-in-out infinite; }
.critter:nth-child(2) { animation-delay: -1s; }
.critter:nth-child(3) { animation-delay: -2s; }
.critter:nth-child(4) { animation-delay: -3s; }
.critter:nth-child(5) { animation-delay: -4s; }
.critter:nth-child(6) { animation-delay: -5s; }
@keyframes critter-drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.critter-orb { width: 11px; height: 11px; border-radius: 50%; background: var(--dock-glow); box-shadow: 0 0 calc(10px + 8px * var(--dive-progress, 0)) var(--dock-glow); transition: box-shadow var(--t-med) ease, transform var(--t-fast) ease, opacity var(--t-med) ease; }
.critter-name { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); opacity: 0.7; transition: opacity var(--t-fast) ease; }
.critter:hover .critter-orb { transform: scale(1.5); box-shadow: 0 0 18px var(--dock-glow); }
.critter:hover .critter-name { opacity: 1; color: var(--accent-bright); }
.critter.active .critter-orb { transform: scale(1.4); box-shadow: 0 0 16px var(--dock-glow); }
.critter.active .critter-name { opacity: 1; color: var(--accent); }

/* ============================================================
   REPORTS CALENDAR MARKERS  —  tasks overlaid on the activity hub.
   Solid pearl = hard deadline · dashed ring = fuzzy (this wk/mo)
   parked at the period's end. Distinct from the round activity dots.
============================================================ */
.cal-mark { width: 6px; height: 6px; border-radius: 50%; }
.cal-mark.solid {
    background: var(--task-deadline);
    box-shadow: 0 0 5px var(--task-deadline);
    border: 1px solid var(--card-outline);
}
.cal-mark.ghost {
    width: 7px; height: 7px;
    background: transparent;
    border: 1.5px dashed var(--task-fuzzy);
}
.cal-pop-row .pr-impact { font-size: 0.62rem; }

/* a touch of breathing room above mission control (no surface hero here) */
.mission-control { margin-top: var(--space-xl); margin-bottom: var(--space-2xl); }

/* ── page-name header (below the top bar, not in it) — was scoped to
   html[data-mode="grid"] in shared/tron.css, so it silently disappeared
   in sea/pastel mode and required the mode system to work at all. Moved
   here unconditional, matching JP/Austin's simpler always-on .fit-title
   pattern (2026-07-03: same convention, no mode dependency). */
.page-head { margin-bottom: var(--space-lg); }
.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em;
    color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.page-title .pt-accent { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }
.page-sub { margin-top: 6px; font-size: 0.82rem; color: var(--text-secondary); letter-spacing: 0.02em; }

/* ============================================================
   ACCESSIBILITY  —  respect reduced-motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
    body::before, .buoy-svg, .sky-cloud, .wlayer-a, .wlayer-b, .sun-rays,
    .island-foam-a, .island-foam-b, .metric-panel, .critter, .dive-divider { animation: none !important; }
    .js-reveal .depth-zone .metric-panel,
    .js-reveal .depth-zone .zone-meta { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
    .depth-zone { min-height: 92vh; padding: var(--space-xl) var(--space-md); }
    .abyss-dock { gap: 14px; top: auto; bottom: var(--space-md); left: 50%; transform: translateX(-50%);
        flex-direction: row; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
    /* mobile: drop the scatter for a tidy stack (live features simplified here) */
    .surface-zone { height: auto; }
    .sky-island { position: relative; left: auto; margin: 6px auto 4px;
                  width: min(70vw, 320px); transform: scale(1.2); transform-origin: bottom center; }
    .buoy-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
    .buoy { position: static; transform: none !important; }
}
