:root {
  color-scheme: dark;
  --outside:#080a0c; --bg:#111315; --surface:#191b1e; --surface-raised:#222427;
  --text:#f4f2ee; --muted:#b3b2af; --soft:#85898c; --border:#343638;
  --accent:#e7bd99; --accent-dark:#231a14; --accent-subtle:#30251e; --nav-bg:rgba(17,19,21,.94);
  --shadow:0 12px 40px rgba(0,0,0,.15); --header:rgba(17,19,21,.94);
  --radius:20px; --nav-height:78px;
}
[data-theme="light"] {
  color-scheme:light;
  --outside:#eaf2fd; --bg:#f8faff; --surface:#fff; --surface-raised:#eef3fc;
  --text:#13203a; --muted:#586782; --soft:#75829a; --border:#dce5f2;
  --accent:#386bee; --accent-dark:#fff; --accent-subtle:#e7efff;
  --nav-bg:rgba(255,255,255,.95); --shadow:0 12px 40px rgba(31,61,105,.07); --header:rgba(248,250,255,.95);
}
*{box-sizing:border-box}
.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}
html{min-height:100%;scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--outside);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 15% 10%,rgba(231,189,153,.05),transparent 50%),radial-gradient(ellipse at 85% 90%,rgba(231,189,153,.04),transparent 45%)}
[data-theme="light"] body::before{background:radial-gradient(ellipse at 10% 20%,#dceafd,transparent 65%),radial-gradient(ellipse at 95% 80%,#d9e6ff,transparent 50%)}
button,input,textarea{font:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button{border:0;background:none;color:inherit}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
input,textarea{color:var(--text)}
input::placeholder,textarea::placeholder{color:var(--soft)}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
img{max-width:100%;object-fit:contain}
h1,h2,h3,p{margin:0}
h1{font-size:28px;line-height:1.18;letter-spacing:-.8px;font-weight:720}
h2{font-size:19px;line-height:1.3;letter-spacing:-.25px}
h3{font-size:16px;line-height:1.35;font-weight:650}
.muted{color:var(--muted)}
.small{font-size:13px}
.eyebrow{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase}
.app-shell{max-width:480px;min-height:100dvh;margin:0 auto;background:var(--bg);position:relative;box-shadow:var(--shadow)}
.app-header{height:72px;position:sticky;top:0;z-index:20;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;background:var(--header);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:9px;font-weight:650;font-size:19px;letter-spacing:-.3px}
.brand img{width:33px;height:36px;object-fit:contain}
[data-theme="light"] .brand img{width:36px;height:36px;background:#e2edff;padding:3px;border-radius:9px}
.prototype-tag{font-weight:400;font-size:10px;letter-spacing:0;color:var(--soft);align-self:center;padding-top:2px}
.header-actions{display:flex;gap:3px}
.icon-button{height:44px;width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;color:var(--muted)}
.icon-button:hover{background:var(--surface-raised);color:var(--text)}
main{padding:22px 20px calc(var(--nav-height) + 35px + env(safe-area-inset-bottom));min-height:calc(100dvh - 72px)}
main:focus{outline:none}
.main-nav{position:fixed;z-index:25;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:grid;grid-template-columns:repeat(4,1fr);padding:9px 9px calc(9px + env(safe-area-inset-bottom));height:calc(var(--nav-height) + env(safe-area-inset-bottom));background:var(--nav-bg);backdrop-filter:blur(18px);border-top:1px solid var(--border)}
.nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:var(--muted);font-size:11px;min-height:56px;border-radius:13px}
.nav-item svg{width:23px;height:23px}
.nav-item[aria-current="page"]{color:var(--accent);font-weight:650}
.nav-item:hover{background:var(--accent-subtle)}
.page-title{margin-bottom:22px}
.page-title p{margin-top:7px;color:var(--muted)}
.section{margin-top:25px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.text-link{display:inline-flex;gap:4px;align-items:center;color:var(--muted);font-size:12px}
.text-link svg{height:15px;width:15px}
.hero{display:flex;position:relative;overflow:hidden;background:linear-gradient(115deg,#212225,#16181a);border:1px solid var(--border);border-radius:var(--radius);min-height:211px;padding:22px}
.hero-copy{z-index:1;max-width:68%;position:relative}
.hero h1{margin-top:12px;font-size:29px;max-width:245px}
.hero p{margin-top:11px;color:#ccc9c5;font-size:14px;max-width:235px;line-height:1.55}
.hero-art{position:absolute;right:-2px;bottom:5px;width:44%;height:185px;object-fit:contain;opacity:.94}
.light-only{display:none}
[data-theme="light"] .dark-only{display:none}
[data-theme="light"] .light-only{display:block}
[data-theme="light"] .hero{background:linear-gradient(120deg,#dceaff,#eef4ff);border:0;min-height:181px;box-shadow:none}
[data-theme="light"] .hero-copy{max-width:78%}
[data-theme="light"] .hero h1{font-size:34px;color:#10203d}
[data-theme="light"] .hero p{color:#566882}
[data-theme="light"] .hero-art{width:24%;height:93px;right:22px;bottom:25px}
[data-theme="light"] .hero .eyebrow{color:#386bee}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:14px}
.mode-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:18px;min-height:160px;border-radius:18px;border:1px solid var(--border);background:radial-gradient(ellipse at 90% 10%,#414143,transparent 85%),#202225}
.mode-card.life{background:radial-gradient(ellipse at 90% 0%,#6a4931,transparent 95%),#29221c}
.mode-card h2{font-size:21px;max-width:150px;line-height:1.18}
.mode-card p{font-size:12px;color:#d2ccc5;line-height:1.5;margin:9px 0 16px;max-width:130px}
.round-arrow{display:flex;align-items:center;justify-content:center;border:1px solid var(--accent);color:var(--accent);width:31px;height:31px;border-radius:50%;margin-top:auto}
.round-arrow svg{width:17px;height:17px}
[data-theme="light"] .mode-card{background:#e7efff;border-color:transparent;min-height:144px}
[data-theme="light"] .mode-card.life{background:#f1edfb}
[data-theme="light"] .mode-card h2{font-size:19px}
[data-theme="light"] .mode-card p{color:var(--muted)}
.topic-grid{display:grid;gap:9px}
.topic-card{display:flex;gap:13px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:17px;background:var(--surface);min-width:0;position:relative}
.topic-card:hover{border-color:var(--accent);transform:translateY(-1px)}
.topic-card .topic-content{flex:1;min-width:0}
.topic-card p{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.topic-symbol{display:flex;align-items:center;justify-content:center;width:41px;height:41px;flex-shrink:0;border-radius:13px;background:var(--accent-subtle);color:var(--accent)}
.topic-symbol svg{height:23px;width:23px}
.topic-chevron{width:16px;height:16px;color:var(--soft)}
[data-theme="light"] .topic-grid{grid-template-columns:repeat(2,1fr);gap:12px}
[data-theme="light"] .topic-card{flex-direction:column;align-items:flex-start;min-height:146px;padding:17px;border:0;background:var(--surface)}
[data-theme="light"] .topic-card:nth-child(4n+1){background:#fbecee}
[data-theme="light"] .topic-card:nth-child(4n+2){background:#e5efff}
[data-theme="light"] .topic-card:nth-child(4n+3){background:#fff1df}
[data-theme="light"] .topic-card:nth-child(4n+4){background:#efebfc}
[data-theme="light"] .topic-symbol{background:none;width:31px;height:31px;justify-content:flex-start}
[data-theme="light"] .topic-card:nth-child(4n+1) .topic-symbol{color:#bd5268}
[data-theme="light"] .topic-card:nth-child(4n+3) .topic-symbol{color:#a86e25}
[data-theme="light"] .topic-card:nth-child(4n+4) .topic-symbol{color:#6b57b6}
[data-theme="light"] .topic-chevron{position:absolute;right:15px;top:23px}
.positive-feature{display:flex;align-items:center;gap:17px;background:linear-gradient(115deg,#2b2722,#201f1e);border:1px solid #494038;border-radius:19px;padding:19px}
.positive-feature img{width:70px;height:83px;flex-shrink:0}
.positive-feature h2{font-size:20px}
.positive-feature p{font-size:13px;color:#cec6bd;margin:6px 0 13px}
[data-theme="light"] .positive-feature{background:linear-gradient(130deg,#18365f,#10213f);border:0;color:#fff}
[data-theme="light"] .positive-feature img{width:93px;height:93px}
[data-theme="light"] .positive-feature p{color:#d7e2fa}
.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:11px 17px;border-radius:13px;background:var(--accent);color:var(--accent-dark);font-weight:650;font-size:14px;text-align:center}
.button:hover{filter:brightness(1.08)}
.button svg{width:19px;height:19px}
.button.small-button{font-size:12px;min-height:37px;padding:8px 13px;border-radius:11px}
.button.secondary{background:transparent;color:var(--accent);border:1px solid var(--accent)}
.button.subtle{background:var(--accent-subtle);color:var(--accent)}
.button.full{width:100%}
.button-row{display:flex;gap:9px;flex-wrap:wrap}
.button-row>*{flex:1}
.search-box{position:relative;margin-bottom:17px}
.search-box svg{position:absolute;left:15px;top:14px;color:var(--soft);width:20px;height:20px}
.search-box input{width:100%;height:49px;padding:10px 15px 10px 44px;background:var(--surface);border:1px solid var(--border);border-radius:14px}
.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:18px}
.segmented button{min-height:44px;padding:7px 10px;font-size:13px;border-radius:10px;color:var(--muted)}
.segmented button[aria-pressed="true"]{background:var(--accent);color:var(--accent-dark);font-weight:650}
.practice-summary{padding:21px;background:var(--surface);border:1px solid var(--border);border-radius:20px}
.practice-summary h2{font-size:23px;margin-top:13px;line-height:1.2}
.practice-summary p{color:var(--muted);margin-top:12px;line-height:1.7}
.time-tag{display:inline-flex;gap:5px;align-items:center;color:var(--muted);font-size:12px}
.time-tag svg{width:15px;height:15px}
.practice-intro-actions{margin-top:22px;display:grid;gap:11px}
.detail-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
.detail-heading .icon-button{margin-left:-10px;flex-shrink:0}
.detail-heading h1{font-size:24px;padding-top:6px}
.detail-heading p{font-size:12px;color:var(--muted);margin-top:5px}
.detail-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:22px;padding:4px;gap:2px}
.detail-tabs a{font-size:12px;min-height:44px;padding:11px 3px;text-align:center;border-radius:10px;color:var(--muted)}
.detail-tabs a[aria-current="page"]{background:var(--accent-subtle);color:var(--accent);font-weight:700}
[data-theme="light"] .detail-tabs a[aria-current="page"]{background:var(--accent);color:#fff}
.step-count{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin:0 0 15px}
.step-dots{display:flex;gap:5px}
.step-dots i{display:block;width:22px;height:4px;background:var(--border);border-radius:4px}
.step-dots i.active{background:var(--accent)}
.step-number{color:var(--accent);font-size:12px;margin-bottom:12px}
.step-card{min-height:211px;display:flex;flex-direction:column;justify-content:center;padding:27px 22px;border:1px solid var(--border);background:var(--surface);border-radius:21px}
.step-card h2{font-size:22px}
.step-card p{color:var(--muted);margin-top:13px;line-height:1.7}
.completed-symbol{width:53px;height:53px;display:flex;align-items:center;justify-content:center;background:var(--accent-subtle);color:var(--accent);border-radius:50%;margin-bottom:19px}
.completed-symbol svg{width:28px;height:28px}
.context-tag{font-size:11px;color:var(--muted);padding:7px 11px;border:1px solid var(--border);border-radius:9px;display:inline-block;margin-bottom:15px}
.demo-note{font-size:11px;color:var(--soft);margin-bottom:19px;display:flex;align-items:center;gap:7px}
.demo-note::before{content:"";height:5px;width:5px;background:var(--accent);border-radius:50%}
.messages{display:flex;flex-direction:column;gap:14px}
.message{display:flex;align-items:flex-start;gap:8px;max-width:96%}
.message-avatar{width:27px;height:30px;object-fit:contain;margin-top:7px;flex-shrink:0}
[data-theme="light"] .message-avatar{background:#133052;padding:3px;border-radius:50%}
.message-bubble{background:var(--surface);border:1px solid var(--border);border-radius:15px 15px 15px 3px;padding:13px 15px;line-height:1.65;font-size:14px;overflow-wrap:anywhere;white-space:pre-line;min-width:0}
.message.user{align-self:flex-end;max-width:88%}
.message.user .message-bubble{background:var(--accent-subtle);border-color:#5b4432;border-radius:15px 15px 3px 15px}
[data-theme="light"] .message.user .message-bubble{background:#e3edff;border-color:#d5e3ff}
.message-time{font-size:10px;color:var(--soft);text-align:right;margin-top:5px}
.quick-replies{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}
.chip{padding:9px 12px;border:1px solid var(--border);border-radius:22px;color:var(--muted);font-size:12px;min-height:44px}
.chip:hover{border-color:var(--accent);color:var(--accent)}
.chat-practice-card{display:flex;align-items:center;gap:12px;padding:15px;background:var(--surface);border:1px solid var(--border);border-radius:16px;margin:17px 0}
.chat-practice-card .topic-symbol{height:37px;width:37px}
.chat-practice-card div:nth-child(2){flex:1;min-width:0}
.chat-practice-card h3{font-size:13px}
.chat-practice-card p{font-size:11px;color:var(--muted);margin-top:4px}
.composer{display:flex;gap:9px;align-items:flex-end;margin-top:21px}
.composer textarea{width:100%;min-height:48px;max-height:110px;resize:vertical;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:12px 14px;font-size:13px;line-height:1.6}
.send-button{width:47px;height:47px;border-radius:50%;background:var(--accent);color:var(--accent-dark);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:1px}
.chat-footer{font-size:10px;color:var(--soft);text-align:center;margin-top:11px}
.typing span{display:inline-block;height:5px;width:5px;margin:0 2px;border-radius:50%;background:var(--soft);animation:pulse 1.1s infinite}
.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes pulse{50%{opacity:.3;transform:translateY(-2px)}}
.article-list{display:grid;gap:14px}
.article-card{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:var(--surface)}
.article-art{height:105px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 70% 10%,#3b3630,transparent 90%),#24262a}
.article-art svg{color:var(--accent);height:41px;width:41px;stroke-width:1.1}
.article-art.life-art{background:radial-gradient(ellipse at 65% 10%,#62472d,transparent 90%),#2f2921}
.article-art img{height:86px;width:110px}
[data-theme="light"] .article-art{background:linear-gradient(135deg,#ddeaff,#edf4ff)}
[data-theme="light"] .article-art.life-art{background:#143357}
.article-card-body{padding:17px}
.article-category{font-size:10px;color:var(--accent);text-transform:uppercase;letter-spacing:1.2px;margin-bottom:8px}
.article-card h2{font-size:18px}
.article-card p{font-size:12px;color:var(--muted);margin-top:6px}
.article-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:11px;color:var(--muted)}
.article-card-footer .icon-button{width:44px;height:44px;color:var(--accent)}
.article-detail{background:var(--surface);border:1px solid var(--border);border-radius:21px;overflow:hidden}
.article-detail .article-art{height:145px}
.article-detail-body{padding:24px 21px}
.article-detail h1{font-size:28px;margin:11px 0 15px}
.article-detail p{color:var(--muted);line-height:1.8;margin-top:13px}
.article-detail .article-lead{font-size:17px;color:var(--text);line-height:1.55}
.source-card{display:flex;gap:13px;padding:17px;margin:24px 0 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-raised)}
.source-label{font-size:9px;letter-spacing:1px;padding:9px;min-width:55px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--bg);color:var(--muted)}
.source-card h3{font-size:13px}
.source-card p{font-size:11px;margin-top:5px;line-height:1.5}
.source-card .source-description{color:var(--soft)}
.reading-actions{display:grid;gap:10px}
.back-row{display:flex;align-items:center;gap:8px;margin:-6px 0 14px;color:var(--muted);font-size:13px}
.back-row .icon-button{margin-left:-10px}
.empty-state{padding:30px 22px;text-align:center;border:1px dashed var(--border);border-radius:20px;color:var(--muted)}
.empty-state svg{color:var(--accent);height:32px;width:32px;margin-bottom:10px}
.empty-state h2{color:var(--text);font-size:18px;margin-bottom:8px}
.empty-state p{font-size:13px;line-height:1.7}
.empty-state .button{margin-top:19px}
.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:22px}
.metric{padding:20px;border:1px solid var(--border);border-radius:17px;background:var(--surface)}
.metric-value{font-size:30px;color:var(--accent);font-weight:700;letter-spacing:-1px}
.metric p{font-size:12px;color:var(--muted);margin-top:3px}
.completion-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--border)}
.completion-row .topic-content{flex:1}
.completion-row p{font-size:11px;color:var(--muted);margin-top:3px}
.completion-row h3{font-size:14px}
.note-card{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:16px;margin-top:10px}
.note-card p{overflow-wrap:anywhere;font-size:13px}
.note-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:10px;color:var(--soft)}
.checkin-card{padding:19px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}
.checkin-card p{margin-top:5px;color:var(--muted);font-size:12px}
.checkin-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.checkin-options .chip[aria-pressed="true"]{background:var(--accent-subtle);border-color:var(--accent);color:var(--accent)}
.saved-badge{background:var(--accent-subtle);color:var(--accent);font-size:11px;padding:3px 7px;border-radius:6px}
.settings-dialog{padding:24px;background:var(--bg);border:1px solid var(--border);border-radius:24px;color:var(--text);width:calc(100% - 32px);max-width:420px;max-height:85dvh;box-shadow:var(--shadow)}
.settings-dialog::backdrop{background:rgba(0,0,0,.6);backdrop-filter:blur(5px)}
.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}
.settings-heading h2{font-size:24px}
.theme-options{display:grid;gap:10px;margin:13px 0 24px}
.theme-option{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid var(--border);border-radius:14px}
.theme-option[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-subtle)}
.theme-preview{width:40px;height:40px;border-radius:11px;flex-shrink:0}
.theme-preview.depth{background:linear-gradient(140deg,#141517 60%,#d4a883 60%)}
.theme-preview.navigator{background:linear-gradient(140deg,#edf4ff 60%,#386bee 60%);border:1px solid #dce5f2}
.theme-option strong{display:block;font-size:14px}.theme-option p{font-size:11px;color:var(--muted);margin-top:3px}
.settings-note{font-size:12px;color:var(--muted);line-height:1.8;margin:16px 0}
.toast{position:fixed;bottom:calc(var(--nav-height) + 17px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);z-index:60;background:var(--text);color:var(--bg);border-radius:14px;padding:12px 18px;font-size:13px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:calc(100% - 40px);text-align:center}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:var(--accent);color:var(--accent-dark);padding:10px 15px;border-radius:10px}
.skip-link:focus{top:12px}
.home-hero{min-height:157px;padding:21px}
.home-hero h1{font-size:29px;margin-top:9px}
.home-hero p{font-size:12px;margin-top:8px}
.home-hero .hero-art{height:140px;width:34%;right:4px;bottom:0}
[data-theme="light"] .home-hero{min-height:157px}
[data-theme="light"] .home-hero h1{font-size:29px}
[data-theme="light"] .home-hero .hero-art{height:80px;width:24%;right:17px;bottom:21px}
.home-hero+.mode-grid,.continue-card+.mode-grid{margin-top:16px}
.continue-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;border:1px solid var(--accent);border-radius:18px;background:var(--accent-subtle);margin-top:16px}
.continue-card h2{font-size:18px;margin-top:7px}
.continue-card p{color:var(--muted);font-size:12px;margin-top:5px}
.continue-card .eyebrow{font-size:10px}
.continue-card .round-arrow{flex-shrink:0;margin-top:0}
.home-reading .section-heading h2{font-size:17px}
.home-reading .article-card h2{font-size:18px}
.text-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 3px;color:var(--accent);font-size:13px;text-align:center;line-height:1.5}
.text-button svg{width:17px;height:17px}
.text-button.muted{color:var(--muted)}
.practice-duration{margin-top:17px}
.practice-summary .practice-note{font-size:11px;line-height:1.6;color:var(--soft);margin-top:19px}
.step-card{justify-content:flex-start}
.step-input{margin-top:22px}
.step-input label,.note-dialog label{display:block;font-size:13px;font-weight:600}
.step-input label span{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:4px}
.step-input textarea,.note-dialog textarea{display:block;width:100%;min-height:110px;resize:vertical;padding:13px 14px;margin-top:10px;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:13px;font-size:14px;line-height:1.6}
.step-dots i{width:16px}
.step-count{gap:10px}
.step-count>span:first-child{min-width:0}
.step-count>span:last-child{flex-shrink:0}
.disclosure{border-top:1px solid var(--border);margin-top:22px}
.disclosure summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:54px;font-size:13px;color:var(--muted);font-weight:600;padding:13px 0}
.disclosure summary::-webkit-details-marker{display:none}
.disclosure summary svg{height:17px;width:17px;transition:transform .15s}
.disclosure[open]>summary svg{transform:rotate(90deg)}
.disclosure summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
.disclosure-body{padding-bottom:8px}
.disclosure-body>p:first-child{margin-top:0}
.alternative-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;border-radius:13px;background:var(--surface);margin-bottom:9px;border:1px solid var(--border)}
.alternative-row h3{font-size:14px}
.alternative-row p{font-size:12px;color:var(--muted);margin-top:6px}
.context-tag{max-width:100%;overflow-wrap:anywhere;margin-bottom:10px}
.context-action{padding:18px;margin-top:20px;background:var(--accent-subtle);border:1px solid var(--border);border-radius:17px}
.context-action h3{margin-top:8px}
.context-action p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:8px}
.context-action .button{margin-top:15px}
.context-action .eyebrow{font-size:10px}
.context-return{margin-top:21px}
.session-finished{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.7;padding:15px;background:var(--accent-subtle);border-radius:14px;margin-top:20px;color:var(--muted)}
.session-finished svg{color:var(--accent);width:20px;height:20px}
.session-finished a{color:var(--accent);text-decoration:underline}
.article-bookmark{margin-left:auto;color:var(--accent)}
.article-detail h1{font-size:27px;overflow-wrap:anywhere}
.article-detail .article-category{font-size:10px}
.article-example{border-left:2px solid var(--accent);padding:0 0 0 15px;margin:24px 0}
.article-example .eyebrow{font-size:10px}
.article-example p{font-size:14px;margin-top:8px}
.article-try h2{font-size:18px}
.article-try p{font-size:14px}
.reading-actions{margin-top:22px;gap:5px}
.article-detail .disclosure{margin-top:8px}
.sources .source-card{padding:15px;margin:0 0 12px;min-width:0}
.sources .source-label{display:block;padding:0;background:none;font-size:10px;letter-spacing:0;margin-bottom:9px;color:var(--accent)}
.sources h3{overflow-wrap:anywhere}
.sources .text-link{margin-top:11px;min-height:44px;color:var(--accent)}
.journal-welcome{display:flex;gap:13px;align-items:flex-start;padding:19px;background:var(--surface);border:1px solid var(--border);border-radius:18px;color:var(--muted);font-size:13px;line-height:1.7}
.journal-welcome svg{color:var(--accent)}
.history-label{font-size:12px;color:var(--muted);margin:15px 0 5px}
.note-card .note-meta>div{display:flex;flex-shrink:0}
.note-card .note-meta>span{min-width:0}
.note-dialog textarea{min-height:160px}
.note-dialog .small{font-size:12px;line-height:1.7;margin-top:13px}
.note-dialog button[type="submit"]{margin-top:22px}
.search-caption{font-size:11px;color:var(--muted);margin-bottom:13px}
@media(min-width:640px){.app-shell{margin:24px auto;min-height:calc(100dvh - 48px);border-radius:27px;border:1px solid var(--border);overflow:clip}.app-header{border-radius:26px 26px 0 0}.main-nav{bottom:24px;border-radius:0 0 26px 26px;max-width:478px}.toast{bottom:calc(var(--nav-height) + 41px)}main{min-height:calc(100dvh - 120px)}}
@media(max-width:359px){main{padding-left:15px;padding-right:15px}.app-header{padding-left:15px;padding-right:15px}.prototype-tag{display:none}.hero{padding:18px}.hero h1{font-size:25px}.hero p{font-size:13px}.mode-card{padding:15px}.mode-card h2{font-size:18px}.positive-feature{gap:12px;padding:15px}.positive-feature img{width:54px}.detail-heading h1{font-size:22px}.button{font-size:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
