:root{--ink:#eaf6fa;--muted:#9fd3e2;--glass:#0620289e;--glass-line:#ffffff24;--amber:#ffb65c;--green:#6fe0a6;--paper:#f7f8f6;--paper-ink:#142028;--paper-muted:#56636b;--blue:#1c4fa8;color:var(--ink);font-family:Sora,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body{background:#0a3339;height:100%;margin:0;overflow:hidden}[hidden]{display:none!important}button{cursor:pointer;font-family:inherit}button:focus-visible{outline-offset:2px;outline:3px solid #7eb0ff}.mono{font-family:IBM Plex Mono,ui-monospace,monospace}.muted{color:var(--muted)}#stage{position:fixed;inset:0}#stage canvas{display:block}.vignette{pointer-events:none;background:radial-gradient(at 50% 42%,#0000 55%,#020e128c 100%),linear-gradient(#03142073 0%,#0000 20% 78%,#03142080 100%);position:fixed;inset:0}.glass{background:var(--glass);-webkit-backdrop-filter:blur(14px);border:1px solid var(--glass-line)}.hud-top{top:calc(20px + env(safe-area-inset-top,0px));pointer-events:none;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex;position:fixed;left:20px;right:20px}.hud-top>*{pointer-events:auto}.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:#cfeaf3;font-size:12px}h1{margin:4px 0 0;font-size:clamp(22px,3vw,30px);font-weight:600}.pill{color:#c8f5dc;background:#2ea06e4d;border:1px solid #78e6aa8c;border-radius:999px;align-items:center;gap:8px;height:42px;padding:0 16px;font-size:14px;font-weight:600;display:inline-flex}.pill.watch{color:#ffe2bf;background:#e68c2852;border-color:#ffbe6eb3}.pill.danger{color:#ffe0da;background:#c83c2873;border-color:#ff8c78cc}.left-col{flex-direction:column;gap:10px;width:min(280px,100vw - 40px);display:flex;position:fixed;top:110px;left:20px}.fish-card{border-radius:18px;flex-direction:column;gap:8px;padding:16px;display:flex}.chores{border-radius:18px;flex-direction:column;gap:8px;padding:14px 16px;display:flex}.chores-head{color:var(--ink);background:0 0;border:0;justify-content:space-between;align-items:baseline;padding:0;font-size:15px;font-weight:600;display:flex}.chores-head .muted{font-size:12px;font-weight:400}.chores ul{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.chores[data-collapsed=true] ul,.chores[data-collapsed=true] .streak{display:none}.chore{width:100%;min-height:36px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;margin:0 -6px;padding:4px 6px;font-size:13px;display:flex}button.chore:hover{background:#ffffff1a}.chore .dot{border:2px solid var(--muted);border-radius:50%;flex-shrink:0;width:16px;height:16px}.chore.done{color:var(--muted);text-decoration:line-through}.chore.done .dot{background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3b26' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;border:0}.chore.alert .dot{border-color:var(--amber)}.chore .go{color:var(--amber);margin-left:auto;font-size:12px;font-weight:600}.streak{color:var(--muted);border-top:1px solid var(--glass-line);padding-top:4px;font-size:12px}.streak b{color:var(--ink);font-weight:600}.algae{pointer-events:none;opacity:0;mix-blend-mode:multiply;background:radial-gradient(40% 30% at 0 100%,#4a6e26e6,#0000 70%),radial-gradient(30% 40% at 100% 90%,#507628d9,#0000 70%),radial-gradient(25% 20% at 18% 12%,#5a7d2d99,#0000 70%),radial-gradient(35% 25% at 80% 8%,#56782c8c,#0000 70%),radial-gradient(30% 30% at 55% 60%,#60823459,#0000 70%),linear-gradient(#46692859,#46692859);transition:opacity .8s;position:fixed;inset:0}.lights{padding:12px 16px}.lights-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.lights-row b{font-size:15px;font-weight:500;display:block}.lights-row span{color:var(--paper-muted);font-size:12px}.stepper{align-items:center;gap:8px;display:flex}.stepper button{width:44px;height:44px;color:var(--paper-ink);background:#fff;border:1px solid #c9d2ce;border-radius:12px;font-size:20px}.stepper output{text-align:center;min-width:40px;font-size:16px}.fish-card .row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.fish-card strong{font-size:19px;font-weight:600}.fish-card .muted{font-size:12px}.fish-card p{color:#cfe8f0;margin:0;font-size:13px;line-height:1.5}.meter{color:var(--muted);justify-content:space-between;font-size:12px;display:flex}.meter span:last-child{color:var(--ink)}.bar{background:#ffffff1f;border-radius:99px;height:7px;overflow:hidden}.bar i{border-radius:99px;height:100%;transition:width .6s;display:block}.bar i.amber{background:var(--amber)}.bar i.green{background:var(--green)}.dock{left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));border-radius:24px;gap:6px;max-width:calc(100vw - 24px);padding:8px;display:flex;position:fixed;transform:translate(-50%)}.dock-btn{min-width:78px;color:var(--ink);background:0 0;border:0;border-radius:17px;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;font-size:13px;transition:background .15s,transform .15s;display:flex}.dock-btn:hover{background:#ffffff24;transform:translateY(-2px)}.dock-btn.primary{background:var(--amber);color:#3a2200;font-weight:600}.dock-btn.primary:hover{background:#ffc47a}.dock-btn svg,.icon-btn svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.sheet{background:var(--paper);width:min(420px,100vw - 32px);color:var(--paper-ink);border-radius:22px;flex-direction:column;gap:14px;padding:22px;animation:.25s ease-out slide-in;display:flex;position:fixed;top:16px;bottom:16px;right:16px;overflow-y:auto;box-shadow:0 30px 60px #00000059}@keyframes slide-in{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:none}}.sheet .muted{color:var(--paper-muted);font-size:12px}.sheet h2{margin:4px 0 0;font-size:22px;font-weight:600}.sheet-head{justify-content:space-between;align-items:flex-start;display:flex}.icon-btn{width:44px;height:44px;color:var(--paper-ink);background:#e7ebe9;border:0;border-radius:12px;justify-content:center;align-items:center;display:flex}.icon-btn svg{width:18px;height:18px}.card{background:#fff;border:1px solid #e1e5e3;border-radius:14px;padding:6px 16px}.reading{border-bottom:1px solid #eef0ef;align-items:center;gap:14px;padding:10px 0;display:flex}.reading:last-child{border-bottom:0}.vial{border:1.5px solid #b8c1c6;border-radius:3px 3px 9px 9px;flex-shrink:0;width:16px;height:40px}.reading .name{flex:1}.reading .name b{font-size:15px;font-weight:500;display:block}.reading .name span{color:var(--paper-muted);font-size:12px}.reading .value{text-align:right;min-width:76px;font-size:17px}.status{width:64px;font-size:13px;font-weight:500}.status.good{color:#1e6b45}.status.watch{color:#8a5200}.status.danger{color:#a3271a}.cycle{flex-direction:column;gap:8px;padding:10px 0;font-size:14px;display:flex}.cycle .bar{background:#e3e8e5;height:8px}.cycle .meter{color:var(--paper-muted)}.cycle .meter span:last-child{color:var(--paper-ink)}.tip{background:#fff3d6;border-radius:12px;padding:14px;font-size:14px;line-height:1.45}.wide-btn{background:var(--blue);color:#fff;border:0;border-radius:12px;height:48px;font-size:15px;font-weight:600}.test-tab{z-index:35;writing-mode:vertical-rl;color:#1b1b1b;letter-spacing:.12em;text-transform:uppercase;background:#ffd23f;border:2px dashed #1b1b1b;border-right:0;border-radius:10px 0 0 10px;padding:14px 7px;font:600 11px IBM Plex Mono,ui-monospace,monospace;position:fixed;top:50%;right:0;transform:translateY(-50%);box-shadow:0 6px 20px #0000004d}.test-tab[data-fast]{background:#ff8a3d}.dev{z-index:35;border:2px dashed #ffd23f;border-radius:16px;flex-direction:column;gap:10px;width:min(320px,100vw - 60px);padding:14px;font-size:13px;display:flex;position:fixed;top:50%;right:44px;transform:translateY(-50%)}.dev-title{font-weight:600}.dev-note{color:#ffd23f;margin-top:2px;font-size:12px}.seg{background:#ffffff14;border-radius:10px;gap:4px;padding:3px;display:flex}.seg button{height:34px;color:var(--ink);background:0 0;border:0;border-radius:8px;flex:1;font-size:12px}.seg button[aria-pressed=true]{color:var(--paper-ink);background:#fff;font-weight:600}.dev-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}.dev-grid button{border:1px solid var(--glass-line);min-height:38px;color:var(--ink);background:#ffffff0f;border-radius:10px;padding:6px 8px;font-size:12px}.dev-readout{color:var(--muted);white-space:pre;font-size:11px;line-height:1.6}.toast{left:50%;bottom:calc(130px + env(safe-area-inset-bottom,0px));color:#fff;text-align:center;background:#1f7a5a;border-radius:14px;max-width:calc(100vw - 40px);padding:12px 18px;font-size:14px;font-weight:500;position:fixed;transform:translate(-50%);box-shadow:0 10px 30px #00000040}.toast.warn{background:#b8442a}.toast{cursor:pointer}.notice{width:min(420px,100vw - 32px);color:var(--paper-ink);z-index:30;background:#f7f3ea;border-radius:20px;padding:22px 22px 18px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 24px 60px #0006}.notice h2{margin:6px 0 8px;font-size:20px;font-weight:600}.notice p{margin:0 0 10px;font-size:14px;line-height:1.5}.notice .notice-fix{background:#e9efe9;border-radius:12px;padding:10px 12px}.notice-actions{gap:8px;margin-top:14px;display:flex}.notice-actions .wide-btn{flex:1;margin:0}.ghost-btn{font:inherit;color:var(--paper-ink);background:0 0;border:1px solid #c9d2ce;border-radius:14px;padding:0 16px}.toggle{background:#c9d2ce;border:0;border-radius:99px;width:52px;height:30px;transition:background .15s;position:relative}.toggle i{background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle[aria-checked=true]{background:var(--green)}.toggle[aria-checked=true] i{transform:translate(22px)}.fish-card .wide-btn{margin:4px 0 0}@media (width<=640px){.dock-btn{flex:1;min-width:0;padding:10px 4px 8px;font-size:11px}.left-col{top:auto;bottom:calc(118px + env(safe-area-inset-bottom,0px));width:auto;left:12px;right:12px}.chores[data-collapsed=true] .bar{display:none}.notice{top:38%}}@media (prefers-reduced-motion:reduce){.sheet{animation:none}.bar i{transition:none}}.species-list{flex-direction:column;gap:8px;display:flex}.species{width:100%;color:var(--paper-ink);text-align:left;background:#fff;border:2px solid #dde3e0;border-radius:14px;align-items:center;gap:12px;padding:12px;display:flex}.species[aria-pressed=true]{border-color:var(--blue);background:#eef3fc}.species img{object-fit:contain;flex-shrink:0;width:64px;height:36px}.species b{font-size:15px;font-weight:600;display:block}.species span{color:var(--paper-muted);font-size:12px}.species .have{color:var(--paper-muted);white-space:nowrap;margin-left:auto;font-size:12px}.qty{background:#fff;border:1px solid #e1e5e3;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.qty .stepper{align-items:center;gap:8px;display:flex}.qty .stepper button{width:44px;height:44px;color:var(--paper-ink);background:#fff;border:1px solid #c9d2ce;border-radius:12px;font-size:20px}.qty .stepper output{text-align:center;min-width:32px;font-size:18px}.stock{color:var(--paper-muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.stock .bar{background:#e3e8e5;height:10px;position:relative}.stock .bar i{position:absolute;top:0;left:0}.stock .bar i.now{background:var(--blue);z-index:1}.stock .bar i.after{background:#8fa6cc}.stock .bar i.after.over{background:#c2412b}.note{border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.45}.note.info{color:#1c3f7a;background:#eef3fc}.note.warn{color:#6b4000;background:#fff1dc}.note.danger{color:#8a2414;background:#fde4df}#store-body{flex-direction:column;gap:12px;display:flex}.stock .meter{color:var(--paper-muted)}.stock .meter span:last-child{color:var(--paper-ink);font-weight:600}.term{font:inherit;color:inherit;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;-webkit-text-decoration-color:color-mix(in srgb, currentColor 45%, transparent);text-decoration-color:color-mix(in srgb, currentColor 45%, transparent);text-underline-offset:3px;background:0 0;border:0;padding:0}.term:hover,.term:focus-visible{text-decoration-style:solid;text-decoration-color:currentColor}.term-pop{z-index:40;color:#eef4f2;pointer-events:none;background:#142028;border-radius:12px;width:min(300px,100vw - 16px);padding:12px 14px;font-size:13px;line-height:1.45;position:fixed;box-shadow:0 14px 34px #00000059}.term-pop b{margin-bottom:4px;font-size:14px;font-weight:600;display:block}.term-pop p{margin:0 0 6px}.term-pop .why{color:#a9dccb;margin:0}.flow{background:#f2f5f3;border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:10px;font-size:12px;display:flex}.flow-src{color:var(--paper-muted)}.flow-arrow{color:var(--paper-muted);white-space:nowrap}.flow-chem{border-radius:99px;padding:3px 8px;font-weight:600}.flow-chem.ammonia{background:#eef0c7}.flow-chem.nitrite{background:#efdcf0}.flow-chem.nitrate{background:#f8e2c9}.flow-chem.hot{outline:2px solid #c2412b;animation:1.6s ease-in-out infinite flow-pulse}@keyframes flow-pulse{50%{outline-color:#c2412b40}}@media (prefers-reduced-motion:reduce){.flow-chem.hot{animation:none}}.log-tiles{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.log-tile{background:#fff;border:1px solid #e1e5e3;border-radius:12px;flex-direction:column;gap:2px;padding:10px;display:flex}.log-tile b{font-size:20px;font-weight:600}.log-tile span{color:var(--paper-muted);font-size:11px;line-height:1.3}.log-charts{flex-direction:column;gap:10px;padding:12px 16px;display:flex;position:relative}.log-charts-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.seg.light{background:#eef1ef}.seg.light button{color:var(--paper-ink);white-space:nowrap;height:30px;padding:0 10px}.seg.light button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0000001f}.log-panel{flex-direction:column;gap:4px;display:flex}.log-panel-head{justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;font-weight:500;display:flex}.log-panel-head small{color:var(--paper-muted);font-weight:400}.log-legend{color:var(--paper-muted);gap:10px;font-size:12px;font-weight:400;display:flex}.log-legend i{vertical-align:middle;border-radius:2px;width:10px;height:3px;margin-right:4px;display:inline-block}.log-plot{cursor:crosshair;touch-action:pan-y}.log-plot svg{display:block;overflow:visible}.log-limit{fill:var(--paper-muted);font-size:10px}.log-axis{height:14px;color:var(--paper-muted);font-size:11px;position:relative}.log-axis span{white-space:nowrap;position:absolute;transform:translate(-50%)}.log-key{color:var(--paper-muted);gap:14px;font-size:11px;display:flex}.log-key i{vertical-align:middle;width:2px;height:10px;margin-right:5px;display:inline-block}.log-key i.wc{background:#2a62c9}.log-key i.loss{background:repeating-linear-gradient(#8a2414 0 2px,#0000 2px 5px);width:1px}.log-when{color:var(--paper-muted);margin-top:2px;font:500 12px IBM Plex Mono,ui-monospace,monospace;display:block}.log-legend b{color:var(--paper-ink);font-variant-numeric:tabular-nums;font-weight:600}.log-empty{color:var(--paper-muted);margin:0;font-size:13px}.log-journal{flex-direction:column;gap:8px;display:flex}.log-journal ol{margin:0;padding:0;list-style:none}.log-entry{border-bottom:1px solid #e7ebe9;grid-template-columns:58px 22px 1fr;align-items:start;gap:6px;padding:9px 0;font-size:14px;line-height:1.4;display:grid}.log-day{color:var(--paper-muted);padding-top:3px;font:500 11px IBM Plex Mono,ui-monospace,monospace}.log-icon{background:#e7ebe9;border-radius:50%;place-items:center;width:20px;height:20px;font-size:12px;display:grid}.log-entry.good .log-icon{color:#1f7a5a;background:#d9f0e3}.log-entry.loss .log-icon{color:#8a2414;background:#fde4df}.log-text small{color:var(--paper-muted);margin-top:3px;font-size:12px;display:block}@media (width<=640px){.log-tiles{grid-template-columns:repeat(2,1fr)}}.tank-name{color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-bottom:1px dashed #0000;padding:0}.tank-name:hover{border-bottom-color:#ffffff80}.tank-name:after{content:"";vertical-align:.15em;opacity:.6;background:currentColor;width:.55em;height:.55em;margin-left:.35em;display:inline-block;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E") 50%/contain no-repeat}body.scaping .dock,body.scaping .left-col,body.scaping .pill{display:none}.scape{left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));background:var(--paper);width:min(760px,100vw - 24px);max-height:46vh;color:var(--paper-ink);border:0;border-radius:22px;flex-direction:column;gap:10px;padding:14px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 20px 50px #00000059}.scape .muted{color:var(--paper-muted);font-size:12px}.scape-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.scape-stats{margin-top:2px;font-size:13px}.scape-stats .plant-bar{vertical-align:middle;background:#e3e8e5;border-radius:9px;width:70px;height:6px;margin:0 6px;display:inline-block;overflow:hidden}.scape-stats .plant-bar i{background:#2e8a55;height:100%;display:block}.done-btn{background:var(--blue);color:#fff;border:0;border-radius:12px;height:40px;padding:0 22px;font-size:15px;font-weight:600}.scape-tabs{overflow-x:auto}.scape-tabs button{flex:1 0 auto}.scape-body{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;padding-bottom:2px;display:grid;overflow-y:auto}.scape-item{text-align:left;color:var(--paper-ink);background:#fff;border:1.5px solid #e1e5e3;border-radius:14px;flex-direction:column;gap:4px;padding:10px;font-size:12px;display:flex}.scape-item:hover{border-color:#9bb3d9}.scape-item[aria-pressed=true]{border-color:var(--blue);background:#eef3fc}.scape-item img{object-fit:contain;width:100%;height:46px}.scape-item .swatch{border-radius:8px;height:40px}.scape-item b{font-size:13px;font-weight:600}.scape-item span{color:var(--paper-muted);line-height:1.35}.scape-item .tag{color:#2e6b45;font-weight:600}.scape-item .tag.low{color:var(--paper-muted);font-weight:500}.scape-cutting{color:#24583a;background:#f0f7f1;border:1px dashed #5d8f6c;border-radius:9px;margin-top:2px;padding:6px 8px;font-size:12px;font-weight:600}.scape-hint{color:var(--paper-muted);grid-column:1/-1;font-size:12px}.scape-picked{background:#fff7e6;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;font-size:13px;display:flex}.scape-picked b{margin-right:auto;font-weight:600}.scape-picked button{height:34px;color:var(--paper-ink);background:#fff;border:1px solid #d9cfb8;border-radius:10px;padding:0 12px;font-size:13px}.scape-picked button.danger{color:#a3271a;border-color:#e6b8b0}.scape-picked .hint{color:var(--paper-muted);flex-basis:100%;font-size:12px}.field{flex-direction:column;gap:6px;font-size:13px;display:flex}.field>span{font-weight:600}.field input[type=text]{height:44px;font:inherit;color:var(--paper-ink);background:#fff;border:1px solid #c9d2ce;border-radius:12px;padding:0 12px;font-size:15px}.field small{color:var(--paper-muted);line-height:1.4}.row-btns{gap:8px;display:flex}.row-btns .wide-btn{flex:1}.setup{flex-direction:column;gap:14px;display:flex}.setup .seg.light{flex-wrap:wrap}.warn-box{color:#7a2216;background:#fde9e4;border-radius:12px;padding:12px;font-size:13px;line-height:1.45}.wide-btn.danger{background:#b8442a}.settings-section{border-top:1px solid #e1e5e3;flex-direction:column;gap:10px;padding-top:14px;display:flex}.settings-section h3{margin:0;font-size:16px;font-weight:600}.settings-section p{color:var(--paper-muted);margin:0;font-size:13px;line-height:1.45}.welcome{z-index:40}.welcome .ghost-btn{flex:1}.milestones{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;display:grid}.milestone{background:#fff;border:1px solid #e1e5e3;border-radius:12px;align-items:flex-start;gap:8px;padding:8px 10px;font-size:12px;display:flex}.milestone i{color:#8a9893;background:#e7ebe9;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;font-style:normal;display:flex}.milestone.got i{color:#fff;background:#2e8a55}.milestone b{font-size:13px;font-weight:600;display:block}.milestone span{color:var(--paper-muted);line-height:1.35}.milestone:not(.got) b{color:var(--paper-muted)}@media (width<=640px){.scape{max-height:52vh;padding:12px}.scape-body{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.dock{gap:2px;padding:6px}}body.scaping .toast{bottom:auto;top:calc(96px + env(safe-area-inset-top,0px))}.scape>*{flex-shrink:0}.scape>.scape-body{flex:auto;min-height:0}.tank-name{overflow-wrap:anywhere;max-width:100%}.dock-btn .short{display:none}@media (width<=640px){.dock-btn .long{display:none}.dock-btn .short{display:inline}.dock-btn.primary{flex:1.45}}#term-pop .learn{margin-top:6px}#term-pop .learn a{color:inherit;font-weight:600;text-decoration:underline}
