:root{--bg:#fff8f3;--surface:#fff;--text:#1f1a17;--muted:#6b625c;--border:#eaded5;--accent:#e5484d;--accent-press:#c93a3f;--accent-soft:#fde8e8;--ok:#1e8e4e;--ok-soft:#e3f5ea;--note:#a35a00;--note-soft:#fff1dc;--radius:20px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#181412;--surface:#24201d;--text:#f6efe9;--muted:#b3a9a2;--border:#3a332e;--accent:#ff6369;--accent-press:#e5484d;--accent-soft:#3d2224;--ok:#4cc77f;--ok-soft:#1c3326;--note:#ffb35c;--note-soft:#3a2b18;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;font-size:19px}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}button{font:inherit;color:inherit}h1{margin:.5rem 0 .75rem;font-size:1.75rem;line-height:1.2}h2{margin:0 0 .4rem;font-size:1.15rem}p{margin:0 0 .6rem}.screen{max-width:520px;min-height:100dvh;padding:max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));flex-direction:column;gap:1rem;margin:0 auto;display:flex}.spacer{flex:1}.center{text-align:center;align-self:center}.muted{color:var(--muted)}.small{font-size:.85rem}.lead{color:var(--muted);font-size:1.1rem}.fineprint{color:var(--muted);text-align:center;margin:0;font-size:.8rem}.btn{border-radius:var(--radius);cursor:pointer;border:none;width:100%;min-height:64px;font-size:1.15rem;font-weight:650;display:block}.btn-primary{background:var(--accent);color:#fff}.btn-primary:active{background:var(--accent-press)}.btn-primary:disabled{opacity:.4}.btn-secondary{background:var(--accent-soft);color:var(--accent);min-height:56px}.btn-ghost{color:var(--muted);background:0 0;min-height:56px}.link{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:.6rem;font-weight:600}.link.danger{color:var(--muted)}.back{color:var(--accent);cursor:pointer;background:0 0;border:none;align-self:flex-start;min-height:48px;padding:.5rem 0;font-size:1.1rem;font-weight:600}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;padding:1.1rem 1.2rem}.disclaimer p{font-size:.95rem}.brand{align-items:center;gap:.6rem;font-size:1.3rem;font-weight:700;display:flex}.brand img{border-radius:10px}.big-button{aspect-ratio:1.3;background:var(--accent);color:#fff;cursor:pointer;width:100%;max-height:320px;box-shadow:0 10px 30px -12px var(--accent);border:none;border-radius:32px;flex-direction:column;justify-content:center;align-items:center;gap:.6rem;font-size:1.5rem;font-weight:700;display:flex}.big-button:active{background:var(--accent-press);transform:scale(.99)}.big-heart{font-size:4.5rem;line-height:1;animation:1.1s ease-in-out infinite beat}.last{cursor:pointer;flex-direction:column;gap:.2rem;width:100%;display:flex}.last .link{align-self:flex-start;padding:0}.last-bpm{font-size:2rem;font-weight:750}.last-bpm small{color:var(--muted);font-size:.9rem;font-weight:500}.install-head{align-items:center;gap:.7rem;margin-bottom:.5rem;display:flex}.install-head img{border-radius:10px}.install-head h2{margin:0}.install .link{margin:.4rem auto 0;display:block}.steps{margin:0;padding-left:1.3rem}.steps li{margin-bottom:.4rem}.inline-icon{vertical-align:-3px;color:var(--accent)}.hero-icon{border-radius:20px;align-self:center;margin-top:1rem}.checkbox{cursor:pointer;align-items:center;gap:.8rem;padding:.6rem 0;font-size:1.05rem;font-weight:600;display:flex}.checkbox input{width:30px;height:30px;accent-color:var(--accent);flex-shrink:0}.tips{flex-direction:column;gap:.7rem;margin:0;padding:0;list-style:none;display:flex}.tips li{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:.9rem;padding:.9rem 1rem;font-size:1.1rem;display:flex}.tip-icon{font-size:1.6rem}.big-emoji{text-align:center;margin-top:1rem;font-size:4rem}.scan{gap:.8rem}.camera{aspect-ratio:3/4;background:#000;border-radius:28px;width:100%;max-height:58dvh;position:relative;overflow:hidden}.camera video{object-fit:cover;width:100%;height:100%;transform:scaleX(-1)}.oval{border:5px dashed #ffffffd9;border-radius:50%;width:62%;height:72%;transition:border-color .3s;position:absolute;top:47%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 999px #00000059}.oval-ok{border-style:solid;border-color:#4cd787}.status{text-align:center;min-height:2em;margin:0;font-size:1.35rem;font-weight:700}.status-ok{color:var(--ok)}.progress{background:var(--border);border-radius:999px;height:16px;overflow:hidden}.progress-bar{background:var(--accent);border-radius:999px;height:100%;transition:width .2s linear}.countdown{text-align:center;color:var(--muted);margin:0;font-size:1.1rem}.beat{color:var(--accent);animation:1s ease-in-out infinite beat;display:inline-block}@keyframes beat{0%,to{transform:scale(1)}15%{transform:scale(1.2)}30%{transform:scale(1)}}@media (prefers-reduced-motion:reduce){.beat,.big-heart{animation:none}}.eyebrow{text-align:center;color:var(--muted);margin:1.5rem 0 0;font-size:1.1rem}.bpm{flex-direction:column;align-items:center;display:flex}.bpm-number{color:var(--accent);font-size:6rem;font-weight:800;line-height:1}.bpm-unit{color:var(--muted);font-size:1.2rem}.insight-calm{background:var(--ok-soft);border-color:#0000}.insight-calm h2{color:var(--ok)}.insight-note{background:var(--note-soft);border-color:#0000}.insight-note h2{color:var(--note)}.comparison{margin:0;font-weight:600}.summary{flex-direction:column;gap:.1rem;display:flex}.history{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.history li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.95rem 1.2rem;display:flex}.history li:last-child{border-bottom:none}.history strong{font-size:1.3rem}.tiles{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;min-height:112px;padding:.8rem;font-size:1.05rem;font-weight:650;display:flex}.tile:active{background:var(--accent-soft)}.tile-icon{font-size:2.2rem;line-height:1}.breathing-card{align-items:flex-start;gap:.9rem;display:flex}.breathing-card p{margin:0}.breathing-icon{font-size:2rem;line-height:1.2}.center-card{text-align:center}.change{margin:0 0 .3rem;font-size:2.6rem;font-weight:800}.breathe{align-items:center;gap:.6rem}.thumb{border:4px solid var(--border);background:#000;border-radius:50%;flex-shrink:0;width:92px;height:92px;transition:border-color .3s;overflow:hidden}.thumb-ok{border-color:#4cd787}.thumb-off{display:none}.thumb video{object-fit:cover;width:100%;height:100%;transform:scaleX(-1)}.thumb-note{min-height:1.5em;margin:0}.breath-stage{flex:1;justify-content:center;align-items:center;width:100%;min-height:300px;display:flex;position:relative}.breath-circle{aspect-ratio:1;opacity:.9;background:radial-gradient(circle at 50% 40%,#8fd3c7,#3aa597);border-radius:50%;width:min(78vw,320px);animation:10s infinite breathe;position:absolute}@keyframes breathe{0%{animation-timing-function:ease-in-out;transform:scale(.5)}40%{animation-timing-function:ease-in-out;transform:scale(1)}to{transform:scale(.5)}}.breath-word{color:#fff;text-shadow:0 1px 6px #00000040;margin:0;font-size:1.7rem;font-weight:750;position:relative}.camera-short{aspect-ratio:4/3;max-height:34dvh}.status-warn{color:var(--note)}.tip-card{align-items:center;min-height:7.5rem;font-size:1.2rem;animation:.6s fade-in;display:flex}.tip-card p{margin:0}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.history li{gap:.8rem}.history-icon{text-align:center;width:1.8rem;font-size:1.4rem}.kind-heart{color:var(--accent)}.history-text{flex-direction:column;flex:1;display:flex}@media (prefers-reduced-motion:reduce){.breath-circle{animation-duration:10s}.tip-card{animation:none}}:root{--chart-line:#e5484d}@media (prefers-color-scheme:dark){:root{--chart-line:#f05a5f}}.chart{margin:0;padding:.9rem .8rem .6rem}.chart-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.3rem;padding:0 .3rem .4rem;display:flex}.chart-readout strong{font-size:1.3rem}.chart-svg{touch-action:pan-y;width:100%;height:auto;display:block;overflow:visible}.chart-grid{stroke:var(--border);stroke-width:1px}.chart-usual{stroke:var(--muted);stroke-width:1px;stroke-dasharray:4 4}.chart-hair{stroke:var(--muted);stroke-width:1px}.chart-label{fill:var(--muted);font-size:11px}.chart-line{fill:none;stroke:var(--chart-line);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.chart-dot{fill:var(--chart-line);stroke:var(--surface);stroke-width:2px;outline:none}.chart-dot-active{stroke-width:3px}.patterns{flex-direction:column;gap:.5rem;margin:0 0 .5rem;padding:0;list-style:none;display:flex}.icon-card{align-items:flex-start;gap:.9rem;display:flex}.icon-card p{margin:0}.card-icon{font-size:2rem;line-height:1.2}.tag-picker h2{margin-bottom:.6rem}.chips{grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:.4rem;display:grid}.chip{border:2px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;border-radius:16px;min-height:56px;padding:.5rem .7rem;font-size:1rem;font-weight:600}.chip-on{border-color:var(--accent);background:var(--accent-soft)}.tile-wide{flex-direction:row;grid-column:1/-1;gap:.7rem;min-height:72px}.tile-wide .tile-icon{font-size:1.8rem}.choice-grid{grid-template-columns:1fr 1fr;gap:.8rem;display:grid}.choice{text-align:center;min-height:120px}.pending{border:2px solid var(--accent)}.pending .btn{min-height:56px;margin-top:.4rem}.pending .link{margin:.3rem auto 0;display:block}.before-after{justify-content:center;align-items:center;gap:1.2rem;margin-top:.5rem;display:flex}.before-after>div{flex-direction:column;align-items:center;display:flex}.ba-number{color:var(--accent);font-size:4rem;font-weight:800;line-height:1}.ba-arrow{color:var(--muted);font-size:2.2rem}.eyebrow.left{text-align:left;margin:0}.chart-key{vertical-align:middle;border-top:1px dashed var(--muted);width:16px;display:inline-block}
