:root{--bg: #f5f4fa;--bg-glow: #fbe4e3;--surface: #ffffff;--text: #1e2d4b;--muted: #5a6384;--accent: #2f5287;--accent-strong: #243f6a;--accent-soft: #e7eaf6;--on-accent: #ffffff;--sunset: linear-gradient(180deg, #f4aead, #baadcd);--help-bg: #f4aead;--help-text: #1e2d4b;--border: #dfe2f0;--danger: #a4343a;--shadow: 0 8px 28px rgba(47, 82, 135, .1);--radius: 20px;--font-title: "Lora", Georgia, serif;--font-body: "Nunito", system-ui, -apple-system, sans-serif;--topbar-h: 64px;--tabbar-h: 64px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #121b2e;--bg-glow: #243758;--surface: #1b2842;--text: #eef0f8;--muted: #a9b1cb;--accent: #f4aead;--accent-strong: #f8c4c3;--accent-soft: #2a3a5c;--on-accent: #1b2540;--help-bg: #f4aead;--help-text: #1b2540;--border: #2c3b5a;--danger: #ff9ba0;--shadow: 0 8px 28px rgba(0, 0, 0, .35);color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;min-height:100dvh;font-family:var(--font-body);font-size:1.0625rem;line-height:1.55;color:var(--text);background:radial-gradient(circle at 50% 0%,var(--bg-glow),var(--bg) 55%) fixed;background-color:var(--bg);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:8px}h1:focus{outline:none}.skip-link{position:absolute;left:12px;top:-60px;z-index:50;padding:10px 16px;border-radius:12px;background:var(--accent);color:var(--on-accent);font-weight:700}.skip-link:focus{top:12px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--topbar-h);padding:calc(10px + env(safe-area-inset-top)) max(16px,calc((100% - 560px)/2 + 16px)) 10px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;color:var(--accent-strong);text-decoration:none}.brand img{flex-shrink:0}.brand-name{font-family:var(--font-title);font-weight:600;font-size:1.1rem;white-space:nowrap}.help-btn{flex-shrink:0;min-height:44px;padding:8px 14px;border:0;border-radius:999px;background:var(--help-bg);color:var(--help-text);font-weight:800;font-size:.9rem;line-height:1.2;box-shadow:0 2px 10px #c25c442e}.save-alert{margin:0;padding:10px 16px;background:#fde8e6;color:#7a2530;font-size:.92rem;font-weight:700;text-align:center}@media(prefers-color-scheme:dark){.save-alert{background:#4a2530;color:#ffd9dc}}.main{max-width:560px;margin:0 auto;padding:24px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom))}.eyebrow{margin:0 0 6px;color:var(--muted);font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.page-title,.step-title{margin:0 0 10px;font-family:var(--font-title);font-weight:600;font-size:clamp(1.6rem,6.5vw,2rem);line-height:1.2;color:var(--text);text-wrap:balance}.page-lead{margin:0 0 24px;color:var(--muted);font-size:1.05rem}.section-title{margin:28px 0 12px;font-family:var(--font-title);font-weight:600;font-size:1.2rem}.lead{margin:0 0 16px;font-size:1.08rem}.muted{color:var(--muted)}.privacy{margin:16px 0 0;color:var(--muted);font-size:.9rem}.disclaimer{margin:28px 0 0;color:var(--muted);font-size:.88rem;text-align:center}.welcome{margin:0 0 18px;padding:14px 18px;border-left:4px solid #f4aead;border-radius:14px;background:var(--surface);font-family:var(--font-title);font-size:1.08rem;line-height:1.45;color:var(--accent-strong);animation:welcome-in .5s ease both}.welcome strong{font-weight:600}@keyframes welcome-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.cards{display:grid;gap:12px;margin:0;padding:0;list-style:none}.card{display:flex;flex-direction:column;gap:4px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);color:var(--text);text-decoration:none;transition:transform .15s,border-color .2s}.card:hover{border-color:var(--accent)}.card:active{transform:scale(.99)}.card-title{font-family:var(--font-title);font-weight:600;font-size:1.2rem;color:var(--accent-strong)}.card-summary{color:var(--muted);font-size:.98rem}.card-meta{margin-top:4px;color:var(--muted);font-size:.82rem;font-weight:700}@media(min-width:560px){.cards{grid-template-columns:1fr 1fr}}.flow-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.flow-top .eyebrow{margin:0}.progress{height:6px;margin:14px 0 6px;border-radius:999px;background:var(--accent-soft);overflow:hidden}.progress span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .3s ease}.step-count{margin:0 0 18px;color:var(--muted);font-size:.85rem;font-weight:700}.step-body{display:flex;flex-direction:column;gap:4px}.flow-nav{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:28px}.hint{margin:10px 0 0;color:var(--muted);font-size:.9rem;text-align:right}.save-box{display:flex;flex-direction:column;gap:10px;align-items:flex-start;margin-top:24px;padding:16px 18px;border-radius:var(--radius);background:var(--accent-soft)}.save-box p{margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:1px solid transparent;border-radius:14px;font-weight:800;text-decoration:none;transition:background .2s,transform .1s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:not(:disabled):hover{background:var(--accent-strong)}.btn-ghost{border-color:var(--border);background:var(--surface);color:var(--text)}.btn-soft{border-color:var(--border);background:var(--surface);color:var(--accent-strong)}.btn-danger{background:var(--danger);color:#fff}.btn-link{min-height:44px;padding:0;border:0;background:none;color:var(--muted);text-decoration:underline;font-weight:700}.btn-block{width:100%}.row{display:flex;gap:10px;flex-wrap:wrap}.row-center{display:flex;justify-content:center;gap:10px}.links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.fav-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--accent-strong);font-weight:700}.fav-btn.is-compact{justify-content:center;width:44px;padding:0;flex-shrink:0}.fav-btn.is-saved{border-color:var(--accent);background:var(--accent-soft)}.choice{display:flex;flex-direction:column;gap:10px;margin:0 0 12px;padding:0;border:0}.choice-legend{margin-bottom:10px;padding:0;font-weight:800}.choice-option{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 16px;border:1.5px solid var(--border);border-radius:16px;background:var(--surface);cursor:pointer;transition:border-color .2s,background .2s}.choice-option:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}.choice-option.is-selected{border-color:var(--accent);background:var(--accent-soft)}.choice-option input{flex-shrink:0;width:22px;height:22px;margin:0;accent-color:var(--accent)}.choice-option input:focus-visible{outline:none}.choice-text{display:flex;flex-direction:column}.choice-label{font-weight:700}.choice-hint{color:var(--muted);font-size:.88rem}.scale{padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.scale-label{display:block;font-weight:800}.scale-value{margin:8px 0;font-family:var(--font-title);font-size:3rem;font-weight:600;line-height:1;text-align:center;color:var(--accent-strong)}.scale-value span{font-size:1.2rem;color:var(--muted)}.scale-row{display:flex;align-items:center;gap:12px}.scale-row input{flex:1;height:44px;accent-color:var(--accent)}.scale-step{flex-shrink:0;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);font-size:1.4rem;font-weight:700;line-height:1}.scale-ends{display:flex;justify-content:space-between;margin-top:4px;color:var(--muted);font-size:.85rem}.field{margin-bottom:16px}.field-label{display:block;margin-bottom:4px;font-weight:800}.field-hint{margin:0 0 8px;color:var(--muted);font-size:.9rem}.field textarea,.field input{display:block;width:100%;min-height:48px;padding:12px 14px;border:1.5px solid var(--border);border-radius:14px;background:var(--surface);font-size:1rem;line-height:1.5;resize:vertical}.field textarea:focus,.field input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}.field ::placeholder{color:var(--muted);opacity:.8}.note{margin:8px 0 12px;padding:14px 16px;border-left:4px solid #f4aead;border-radius:12px;background:var(--surface)}.note p{margin:0 0 8px}.note p:last-child{margin-bottom:0}.note-calm{border-left-color:var(--accent)}.note-title{font-weight:800}.pre{white-space:pre-line}.panel{margin:12px 0;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.panel p{margin-top:0}.quote{margin:8px 0 12px;padding:14px 16px;border-radius:14px;background:var(--accent-soft);font-family:var(--font-title);font-size:1.08rem;line-height:1.5}.steps-list{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;padding-left:22px}.copy{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.copy-status{color:var(--muted);font-size:.9rem}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--accent-strong);font-weight:600;text-align:left}.breathing{padding:20px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:center}.breath-stage{position:relative;display:grid;place-items:center;width:200px;height:200px;margin:0 auto 12px}.breath-circle{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 35%,#f4aead,#baadcd 70%);opacity:.9;transition:transform .1s linear}.breath-count{position:relative;font-family:var(--font-title);font-size:2.2rem;font-weight:600;color:#1e2d4b}.breath-status{margin:0;font-family:var(--font-title);font-size:1.4rem;font-weight:600}.breath-cycle{margin:4px 0 16px;color:var(--muted);font-size:.9rem}.timer{padding:16px;text-align:center}.timer-display{margin:0;font-family:var(--font-title);font-size:3rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--accent-strong)}.timer-status{min-height:1.5em;margin:4px 0 12px;font-weight:700}.grounding{display:flex;flex-direction:column;align-items:center;padding:20px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:center}.dots{display:flex;gap:8px;margin:0 0 8px;padding:0;list-style:none}.dots li{width:10px;height:10px;border-radius:50%;background:var(--accent-soft)}.dots .is-done{background:#baadcd}.dots .is-current{background:var(--accent)}.grounding-number{margin:0;font-family:var(--font-title);font-size:3.4rem;font-weight:600;line-height:1.1;color:var(--accent-strong)}.grounding-prompt{margin:4px 0;font-size:1.15rem}.grounding-hint{margin:0 0 16px;color:var(--muted)}.main-access{padding-bottom:calc(32px + env(safe-area-inset-bottom))}.access{max-width:420px;margin:12px auto 0;text-align:center}.access-logo{display:block;margin:0 auto 14px}.access-form{margin-top:8px;text-align:left}.access-form input{font-size:1.15rem;letter-spacing:.08em;text-align:center;text-transform:uppercase}.access-form input::placeholder{letter-spacing:.08em}.access-form .btn+.btn{margin-top:10px}.access-notice{min-height:1.4em;margin:-4px 0 14px;color:#8a3b3f;font-weight:700;text-align:center}.access-notice:empty{min-height:0;margin:0 0 8px}@media(prefers-color-scheme:dark){.access-notice{color:#ffb4b8}}.logout{margin-top:16px;text-align:center}.logout-confirm{padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:left}.logout-confirm p{margin:0 0 12px}.logout-confirm .row .btn{flex:1}.logout-erase{display:block;margin:12px auto 0;font-size:.92rem}.tool-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.tool-row{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.tool-link{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;color:var(--text);text-decoration:none}.empty{margin:0;padding:18px;border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted)}.danger-zone{margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}.danger-zone p{margin:0 0 12px}.tabbar{position:fixed;right:0;bottom:0;left:0;z-index:20;display:flex;justify-content:center;gap:4px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--border)}.tab{display:flex;flex:1;flex-direction:column;align-items:center;gap:2px;max-width:140px;min-height:52px;padding:6px 0;border-radius:14px;color:var(--muted);font-size:.8rem;font-weight:700;text-decoration:none}.tab.is-active{background:var(--accent-soft);color:var(--accent-strong)}.help-dialog{width:min(92vw,440px);max-height:calc(100dvh - 32px);padding:20px 20px 24px;border:0;border-radius:24px;background:var(--bg);color:var(--text);box-shadow:0 20px 60px #0000004d;overflow-y:auto;overscroll-behavior:contain}.help-dialog::backdrop{background:#121b2e8c}.help-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.help-head h2{margin:0;font-family:var(--font-title);font-weight:600;font-size:1.45rem;color:var(--accent-strong)}.icon-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text)}.help-section{padding:18px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}.help-section+.help-section{margin-top:12px}.help-section h3{margin:0 0 10px;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.help-section .muted{margin:0 0 14px}.help-urgent{border:1.5px solid #f4aead;border-left-width:6px;background:#fdf0ef}.help-urgent h3{color:#8a3b3f}.help-urgent p{margin:0;font-size:1.02rem;line-height:1.6;color:#1e2d4b}@media(prefers-color-scheme:dark){.help-urgent{background:#33253a}.help-urgent h3{color:#f8c4c3}.help-urgent p{color:#eef0f8}}.contact-name{margin:0;font-family:var(--font-title);font-weight:600;font-size:1.3rem}.contact-phone{margin:2px 0 14px;color:var(--muted);font-variant-numeric:tabular-nums}.contact-actions{display:grid;gap:10px}.contact-form .field input{min-height:48px}.form-error{min-height:1.4em;margin:-6px 0 10px;color:#8a3b3f;font-weight:700;font-size:.92rem}.form-error:empty{min-height:0;margin:0}@media(prefers-color-scheme:dark){.form-error{color:#ffb4b8}}.contact-form .row .btn{flex:1}@media(max-height:720px){.help-dialog{max-height:calc(100dvh - 16px);padding:14px 14px 16px}.help-head{margin-bottom:8px}.help-head h2{font-size:1.25rem}.help-section{padding:12px 14px}.help-section+.help-section{margin-top:8px}.help-section h3{margin-bottom:6px}.contact-name{font-size:1.1rem}.contact-phone{margin-bottom:8px}.contact-actions{gap:6px}.contact-actions .btn{min-height:44px}.help-urgent p{font-size:.95rem;line-height:1.45}}@media(max-width:359px){.brand-name{font-size:1rem}.help-btn{max-width:130px;white-space:normal}}
