:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#edf4f7;background:#0a101a;font-synthesis:none;--border:#273440;--muted:#8a9aa9;--aqua:#7ce5d6;--surface:#111c28}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 70% 45% at 90% 0%,#14334755,transparent 75%),radial-gradient(ellipse 45% 35% at 0% 45%,#11263a77,transparent 85%),#0a101a}button,input{font:inherit}button{cursor:pointer}button:focus-visible,[tabindex]:focus-visible,input:focus-visible{outline:2px solid var(--aqua);outline-offset:3px}[hidden]{display:none!important}
.grain{pointer-events:none;position:fixed;inset:0;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");z-index:3}.shell{max-width:1240px;margin:auto;padding:0 37px}.topbar{height:100px;border-bottom:1px solid #20303c;display:flex;align-items:center;justify-content:space-between}.branding{display:flex;align-items:center;gap:15px}.brand-glyph{width:35px;height:35px;display:flex;align-items:center;gap:3px;transform:skewY(-12deg)}.brand-glyph span{display:block;width:5px;border-radius:8px;background:#75cbd0}.brand-glyph span:nth-child(1){height:12px;background:#608ac8}.brand-glyph span:nth-child(2){height:24px;background:#6bb9d1}.brand-glyph span:nth-child(3){height:34px;background:#81dac2}.brand-glyph span:nth-child(4){height:24px;background:#d6cf9e}.brand-glyph span:nth-child(5){height:12px;background:#c58b91}.brand-name{font-size:17px;font-weight:750;letter-spacing:.18em;line-height:1.2}.brand-name span{font-size:10px;letter-spacing:.2em;color:var(--aqua);margin-left:4px;font-weight:650}.brand-sub{font-size:9px;letter-spacing:.28em;color:#718696;margin-top:6px;font-weight:700}.top-right{font-size:10px;letter-spacing:.14em;color:#9bb4c0;display:flex;align-items:center;gap:9px;font-weight:650}.top-right .version{color:#567182}.live-dot{width:7px;height:7px;background:#7de4c3;border-radius:50%;box-shadow:0 0 14px #7de4c390}.intro{padding:52px 0 35px;max-width:700px}.eyebrow,.micro{font-size:10px;font-weight:750;letter-spacing:.19em;color:#9bb6c2}.eyebrow{display:flex;align-items:center;gap:12px}.line{width:23px;height:1px;background:#83dbd5}h1{font-size:clamp(39px,5.4vw,64px);font-weight:670;letter-spacing:-.065em;line-height:1.1;margin:15px 0 17px}h1 em{font-style:normal;color:#83d5d2}.intro p{font-size:14px;line-height:1.7;max-width:520px;color:#92a4b0;margin:0}.workspace{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(300px,1fr);gap:22px;align-items:start}.surface{background:linear-gradient(160deg,#152432f5,#101a26f5 65%);border:1px solid #273542;border-radius:16px;box-shadow:0 18px 42px #02070d2b}.main-panel{padding:30px 33px 24px}.section-top,.aside-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.micro span{color:#57717e}.main-panel h2,.sidebar h2{font-size:23px;font-weight:640;letter-spacing:-.035em;margin:8px 0 0}.decor-wave{height:33px;display:flex;align-items:center;gap:4px;opacity:.85}.decor-wave span{width:3px;background:#5cb6b4;border-radius:3px;height:6px}.decor-wave span:nth-child(2),.decor-wave span:nth-child(6){height:14px}.decor-wave span:nth-child(3),.decor-wave span:nth-child(5){height:24px}.decor-wave span:nth-child(4){height:32px;background:#8ee7cb}.step-header{display:flex;align-items:center;gap:12px;margin:32px 0 14px;font-size:13px;font-weight:650}.step-number{display:flex;align-items:center;justify-content:center;background:#28413f;border:1px solid #3c635f;color:#91e9d9;border-radius:6px;font-size:10px;height:25px;width:27px}.step-trail{margin-left:auto;font-size:10px;color:#657e8c;letter-spacing:.08em;font-weight:650}.dropzone{position:relative;overflow:hidden;height:215px;border:1px dashed #426073;border-radius:11px;background:radial-gradient(ellipse at 50% 30%,#1a3f4966,transparent 72%),#0b1824;display:grid;place-items:center;transition:border-color .2s,background .2s}.dropzone:hover,.dropzone.dragover{border-color:#75d5cf;background:#14303b}.dropzone:focus-visible{outline-offset:4px}.drop-empty{text-align:center;display:flex;align-items:center;flex-direction:column;padding:20px;gap:8px}.camera-symbol{width:60px;height:60px;border-radius:50%;background:linear-gradient(140deg,#254c57,#17303e);border:1px solid #466d70;color:#97e1dc;display:grid;place-items:center;margin-bottom:11px}.drop-empty strong{font-size:14px;font-weight:640}.drop-empty>span{font-size:12px;color:#849caa}.dropzone img{display:block;width:100%;height:100%;object-fit:contain;background:#09131d}.sample-overlay{position:absolute;bottom:0;left:0;right:0;padding:12px 14px;background:linear-gradient(transparent,#08141bf2);display:flex;justify-content:space-between;align-items:end;font-size:11px;gap:10px;color:#d9edef}.sample-overlay span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sample-overlay span:last-child{color:#90e7db;font-weight:750;font-size:9px;white-space:nowrap;letter-spacing:.09em}.hidden-input{display:none}.photo-actions{display:flex;gap:10px;margin-top:12px}.ghost-btn{flex:1;border:1px solid #2e4856;color:#b7d2d8;background:#172837;border-radius:8px;padding:11px 10px;font-size:12px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:8px}.ghost-btn:hover,.outline-btn:hover{background:#21404c;color:#ecffff}.ghost-btn svg,.primary-btn svg{width:17px;height:17px}.step-test{margin-top:30px}.test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.test-chip{min-height:45px;border:1px solid #2d4050;background:#152433;color:#b9ccd2;border-radius:8px;font-size:12px;font-weight:590;display:flex;align-items:center;gap:9px;padding:10px 13px;text-align:left;transition:all .18s}.test-chip.selected{background:#24413f;border-color:#5bada6;color:#e4faf5;box-shadow:inset 0 0 0 1px #3b7f77}.test-chip:hover{border-color:#5e817f}.test-dot{flex-shrink:0;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px #ffffff0b}.test-dot.ammonia{background:#b4d171}.test-dot.nitrite{background:#b593d8}.test-dot.nitrate{background:#e29e6a}.test-dot.ph{background:#5fbdd7}.test-dot.ph-high{background:#db9d86}.primary-btn{width:100%;border:none;margin-top:23px;min-height:56px;padding:16px 18px;border-radius:9px;background:linear-gradient(105deg,#86e2cf,#65d1ce);color:#09252c;box-shadow:0 8px 30px #66d2cb21;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:760;font-size:14px}.primary-btn:hover:not(:disabled){filter:brightness(1.06)}.primary-btn:disabled{cursor:not-allowed;opacity:.43;box-shadow:none}.primary-btn .arrow{margin-left:auto;font-size:21px;line-height:1}.primary-btn svg{margin-left:auto}.primary-btn.loading{opacity:.85}.privacy{font-size:10px;color:#738998;line-height:1.5;display:flex;gap:8px;align-items:flex-start;margin:14px 0 0}.privacy-dot{flex:none;display:inline-block;width:6px;height:6px;background:#508982;border-radius:50%;margin-top:4px}
.sidebar{display:grid;gap:18px}.result-panel{padding:26px;min-height:341px}.sidebar h2{font-size:21px}.small-tag,.status-pill{font-size:9px;letter-spacing:.08em;font-weight:730;white-space:nowrap;color:#8d9eac;background:#23313f;border-radius:4px;padding:7px 9px}.small-tag.ok,.status-pill.ok{color:#9aefcc;background:#1b403b}.small-tag.warn,.status-pill.warn{color:#ffd4a4;background:#493529}.result-empty{text-align:center;padding:31px 0 9px}.orb-wrap{position:relative;width:112px;height:112px;margin:0 auto 20px;display:grid;place-items:center}.orb{width:73px;height:73px;border-radius:50%;background:radial-gradient(circle at 33% 25%,#89dfd4aa,#2f848e70 35%,#153c51 80%);box-shadow:0 0 40px #3bada33b;position:relative;z-index:1}.orb:after{content:"";position:absolute;inset:10px;border-radius:50%;border:1px solid #ffffff2b}.orb-ring{position:absolute;border:1px solid #44727c67;border-radius:50%;inset:0}.orb-ring.two{inset:12px;border-color:#4b8d9365}.result-empty p{margin:0 0 8px;font-weight:630;font-size:14px}.result-empty span{color:#849aab;font-size:12px}.result-content{padding-top:24px}.reading-label{text-transform:uppercase;color:#a7d8d2;font-size:11px;letter-spacing:.16em;font-weight:750}.reading-row{display:flex;align-items:baseline;gap:10px;margin:5px 0}.reading-number{font-size:69px;line-height:1.25;letter-spacing:-.08em;font-weight:670;color:#c6f9e9}.reading-number.unclear{font-size:33px;letter-spacing:-.035em;line-height:1.45;color:#f0d2a8}.reading-unit{font-size:19px;color:#8bc2b8;font-weight:630}.reading-caption{color:#7d9d9d;font-size:9px;letter-spacing:.14em;font-weight:760}.reading-scale{display:flex;gap:4px;margin-top:24px;align-items:center}.scale-tick{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;align-items:center;font-size:10px;color:#829aa6}.scale-tick::before{content:"";height:4px;background:#37515b;border-radius:8px;width:100%}.scale-tick.active{color:#b6f1db;font-weight:790}.scale-tick.active::before{background:#84e7cf;box-shadow:0 0 12px #84e7cf88;height:6px;margin-top:-2px}.reading-note{border-top:1px solid #2b3e4b;padding-top:14px;color:#a2b7bd;font-size:12px;line-height:1.6;margin-top:19px}.reading-time{font-size:10px;color:#617c8b;margin-top:13px}.reference-panel{padding:25px 26px}.reference-panel h2{margin-top:11px}.reference-panel>p{font-size:12px;line-height:1.7;color:#869eab;margin:10px 0 18px}.reference-marker{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #2c4351;border-radius:9px;background:#0c1b26}.mini-spectrum{width:40px;height:36px;display:flex;overflow:hidden;border-radius:4px;border:1px solid #49616d}.mini-spectrum i{flex:1}.mini-spectrum i:nth-child(1){background:#dfc56d}.mini-spectrum i:nth-child(2){background:#b9c781}.mini-spectrum i:nth-child(3){background:#6bc9b7}.mini-spectrum i:nth-child(4){background:#4a9bd0}.mini-spectrum i:nth-child(5){background:#ad83c8}.reference-marker strong{display:block;font-size:11px;font-weight:700;color:#d9e6e8}.reference-marker small{display:block;font-size:10px;color:#7f99a7;margin-top:4px}.outline-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:1px solid #3c7b79;background:#1b393f;color:#93e6d3;border-radius:8px;margin-top:15px;padding:12px 13px;font-size:12px;font-weight:680}.outline-btn span{font-size:15px}.reference-panel .tiny-note{margin:11px 0 0;color:#65808f;font-size:10px}.pin-panel{padding:22px 26px}.pin-panel input{width:100%;padding:12px 13px;border:1px solid #41606a;background:#0d1a24;border-radius:8px;color:white;margin-top:11px}.pin-panel p{color:#7b98a4;margin:9px 0 0;font-size:11px}.notice{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:5;max-width:min(90vw,550px);background:#243d46;color:#e0fff8;border:1px solid #548a8a;border-radius:10px;padding:14px 18px;font-size:13px;box-shadow:0 14px 50px #0008}.notice.error{background:#4a2c31;border-color:#85505a;color:#ffe0dd}footer{display:flex;justify-content:space-between;gap:15px;margin:32px 0 28px;padding-top:20px;border-top:1px solid #23303c;color:#557383;font-weight:730;letter-spacing:.1em;font-size:9px}.footer-divider{margin:0 7px;color:#7fc8c9}
@media(max-width:850px){.shell{padding:0 24px}.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr}.pin-panel{grid-column:1/-1}.result-panel{min-height:310px}.reference-panel{min-height:310px}.intro{padding-top:38px}}
@media(max-width:600px){.shell{padding:0 16px}.topbar{height:73px}.brand-glyph{transform:scale(.8) skewY(-12deg);transform-origin:left center;width:28px}.branding{gap:9px}.brand-name{font-size:14px;letter-spacing:.12em}.brand-name span{font-size:9px}.top-right{font-size:9px}.intro{padding:35px 0 25px}.eyebrow{font-size:9px}.intro p{font-size:13px}.workspace{gap:15px}.main-panel{padding:23px 19px}.main-panel h2{font-size:21px}.dropzone{height:205px}.test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.test-chip{padding:11px;font-size:12px}.step-header{margin-top:29px}.step-trail{font-size:9px}.sidebar{grid-template-columns:1fr;gap:15px}.result-panel,.reference-panel{padding:23px}.result-panel{min-height:275px}.result-empty{padding:14px 0 4px}.photo-actions{gap:7px}.ghost-btn{font-size:11px}footer{font-size:8px;flex-wrap:wrap;line-height:1.6;margin-top:20px}.version{display:none}}
@media(prefers-reduced-motion:no-preference){.orb{animation:orbPulse 6s ease-in-out infinite}.orb-ring.one{animation:ringPulse 6s ease-in-out infinite}@keyframes orbPulse{50%{transform:scale(1.04);filter:brightness(1.12)}}@keyframes ringPulse{50%{transform:scale(1.08);opacity:.6}}}

/* Version 0.2 — automatic bottle-label identification */
.test-dot.auto { background: linear-gradient(135deg,#70e8bc,#49bcdb); box-shadow: 0 0 14px rgba(98,224,197,.38); }
.auto-chip { border-color: rgba(102,219,193,.42); }
.auto-hint { margin: 10px 0 14px; color: #9db4bf; font-size: .8rem; line-height: 1.6; }
.auto-hint strong { color: #cae9e2; font-weight: 600; }

.inline-access{padding:12px 0 16px;margin:0}.inline-access input{font-size:16px}.inline-access p{line-height:1.4}

.session-panel{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0 14px;font-size:12px;color:#9aefcc}.session-panel button{border:0;background:transparent;color:#9db4c1;text-decoration:underline;font-size:12px;padding:8px 0}.inline-access .outline-btn:disabled,.session-panel button:disabled{opacity:.5;cursor:wait}
