:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;--bg:#081712;--surface:#10251c;--surface-2:#173126;--surface-3:#1e3d2e;--line:#2a4a39;--text:#f5f6ed;--muted:#a9baad;--accent:#c8f37d;--accent-soft:#243f2e;--ink:#102216;--danger:#ffb6a7}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--text);background:radial-gradient(circle at 70% -10%,#173e2b 0,transparent 32rem),var(--bg);min-height:100dvh}body[data-accent=blue]{--accent:#87d7ff;--accent-soft:#163a49;--ink:#092531}body[data-accent=amber]{--accent:#ffd36e;--accent-soft:#443719;--ink:#2b2006}body[data-accent=pink]{--accent:#ffacd1;--accent-soft:#48283a;--ink:#321221}body[data-font=large]{font-size:18px}
button,input,select,textarea{font:inherit}button{border:0;color:inherit;cursor:pointer;min-height:44px}button:disabled{opacity:.4;cursor:default}button,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,6vw,3.4rem);line-height:1.02;letter-spacing:-.045em;margin-bottom:.75rem}h2{font-size:1.35rem;letter-spacing:-.02em}p{line-height:1.55;color:var(--muted)}a{color:inherit}.app-shell{min-height:100dvh}.sidebar{display:none}.content-shell{width:min(100%,780px);margin:auto;padding:0 1.25rem calc(7rem + env(safe-area-inset-bottom))}.topbar{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);position:relative}.mobile-brand,.brand{display:flex;align-items:center;gap:.45rem;text-decoration:none;font-weight:720;letter-spacing:-.03em;font-size:1.15rem}.brand-mark{font-size:2rem;line-height:.7;color:var(--accent);font-weight:400}.today{display:flex;flex-direction:column;text-align:right}.today time{font-size:1.15rem;font-variant-numeric:tabular-nums}.today span{text-transform:capitalize;color:var(--muted);font-size:.76rem}.speech-button{display:none;background:var(--accent-soft);border:1px solid var(--line);border-radius:99px;padding:.65rem .9rem;align-items:center;gap:.45rem}.speech-button img,.listen img{width:1.25rem;height:1.25rem}.mobile-nav{position:fixed;z-index:20;bottom:calc(.65rem + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 1.25rem);max-width:700px;display:grid;grid-template-columns:repeat(5,1fr);background:#0f261df2;border:1px solid #335240;border-radius:1.4rem;padding:.4rem;box-shadow:0 18px 55px #0009}.mobile-nav button{background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;color:var(--muted);font-size:.68rem;border-radius:1rem}.mobile-nav img{width:1.55rem;height:1.55rem}.mobile-nav .nav-symbol{font-size:1.45rem;line-height:1.1}.mobile-nav button[aria-current=page]{background:var(--accent-soft);color:var(--text)}main{padding:2rem 0 1rem;outline:0}.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:var(--accent);font-size:.72rem;font-weight:750;margin-bottom:.6rem}.welcome{display:grid;grid-template-columns:1fr auto;gap:1.25rem;align-items:center;margin-bottom:1.5rem}.welcome p:last-child{margin-bottom:0}.progress-orb{--progress:0;display:grid;place-items:center;width:6rem;height:6rem;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--progress)*1deg),var(--surface-3) 0);position:relative}.progress-orb:before{content:"";position:absolute;inset:.5rem;border-radius:50%;background:var(--bg)}.progress-orb span{position:relative;font-size:1.55rem;font-weight:750;text-align:center}.progress-orb small{display:block;color:var(--muted);font-size:.68rem;font-weight:500}.next-card{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;background:linear-gradient(135deg,var(--accent-soft),var(--surface));border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:2rem;padding:1.25rem;margin-bottom:2.5rem;box-shadow:0 22px 60px #0003}.next-label{grid-column:1/-1;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-size:.7rem;font-weight:750}.next-copy{min-width:0}.next-copy time{font-size:.82rem;color:var(--accent);font-weight:700}.next-copy h2{font-size:1.55rem;margin:.25rem 0}.next-copy p{font-size:.88rem;margin:0}.next-card .primary-button{grid-column:1/-1}.all-done{display:flex;align-items:center;gap:1rem;background:var(--surface);border:1px solid var(--line);border-radius:2rem;padding:1.2rem;margin-bottom:2.5rem}.all-done h2,.all-done p{margin-bottom:.25rem}.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:2.2rem 0 .8rem}.section-head h2{margin:0}.section-intro{font-size:.9rem;margin-bottom:1rem}.pic{position:relative;display:inline-grid;place-items:center;flex:none;border-radius:28%;background:#eef2df;overflow:visible}.pic img{width:88%;height:88%;object-fit:contain}.pic-extra{position:absolute!important;width:45%!important;height:45%!important;right:-8%;bottom:-8%;background:#eef2df;border:2px solid #eef2df;border-radius:28%}.pic-xs{width:1.65rem;height:1.65rem;border-radius:.5rem}.pic-sm{width:2.75rem;height:2.75rem;border-radius:.8rem}.pic-md{width:3.6rem;height:3.6rem}.pic-lg{width:4.6rem;height:4.6rem}.pic-xl{width:6.2rem;height:6.2rem;border-radius:1.55rem}.routine-list{display:grid;gap:.7rem}.routine-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;background:var(--surface);border:1px solid var(--line);border-radius:1.4rem;padding:1rem;position:relative}.routine-row.is-done{opacity:.68}.routine-row.is-done .routine-copy strong{text-decoration:line-through}.image-button{padding:0;background:transparent}.routine-copy{min-width:0}.routine-copy>div{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.routine-copy strong{font-size:1.02rem;overflow-wrap:anywhere}.routine-copy time{display:block;color:var(--accent);font-size:.84rem;font-weight:700;margin-top:.32rem;font-variant-numeric:tabular-nums}.routine-copy p{font-size:.82rem;margin:.28rem 0 0}.date-badge{background:var(--accent-soft);color:var(--accent);font-size:.66rem;padding:.2rem .4rem;border-radius:.45rem}.check-button{width:3rem;height:3rem;min-height:3rem;border-radius:50%;border:2px solid #6a8773;background:transparent;display:grid;place-items:center;font-size:1.45rem}.check-button[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}.check-button span{width:.7rem;height:.7rem;border-radius:50%;background:#5f7b68}.row-actions{grid-column:1/-1;display:flex;gap:.5rem;border-top:1px solid var(--line);padding-top:.75rem}.row-actions button,.other-dates button,.manage-row button{background:var(--surface-3);border-radius:.8rem;padding:.55rem .8rem}.row-actions button:first-child{flex:1}.primary-button,.secondary-button,.danger-button{border-radius:1rem;padding:.85rem 1.15rem;font-weight:720}.primary-button{background:var(--accent);color:var(--ink)}.secondary-button{background:var(--surface-3);border:1px solid var(--line)}.danger-button{background:transparent;border:1px solid #785248;color:var(--danger);width:100%;margin-top:.75rem}.add-button{width:100%;margin-top:1rem;min-height:3.4rem}.link-button,.back-button{background:transparent;color:var(--accent);padding:.35rem 0}.mini-progress{height:.45rem;background:var(--surface-3);border-radius:99px;overflow:hidden;width:min(14rem,40vw)}.mini-progress i,.history-bar i{display:block;height:100%;background:var(--accent);border-radius:inherit}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2rem}.page-head p:last-child{margin-bottom:0}.other-dates{display:grid;gap:.65rem}.other-dates article{display:flex;align-items:center;gap:.75rem;background:var(--surface);border:1px solid var(--line);padding:.85rem;border-radius:1rem}.other-dates article div{flex:1}.other-dates span{display:block;color:var(--muted);font-size:.8rem;margin-top:.2rem}.check-grid{display:grid;gap:.8rem}.check-card{background:var(--surface);border:1px solid var(--line);padding:1rem;border-radius:1.25rem}.check-title{display:flex;align-items:center;gap:.75rem}.check-title strong{flex:1}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:.45rem;margin-top:1rem}.levels button{background:var(--surface-3);border:1px solid var(--line);border-radius:.8rem;font-weight:750}.levels button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}.level-labels{display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.68rem;margin-top:.5rem}.level-labels span:last-child{text-align:right}.listen{background:var(--accent-soft);border:1px solid var(--line);border-radius:99px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem .75rem;white-space:nowrap}.listen span:empty{display:none}.check-title .listen{width:2.5rem;height:2.5rem;min-height:2.5rem;padding:0}.note-card{display:grid;grid-template-columns:auto 1fr;gap:.8rem;background:var(--surface);border:1px solid var(--line);border-radius:1.35rem;padding:1rem;margin-top:2rem}.note-card label{font-weight:750}.note-card p{font-size:.78rem;margin:.2rem 0}.note-card textarea,.note-card button{grid-column:1/-1}.support-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.support-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:1.35rem;padding:1rem}.support-card span{min-width:0}.support-card small,.doc-type{display:block;color:var(--accent);font-size:.68rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:.25rem}.support-card strong{display:block;font-size:1.05rem}.support-card b{font-size:1.8rem;color:var(--muted)}.document-view{background:var(--surface);border:1px solid var(--line);border-radius:2rem;padding:1.4rem;margin-top:1rem}.document-view .doc-type{margin-top:1.4rem}.document-view h1{font-size:2rem}.document-body{white-space:pre-wrap;line-height:1.75;color:#e3e9df}.doc-actions{display:flex;gap:.7rem;margin-top:1.5rem}.doc-actions>*{flex:1}.insight-summary{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.insight-summary article{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;background:var(--surface);border:1px solid var(--line);border-radius:1.35rem;padding:1rem}.insight-summary span{font-size:.76rem;color:var(--muted)}.insight-summary strong{font-size:1.7rem}.history{display:grid;gap:.8rem}.history>article{background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;padding:1rem}.history-date{display:flex;justify-content:space-between;gap:1rem}.history-date span{font-size:.78rem;color:var(--muted)}.history-bar{height:.35rem;background:var(--surface-3);border-radius:99px;margin:.7rem 0}.history-values{display:flex;flex-wrap:wrap;gap:.45rem}.history-values span{display:inline-flex;align-items:center;gap:.35rem;background:var(--surface-2);padding:.35rem .5rem;border-radius:.65rem;font-size:.72rem}.history-note{font-size:.8rem;margin:.75rem 0 0}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;background:var(--surface);border:1px dashed var(--line);border-radius:1.35rem;padding:2rem}.empty-state span,.muted{color:var(--muted);font-size:.85rem}.style-options{display:grid;gap:.7rem}.style-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.85rem;background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;padding:1rem;cursor:pointer}.style-option.selected{border-color:var(--accent);background:var(--accent-soft)}.style-option strong,.style-option small{display:block}.style-option small,.setting-row small,.select-row small{color:var(--muted);font-size:.76rem;margin-top:.25rem}.style-option input{accent-color:var(--accent);width:1.25rem;height:1.25rem}.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:1.5rem;padding:0 1rem 1rem;margin-top:1rem}.settings-card .section-head{margin:1.25rem 0 .35rem}.setting-row,.select-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid var(--line)}.setting-row span,.select-row span{min-width:0}.setting-row strong,.setting-row small,.select-row strong,.select-row small{display:block}.switch{appearance:none;width:3rem;height:1.7rem;border-radius:99px;background:#385345;position:relative;transition:.18s}.switch:after{content:"";position:absolute;width:1.25rem;height:1.25rem;left:.22rem;top:.22rem;border-radius:50%;background:#c5cec8;transition:.18s}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translateX(1.3rem);background:var(--ink)}select,input,textarea{background:var(--bg);color:var(--text);border:1px solid #52705e;border-radius:.8rem;min-height:3rem;padding:.65rem .75rem;width:100%}textarea{resize:vertical;line-height:1.5}.select-row{grid-template-columns:1fr minmax(8rem,auto)}.select-row select{margin:0}.data-note{background:var(--surface-2);border-radius:1rem;padding:1rem;font-size:.78rem;margin:1rem 0 0}.custom-panel fieldset{border:0;padding:0;margin:1rem 0}.custom-panel legend{font-weight:700;margin-bottom:.7rem}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.swatch{display:flex;flex-direction:column;align-items:center;gap:.35rem;cursor:pointer}.swatch input{position:absolute;opacity:0;width:1px;height:1px}.swatch span{width:2.5rem;height:2.5rem;border-radius:50%;border:4px solid transparent;background:var(--swatch)}.swatch input:checked+span{outline:2px solid var(--text);outline-offset:2px}.swatch b{font-size:.68rem}.swatch-lime{--swatch:#c8f37d}.swatch-blue{--swatch:#87d7ff}.swatch-amber{--swatch:#ffd36e}.swatch-pink{--swatch:#ffacd1}fieldset{min-width:0}.privacy-note{color:var(--muted);font-size:.7rem;margin-top:auto}#status{position:fixed;z-index:40;left:50%;bottom:6.8rem;transform:translateX(-50%);background:#243d30;border:1px solid var(--line);border-radius:99px;padding:.7rem 1rem;color:var(--text);font-size:.78rem;box-shadow:0 12px 30px #0008}#status:empty,#modal-error:empty{display:none}dialog{color:var(--text);background:var(--surface);border:1px solid #496656;border-radius:1.6rem;width:calc(100% - 1.25rem);max-width:560px;max-height:88dvh;padding:1.25rem;overscroll-behavior:contain}dialog::backdrop{background:#000b}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.dialog-head h2{margin:0}.dialog-head button{background:transparent;font-size:2rem;width:2.75rem}.dialog-head+div>p{color:var(--muted)}dialog form>label{display:block;font-weight:650;margin:1rem 0}dialog form input,dialog form select,dialog form textarea{margin-top:.45rem}#symbol-preview{display:flex;justify-content:center;margin:.8rem}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;max-height:55dvh;overflow:auto;margin-bottom:1rem}.catalog-grid button{background:var(--surface-2);border:1px solid var(--line);border-radius:1rem;padding:.65rem .3rem;display:flex;flex-direction:column;align-items:center;gap:.5rem;font-size:.73rem}.manage-row{display:flex;align-items:center;gap:.75rem;border-bottom:1px solid var(--line);padding:.75rem 0}.manage-row strong{flex:1}.dialog-buttons{display:flex;gap:.7rem}.dialog-buttons>*{flex:1;margin:0}.dialog-buttons .secondary-button{width:100%}#modal-error{color:var(--danger);font-size:.85rem;margin:.8rem 0 0}[hidden]{display:none!important}
body[data-style=simple] .routine-copy p,body[data-style=simple] .section-intro{display:none}
@media(max-width:390px){.content-shell{padding-left:.8rem;padding-right:.8rem}.welcome{grid-template-columns:1fr auto}.progress-orb{width:5rem;height:5rem}.routine-row{gap:.7rem;padding:.8rem}.pic-lg{width:3.8rem;height:3.8rem}.pic-xl{width:5rem;height:5rem}.next-card{grid-template-columns:auto 1fr}.next-card>.listen{grid-column:1/-1}.catalog-grid{grid-template-columns:repeat(2,1fr)}.mobile-nav{width:calc(100% - .7rem)}.mobile-nav button{font-size:.61rem}.level-labels{font-size:.61rem}}
@media(min-width:700px){.support-grid{grid-template-columns:1fr 1fr}.check-grid{grid-template-columns:1fr 1fr}.speech-button{display:inline-flex}.today{margin-left:auto}.next-card{grid-template-columns:auto 1fr auto auto}.next-card .primary-button{grid-column:auto}.insight-summary article{display:grid;grid-template-columns:auto 1fr;align-items:center}.insight-summary article strong{grid-column:2}.style-options{grid-template-columns:repeat(3,1fr)}.style-option{grid-template-columns:1fr;text-align:center;justify-items:center}.style-option span{align-self:start}.style-option input{position:absolute;opacity:0}}
@media(min-width:1080px){.app-shell{display:grid;grid-template-columns:260px 1fr}.sidebar{display:flex;position:sticky;top:0;height:100dvh;flex-direction:column;padding:2.2rem 1.5rem;border-right:1px solid var(--line);background:#081712e8}.sidebar .brand{font-size:1.45rem}.sidebar nav{display:grid;gap:.35rem;margin-top:2.5rem}.sidebar nav button{display:grid;grid-template-columns:2rem 1fr;align-items:center;text-align:left;gap:.75rem;background:transparent;border-radius:1rem;padding:.8rem;color:var(--muted)}.sidebar nav button img{width:1.8rem;height:1.8rem}.sidebar nav button .nav-symbol{font-size:1.6rem;text-align:center}.sidebar nav button[aria-current=page]{background:var(--accent-soft);color:var(--text)}.content-shell{padding-left:2rem;padding-right:2rem}.mobile-nav,.mobile-brand{display:none}#status{bottom:2rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.credits{color:var(--muted);font-size:.78rem;margin-top:.8rem}.credits summary{cursor:pointer;padding:.65rem 0}.credits p{font-size:.75rem}.credits a{color:var(--accent)}
.nav-icon{width:1.6rem;height:1.6rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.mobile-nav button[aria-current=page] .nav-icon,.sidebar nav button[aria-current=page] .nav-icon{stroke-width:2.3;color:var(--accent)}
body[data-style=simple]{background:#09130f;--surface:#101c17;--surface-2:#15241d;--surface-3:#1b2d24;--accent:#e2e9e3;--accent-soft:#1a2a22;--line:#293b32}body[data-style=simple] .eyebrow,body[data-style=simple] .welcome>div>p:last-child,body[data-style=simple] .page-head p,body[data-style=simple] .routine-copy p,body[data-style=simple] .section-intro,body[data-style=simple] .support-card small{display:none}body[data-style=simple] h1{font-size:2.05rem;letter-spacing:-.025em}body[data-style=simple] main{padding-top:1.35rem}body[data-style=simple] .next-card,body[data-style=simple] .routine-row,body[data-style=simple] .support-card,body[data-style=simple] .check-card,body[data-style=simple] .note-card,body[data-style=simple] .settings-card{border-radius:.85rem;background:var(--surface);box-shadow:none}body[data-style=simple] .next-card{border-left:4px solid var(--accent)}body[data-style=simple] .pic{border-radius:.65rem}
body[data-style=inspiring]{--surface:#112b20;--surface-2:#19382a;--surface-3:#214734;--line:#356048;--accent:#d7f58f;--accent-soft:#2b4a31;background:radial-gradient(circle at 85% 0,color-mix(in srgb,var(--accent) 20%,transparent) 0,transparent 29rem),radial-gradient(circle at 0 48%,color-mix(in srgb,var(--accent) 9%,transparent) 0,transparent 32rem),var(--bg)}body[data-style=inspiring] .welcome h1{color:#fffdf4;font-size:clamp(2.4rem,8vw,3.8rem)}body[data-style=inspiring] .next-card{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 18%,var(--surface)),var(--surface) 72%);border-color:color-mix(in srgb,var(--accent) 48%,var(--line));box-shadow:0 24px 70px #0005}body[data-style=inspiring] .routine-row,body[data-style=inspiring] .support-card,body[data-style=inspiring] .check-card{box-shadow:0 12px 32px #0002}body[data-style=inspiring] .pic{border-radius:36%}body[data-style=inspiring] .primary-button{box-shadow:0 8px 24px color-mix(in srgb,var(--accent) 18%,transparent)}
body[data-style=custom] .next-card{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 20%,var(--surface)),var(--surface) 72%);border-color:var(--accent)}body[data-style=custom] .routine-row{border-left:4px solid color-mix(in srgb,var(--accent) 72%,var(--line))}body[data-style=custom] .style-option.selected,body[data-style=custom] .settings-card{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 28%,transparent)}
body[data-style=inspiring][data-accent=lime]{--accent:#d7f58f;--accent-soft:#2b4a31;--ink:#122112}body[data-style=inspiring][data-accent=teal],body[data-accent=teal]{--accent:#72e6cf;--accent-soft:#17463d;--ink:#072a23}body[data-style=inspiring][data-accent=blue],body[data-accent=blue]{--accent:#87d7ff;--accent-soft:#163a49;--ink:#092531}body[data-style=inspiring][data-accent=violet],body[data-accent=violet]{--accent:#c5b4ff;--accent-soft:#342c52;--ink:#20163d}body[data-style=inspiring][data-accent=pink],body[data-accent=pink]{--accent:#ffacd1;--accent-soft:#48283a;--ink:#321221}body[data-style=inspiring][data-accent=amber],body[data-accent=amber]{--accent:#ffd36e;--accent-soft:#443719;--ink:#2b2006}
.color-panel{padding-bottom:1.2rem}.color-panel .swatches{grid-template-columns:repeat(6,1fr)}.editor-intro{font-size:.85rem;margin-bottom:.2rem}.privacy-card>p{font-size:.86rem;margin:.75rem 0}.privacy-card>p:first-of-type{color:var(--text)}
body[data-style=custom][data-surface=light]{color-scheme:light;--bg:#f3f7f3;--surface:#fff;--surface-2:#e8f0e9;--surface-3:#dce8df;--line:#c2d2c6;--text:#152219;--muted:#5a6c60;background-color:var(--bg)}body[data-style=custom][data-surface=light] .document-body{color:#243329}body[data-style=custom][data-surface=light] .sidebar{background:#f3f7f3ed}body[data-style=custom][data-surface=light] .mobile-nav{background:#fffffff2;box-shadow:0 18px 55px #17332126}body[data-style=custom][data-surface=light] input,body[data-style=custom][data-surface=light] select,body[data-style=custom][data-surface=light] textarea{background:#fff;color:var(--text)}
body[data-style=custom][data-background=solid]{background:var(--bg)}body[data-style=custom][data-background=glow][data-surface=dark]{background:radial-gradient(circle at 80% 0,color-mix(in srgb,var(--accent) 20%,transparent) 0,transparent 30rem),var(--bg)}body[data-style=custom][data-background=glow][data-surface=light]{background:radial-gradient(circle at 80% 0,color-mix(in srgb,var(--accent) 28%,transparent) 0,transparent 30rem),var(--bg)}
body[data-style=custom][data-corners=soft] .next-card,body[data-style=custom][data-corners=soft] .routine-row,body[data-style=custom][data-corners=soft] .support-card,body[data-style=custom][data-corners=soft] .check-card,body[data-style=custom][data-corners=soft] .note-card,body[data-style=custom][data-corners=soft] .settings-card{border-radius:2rem}body[data-style=custom][data-corners=square] .next-card,body[data-style=custom][data-corners=square] .routine-row,body[data-style=custom][data-corners=square] .support-card,body[data-style=custom][data-corners=square] .check-card,body[data-style=custom][data-corners=square] .note-card,body[data-style=custom][data-corners=square] .settings-card{border-radius:.35rem}body[data-style=custom][data-corners=square] .primary-button,body[data-style=custom][data-corners=square] .secondary-button{border-radius:.25rem}
body[data-style=custom][data-density=airy] .routine-row,body[data-style=custom][data-density=airy] .support-card,body[data-style=custom][data-density=airy] .check-card{padding:1.35rem}body[data-style=custom][data-density=airy] .routine-list,body[data-style=custom][data-density=airy] .support-grid,body[data-style=custom][data-density=airy] .check-grid{gap:1.15rem}body[data-style=custom][data-density=compact] main{padding-top:1.15rem}body[data-style=custom][data-density=compact] .routine-row,body[data-style=custom][data-density=compact] .support-card,body[data-style=custom][data-density=compact] .check-card{padding:.65rem}body[data-style=custom][data-density=compact] .routine-list,body[data-style=custom][data-density=compact] .support-grid,body[data-style=custom][data-density=compact] .check-grid{gap:.4rem}body[data-style=custom][data-density=compact] .section-head{margin:1.3rem 0 .55rem}
body[data-style=custom][data-icon-size=small] .pic-lg{width:3.4rem;height:3.4rem}body[data-style=custom][data-icon-size=small] .pic-xl{width:4.7rem;height:4.7rem}body[data-style=custom][data-icon-size=large] .pic-lg{width:5.7rem;height:5.7rem}body[data-style=custom][data-icon-size=large] .pic-xl{width:7.4rem;height:7.4rem}body[data-style=custom][data-typeface=rounded]{font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold",system-ui,sans-serif}
@media(max-width:520px){.color-panel .swatches{grid-template-columns:repeat(3,1fr);row-gap:1rem}}

.schedule-label,.step-progress{display:inline-block;color:var(--muted);font-size:.72rem;margin:.3rem .45rem 0 0}.step-progress{color:var(--accent)}
.routine-steps{grid-column:1/-1;display:grid;gap:.45rem;border-top:1px solid var(--line);padding-top:.75rem}.step-row{display:grid;grid-template-columns:1.35rem auto 1fr auto;align-items:center;gap:.65rem;background:var(--surface-2);border-radius:1rem;padding:.55rem .65rem}.step-row.is-done{opacity:.68}.step-row.is-done .step-title{text-decoration:line-through}.step-number{font-size:.72rem;color:var(--muted);text-align:center}.step-title{font-weight:650;overflow-wrap:anywhere}.step-check{width:2.75rem;height:2.75rem;min-height:2.75rem;border-radius:50%;border:2px solid #6a8773;background:transparent;display:grid;place-items:center;font-size:1.15rem}.step-check[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}.step-check span{width:.55rem;height:.55rem;border-radius:50%;background:#5f7b68}
.next-moment{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.8rem;margin:.35rem 0}.next-moment strong{color:var(--text)}
.weekday-field,.steps-editor{border:0;padding:0;margin:1.25rem 0}.weekday-field legend,.steps-editor legend{font-weight:700;margin-bottom:.65rem}.weekday-field>div{display:grid;grid-template-columns:repeat(7,1fr);gap:.35rem}.weekday-field label{cursor:pointer}.weekday-field input{position:absolute;opacity:0;width:1px;height:1px}.weekday-field span{display:grid;place-items:center;min-height:2.75rem;background:var(--surface-2);border:1px solid var(--line);border-radius:.75rem;font-size:.75rem}.weekday-field input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--ink);font-weight:750}.weekday-field input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}
.steps-editor>p{font-size:.8rem;margin-bottom:.75rem}.steps-editor small{color:var(--muted);font-weight:500}.step-editor-row{display:grid;gap:.55rem;background:var(--surface-2);border:1px solid var(--line);border-radius:1rem;padding:.7rem;margin-bottom:.6rem}.step-editor-main{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.65rem}.step-editor-main input,.step-editor-row select{margin:0}.step-editor-actions{display:grid;grid-template-columns:3rem 3rem 1fr;gap:.45rem}.step-editor-actions button{background:var(--surface-3);border-radius:.7rem}.step-editor-actions button:last-child{color:var(--danger)}.add-step-button{width:100%;margin-top:.2rem}
body[data-style=simple] .schedule-label{display:none}
@media(max-width:390px){.weekday-field>div{grid-template-columns:repeat(4,1fr)}.step-row{grid-template-columns:auto 1fr auto}.step-row .step-number{display:none}.step-row .pic-sm{width:2.4rem;height:2.4rem}}

/* Färgval påverkar hela appens ytor, inte bara knapparna. */
body[data-style=inspiring],body[data-style=custom][data-surface=dark]{--bg:color-mix(in srgb,var(--accent) 8%,#060b0a);--surface:color-mix(in srgb,var(--accent) 12%,#0d1713);--surface-2:color-mix(in srgb,var(--accent) 17%,#122019);--surface-3:color-mix(in srgb,var(--accent) 23%,#16271f);--line:color-mix(in srgb,var(--accent) 30%,#25372e)}
body[data-style=custom][data-surface=light]{--bg:color-mix(in srgb,var(--accent) 11%,#f7faf7);--surface:color-mix(in srgb,var(--accent) 4%,#fff);--surface-2:color-mix(in srgb,var(--accent) 16%,#f2f5f2);--surface-3:color-mix(in srgb,var(--accent) 24%,#e8eee9);--line:color-mix(in srgb,var(--accent) 36%,#cbd4cd)}
body[data-style=inspiring] .mobile-nav,body[data-style=custom] .mobile-nav{background:color-mix(in srgb,var(--surface) 94%,transparent);border-color:var(--line)}body[data-style=inspiring] .sidebar,body[data-style=custom] .sidebar{background:color-mix(in srgb,var(--bg) 94%,transparent)}body[data-style=inspiring] #status,body[data-style=custom] #status{background:var(--surface-3)}
.swatch-teal{--swatch:#72e6cf}.swatch-violet{--swatch:#c5b4ff}

.inspiration-note{display:flex;align-items:center;gap:.85rem;background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 18%,var(--surface)),var(--surface));border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));border-radius:1.6rem;padding:1rem 1.1rem;margin:-.4rem 0 1.25rem;box-shadow:0 14px 38px #0002}.inspiration-note strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.1rem}.inspiration-note p{margin:.18rem 0 0;font-size:.83rem}
.note-card textarea,.note-card .save-note-button,.note-card .today-notes{grid-column:1/-1}.save-note-button{width:100%}.today-notes{display:grid;gap:.55rem;border-top:1px solid var(--line);padding-top:.85rem}.today-notes>strong{font-size:.8rem;color:var(--accent)}.today-notes>.saved-note-row{display:grid;grid-template-columns:3.2rem 1fr auto;align-items:start;gap:.55rem;background:var(--surface-2);border-radius:.8rem;padding:.65rem}.today-notes time{color:var(--muted);font-size:.72rem}.today-notes span{font-size:.82rem;white-space:pre-wrap}.note-edit-button{grid-column:auto!important;min-height:2.3rem!important;padding:.4rem .65rem;border:1px solid var(--line);border-radius:.65rem;background:var(--surface-3);color:var(--text);font-size:.74rem;font-weight:750}.history-note{display:flex;align-items:flex-start;gap:.55rem;background:var(--surface-2);border-radius:.85rem;padding:.7rem;margin:.8rem 0 0}.history-note>div:nth-child(2){flex:1;min-width:0}.history-note strong{display:block;font-size:.76rem;color:var(--accent)}.history-note p{white-space:pre-wrap;margin:.15rem 0 0;font-size:.82rem;color:var(--text)}.history-note-actions{display:flex;align-items:flex-start;gap:.4rem;margin-left:auto}.history-note-actions .listen{margin-left:0}

.calendar-card{background:var(--surface);border:1px solid var(--line);border-radius:1.4rem;padding:1rem;margin-bottom:1.5rem;box-shadow:inset 0 1px #ffffff0d,var(--shadow-card)}.calendar-head{display:grid;grid-template-columns:3rem 1fr 3rem;align-items:center;text-align:center;margin-bottom:.8rem}.calendar-head strong{text-transform:capitalize}.calendar-head button{background:var(--surface-3);border-radius:.8rem;font-size:1.15rem}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.4rem}.calendar-weekdays span{text-align:center;color:var(--muted);font-size:.72rem;font-weight:700;padding:.3rem 0}.calendar-grid>.calendar-empty,.calendar-grid>.calendar-day{min-width:0;min-height:7rem;border-radius:.75rem}.calendar-grid>.calendar-empty{background:color-mix(in srgb,var(--surface-2) 34%,transparent);opacity:.32}.calendar-grid>.calendar-day{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:.45rem;background:var(--surface-2);border:1px solid var(--line);position:relative;overflow:hidden}.calendar-number{align-self:flex-start;display:grid;place-items:center;width:1.65rem;height:1.65rem;border-radius:.5rem;font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums}.calendar-events{display:grid;gap:.28rem;margin-top:.25rem;min-width:0}.calendar-event{display:grid;gap:.04rem;min-width:0;padding:.25rem .3rem;border-radius:.38rem;background:color-mix(in srgb,var(--accent) 14%,var(--surface-3));border-left:3px solid var(--accent);line-height:1.15}.calendar-event time{font-size:.62rem;color:var(--accent);font-weight:800;font-variant-numeric:tabular-nums}.calendar-event b{font-size:.67rem;font-weight:750;overflow-wrap:anywhere}.calendar-more{font-size:.62rem;color:var(--muted);font-weight:700;padding-left:.3rem}.calendar-grid button.has-dated-activity{border-color:color-mix(in srgb,var(--accent) 65%,var(--line));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent)}.calendar-grid button.is-today .calendar-number{box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent)}.calendar-grid button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 18%,var(--surface-2));border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent)}.calendar-grid button[aria-pressed=true] .calendar-number{background:var(--accent);color:var(--ink);box-shadow:none}.calendar-key{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-top:.75rem}.calendar-key>span{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.72rem}.calendar-key i{width:.75rem;height:.75rem;border-radius:.22rem;background:var(--accent-soft);border:1px solid var(--accent)}.support-explainer{display:flex;align-items:flex-start;gap:.85rem;background:color-mix(in srgb,var(--accent) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));border-radius:1.25rem;padding:1rem;margin-bottom:1.25rem}.support-explainer strong{display:block}.support-explainer p{font-size:.82rem;margin:.25rem 0 0}
@media(max-width:560px){.calendar-card{padding:.7rem}.calendar-weekdays,.calendar-grid{gap:.18rem}.calendar-weekdays span{font-size:.6rem}.calendar-grid>.calendar-empty,.calendar-grid>.calendar-day{min-height:6.25rem;border-radius:.5rem}.calendar-grid>.calendar-day{padding:.25rem}.calendar-number{width:1.35rem;height:1.35rem;font-size:.7rem;border-radius:.38rem}.calendar-events{gap:.18rem;margin-top:.16rem}.calendar-event{padding:.18rem .16rem;border-left-width:2px}.calendar-event time{font-size:.56rem}.calendar-event b{font-size:.58rem;line-height:1.08;letter-spacing:-.015em}.calendar-more{font-size:.55rem;padding-left:.12rem}.calendar-key{align-items:flex-start}.calendar-key>span{font-size:.62rem;max-width:9rem}.calendar-key .link-button{font-size:.72rem}}

.mobile-nav{grid-template-columns:repeat(6,1fr)}
@media(max-width:390px){.mobile-nav button{font-size:.56rem}.mobile-nav .nav-icon{width:1.45rem;height:1.45rem}}

.theme-settings>p{font-size:.78rem;margin:-.25rem 0 .8rem}.theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}.theme-choice{display:grid;grid-template-columns:3.3rem 1fr;align-items:center;gap:.65rem;background:var(--surface-2);border:1px solid var(--line);border-radius:1rem;padding:.55rem;cursor:pointer}.theme-choice input{position:absolute;opacity:0;width:1px;height:1px}.theme-preview{display:block;width:3.3rem;height:2.7rem;border-radius:.65rem;border:2px solid transparent;background:var(--theme-sample)}.theme-choice input:checked+.theme-preview{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 45%,transparent)}.theme-choice strong{font-size:.78rem}.theme-calm{--theme-sample:radial-gradient(circle at 75% 10%,#a9d66a55,transparent 50%),#14281e}.theme-flowers{--theme-sample:radial-gradient(circle at 25% 30%,#ffb6d8 0 12%,transparent 13%),radial-gradient(circle at 70% 60%,#cbb9ff 0 16%,transparent 17%),#3b2338}.theme-flight{--theme-sample:repeating-linear-gradient(145deg,transparent 0 18px,#ffffff55 19px 21px),linear-gradient(#65bde8,#dff4ff)}.theme-action{--theme-sample:repeating-linear-gradient(135deg,#33140f 0 13px,#b74825 14px 22px,#f7b34d 23px 25px)}.theme-forest{--theme-sample:radial-gradient(circle at 20% 100%,#4c8150 0 25%,transparent 26%),radial-gradient(circle at 70% 100%,#295d3c 0 35%,transparent 36%),#10271c}.theme-ocean{--theme-sample:radial-gradient(ellipse at 20% 100%,#47b7c7 0 30%,transparent 31%),radial-gradient(ellipse at 80% 100%,#266faf 0 40%,transparent 41%),#092a48}.theme-space{--theme-sample:radial-gradient(circle at 20% 20%,#fff 0 2%,transparent 3%),radial-gradient(circle at 70% 35%,#fff 0 2%,transparent 3%),radial-gradient(circle at 45% 75%,#c5b4ff 0 3%,transparent 4%),#150f2d}

body[data-style=custom]{background-color:var(--bg);background-repeat:no-repeat}
body[data-style=custom][data-theme=calm]{background-image:radial-gradient(circle at 82% 3%,color-mix(in srgb,var(--accent) 38%,transparent) 0 12rem,transparent 28rem),radial-gradient(circle at 4% 82%,color-mix(in srgb,var(--accent) 20%,transparent) 0 10rem,transparent 25rem)}
body[data-style=custom][data-theme=flowers]{background-image:radial-gradient(circle at 12% 14%,#ff8fc850 0 2.8rem,#ffc2de28 2.9rem 5.5rem,transparent 5.7rem),radial-gradient(circle at 88% 32%,#a990ff48 0 3.8rem,#d1c6ff22 3.9rem 7rem,transparent 7.2rem),radial-gradient(circle at 22% 78%,#ffd36e38 0 3rem,#ff9fc829 3.1rem 6rem,transparent 6.2rem),linear-gradient(155deg,color-mix(in srgb,#8f416f 18%,var(--bg)),var(--bg) 58%)}
body[data-style=custom][data-theme=flight]{background-image:linear-gradient(145deg,transparent 0 16%,#eaf8ff3d 16.2% 17%,transparent 17.2% 38%,#b9e7ff33 38.2% 39.2%,transparent 39.4% 70%,#fff3 70.2% 71%,transparent 71.2%),radial-gradient(ellipse at 82% 18%,#fff8 0 5rem,transparent 10rem),linear-gradient(165deg,color-mix(in srgb,#4eb7ec 34%,var(--bg)),var(--bg) 62%)}
body[data-style=custom][data-theme=action]{background-image:linear-gradient(128deg,transparent 0 12%,#ffcb5040 12.2% 18%,transparent 18.2% 46%,#f45f3838 46.2% 57%,transparent 57.2%),repeating-linear-gradient(145deg,transparent 0 5.5rem,#ffecb51c 5.6rem 5.9rem),linear-gradient(150deg,color-mix(in srgb,#c33f22 30%,var(--bg)),var(--bg) 60%)}
body[data-style=custom][data-theme=forest]{background-image:radial-gradient(ellipse at 0 110%,#2f8a5160 0 20rem,transparent 20.3rem),radial-gradient(ellipse at 94% 18%,#8fcf7160 0 11rem,transparent 22rem),radial-gradient(ellipse at 52% 88%,#1d69443f 0 13rem,transparent 27rem),linear-gradient(165deg,color-mix(in srgb,#194f32 27%,var(--bg)),var(--bg) 60%)}
body[data-style=custom][data-theme=ocean]{background-image:radial-gradient(ellipse at 8% 112%,#43c8d967 0 24rem,transparent 24.4rem),radial-gradient(ellipse at 96% -5%,#338bdb60 0 20rem,transparent 31rem),repeating-radial-gradient(ellipse at 52% 112%,transparent 0 5rem,#b8f4ff20 5.2rem 5.8rem,transparent 6rem 10rem),linear-gradient(160deg,color-mix(in srgb,#126f9b 30%,var(--bg)),var(--bg) 64%)}
body[data-style=custom][data-theme=space]{background-image:radial-gradient(circle at 14% 18%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 72% 28%,#fff 0 1px,transparent 2px),radial-gradient(circle at 42% 78%,#d7cbff 0 2px,transparent 3px),radial-gradient(circle at 88% 68%,#9ed8ff 0 1.5px,transparent 2.5px),radial-gradient(circle at 23% 62%,#fff 0 1px,transparent 2px),radial-gradient(ellipse at 78% 8%,#7655ba62 0 12rem,transparent 28rem),linear-gradient(150deg,color-mix(in srgb,#24124f 58%,var(--bg)),var(--bg) 72%);background-size:9rem 11rem,13rem 15rem,17rem 19rem,21rem 23rem,25rem 27rem,auto,auto}
body[data-style=custom][data-surface=light][data-theme=calm]{background-image:radial-gradient(circle at 82% 3%,color-mix(in srgb,var(--accent) 48%,transparent) 0 12rem,transparent 29rem),radial-gradient(circle at 4% 82%,color-mix(in srgb,var(--accent) 30%,transparent) 0 10rem,transparent 25rem)}
body[data-style=custom][data-surface=light][data-theme=flowers]{background-image:radial-gradient(circle at 12% 14%,#f35da342 0 2.8rem,#ff9fc436 2.9rem 5.5rem,transparent 5.7rem),radial-gradient(circle at 88% 32%,#8262dd3d 0 3.8rem,#b8a7ef2c 3.9rem 7rem,transparent 7.2rem),radial-gradient(circle at 22% 78%,#e7a61735 0 3rem,#ee75a92b 3.1rem 6rem,transparent 6.2rem),linear-gradient(155deg,#fff4fa,var(--bg) 62%)}
body[data-style=custom][data-surface=light][data-theme=flight]{background-image:linear-gradient(145deg,transparent 0 16%,#218ec02b 16.2% 17%,transparent 17.2% 38%,#318eb72b 38.2% 39.2%,transparent 39.4% 70%,#4f94b626 70.2% 71%,transparent 71.2%),radial-gradient(ellipse at 82% 18%,#fff 0 5rem,transparent 11rem),linear-gradient(165deg,#bceaff,var(--bg) 68%)}
body[data-style=custom][data-surface=light][data-theme=action]{background-image:linear-gradient(128deg,transparent 0 12%,#f6a80045 12.2% 18%,transparent 18.2% 46%,#e348263c 46.2% 57%,transparent 57.2%),repeating-linear-gradient(145deg,transparent 0 5.5rem,#9a401d18 5.6rem 5.9rem),linear-gradient(150deg,#ffe1bd,var(--bg) 68%)}
body[data-style=custom][data-surface=light][data-theme=forest]{background-image:radial-gradient(ellipse at 0 110%,#2e9a5350 0 20rem,transparent 20.3rem),radial-gradient(ellipse at 94% 18%,#76b9584a 0 11rem,transparent 22rem),radial-gradient(ellipse at 52% 88%,#22855836 0 13rem,transparent 27rem),linear-gradient(165deg,#dff4df,var(--bg) 66%)}
body[data-style=custom][data-surface=light][data-theme=ocean]{background-image:radial-gradient(ellipse at 8% 112%,#21a8c052 0 24rem,transparent 24.4rem),radial-gradient(ellipse at 96% -5%,#247cc74d 0 20rem,transparent 31rem),repeating-radial-gradient(ellipse at 52% 112%,transparent 0 5rem,#167d9b20 5.2rem 5.8rem,transparent 6rem 10rem),linear-gradient(160deg,#d8f5fb,var(--bg) 70%)}
body[data-style=custom][data-surface=light][data-theme=space]{background-image:radial-gradient(circle at 14% 18%,#3b2467 0 1.5px,transparent 2.5px),radial-gradient(circle at 72% 28%,#543583 0 1px,transparent 2px),radial-gradient(circle at 42% 78%,#6a4e9d 0 2px,transparent 3px),radial-gradient(circle at 88% 68%,#246b98 0 1.5px,transparent 2.5px),radial-gradient(circle at 23% 62%,#402463 0 1px,transparent 2px),radial-gradient(ellipse at 78% 8%,#ab8de04d 0 12rem,transparent 28rem),linear-gradient(150deg,#e8e0fa,var(--bg) 74%);background-size:9rem 11rem,13rem 15rem,17rem 19rem,21rem 23rem,25rem 27rem,auto,auto}

body[data-style=custom][data-corners=square] :is(.next-card,.routine-row,.step-row,.support-card,.check-card,.note-card,.settings-card,.style-option,.theme-choice,.theme-preview,.pic,.pic-extra,.primary-button,.secondary-button,.danger-button,.check-button,.step-check,.listen,.speech-button,.mobile-nav,.mobile-nav button,.sidebar nav button,.document-view,.all-done,.history>article,.history-note,.empty-state,.catalog-grid button,.step-editor-row,.step-editor-actions button,.weekday-field span,.progress-orb,.mini-progress,.history-bar,.date-badge,input,select,textarea,dialog){border-radius:0}body[data-style=custom][data-corners=square] .progress-orb:before{border-radius:0}
body[data-style=custom][data-corners=soft] :is(.pic,.pic-extra,.primary-button,.secondary-button,.support-card,.step-row){border-radius:1.5rem}
body[data-style=custom][data-typeface=classic]{font-family:"Times New Roman",Times,serif}body[data-style=custom][data-typeface=clear]{font-family:Verdana,Geneva,sans-serif}body[data-style=custom][data-typeface=typewriter]{font-family:"Courier New",Courier,monospace}body[data-style=custom][data-typeface=georgia]{font-family:Georgia,"Times New Roman",serif}body[data-style=custom][data-typeface=arial]{font-family:Arial,Helvetica,sans-serif}body[data-style=custom][data-typeface=trebuchet]{font-family:"Trebuchet MS",Arial,sans-serif}body[data-style=custom][data-typeface=tahoma]{font-family:Tahoma,Verdana,sans-serif}body[data-style=custom][data-typeface=palatino]{font-family:Palatino,"Palatino Linotype","Book Antiqua",serif}
@media(min-width:480px){.theme-grid{grid-template-columns:repeat(3,1fr)}}

/* Svart och vitt är kompletta paletter, med läsbara kontroller i båda grundlägena. */
.swatch-black{--swatch:#080808}.swatch-white{--swatch:#fff}.swatch-white span{box-shadow:inset 0 0 0 1px #8b958e}
body[data-style=inspiring][data-accent=black],body[data-style=custom][data-accent=black][data-surface=dark]{--bg:#030303;--surface:#111;--surface-2:#1a1a1a;--surface-3:#252525;--line:#414141;--text:#fff;--muted:#c3c3c3;--accent:#f4f4f4;--accent-soft:#292929;--ink:#080808}
body[data-style=custom][data-accent=black][data-surface=light]{--bg:#e9e9e9;--surface:#f9f9f9;--surface-2:#dedede;--surface-3:#d0d0d0;--line:#929292;--text:#111;--muted:#555;--accent:#111;--accent-soft:#d2d2d2;--ink:#fff}
body[data-style=inspiring][data-accent=white],body[data-style=custom][data-accent=white][data-surface=dark]{--bg:#151718;--surface:#222526;--surface-2:#2e3233;--surface-3:#393e40;--line:#606768;--text:#fff;--muted:#d2d6d7;--accent:#fff;--accent-soft:#35393a;--ink:#151718}
body[data-style=custom][data-accent=white][data-surface=light]{--bg:#fff;--surface:#fff;--surface-2:#f0f1f1;--surface-3:#e3e5e5;--line:#aeb3b4;--text:#111;--muted:#555;--accent:#232627;--accent-soft:#e6e8e8;--ink:#fff}

body[data-style=custom] :is(.next-card,.routine-row,.step-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){position:relative;isolation:isolate;overflow:hidden}
body[data-style=custom][data-theme=flowers] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:radial-gradient(circle at 100% 0,#ff9fca2b 0 3.2rem,transparent 3.3rem),radial-gradient(circle at 0 100%,#ffd65b18 0 2.6rem,transparent 2.7rem)}
body[data-style=custom][data-theme=flight] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:linear-gradient(145deg,transparent 0 72%,#78c9ed20 72.5% 74%,transparent 74.5%)}
body[data-style=custom][data-theme=action] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:linear-gradient(128deg,transparent 0 78%,#ff9a3d24 78.5% 84%,transparent 84.5%)}
body[data-style=custom][data-theme=forest] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:radial-gradient(ellipse at 105% 110%,#4cae6332 0 6rem,transparent 6.2rem)}
body[data-style=custom][data-theme=ocean] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:radial-gradient(ellipse at 105% 110%,#42bed634 0 5rem,transparent 5.2rem),repeating-radial-gradient(ellipse at 100% 110%,transparent 0 2.1rem,#8ce8f41b 2.2rem 2.5rem,transparent 2.6rem 4rem)}
body[data-style=custom][data-theme=space] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:radial-gradient(circle at 91% 21%,#fff9 0 1px,transparent 2px),radial-gradient(circle at 82% 72%,#c9b7ff9c 0 1.5px,transparent 2.5px),linear-gradient(145deg,transparent 0 68%,#7054ab24 100%);background-size:5rem 6rem,7rem 8rem,auto}

body[data-style=custom][data-typeface=handwritten]{font-family:"Brush Script MT","Segoe Script",cursive;font-size:1.08rem}body[data-style=custom][data-typeface=display]{font-family:Copperplate,"Copperplate Gothic Light",fantasy;letter-spacing:.015em}body[data-style=custom][data-typeface=storybook]{font-family:Papyrus,"Bradley Hand",fantasy;font-size:1.03rem}

/* Slutpolering: tydligare hierarki och djup utan tunga filter eller ständig rörelse. */
body{--shadow-card:0 10px 28px #00000024;--shadow-focus:0 12px 34px color-mix(in srgb,var(--accent) 12%,transparent)}
body[data-style=custom][data-surface=light]{--shadow-card:0 9px 24px #243c2b18;--shadow-focus:0 12px 30px color-mix(in srgb,var(--accent) 18%,transparent)}
.brand-mark{display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:.8rem;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 20%,var(--surface)),var(--surface));box-shadow:inset 0 1px #ffffff18,0 7px 18px #0002;font-size:1.7rem}
.mobile-brand,.brand{letter-spacing:-.02em}.topbar{border-color:color-mix(in srgb,var(--accent) 18%,var(--line))}.today time{font-weight:760;letter-spacing:.025em}.today span{letter-spacing:.025em}
.section-head::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 35%,var(--line)),transparent);margin-left:.15rem}.section-head>.link-button{order:2}
body[data-style=inspiring] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done),body[data-style=custom] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done){box-shadow:inset 0 1px #ffffff0d,var(--shadow-card);border-color:color-mix(in srgb,var(--accent) 23%,var(--line))}
body[data-style=inspiring] .next-card,body[data-style=custom] .next-card{box-shadow:inset 0 1px #ffffff16,0 18px 44px #0000002b,var(--shadow-focus)}
body[data-style=inspiring] .next-card,body[data-style=custom] .next-card{position:relative;overflow:hidden}body[data-style=inspiring] .next-card::before,body[data-style=custom] .next-card::before{content:"";position:absolute;inset:0 auto 0 0;width:.3rem;background:linear-gradient(var(--accent),color-mix(in srgb,var(--accent) 35%,transparent));z-index:2}
body[data-style=inspiring] .pic,body[data-style=custom] .pic{background:linear-gradient(145deg,#fffef1,#e9eedb);border:1px solid #ffffffa8;box-shadow:inset 0 -4px 10px #31452b14,0 6px 14px #0002}
.progress-orb{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent),0 10px 28px #0003}.progress-orb:before{box-shadow:inset 0 0 0 1px var(--line)}
.routine-row,.support-card,.check-button,.step-check,.levels button,.primary-button,.secondary-button,.listen,.mobile-nav button,.sidebar nav button,.theme-choice,.swatch span{transition:transform .14s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
button:active,.theme-choice:active,.swatch:active span{transform:scale(.97)}.check-button[aria-checked=true],.step-check[aria-checked=true],.levels button[aria-pressed=true]{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent),0 6px 18px color-mix(in srgb,var(--accent) 18%,transparent)}
.primary-button{box-shadow:inset 0 1px #ffffff55,0 7px 18px color-mix(in srgb,var(--accent) 17%,transparent)}
.mobile-nav{border-color:color-mix(in srgb,var(--accent) 24%,var(--line));box-shadow:0 18px 48px #0008,inset 0 1px #ffffff0d}.mobile-nav button[aria-current=page],.sidebar nav button[aria-current=page]{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 25%,transparent)}.mobile-nav button[aria-current=page]::after{content:"";width:1.15rem;height:.17rem;border-radius:99px;background:var(--accent);position:absolute;bottom:.18rem}.mobile-nav button{position:relative}
.routine-row.is-done{opacity:.76}.routine-row.is-done::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 7%,transparent),transparent 65%);pointer-events:none}
.page-head h1,.welcome h1{text-wrap:balance}.page-head{position:relative}.eyebrow{display:flex;align-items:center;gap:.48rem}.eyebrow::before{content:"";width:.42rem;height:.42rem;border-radius:50%;background:var(--accent);box-shadow:0 0 0 .24rem color-mix(in srgb,var(--accent) 13%,transparent)}
.note-card textarea{box-shadow:inset 0 1px 5px #0002}.history-bar,.mini-progress{box-shadow:inset 0 1px 3px #0003}.history-bar i,.mini-progress i{box-shadow:0 0 12px color-mix(in srgb,var(--accent) 35%,transparent)}

/* Förhandsvisningarna visar nu motivets personlighet direkt. */
.theme-choice{min-height:4.1rem}.theme-preview{position:relative;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff1f}.theme-preview::after{content:var(--preview-mark);font-family:system-ui,sans-serif;font-size:1.25rem;color:#fff;text-shadow:0 2px 8px #0008}.theme-calm{--preview-mark:"∿"}.theme-flowers{--preview-mark:"✿"}.theme-flight{--preview-mark:"✈"}.theme-action{--preview-mark:"⚡"}.theme-forest{--preview-mark:"❦"}.theme-ocean{--preview-mark:"≋"}.theme-space{--preview-mark:"✦"}.theme-choice:has(input:checked){background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 15%,var(--surface-2)),var(--surface-2));border-color:color-mix(in srgb,var(--accent) 70%,var(--line));box-shadow:var(--shadow-focus)}
.swatch span{box-shadow:inset 0 1px 2px #fff6,0 5px 12px #0002}.swatch input:checked+span{box-shadow:inset 0 1px 2px #fff6,0 0 0 3px var(--surface),0 0 0 5px var(--text)}

/* Temat får en egen kantton och återkommer även i navigeringen. */
body[data-style=custom][data-theme=flowers]{--theme-edge:#ff86bc}body[data-style=custom][data-theme=flight]{--theme-edge:#6acaf1}body[data-style=custom][data-theme=action]{--theme-edge:#ff8c42}body[data-style=custom][data-theme=forest]{--theme-edge:#6fc47b}body[data-style=custom][data-theme=ocean]{--theme-edge:#48c7dc}body[data-style=custom][data-theme=space]{--theme-edge:#c7b3ff}body[data-style=custom][data-theme=calm]{--theme-edge:var(--accent)}
body[data-style=custom] :is(.mobile-nav,.sidebar){border-color:color-mix(in srgb,var(--theme-edge) 34%,var(--line))}body[data-style=custom] .brand-mark{color:var(--theme-edge);border-color:color-mix(in srgb,var(--theme-edge) 55%,var(--line))}
body[data-style=custom][data-theme=flowers] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view){border-color:color-mix(in srgb,#ff86bc 34%,var(--line))}body[data-style=custom][data-theme=space] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view){border-color:color-mix(in srgb,#c7b3ff 34%,var(--line))}body[data-style=custom][data-theme=ocean] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view){border-color:color-mix(in srgb,#48c7dc 30%,var(--line))}

:is(body[data-style=inspiring],body[data-style=custom][data-inspiration=true]) .inspiration-note{position:relative;overflow:hidden;border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:inset 0 1px #ffffff16,0 14px 34px #0002;transition:opacity .55s ease,transform .55s ease}:is(body[data-style=inspiring],body[data-style=custom][data-inspiration=true]) .inspiration-note::after{content:"✦";position:absolute;right:1rem;top:.55rem;color:var(--accent);font-size:1.25rem;opacity:.45}:is(body[data-style=inspiring],body[data-style=custom][data-inspiration=true]) .inspiration-note strong{color:var(--text);letter-spacing:.01em}.inspiration-note.is-changing{opacity:0;transform:translateY(.35rem)}

@media(hover:hover){body:not([data-style=simple]) .routine-row:hover,body:not([data-style=simple]) .support-card:hover,.theme-choice:hover{transform:translateY(-2px);box-shadow:inset 0 1px #ffffff12,0 14px 34px #0003}.primary-button:hover{box-shadow:inset 0 1px #ffffff66,0 10px 24px color-mix(in srgb,var(--accent) 27%,transparent)}}
@media(max-width:390px){.brand-mark{width:2rem;height:2rem;font-size:1.5rem}.section-head::after{display:none}.theme-choice{grid-template-columns:3rem 1fr}.theme-preview{width:3rem}.mobile-nav button[aria-current=page]::after{bottom:.12rem}}
@media(prefers-reduced-motion:reduce){.check-button,.step-check,.levels button,.primary-button,.secondary-button,.listen,.mobile-nav button,.sidebar nav button,.theme-choice,.swatch span{transition:none!important}}
.speech-button:not([hidden]){display:inline-flex}.listen.is-speaking,.speech-button.is-speaking{background:var(--accent);color:var(--ink);border-color:var(--accent)}.history-note .listen{margin-left:auto;align-self:flex-start;flex:none}@media(max-width:699px){.topbar{gap:.55rem}.today{margin-left:auto}.speech-button{width:2.75rem;min-width:2.75rem;height:2.75rem;padding:0;justify-content:center}.speech-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
body[data-style=simple] :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.settings-card){box-shadow:none}body[data-style=simple] .eyebrow::before{display:none}
body[data-style=custom][data-corners=square] .brand-mark,body[data-style=custom][data-corners=square] .mobile-nav button[aria-current=page]::after,body[data-style=custom][data-corners=square] .eyebrow::before{border-radius:0}

/* Bildteman har fasta helhetspaletter; bakgrund, boxar och kontroller hör ihop. */
body[data-style=custom][data-theme=flowers][data-surface=dark]{--bg:#1b111a;--surface:#2a1a28;--surface-2:#382238;--surface-3:#4a2c45;--line:#70445f;--text:#fff8fc;--muted:#d8b9cb;--accent:#ff9ac8;--accent-soft:#51283f;--ink:#321322}
body[data-style=custom][data-theme=flowers][data-surface=light]{--bg:#fff1f7;--surface:#fffafd;--surface-2:#f9deeb;--surface-3:#f0cbdc;--line:#d9a7bf;--text:#321c29;--muted:#795568;--accent:#b93e78;--accent-soft:#f7d7e6;--ink:#fff}
body[data-style=custom][data-theme=flight][data-surface=dark]{--bg:#071923;--surface:#102b38;--surface-2:#173a49;--surface-3:#204c5e;--line:#397088;--text:#f4fcff;--muted:#afd1df;--accent:#8bdcff;--accent-soft:#17475c;--ink:#082735}
body[data-style=custom][data-theme=flight][data-surface=light]{--bg:#eaf8fe;--surface:#f8fdff;--surface-2:#d8eff9;--surface-3:#c5e4f1;--line:#91bed1;--text:#102d39;--muted:#4f7180;--accent:#167da7;--accent-soft:#d0ebf6;--ink:#fff}
body[data-style=custom][data-theme=action][data-surface=dark]{--bg:#211008;--surface:#32190d;--surface-2:#432313;--surface-3:#59301a;--line:#82502e;--text:#fff8ef;--muted:#dfc0a6;--accent:#ffad52;--accent-soft:#583019;--ink:#321602}
body[data-style=custom][data-theme=action][data-surface=light]{--bg:#fff0df;--surface:#fffaf4;--surface-2:#f9dec1;--surface-3:#f0cda8;--line:#d0a06f;--text:#382113;--muted:#795c46;--accent:#a84414;--accent-soft:#f5d4b4;--ink:#fff}
body[data-style=custom][data-theme=forest][data-surface=dark]{--bg:#07170e;--surface:#10261a;--surface-2:#183522;--surface-3:#21472e;--line:#3b6848;--text:#f5fff5;--muted:#afd0b4;--accent:#91dd8b;--accent-soft:#214b2c;--ink:#0a2c13}
body[data-style=custom][data-theme=forest][data-surface=light]{--bg:#ebf7ed;--surface:#f8fdf8;--surface-2:#d9eedc;--surface-3:#c5e2ca;--line:#95be9d;--text:#172e1c;--muted:#52705a;--accent:#286f38;--accent-soft:#d1e9d5;--ink:#fff}
body[data-style=custom][data-theme=ocean][data-surface=dark]{--bg:#061923;--surface:#0c2a38;--surface-2:#123848;--surface-3:#194b5f;--line:#307087;--text:#f2fcff;--muted:#add2de;--accent:#71dcea;--accent-soft:#174959;--ink:#062a32}
body[data-style=custom][data-theme=ocean][data-surface=light]{--bg:#e8f8fb;--surface:#f8fdfe;--surface-2:#d3eef3;--surface-3:#bee2e9;--line:#89bac5;--text:#123139;--muted:#4b717a;--accent:#166f87;--accent-soft:#cae9ee;--ink:#fff}
body[data-style=custom][data-theme=space][data-surface=dark]{--bg:#0d091e;--surface:#19132f;--surface-2:#251c43;--surface-3:#33275a;--line:#594978;--text:#fbf9ff;--muted:#c7bde0;--accent:#c7b4ff;--accent-soft:#392d61;--ink:#211440}
body[data-style=custom][data-theme=space][data-surface=light]{--bg:#f2edff;--surface:#fcfaff;--surface-2:#e5dcf8;--surface-3:#d6c9ef;--line:#ab99ce;--text:#29203d;--muted:#645979;--accent:#674da1;--accent-soft:#e1d8f4;--ink:#fff}
.theme-palette-note{display:grid;gap:.18rem;margin:.85rem 0 .3rem;padding:.8rem .9rem;border:1px solid color-mix(in srgb,var(--theme-edge) 45%,var(--line));border-radius:1rem;background:linear-gradient(135deg,color-mix(in srgb,var(--theme-edge) 12%,var(--surface-2)),var(--surface-2));color:var(--text);font-size:.82rem}.theme-palette-note strong,.theme-palette-note span{display:block}.theme-palette-note span{color:var(--muted);line-height:1.45}
body[data-style=custom][data-corners=square] .theme-palette-note{border-radius:0}

/* Kontroller använder samma palett som resten av sidan. */
:is(body[data-style=inspiring],body[data-style=custom]) :is(input,select,textarea){border-color:var(--line)}
:is(body[data-style=inspiring],body[data-style=custom]) :is(.check-button,.step-check){border-color:var(--line)}
:is(body[data-style=inspiring],body[data-style=custom]) :is(.check-button,.step-check) span{background:var(--line)}
:is(body[data-style=inspiring],body[data-style=custom]) .switch{background:var(--surface-3);border:1px solid var(--line)}
:is(body[data-style=inspiring],body[data-style=custom]) .switch:checked{background:var(--accent)}
:is(body[data-style=inspiring],body[data-style=custom]) :is(#status,dialog){background-color:var(--surface-3);border-color:var(--line)}
:is(body[data-style=inspiring],body[data-style=custom]) .document-body{color:var(--text)}

/* Färgval är helhetspaletter: även sidbakgrund, kort och navigering följer valet. */
body[data-style=inspiring][data-accent=teal],body[data-style=custom][data-theme=calm][data-accent=teal][data-surface=dark]{--bg:#061917;--surface:#0d2a25;--surface-2:#143a33;--surface-3:#1b4b40;--line:#346b5f;--text:#f2fffc;--muted:#add1c8;--accent:#72e6cf;--accent-soft:#17463d;--ink:#072a23}
body[data-style=inspiring][data-accent=blue],body[data-style=custom][data-theme=calm][data-accent=blue][data-surface=dark]{--bg:#071521;--surface:#0e2838;--surface-2:#16384a;--surface-3:#204a60;--line:#396d86;--text:#f3fbff;--muted:#aecddd;--accent:#87d7ff;--accent-soft:#163a49;--ink:#092531}
body[data-style=inspiring][data-accent=violet],body[data-style=custom][data-theme=calm][data-accent=violet][data-surface=dark]{--bg:#120d22;--surface:#211832;--surface-2:#302346;--surface-3:#40305b;--line:#66517f;--text:#fbf8ff;--muted:#c9bedb;--accent:#c5b4ff;--accent-soft:#342c52;--ink:#20163d}
body[data-style=inspiring][data-accent=pink],body[data-style=custom][data-theme=calm][data-accent=pink][data-surface=dark]{--bg:#1d1018;--surface:#2e1825;--surface-2:#402133;--surface-3:#552c43;--line:#75455e;--text:#fff8fc;--muted:#d9b9ca;--accent:#ffacd1;--accent-soft:#48283a;--ink:#321221}
body[data-style=inspiring][data-accent=amber],body[data-style=custom][data-theme=calm][data-accent=amber][data-surface=dark]{--bg:#1d1508;--surface:#30220d;--surface-2:#423017;--surface-3:#57401f;--line:#796037;--text:#fffaf0;--muted:#d9c49f;--accent:#ffd36e;--accent-soft:#443719;--ink:#2b2006}
body[data-style=custom][data-theme=calm][data-accent=teal][data-surface=light]{--bg:#e7f8f4;--surface:#f8fffd;--surface-2:#d7eee8;--surface-3:#c5e3dc;--line:#8ebdb2;--text:#102f29;--muted:#52756d;--accent:#187d69;--accent-soft:#cde9e2;--ink:#fff}
body[data-style=custom][data-theme=calm][data-accent=blue][data-surface=light]{--bg:#eaf6fc;--surface:#fbfdff;--surface-2:#d8ebf5;--surface-3:#c7e0ed;--line:#91b9cd;--text:#102c3b;--muted:#527183;--accent:#176f9d;--accent-soft:#d1e8f3;--ink:#fff}
body[data-style=custom][data-theme=calm][data-accent=violet][data-surface=light]{--bg:#f2edfb;--surface:#fdfbff;--surface-2:#e6dcf3;--surface-3:#d7c8e9;--line:#ad99c7;--text:#2c213c;--muted:#695b79;--accent:#72509d;--accent-soft:#e2d7ef;--ink:#fff}
body[data-style=custom][data-theme=calm][data-accent=pink][data-surface=light]{--bg:#fceef5;--surface:#fffafd;--surface-2:#f3dce8;--surface-3:#e8cad9;--line:#cfa2b9;--text:#38212e;--muted:#765768;--accent:#a74373;--accent-soft:#efd5e2;--ink:#fff}
body[data-style=custom][data-theme=calm][data-accent=amber][data-surface=light]{--bg:#fbf3e3;--surface:#fffdf8;--surface-2:#f1e3c7;--surface-3:#e7d3ab;--line:#c3a978;--text:#352a17;--muted:#716248;--accent:#87601c;--accent-soft:#eddfbf;--ink:#fff}
body[data-style=inspiring][data-accent=lime],body[data-style=custom][data-theme=calm][data-accent=lime][data-surface=dark]{--bg:#081712;--surface:#112b20;--surface-2:#19382a;--surface-3:#214734;--line:#356048;--text:#f5f6ed;--muted:#a9baad;--accent:#d7f58f;--accent-soft:#2b4a31;--ink:#102216}
body[data-style=custom][data-theme=calm][data-accent=lime][data-surface=light]{--bg:#edf7e8;--surface:#fbfff8;--surface-2:#dfefd6;--surface-3:#cfe3c4;--line:#9cbd8d;--text:#20301c;--muted:#5d7355;--accent:#4f7622;--accent-soft:#d9eacb;--ink:#fff}

.mobile-nav{background:color-mix(in srgb,var(--surface) 94%,transparent);border-color:color-mix(in srgb,var(--accent) 24%,var(--line))}
@media(min-width:1080px){.sidebar{background:color-mix(in srgb,var(--bg) 92%,transparent)}}

/* Fria fototeman: omslutande, men arbetsytorna förblir lugna och läsbara. */
.theme-flowers,body[data-theme=flowers]{--theme-photo:url("theme-flowers.webp");--theme-photo-position:center center}.theme-flight,body[data-theme=flight]{--theme-photo:url("theme-flight.webp");--theme-photo-position:center center}.theme-action,body[data-theme=action]{--theme-photo:url("theme-action.webp");--theme-photo-position:center center}.theme-forest,body[data-theme=forest]{--theme-photo:url("theme-forest.webp");--theme-photo-position:center center}.theme-ocean,body[data-theme=ocean]{--theme-photo:url("theme-ocean.webp");--theme-photo-position:center center}.theme-space,body[data-theme=space]{--theme-photo:url("theme-space.webp");--theme-photo-position:center center}
.theme-choice:not(.theme-calm) .theme-preview{background-image:linear-gradient(#07121b24,#07121b78),var(--theme-photo);background-size:cover;background-position:center}
body[data-style=custom]:not([data-theme=calm]){position:relative;background:var(--bg)}
body[data-style=custom]:not([data-theme=calm])::before{content:"";position:fixed;z-index:0;inset:0;pointer-events:none;background-size:cover;background-position:var(--theme-photo-position);background-repeat:no-repeat}
body[data-style=custom]:not([data-theme=calm]) .app-shell{position:relative;z-index:1;background:transparent}
body[data-style=custom]:not([data-theme=calm])[data-surface=dark]::before{background-image:linear-gradient(color-mix(in srgb,var(--bg) 18%,transparent),color-mix(in srgb,var(--bg) 34%,transparent)),radial-gradient(ellipse at center,transparent 34%,color-mix(in srgb,var(--bg) 38%,transparent) 100%),var(--theme-photo)}
body[data-style=custom]:not([data-theme=calm])[data-surface=light]::before{background-image:linear-gradient(color-mix(in srgb,var(--bg) 38%,transparent),color-mix(in srgb,var(--bg) 56%,transparent)),radial-gradient(ellipse at center,transparent 32%,color-mix(in srgb,var(--bg) 28%,transparent) 100%),var(--theme-photo)}
body[data-style=custom]:not([data-theme=calm]) :is(.next-card,.routine-row,.support-card,.check-card,.note-card,.document-view,.history>article,.all-done,.empty-state){background-image:none}

/* Genomskinliga arbetsytor utan bakgrundsoskärpa, för bättre iPhone-prestanda. */
body[data-style=custom]:not([data-theme=calm]) :is(.next-card,.routine-row,.step-row,.support-card,.check-card,.note-card,.settings-card,.style-option,.theme-choice,.document-view,.insight-summary article,.history>article,.history-note,.all-done,.empty-state,.other-dates article,.inspiration-note){background:color-mix(in srgb,var(--surface) 80%,transparent)}
body[data-style=custom]:not([data-theme=calm]) :is(input,select,textarea,.levels button,.secondary-button,.listen,.row-actions button,.other-dates button,.manage-row button){background-color:color-mix(in srgb,var(--surface-3) 82%,transparent)}
body[data-style=custom]:not([data-theme=calm]) :is(.mobile-nav,.sidebar){background:color-mix(in srgb,var(--surface) 86%,transparent)}
body[data-style=custom]:not([data-theme=calm])[data-surface=dark] :is(.welcome,.page-head){text-shadow:0 2px 9px #000,0 1px 2px #000}
body[data-style=custom]:not([data-theme=calm])[data-surface=light] :is(.welcome,.page-head){text-shadow:0 1px 1px #fff,0 2px 10px #fff}

.credits ul{margin:.55rem 0 0;padding-left:1.2rem}.credits li{margin:.38rem 0;line-height:1.45}

@media(prefers-reduced-motion:reduce){.inspiration-note{transition:none!important}}

/* Varje fototema har en egen överkant som även färgar iPhones säkra område. */
body[data-style=custom][data-theme=flowers][data-surface=dark]{--chrome:#24101f}body[data-style=custom][data-theme=flowers][data-surface=light]{--chrome:#f7d8e6}
body[data-style=custom][data-theme=flight][data-surface=dark]{--chrome:#0a1a28}body[data-style=custom][data-theme=flight][data-surface=light]{--chrome:#d6edf7}
body[data-style=custom][data-theme=action][data-surface=dark]{--chrome:#1c0d07}body[data-style=custom][data-theme=action][data-surface=light]{--chrome:#f5d5b4}
body[data-style=custom][data-theme=forest][data-surface=dark]{--chrome:#07170e}body[data-style=custom][data-theme=forest][data-surface=light]{--chrome:#d7ead9}
body[data-style=custom][data-theme=ocean][data-surface=dark]{--chrome:#061723}body[data-style=custom][data-theme=ocean][data-surface=light]{--chrome:#cce9ef}
body[data-style=custom][data-theme=space][data-surface=dark]{--chrome:#090617}body[data-style=custom][data-theme=space][data-surface=light]{--chrome:#ded5f2}
body[data-style=custom][data-theme=calm]{--chrome:var(--bg)}

.topbar{padding-top:env(safe-area-inset-top);min-height:calc(74px + env(safe-area-inset-top))}
body[data-style=custom]:not([data-theme=calm]) .topbar::before{content:"";position:absolute;z-index:-1;inset:0 -1.25rem;background:linear-gradient(180deg,color-mix(in srgb,var(--chrome) 92%,transparent),color-mix(in srgb,var(--chrome) 50%,transparent) 58%,transparent);pointer-events:none}

/* Ett enda GPU-vänligt atmosfärslager gör temana levande utan tunga blur-filter. */
body[data-style=custom]:not([data-theme=calm])::after{content:"";position:fixed;z-index:0;inset:-12%;pointer-events:none;will-change:transform,opacity;opacity:.62}
body[data-style=custom][data-theme=flowers]::after{background-image:radial-gradient(circle at 12% 18%,#fff7 0 .18rem,transparent .34rem),radial-gradient(circle at 77% 26%,#ffd4eaaa 0 .24rem,transparent .46rem),radial-gradient(circle at 38% 67%,#fff1b888 0 .2rem,transparent .42rem),radial-gradient(circle at 88% 82%,#ffc8e477 0 .25rem,transparent .5rem);background-size:9rem 12rem,13rem 16rem,11rem 14rem,17rem 20rem;animation:spectrum-float 24s ease-in-out infinite alternate}
body[data-style=custom][data-theme=flight]::after{background-image:linear-gradient(118deg,transparent 18%,#fff2 37%,#fff8 48%,#fff1 59%,transparent 76%),radial-gradient(ellipse at 80% 28%,#ffe7aa55 0 9rem,transparent 23rem);animation:spectrum-sky 28s ease-in-out infinite alternate;opacity:.48}
body[data-style=custom][data-theme=action]::after{background-image:repeating-linear-gradient(118deg,transparent 0 6.5rem,#ffda7838 6.6rem 6.72rem,transparent 6.82rem 12rem),linear-gradient(118deg,transparent 28%,#ff8f3a24 49%,transparent 72%);animation:spectrum-energy 15s linear infinite;opacity:.56}
body[data-style=custom][data-theme=forest]::after{background-image:radial-gradient(ellipse at 15% 12%,#fff6bd4d 0 5rem,transparent 17rem),radial-gradient(ellipse at 83% 48%,#bff59b38 0 7rem,transparent 20rem),radial-gradient(ellipse at 35% 88%,#fff3a52e 0 4rem,transparent 15rem);animation:spectrum-dapple 26s ease-in-out infinite alternate;opacity:.5}
body[data-style=custom][data-theme=ocean]::after{background-image:repeating-radial-gradient(ellipse at 50% 108%,transparent 0 4.5rem,#c9fbff30 4.65rem 4.82rem,transparent 5rem 8rem),linear-gradient(165deg,transparent 22%,#a9f4ff22 48%,transparent 72%);animation:spectrum-tide 21s ease-in-out infinite alternate;opacity:.58}
body[data-style=custom][data-theme=space]::after{background-image:radial-gradient(circle,#fff 0 .08rem,transparent .15rem),radial-gradient(circle,#b9d8ff 0 .1rem,transparent .2rem),radial-gradient(circle,#d9c8ff 0 .07rem,transparent .14rem);background-size:7rem 9rem,13rem 16rem,19rem 23rem;background-position:1rem 2rem,4rem 7rem,9rem 3rem;animation:spectrum-stars 11s ease-in-out infinite alternate;opacity:.7}

@keyframes spectrum-float{from{transform:translate3d(-1.5%,2%,0) rotate(-.35deg);opacity:.4}to{transform:translate3d(2.5%,-2.5%,0) rotate(.45deg);opacity:.72}}
@keyframes spectrum-sky{from{transform:translate3d(-5%,1%,0);opacity:.3}to{transform:translate3d(5%,-1%,0);opacity:.55}}
@keyframes spectrum-energy{from{transform:translate3d(-5%,5%,0)}to{transform:translate3d(5%,-5%,0)}}
@keyframes spectrum-dapple{from{transform:translate3d(-2%,-1%,0);opacity:.35}to{transform:translate3d(3%,2%,0);opacity:.58}}
@keyframes spectrum-tide{from{transform:translate3d(0,2%,0) scale(1);opacity:.4}to{transform:translate3d(0,-2%,0) scale(1.025);opacity:.65}}
@keyframes spectrum-stars{from{transform:translate3d(-.4%,-.25%,0);opacity:.42}to{transform:translate3d(.5%,.35%,0);opacity:.78}}

@media(max-width:390px){body[data-style=custom]:not([data-theme=calm]) .topbar::before{inset:0 -.8rem}}
@media(prefers-reduced-motion:reduce){body[data-style=custom]:not([data-theme=calm])::after{animation:none!important;transform:none!important;opacity:.38}}
.listen.is-speaking,.speech-button.is-speaking{background:var(--accent)!important;color:var(--ink);border-color:var(--accent)}
.period-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;margin:-.75rem 0 1rem}.period-picker button{background:var(--surface-3);border:1px solid var(--line);border-radius:.85rem;padding:.65rem .35rem;font-size:.82rem;font-weight:700}.period-picker button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}.insight-chart-card{background:var(--surface);border:1px solid var(--line);border-radius:1.35rem;padding:1rem;box-shadow:inset 0 1px #ffffff0d,var(--shadow-card)}.chart-legend{display:flex;flex-wrap:wrap;gap:.6rem 1rem;color:var(--muted);font-size:.75rem;margin-bottom:1.2rem}.chart-legend span{display:flex;align-items:center;gap:.4rem}.chart-legend i{width:.75rem;height:.75rem;border-radius:.2rem}.legend-current{background:var(--accent)}.legend-previous{background:var(--muted)}.comparison-chart{display:grid;gap:1.2rem}.chart-row{display:grid;gap:.45rem}.chart-label{display:flex;align-items:center;gap:.5rem}.chart-label strong{font-size:.88rem}.bar-line{display:grid;grid-template-columns:1fr 2rem;align-items:center;gap:.55rem}.bar-line>span{height:.65rem;background:var(--surface-3);border-radius:99px;overflow:hidden}.bar-line i{display:block;height:100%;border-radius:inherit;min-width:0}.bar-current{background:var(--accent)}.bar-previous{background:var(--muted)}.bar-line b{font-size:.75rem;font-variant-numeric:tabular-nums;text-align:right}.chart-scale{display:grid;grid-template-columns:auto 1fr auto;gap:.5rem;color:var(--muted);font-size:.7rem;margin-top:1rem}.chart-scale span:nth-child(2){text-align:center}.history-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:2.2rem}.history-toolbar .section-head{margin:0}.history-toolbar label{display:grid;gap:.3rem;min-width:10.5rem}.history-toolbar label span{font-size:.7rem;color:var(--muted)}.history-toolbar select{min-height:2.65rem;padding:.45rem .65rem;text-transform:capitalize}.history-explainer{font-size:.8rem;margin:.7rem 0 1rem}.history-note .listen{margin-left:auto}.body-placeholder{display:none}body[data-style=custom]:not([data-theme=calm]) .insight-chart-card{background:color-mix(in srgb,var(--surface) 80%,transparent)}body[data-style=custom][data-corners=square] :is(.period-picker button,.insight-chart-card,.chart-legend i,.bar-line>span,.bar-line i){border-radius:0}body[data-style=custom][data-corners=soft] :is(.period-picker button,.insight-chart-card){border-radius:2rem}@media(max-width:480px){.history-toolbar{align-items:stretch;flex-direction:column}.history-toolbar label{width:100%}.chart-legend{display:grid;gap:.45rem}.insight-chart-card{padding:.9rem}}



.history-note .history-note-actions .listen{margin-left:0}
body[data-style=custom][data-corners=square] :is(.calendar-card,.calendar-head button,.calendar-grid button,.calendar-key i,.note-edit-button,.saved-note-row){border-radius:0}
@media(max-width:480px){.today-notes>.saved-note-row{grid-template-columns:2.8rem 1fr}.today-notes>.saved-note-row .note-edit-button{grid-column:2}.history-note{display:grid;grid-template-columns:auto 1fr}.history-note-actions{grid-column:2;margin-left:0}}

.catalog-date{display:flex;align-items:center;gap:.75rem;margin:-.2rem 0 1rem;padding:.7rem .8rem;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:1rem;background:var(--accent-soft);color:var(--text)}.catalog-date span,.catalog-date strong{display:block}.catalog-date span{font-size:.72rem;color:var(--muted)}.catalog-date strong{margin-top:.12rem;color:var(--text);font-size:.9rem;text-transform:capitalize}body[data-style=custom][data-corners=square] .catalog-date{border-radius:0}

.calendar-view-toggle{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;width:min(14rem,100%);margin:0 auto 1rem;padding:.28rem;border:1px solid var(--line);border-radius:.9rem;background:var(--surface-2)}.calendar-view-toggle button{min-height:2.5rem;border-radius:.65rem;background:transparent;color:var(--muted);font-size:.8rem;font-weight:750}.calendar-view-toggle button[aria-pressed=true]{background:var(--accent);color:var(--ink);box-shadow:inset 0 1px #fff5}.calendar-grid-week .calendar-day{min-height:9rem}.calendar-number-week{width:auto;min-width:2.8rem;padding:0 .4rem;text-transform:capitalize}.calendar-day-agenda{display:grid;gap:.55rem;max-height:52dvh;overflow:auto;padding:.1rem .15rem .1rem 0}.calendar-day-agenda>button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;width:100%;padding:.75rem;text-align:left;border:1px solid var(--line);border-radius:1rem;background:var(--surface-2)}.calendar-day-agenda>button span{display:grid;gap:.12rem;min-width:0}.calendar-day-agenda>button time{color:var(--accent);font-size:.72rem;font-weight:800}.calendar-day-agenda>button strong{font-size:.92rem;overflow-wrap:anywhere}.calendar-day-agenda>button small{color:var(--muted);font-size:.72rem}.calendar-day-agenda>button>b{color:var(--accent);font-size:.72rem}.calendar-day-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;padding:1.4rem;border:1px dashed var(--line);border-radius:1rem;background:var(--surface-2)}.calendar-day-empty span{color:var(--muted);font-size:.8rem}.calendar-day-add{width:100%;margin-top:1rem}body[data-style=custom][data-corners=square] :is(.calendar-view-toggle,.calendar-view-toggle button,.calendar-day-agenda>button,.calendar-day-empty){border-radius:0}
@media(max-width:560px){.calendar-card[data-calendar-view=week] .calendar-grid-week{grid-template-columns:1fr;gap:.45rem}.calendar-card[data-calendar-view=week] .calendar-day{min-height:5.6rem;padding:.55rem}.calendar-card[data-calendar-view=week] .calendar-number-week{font-size:.78rem;width:auto;min-width:3.4rem}.calendar-card[data-calendar-view=week] .calendar-event time{font-size:.68rem}.calendar-card[data-calendar-view=week] .calendar-event b{font-size:.72rem}.calendar-card[data-calendar-view=week] .calendar-events{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}.calendar-card[data-calendar-view=week] .calendar-more{grid-column:1/-1}.calendar-day-agenda>button{grid-template-columns:auto 1fr}.calendar-day-agenda>button>b{grid-column:2}.calendar-view-toggle{width:100%}}

/* Förenklad start och tydligare primärflöde. */
.mobile-nav{grid-template-columns:repeat(5,1fr)}
body[data-insights=false] .mobile-nav{grid-template-columns:repeat(4,1fr)}
body[data-setup=false] :is(.sidebar,.topbar,.mobile-nav){display:none!important}
body[data-setup=false] .content-shell{width:min(100%,760px);padding:clamp(1rem,4vw,2.5rem)}
body[data-setup=false] main{min-height:100dvh;display:grid;place-items:center;padding:1rem 0}
.onboarding{width:100%;max-width:650px;margin:auto;padding:clamp(1.25rem,5vw,2.6rem);background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid var(--line);border-radius:2rem;box-shadow:0 28px 80px #0005;text-align:center}
.onboarding-mark{display:grid;place-items:center;width:4.5rem;height:4.5rem;margin:0 auto 1.2rem;border-radius:1.4rem;background:var(--accent);color:var(--ink);font-size:3.3rem;line-height:1}
.onboarding h1{max-width:13ch;margin-left:auto;margin-right:auto}.onboarding-lead{max-width:52ch;margin:0 auto 1.5rem}.onboarding-lead span{display:block;margin-top:.35rem;color:var(--text);font-size:.88rem}
.onboarding-choices{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.onboarding-choices button{display:grid;gap:.45rem;min-height:9rem;padding:1.25rem;border:1px solid var(--line);border-radius:1.35rem;background:var(--surface-2);text-align:left}.onboarding-choices button:first-child{border-color:color-mix(in srgb,var(--accent) 60%,var(--line))}.onboarding-choices strong{font-size:1.2rem}.onboarding-choices span{color:var(--muted);font-size:.84rem;line-height:1.45}
.onboarding-routines{display:grid;gap:.5rem;margin:1.25rem 0;text-align:left}.onboarding-routines>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.7rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface-2)}.onboarding-routines span,.onboarding-routines strong,.onboarding-routines small{display:block}.onboarding-routines small{color:var(--muted);margin-top:.15rem}.onboarding-routines button{padding:.4rem .65rem;border-radius:.7rem;background:var(--surface-3);font-weight:700}.onboarding>.secondary-button,.onboarding>.primary-button{display:block;width:100%;margin-top:.7rem}.onboarding-back{margin-top:.8rem}
.routine-edit-button{min-height:2rem;margin-top:.45rem;padding:.15rem 0;background:transparent;color:var(--accent);font-size:.75rem;font-weight:750}.routine-row>.listen{width:2.65rem;height:2.65rem;min-height:2.65rem;padding:0}.routine-row{grid-template-columns:auto minmax(0,1fr) auto auto}.routine-steps,.row-actions{grid-column:1/-1}.manage-heading{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.manage-heading span{display:grid;gap:.15rem;flex:1}.manage-heading small{color:var(--muted)}.manage-heading button,.settings-action{padding:.55rem .8rem;border-radius:.8rem;background:var(--surface-3);border:1px solid var(--line)}.settings-action{width:100%;margin-top:1rem}.style-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.routine-manager{display:grid;gap:.65rem}.routine-manager article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.7rem;padding:.8rem;border:1px solid var(--line);border-radius:1rem;background:var(--surface)}.routine-manager article>div:not(.manager-order){min-width:0}.routine-manager strong,.routine-manager span{display:block}.routine-manager span{margin-top:.18rem;color:var(--muted);font-size:.76rem}.routine-manager article>button,.manager-order button{padding:.45rem .65rem;border-radius:.7rem;background:var(--surface-3);font-size:.76rem;font-weight:700}.manager-order{display:flex;gap:.3rem}.manager-order button{min-width:2.4rem;padding:.35rem}
body[data-image-support=none] :is(.support-card,.history-note,.note-card,.insight-summary article,.manage-row,.calendar-day-agenda>button){grid-template-columns:1fr auto}body[data-image-support=none] .routine-row{grid-template-columns:minmax(0,1fr) auto auto}
@media(max-width:560px){.onboarding{padding:1.15rem;border-radius:1.35rem}.onboarding-choices{grid-template-columns:1fr}.onboarding-choices button{min-height:6.5rem}.routine-row{grid-template-columns:auto minmax(0,1fr) auto}.routine-row>.listen{grid-column:2;justify-self:start}.routine-row>.check-button{grid-column:3;grid-row:1}.routine-copy{grid-column:2}.image-button{grid-column:1;grid-row:1}.style-options{grid-template-columns:1fr}body[data-image-support=none] .routine-row{grid-template-columns:minmax(0,1fr) auto}body[data-image-support=none] .routine-row>.listen{grid-column:1}body[data-image-support=none] .routine-row>.check-button{grid-column:2}}
@media(min-width:700px){.style-options{grid-template-columns:repeat(2,1fr)}}

/* Brukarvänlig färgprofil och valbara, lugna texturer. */
body[data-style=simple]{--bg:#07120c;--surface:#112219;--surface-2:#182e22;--surface-3:#223d2d;--line:#385746;--text:#fff9e9;--muted:#b8c7b8;--accent:#b8d68d;--accent-soft:#2a4330;--ink:#17220f;--danger:#e4aa8e;--chrome:#07120c;background:radial-gradient(circle at 78% -8%,#294a32 0,transparent 30rem),var(--bg)}
body[data-style=simple] :is(.topbar,.mobile-nav,.sidebar){border-color:#304d3c}body[data-style=simple] .mobile-nav{background:#0d1e15f5}body[data-style=simple] .pic{background:#f0ecd9}body[data-style=simple] .pic-extra{background:#f0ecd9;border-color:#f0ecd9}
body[data-texture=soft]{background-image:radial-gradient(circle at 15% 10%,color-mix(in srgb,var(--accent) 10%,transparent),transparent 30rem),radial-gradient(circle at 90% 85%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 34rem)}
body[data-texture=paper] .app-shell{background-image:repeating-linear-gradient(0deg,#ffffff08 0 1px,transparent 1px 4px),linear-gradient(90deg,#00000008,transparent 30%,#ffffff05 70%,#00000008)}
body[data-texture=grain] .app-shell{background-image:radial-gradient(circle,#ffffff14 0 1px,transparent 1.2px);background-size:5px 5px}
body[data-texture=paper] :is(.routine-row,.support-card,.check-card,.note-card,.settings-card),body[data-texture=grain] :is(.routine-row,.support-card,.check-card,.note-card,.settings-card){background-color:color-mix(in srgb,var(--surface) 94%,transparent)}
.step-row>.listen{width:2.45rem;height:2.45rem;min-height:2.45rem;padding:0}.step-row{grid-template-columns:1.35rem auto minmax(0,1fr) auto auto}
.onboarding-wide{max-width:820px;text-align:left}.onboarding-wide>.onboarding-mark{margin-left:auto;margin-right:auto}.onboarding-wide>.eyebrow,.onboarding-wide>h1,.onboarding-wide>.onboarding-lead{text-align:center}.onboarding-config{display:grid;gap:.75rem;margin:1rem 0 1.35rem}.onboarding-config .settings-card{margin-top:0}.onboarding-next{width:100%}
body[data-image-support=none] :is(.setting-row,.style-option,.routine-manager article,.onboarding-routines>div){grid-template-columns:minmax(0,1fr) auto}body[data-image-support=none] .step-row{grid-template-columns:1.35rem minmax(0,1fr) auto auto}
@media(max-width:390px){.step-row{grid-template-columns:auto minmax(0,1fr) auto auto}.step-row>.listen,.step-row>.step-check,.step-row .step-title{grid-column:auto}.onboarding-wide{padding:.85rem}body[data-image-support=none] .step-row{grid-template-columns:minmax(0,1fr) auto auto}}

/* Spectrum leaf symbol, from the approved brand identity. */
.brand-mark{display:block;flex:none;width:2.65rem;height:2.65rem;object-fit:contain;border:0!important;border-radius:0!important;background:none;box-shadow:none;padding:0}
.onboarding-mark{display:block;width:5rem;height:5rem;object-fit:contain;margin:0 auto 1rem;border:0;border-radius:0;background:none;box-shadow:none;padding:0}
@media(max-width:390px){.brand-mark{width:2.2rem;height:2.2rem}}
body[data-setup=false] .app-shell{display:block}
body[data-setup=false] .content-shell{margin-inline:auto}
