/* zen.css (2026-10-14): the fishtank.cam pass. Loaded last; overrides app.css, pager.css and diagrams.css.
   An iwagumi feel: calm space, stone greys, moss green, off-white and ink; thin rules; a quiet serif for headings.
   Also: the sectioned nav, the pages column (one column inside, drag to resize, swap sides), "more below" and the
   previous / next cards, the camera crop, the calendar, the schedule, the thermometer and the drop checker. */

:root {
  color-scheme: dark;
  --bg: #121412; --raise: #1a1d1a; --text: #d9dbd4; --strong: #f1f0ea; --grey: #8c918a; --line: #262a26; --line-strong: #474d47;
  --accent: #9db77a; --moss: #9db77a; --stone: #7d817b; --warm: #d8b06a; --moon: #8fa7d0; --bar-bg: rgb(18 20 18 / 88%);
  --serif: "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ok: #8fb877; --warn: #d39a4a; --plan: #8c918a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f3ee; --raise: #ebe9e2; --text: #2b2d2a; --strong: #151714; --grey: #6b6f68; --line: #dfdcd3; --line-strong: #aaa89e;
    --accent: #4d6a33; --moss: #4d6a33; --stone: #8a8c84; --warm: #8a5a12; --moon: #3e5f94; --bar-bg: rgb(245 243 238 / 90%);
    --ok: #4d7a35; --warn: #a8641a; --plan: #8a8c84;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3ee; --raise: #ebe9e2; --text: #2b2d2a; --strong: #151714; --grey: #6b6f68; --line: #dfdcd3; --line-strong: #aaa89e;
  --accent: #4d6a33; --moss: #4d6a33; --stone: #8a8c84; --warm: #8a5a12; --moon: #3e5f94; --bar-bg: rgb(245 243 238 / 90%);
  --ok: #4d7a35; --warn: #a8641a; --plan: #8a8c84;
}
body { font-weight: 350; letter-spacing: .005em; }

