:root{--navy: #152640;--teal: #176b65;--cream: #f7f4ee;--white: #ffffff;--gold: #c7a66b;--grey: #687482;--bg: var(--cream);--surface: var(--white);--surface-2: #efebe3;--fg: var(--navy);--muted: #5d6976;--line: #e1dbd0;--accent: var(--teal);--accent-fg: #ffffff;--accent-soft: #dcebe8;--gold-soft: #f1e7d4;--danger: #a33b32;--focus: #0e5a8a;--shadow: 0 1px 2px rgb(21 38 64 / .06), 0 8px 24px rgb(21 38 64 / .06);--font-display: ui-serif, "Iowan Old Style", "New York", "Palatino Linotype", Georgia, serif;--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--radius: 18px;--radius-sm: 12px;--ease: cubic-bezier(.2, .7, .2, 1);--t: .26s;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0e1828;--surface: #16243a;--surface-2: #1c2d47;--fg: #f2eee6;--muted: #a5b0bd;--line: #2a3b55;--accent: #4fb0a6;--accent-fg: #0e1828;--accent-soft: #173b40;--gold: #d6b981;--gold-soft: #2d2a22;--danger: #e38b80;--focus: #8cc8f0;--shadow: none;color-scheme:dark}}:root[data-theme=dark]{--bg: #0e1828;--surface: #16243a;--surface-2: #1c2d47;--fg: #f2eee6;--muted: #a5b0bd;--line: #2a3b55;--accent: #4fb0a6;--accent-fg: #0e1828;--accent-soft: #173b40;--gold: #d6b981;--gold-soft: #2d2a22;--danger: #e38b80;--focus: #8cc8f0;--shadow: none;color-scheme:dark}:root[data-text=large]{font-size:112.5%}:root[data-text=xlarge]{font-size:125%}@media(prefers-reduced-motion:reduce){:root{--t: 0ms}}:root[data-motion=reduce]{--t: 0ms}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:1.0625rem;line-height:1.55;min-height:100dvh;-webkit-font-smoothing:antialiased}#root{min-height:100dvh;display:flex;flex-direction:column}button,input,textarea,select{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.shell{width:100%;max-width:520px;margin:0 auto;flex:1;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top,0px) + 16px) max(20px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 20px) max(20px,env(safe-area-inset-left,0px))}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.screen{flex:1;display:flex;flex-direction:column;gap:20px;padding-top:8px;animation:enter var(--t) var(--ease)}.screen>.grow{flex:1}.bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding-top:12px}@keyframes enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}h1,h2,h3{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;margin:0;line-height:1.2}h1{font-size:clamp(1.75rem,7vw,2.15rem)}h2{font-size:1.35rem}h3{font-size:1.1rem}p{margin:0}.lead{font-size:1.125rem;color:var(--fg)}.muted{color:var(--muted)}.small{font-size:.9rem}.eyebrow{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600}.stack{display:flex;flex-direction:column;gap:8px}.stack-lg{display:flex;flex-direction:column;gap:16px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.brand{display:flex;flex-direction:column;line-height:1.1}.brand b{font-family:var(--font-display);font-size:1.35rem;letter-spacing:.22em;font-weight:600}.brand span{font-size:.72rem;letter-spacing:.16em;color:var(--gold);font-weight:600;text-transform:uppercase}.brand.lg b{font-size:2.2rem}.brand.lg span{font-size:.85rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:14px 22px;width:100%;border-radius:var(--radius);border:1.5px solid transparent;background:var(--accent);color:var(--accent-fg);font-weight:650;font-size:1.05rem;cursor:pointer;transition:transform var(--t) var(--ease),background var(--t),opacity var(--t);text-align:center}.btn:active{transform:scale(.985)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.secondary{background:transparent;color:var(--fg);border-color:var(--line)}.btn.quiet{background:transparent;color:var(--accent);min-height:48px;border:0}.btn.danger{background:transparent;color:var(--danger);border-color:var(--danger)}.btn.hero{min-height:88px;font-size:1.08rem;letter-spacing:.06em;border-radius:24px;background:var(--navy);color:#fff;box-shadow:0 10px 30px #15264038,inset 0 0 0 1px #c7a66b8c}:root[data-theme=dark] .btn.hero{background:var(--accent);color:var(--accent-fg);box-shadow:none}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .btn.hero{background:var(--accent);color:var(--accent-fg);box-shadow:none}}.iconbtn{min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:12px;cursor:pointer;color:var(--muted);font-weight:600;padding:0 10px}.link{background:none;border:0;color:var(--accent);font-weight:600;cursor:pointer;padding:12px 4px;min-height:48px;text-decoration:underline;text-underline-offset:3px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.card.soft{background:var(--surface-2);box-shadow:none;border-color:transparent}.card.gold{background:var(--gold-soft);border-color:transparent;box-shadow:none}.navlinks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.navlinks button{min-height:64px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);font-size:.9rem;font-weight:600;cursor:pointer;padding:8px;line-height:1.25}.options{display:flex;flex-direction:column;gap:8px}.option{text-align:left;min-height:52px;padding:12px 16px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font-weight:550;display:flex;align-items:center;gap:12px;transition:border-color var(--t),background var(--t)}.option[aria-checked=true],.option[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.option .check{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);flex:none;display:grid;place-items:center}.option[aria-checked=true] .check,.option[aria-pressed=true] .check{border-color:var(--accent);background:var(--accent)}.option[aria-checked=true] .check:after,.option[aria-pressed=true] .check:after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent-fg)}.option .sub{display:block;font-weight:400;font-size:.9rem;color:var(--muted)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:44px;padding:8px 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;font-size:.95rem}.chip[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft)}.scale{display:grid;grid-template-columns:repeat(11,1fr);gap:4px}.scale button{min-height:48px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);font-weight:650;font-variant-numeric:tabular-nums;cursor:pointer;padding:0;font-size:.95rem}.scale button[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.scale-legend{display:flex;justify-content:space-between;font-size:.85rem;color:var(--muted)}@media(max-width:360px){.scale{grid-template-columns:repeat(6,1fr)}}.orb-wrap{display:grid;place-items:center;min-height:170px}.orb{position:relative;display:grid;place-items:center}.orb .ring{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:1.5px solid var(--gold);opacity:.55}.orb .core{border-radius:50%;background:radial-gradient(circle at 40% 35%,color-mix(in srgb,var(--accent) 55%,white),var(--accent));transition:width var(--t) var(--ease),height var(--t) var(--ease),opacity var(--t)}.orb .label{position:absolute;font-family:var(--font-display);font-size:1.6rem;font-weight:600;color:var(--fg)}.orb.breathing .core{animation:breathe 10s ease-in-out infinite}@keyframes breathe{0%,to{transform:scale(.82)}50%{transform:scale(1.05)}}:root[data-motion=reduce] .orb.breathing .core{animation:none}@media(prefers-reduced-motion:reduce){.orb.breathing .core{animation:none}}.breath{display:flex;flex-direction:column;align-items:center;gap:10px}.breath-circle{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);border:2px solid var(--accent);transform:scale(.72);transition:transform 5s ease-in-out}.breath-circle.in{transform:scale(1)}.breath-circle.free{animation:breathe 10s ease-in-out infinite;transform:none;transition:none}.breath-count{font-family:var(--font-display);font-size:2.6rem;font-weight:600;font-variant-numeric:tabular-nums}:root[data-motion=reduce] .breath-circle{transition:none;animation:none!important;transform:none}@media(prefers-reduced-motion:reduce){.breath-circle{transition:none;animation:none!important;transform:none}}.phrases{display:flex;flex-direction:column;gap:12px}.phrase{font-family:var(--font-display);font-size:1.2rem;line-height:1.45;animation:enter .6s var(--ease)}.phrase.dim{color:var(--muted)}.cmd-card{min-height:180px;display:flex;flex-direction:column;justify-content:center;gap:14px}.cmd-text{font-family:var(--font-display);font-size:1.3rem;line-height:1.5}.cmd-full p{font-family:var(--font-display);font-size:1.12rem;line-height:1.55;margin-bottom:10px}.progress-dots{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.progress-dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}.progress-dots i.on{background:var(--accent)}.controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stepbar{display:flex;gap:6px;flex:1;max-width:220px}.stepbar i{height:4px;flex:1;border-radius:4px;background:var(--line)}.stepbar i.on{background:var(--accent)}.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}.compare div{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px;text-align:center}.compare b{display:block;font-family:var(--font-display);font-size:2rem;font-variant-numeric:tabular-nums}.compare small{letter-spacing:.12em;color:var(--muted);font-weight:700;font-size:.75rem}.entry{display:flex;flex-direction:column;gap:6px}.entry-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.tag{display:inline-block;font-size:.8rem;padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--fg);font-weight:600}.tag.done{background:var(--accent-soft)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px}.stat b{display:block;font-family:var(--font-display);font-size:1.9rem;font-variant-numeric:tabular-nums;line-height:1.1}.stat span{font-size:.9rem;color:var(--muted)}.bar-row{display:grid;grid-template-columns:1fr auto;gap:4px 10px;font-size:.95rem}.bar{grid-column:1 / -1;height:8px;border-radius:8px;background:var(--surface-2);overflow:hidden}.bar>i{display:block;height:100%;background:var(--accent);border-radius:8px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-weight:600;font-size:.95rem}.input,textarea.input{width:100%;min-height:52px;padding:12px 14px;border-radius:var(--radius-sm);border:1.5px solid var(--line);background:var(--surface);resize:vertical}.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;background:var(--surface-2);padding:4px;border-radius:14px}.seg button{min-height:44px;border:0;border-radius:10px;background:transparent;cursor:pointer;font-weight:600;font-size:.92rem;padding:6px}.seg button[aria-checked=true]{background:var(--surface);box-shadow:var(--shadow);color:var(--accent)}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}.switch{width:54px;height:32px;border-radius:999px;background:var(--line);border:0;position:relative;cursor:pointer;flex:none}.switch:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform var(--t) var(--ease);box-shadow:0 1px 3px #00000040}.switch[aria-checked=true]{background:var(--accent)}.switch[aria-checked=true]:after{transform:translate(22px)}.section{display:flex;flex-direction:column;gap:10px}.section+.section{border-top:1px solid var(--line);padding-top:18px}.divider{height:1px;background:var(--line);border:0;margin:4px 0}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0e182873;display:grid;place-items:end center;padding:16px;z-index:50;animation:fade var(--t)}.dialog{width:100%;max-width:480px;background:var(--surface);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:14px;margin-bottom:env(safe-area-inset-bottom,0px)}@keyframes fade{0%{opacity:0}}.notice{font-size:.92rem;padding:12px 14px;border-radius:var(--radius-sm);background:var(--gold-soft)}.footer-note{text-align:center;font-size:.85rem;color:var(--muted);padding-top:8px}ul.clean{margin:4px 0 0;padding-left:20px}ul.clean li{margin:2px 0}h1[tabindex="-1"]:focus{outline:none}