/* ---- headings: a quiet serif, normal case, no heavy slabs */
h1, h2, h3, .ename, .bigday, .modename, .gname, .tp2-val, .cal-title, .hero { font-family: var(--serif); font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
html.pager .page .head h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; color: var(--strong); }
html.pager .page .head h3, .subh h3 { font-size: 1.25rem; }
.ename { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.55rem); }
.label, .nav a, .tag, .foot button, .fs { font-weight: 500; letter-spacing: .14em; }
html.pager .page .head { padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
html.pager .page .head p { color: var(--grey); }
.subh { margin-top: 2.25rem !important; }

/* ---- the bar: brand, the date block, a few quiet buttons */
.top { gap: 1.1rem; }
.brand { margin-right: 0; align-items: center; }
.brand-name { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: .01em; font-size: 1.2rem; }
.datebk { display: grid; gap: .05rem; margin-right: auto; padding-left: 1.1rem; border-left: 1px solid var(--line); line-height: 1.1; min-width: 0; }
.datebk b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--strong); }
.datebk small { color: var(--grey); font-size: .6875rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barbtn, .adminlink, .adminbadge button { padding: .3rem .7rem; background: none; border: 1px solid var(--line-strong); color: var(--grey); font: inherit; font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.barbtn:hover, .adminlink:hover, .adminbadge button:hover { color: var(--strong); border-color: var(--strong); }
.barbtn[aria-pressed="true"] { color: var(--strong); border-color: var(--accent); }
.adminlink { border-color: transparent; padding-left: .3rem; padding-right: .3rem; }
.adminbadge { display: inline-flex; align-items: center; gap: .6rem; padding: .25rem .3rem .25rem .7rem; border: 1px solid var(--accent); color: var(--accent); font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.adminbadge[hidden], .adminlink[hidden] { display: none !important; }
.adminfoot { margin-left: .5rem; }
.swapbtn, .viewtoggle { display: none !important; }
@media (min-width: 60rem) { html.pager .top .swapbtn, html.pager .top .viewtoggle { display: inline-block !important; } }
@media (max-width: 40rem) { .top .adminlink { display: none; } .adminbadge { font-size: .5625rem; } .datebk small { max-width: 52vw; } }
.bar-mode { display: none !important; }

/* ---- Now: the title, one line for the light */
.hero { display: block; margin: 0 0 1.1rem; color: var(--strong); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem) !important; line-height: 1.15; max-width: 22ch; }
html.pager .page-now .hero { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.page-now .dayline { display: none; }
.modenow .label { display: none; }
.modenow .modedot { display: none; }
.modename { font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem) !important; color: var(--strong); }
html.pager .tankside .modename { font-size: 1.2rem !important; }
html.pager .tankside .modenow { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }

/* ---- the nav: five sections, the open one's pages under them */
html.pager .nav { display: grid; grid-template-columns: repeat(5, max-content) minmax(0, 1fr); align-items: center; column-gap: 0; row-gap: .1rem; padding: .35rem var(--pad) .3rem; background: var(--bg); border-bottom: 1px solid var(--line); overflow: visible; }
.ngrp { display: contents; }
.ngrp[hidden] { display: none; }
.ngl { grid-row: 1; padding: .45rem .8rem .45rem 0; margin-right: .2rem; background: none; border: 0; color: var(--grey); font: inherit; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ngl:hover { color: var(--strong); }
.ngrp.cur .ngl, .ngrp.open .ngl { color: var(--strong); }
.ngrp.cur .ngl { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .45em; text-decoration-thickness: 1px; }
.npg { display: none; grid-row: 2; grid-column: 1 / -1; min-width: 0; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0 .25rem; }
.npg::-webkit-scrollbar { display: none; }
.ngrp.open .npg { display: flex; }
html.pager .nav .npg a { flex: none; display: inline-flex; align-items: center; min-height: 2rem; padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--grey); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
html.pager .nav .npg a + a { border-top: 1px solid var(--line); }
html.pager .nav .npg a:hover { color: var(--strong); border-color: var(--line-strong); }
html.pager .nav .npg a[aria-current="true"] { color: var(--bg); background: var(--strong); border-color: var(--strong); }
/* a row that scrolls sideways fades at the edge that has more */
.npg.more-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.npg.more-right.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 82%, transparent); }
@media (max-width: 59.99rem) {
  html.pager .nav { overflow-x: auto; scrollbar-width: none; }
  html.pager .nav::-webkit-scrollbar { display: none; }
  .ngl { font-size: .625rem; padding-right: .7rem; }
}

/* ---- desktop: camera and pages side by side; the nav heads the pages column; drag its edge; swap sides */
@media (min-width: 60rem) {
  html.pager body { grid-template-rows: var(--bar) auto minmax(0, 1fr); grid-template-areas: "bar bar" "tank nav" "tank pages"; }
  html.pager .nav { grid-area: nav; justify-self: stretch; align-self: stretch; z-index: 3; padding: .5rem clamp(1.25rem, 2vw, 2rem) .35rem; border-left: 1px solid var(--line); background: var(--bg); }
  html.pager .nav a { border-bottom: 1px solid var(--line); }
  html.pager.swapped body { grid-template-columns: var(--sidew) minmax(0, 1fr); grid-template-areas: "bar bar" "nav tank" "pages tank"; }
  html.pager.swapped .pages, html.pager.swapped .nav { border-left: 0; border-right: 1px solid var(--line); }
  html.pager.fullview body, html.pager.swapped.fullview body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "nav" "pages"; grid-template-rows: var(--bar) auto minmax(0, 1fr); }
  html.pager.fullview .nav { border-left: 0; border-right: 0; }
  .sizer { position: absolute; top: 0; bottom: 0; left: 0; width: 9px; z-index: 6; cursor: col-resize; touch-action: none; }
  html.pager.swapped .sizer { left: auto; right: 0; }
  .sizer::after { content: ""; position: absolute; top: 50%; left: 3px; width: 3px; height: 2.5rem; margin-top: -1.25rem; border-radius: 2px; background: var(--line-strong); opacity: 0; transition: opacity .15s; }
  .sizer:hover::after, .sizer:focus-visible::after, html.sizing .sizer::after { opacity: 1; }
  html.sizing, html.sizing * { cursor: col-resize !important; user-select: none !important; }
  html.pager.fullview .sizer { display: none; }
  .tankside { padding: 1.25rem 1.5rem 1.5rem; }
}
@media (max-width: 59.99rem) { .sizer { display: none; } }

/* ---- the pages column: one column inside, an even rhythm (his ask 10/14: too much side by side) */
html.pager:not(.fullview) .pages .entry { grid-template-columns: minmax(0, 1fr) !important; gap: .8rem; }
html.pager:not(.fullview) .pages .epic { height: 12rem; }
.efacts { grid-template-columns: minmax(0, 1fr) !important; gap: 0; }
.efacts div { display: grid; gap: .1rem; padding: .55rem 0; }
.efacts dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.efacts dd { margin: 0; font-size: .9375rem; }
html.pager:not(.fullview) .pages .fishlist, html.pager:not(.fullview) .pages .geargrid, html.pager:not(.fullview) .pages .three, html.pager:not(.fullview) .pages .testcharts { grid-template-columns: minmax(0, 1fr); }
.intank > div, #trees .row, .setupspecs div { grid-template-columns: minmax(0, 1fr) !important; gap: .15rem !important; }
.intank .k, .setupspecs dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
html.pager:not(.fullview) .pages .dash2 { grid-template-columns: minmax(0, 1fr); }
html.pager:not(.fullview) .pages .now4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entries { border-top: 0; }
.entry { padding: 1.4rem 0 1.6rem; }
.entry + .entry { border-top: 0; }
.stack { display: grid; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.stack div { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.stack dt { color: var(--grey); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.stack dd { margin: 0; color: var(--strong); font-size: .9375rem; line-height: 1.45; }

/* ---- more below, and the previous / next cards */
.morehint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: center; gap: .35rem; height: 4.5rem; padding: 0 0 .55rem; border: 0; background: linear-gradient(to bottom, transparent, var(--bg) 78%); color: var(--grey); font: inherit; font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.pages.has-more .morehint { opacity: 1; pointer-events: auto; }
.morehint svg { animation: zen-bob 2.4s ease-in-out infinite; }
.morehint span { padding-bottom: .1rem; }
@keyframes zen-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .morehint svg { animation: none; } }
.pagefoot { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; margin-top: 3rem; padding-top: 0; border-top: 0; }
.pagefoot .pcard { display: grid; gap: .25rem; padding: .9rem 1rem 1rem; border: 1px solid var(--line); text-decoration: none; color: var(--strong); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.pcard:hover { border-color: var(--line-strong); background: var(--raise); }
.pcard.next { grid-column: 2; text-align: right; }
.pcard .pk { color: var(--grey); font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.pagefoot .pcard .pn { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--strong); }
.pagefoot .pcard { text-transform: none; letter-spacing: 0; }
.page-now .pagefoot { margin-top: 2rem; }

/* ---- the camera: the front one cut to the tank; Full room shows all of it */
.view.cropped video, .view.cropped #still { inset: auto; left: var(--cx); top: var(--cy); width: var(--cs); height: var(--cs); max-width: none; object-fit: fill; }
.roombtn { position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%); z-index: 3; padding: .25rem .6rem; background: rgb(0 0 0 / 45%); border: 1px solid rgb(255 255 255 / 35%); color: #eee; font: inherit; font-size: .5625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.roombtn:hover { background: rgb(0 0 0 / 70%); }
html.pager.fullview .roombtn { display: none; }
.view .cams { z-index: 3; }

/* ---- Temperature */
.tp2-top { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: .5rem 0 1.75rem; }
.thermo { width: 100%; height: auto; max-height: 20rem; overflow: visible; }
.th-glass { fill: none; stroke: var(--line-strong); stroke-width: 1.6; }
.th-shine { stroke: var(--bg); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.th-liquid, .th-bulbfill { fill: #b85c3c; }
.th-tick { stroke: var(--line-strong); stroke-width: 1; } .th-major { stroke: var(--grey); }
.th-num { fill: var(--grey); font: 400 12px var(--sans); }
.th-safe { fill: var(--moss); opacity: .55; }
.th-safetxt, .th-targettxt { fill: var(--grey); font: 400 11px var(--sans); }
.th-target { stroke: var(--strong); stroke-width: 1.2; stroke-dasharray: 4 3; }
.tp2-read .label { margin: 0 0 .35rem !important; }
.tp2-val { color: var(--strong); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.tp2-age { margin: .55rem 0 0; color: var(--strong); font-size: 1rem; }
.tp2-age.old { color: var(--warn); }
.tp2-say { margin: .75rem 0 .5rem; font-size: .9375rem; line-height: 1.45; }
.tp2-say.ok { color: var(--ok); } .tp2-say.warn { color: var(--warn); }
.tp2-chart { margin: 0 0 .5rem; }
.tp2-chead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; }
.tp2-chead .label { margin: 0 !important; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { padding: .3rem .75rem; background: none; border: 0; color: var(--grey); font: inherit; font-size: .6875rem; letter-spacing: .08em; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--strong); color: var(--bg); }
.tl { display: block; width: 100%; height: auto; }
.tl-safe { fill: var(--moss); opacity: .12; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-txt { fill: var(--grey); font: 400 12px var(--sans); }
.tl-target { stroke: var(--grey); stroke-width: 1; stroke-dasharray: 5 4; }
.tl-line { fill: none; stroke: var(--strong); stroke-width: 1.6; stroke-linejoin: round; }
.tl-dot { fill: var(--strong); }
.safefor { display: grid; margin: .4rem 0 .5rem; }
.safefor li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
#temperature .credits { margin-top: 1.25rem; }

/* ---- Calendar */
.cal { margin: 0 0 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .6rem; }
.cal-title { font-size: 1.3rem; }
.cal-arrow { width: 2.5rem; height: 2.5rem; background: none; border: 1px solid var(--line); color: var(--strong); font: inherit; cursor: pointer; }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); touch-action: pan-y; }
.cal-wd { padding: .35rem 0; background: var(--bg); color: var(--grey); font-size: .625rem; letter-spacing: .14em; text-align: center; }
.cal-pad { background: var(--bg); }
.cal-day { position: relative; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: .2rem; min-height: 3.4rem; padding: .35rem .1rem .55rem; background: var(--bg); border: 0; color: var(--text); font: inherit; cursor: pointer; }
.cal-day:hover { background: var(--raise); }
.cal-day.past .cal-n { color: var(--grey); }
.cal-day.today .cal-n { color: var(--bg); background: var(--strong); border-radius: 999px; }
.cal-day.sel { box-shadow: inset 0 0 0 1px var(--strong); }
.cal-n { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.cal-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.cal-marks i, .cal-key i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.m-test.ok { background: var(--ok); } .m-test.warn { background: var(--warn); }
.m-wc { width: 9px !important; height: 6px !important; border-radius: 1px !important; border: 1px dashed var(--moon); }
.m-wc.done { background: var(--moon); border-style: solid; }
.m-ms { border: 1px dashed var(--strong); } .m-ms.done { background: var(--strong); border-style: solid; }
.cal-win { position: absolute; left: 0; right: 0; bottom: 4px; height: 0; border-top: 2px dashed var(--accent); opacity: .8; }
.cal-win.first { left: 30%; } .cal-win.last { right: 30%; }
.cal-key { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .6rem 0 0; color: var(--grey); font-size: .75rem; }
.cal-key span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-key i.cal-win.k { position: static; width: 14px; height: 0; border-radius: 0; }
.cal-list { margin: 1.1rem 0 0; }
.cal-list .label { margin: 0 0 .4rem !important; }
.cal-items li { display: grid; grid-template-columns: .8rem minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.cal-items .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--strong); }
.cal-items .plan { color: var(--grey); } .cal-items .plan .dot { background: none; border: 1px dashed var(--grey); }

/* ---- Schedule */
.sch { position: relative; --namew: 8.5rem; display: grid; gap: .55rem; margin: .25rem 0 .75rem; }
.sch-row { display: grid; grid-template-columns: var(--namew) minmax(0, 1fr); align-items: center; min-height: 2.1rem; }
.sch-name { display: grid; gap: .05rem; padding-right: .75rem; min-width: 0; }
.sch-name b { color: var(--strong); font-weight: 500; font-size: .875rem; }
.sch-name span { color: var(--grey); font-size: .6875rem; line-height: 1.3; }
.sch-track { position: relative; height: .7rem; background: var(--raise); }
.sch-track.none { background: none; border-top: 1px dashed var(--line-strong); height: 0; }
.sch-axisrow { min-height: 1.2rem; }
.sch-axis { position: relative; height: 1rem; }
.sch-axis span { position: absolute; top: 0; transform: translateX(-50%); color: var(--grey); font-size: .625rem; white-space: nowrap; }
.sch-axis span:first-child { transform: none; }
.sg { position: absolute; top: 0; bottom: 0; }
.lt-dim { background: color-mix(in srgb, var(--warm) 35%, transparent); }
.lt-ramp { background: linear-gradient(to right, color-mix(in srgb, var(--warm) 35%, transparent), var(--warm)); }
.lt-full { background: var(--warm); }
.lt-set { background: linear-gradient(to right, var(--warm), color-mix(in srgb, var(--moon) 60%, transparent)); }
.lt-moon { background: color-mix(in srgb, var(--moon) 60%, transparent); }
.co2 { background: var(--moss); } .co2.planned { background: none; border: 1px dashed var(--moss); }
.heat { background: color-mix(in srgb, #b85c3c 40%, transparent); }
.sch-now { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--strong); pointer-events: none; }
.sch-now::before { content: "now"; position: absolute; top: -1rem; left: -.8rem; color: var(--strong); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; }
.week { margin-top: 2rem; display: grid; gap: .4rem; --namew: 8.5rem; }
.week .label { margin: 0 0 .3rem !important; }
.wk-row .sch-track { height: .5rem; }
.wk-row.today .sch-name b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.wk-wc { position: absolute; right: 0; top: .7rem; color: var(--moon); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 30rem) { .sch, .week { --namew: 6.5rem; } }

/* ---- CO2: the drop checker */
.dc-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: .5rem 0 1rem; }
.dc { width: 100%; height: auto; }
.dc-glass { stroke: var(--line-strong); stroke-width: 3; }
.dc-bulb, .dc-cup { fill: none; stroke: var(--grey); stroke-width: 1.5; }
.dc-liquid { opacity: .85; } .dc-liquid.none { fill: none; }
.dc-txt { fill: var(--grey); font: 400 10px var(--sans); }
.dc-scale { position: relative; padding-top: .8rem; }
.dc-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: .55rem; }
.dc-step { position: relative; }
.dc-step b { position: absolute; top: .8rem; left: 0; right: 0; text-align: center; color: var(--grey); font-weight: 400; font-size: .6875rem; }
.dc-pointer { position: absolute; top: 0; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--strong); }
.dc-now { margin: 2.1rem 0 0; color: var(--strong); }
.dc-scale + .muted { margin-top: 2.1rem; }
.dc-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.dc-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid var(--line-strong); padding: 0; cursor: pointer; }

/* the Now numbers: quiet, not slabs */
html.pager .page-now .cell .v, .bigv, .minivals b { font-family: var(--serif); font-weight: 400 !important; letter-spacing: 0 !important; }
html.pager .page-now .cell .v { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.cell .k { color: var(--grey); }

/* ---- Plants & scape and Fish: every picture a cut-out in the same square, centred; two per row when there is room */
html.pager .page > .wrap { container-type: inline-size; }
.entries { container-type: normal; }
html.pager .pages .entries { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.5rem; }
@container (min-width: 34rem) { html.pager .pages .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entries .entry { grid-template-columns: minmax(0, 1fr) !important; align-content: start; }
.entries .entry.choice { grid-column: 1 / -1; }
.epic, html.pager .pages .epic { display: flex !important; align-items: center; justify-content: center; height: 11rem !important; width: 100%; aspect-ratio: auto; background: none !important; overflow: visible; }
.epic img { display: block; width: auto !important; height: auto !important; max-width: 78%; max-height: 100%; padding: 0 !important; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 18%)); }
.opt .epic, html.pager .pages .opt .epic { height: 5.5rem !important; }

/* ---- Setup: his tank with numbered spots, the Pi card, lines */
#setup-view { display: none !important; }
.setupview { grid-template-columns: minmax(0, 1fr) !important; }
.sp { position: relative; margin: 0; }
.sp-stage { position: relative; width: min(100%, 26rem); margin: 0 auto; }
.sp-stage img { display: block; width: 100%; height: auto; }
.sp-dot { position: absolute; z-index: 2; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; padding: 0; border: 1px solid rgb(255 255 255 / 85%); border-radius: 50%; background: rgb(20 22 20 / 62%); color: #fff; font: inherit; font-size: .6875rem; font-variant-numeric: tabular-nums; cursor: pointer; backdrop-filter: blur(2px); }
.sp-dot:hover, .sp-dot.on { background: #f1f0ea; color: #151714; border-color: #f1f0ea; }
.sp-pi { position: relative; z-index: 2; display: grid; grid-template-columns: 4.5rem 2rem minmax(0, 1fr); gap: .8rem; align-items: center; width: min(100%, 26rem); margin: 2.5rem auto 0; padding: .8rem .9rem; border: 1px solid var(--line); background: var(--bg); }
.sp-pi img { width: 100%; height: auto; }
.sp-pi b { display: block; color: var(--strong); font-weight: 500; font-size: .875rem; }
.sp-pi span { display: block; color: var(--grey); font-size: .75rem; line-height: 1.4; margin-top: .15rem; }
.sp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .9; }
.sp figcaption { margin: .6rem 0 0; text-align: center; }
.grow { transition: background-color .2s var(--ease); }
.grow.has-spot { cursor: pointer; }
.grow.hl { background: var(--raise); box-shadow: inset 2px 0 0 var(--accent); }
.sp-n { display: inline-grid; place-items: center; float: left; width: 1.3rem; height: 1.3rem; margin: .05rem .5rem 0 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--grey); font-size: .625rem; }
.grow .gpic { background: none !important; }
.smartline { margin-top: 1.25rem; }
.smartline a { color: var(--strong); }

/* ---- Controls: the atomizer, its photo with lines and drifting fog */
.atomhow { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ah { margin: 0; }
.ah-stage { position: relative; width: min(100%, 22rem); margin: 0 auto; }
.ah-stage img { display: block; width: 100%; height: auto; }
.ah-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ah-water { stroke: var(--moon); stroke-width: 1; stroke-dasharray: 6 5; opacity: .8; }
.ah-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ah-ring 1.2s ease-out infinite; }
@keyframes ah-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.ah-fog { fill: var(--fogc, #e8ecea); opacity: 0; filter: blur(6px); transform-box: fill-box; transform-origin: center; animation: ah-fog 6.6s ease-in-out infinite; }
@keyframes ah-fog { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: .75; } 70% { opacity: .45; transform: translate(-190px, 26px) scale(2.4, 1.4); } 100% { opacity: 0; transform: translate(-300px, 30px) scale(3, 1.5); } }
.ah-lead { stroke: var(--grey); stroke-width: .8; fill: none; }
.ah-txt { fill: var(--grey); font: 400 12px var(--sans); }
.ah figcaption { margin: .75rem 0 0; color: var(--text); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .ah-ring, .ah-fog { animation: none; } .ah-fog { opacity: .35; } }

/* ---- Ecosystem: real fish photos by zone, the depth as a line */
.eco2 { position: relative; display: grid; gap: 1.5rem; padding-left: 1.1rem; border-left: 1px solid var(--line-strong); }
.eco2-z { position: relative; margin: 0 0 .5rem; color: var(--grey); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }
.eco2-z::before { content: ""; position: absolute; left: -1.1rem; top: .5em; width: .7rem; border-top: 1px solid var(--line-strong); }
.eco2-list { display: grid; gap: .25rem; }
.eco2-one { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; align-items: center; margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.eco2-pic { display: flex; align-items: center; justify-content: center; height: 3.5rem; }
.eco2-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.eco2-one b { display: block; color: var(--strong); font-weight: 500; }
.eco2-one b span { color: var(--grey); font-weight: 400; }
.eco2-one i { display: block; color: var(--grey); font-size: .75rem; font-style: normal; }
.eco2-one figcaption > span { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.45; }

/* ---- CO2: the chain of parts */
.cc { list-style: none; margin: .5rem 0 1.5rem; padding: 0; display: grid; gap: 0; }
.cc-step { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: .75rem 0 1.4rem; }
.cc-step:not(.cc-last)::after { content: ""; position: absolute; left: 2.75rem; bottom: .1rem; height: 1.1rem; border-left: 1px solid var(--line-strong); }
.cc-pic { display: flex; align-items: center; justify-content: center; height: 4.5rem; }
.cc-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cc-tx b { display: block; color: var(--strong); font-weight: 500; }
.cc-tx span { display: block; color: var(--grey); font-size: .875rem; line-height: 1.45; margin-top: .15rem; }
.cc-last { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
.cc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 7.5rem)); gap: 1.25rem; margin-top: .4rem; }
.cc-two figure { margin: 0; text-align: center; }
.cc-two img { display: block; height: 5.5rem; width: 100%; object-fit: contain; }
.cc-two figcaption { color: var(--grey); font-size: .75rem; margin-top: .3rem; }
.dc-row .dc { border: 0 !important; background: none !important; }

:root { --fogc: #e8ecea; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --fogc: #aab6bd; } }
:root[data-theme="light"] { --fogc: #aab6bd; }
