/* Roundsly layout and base styles. Colors: tokens.css (Cobalt dark, Clinical Light). Materials: glass.css. */
:root {
  /* Colors come from tokens.css, generated from Shared/theme.json. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{box-sizing:border-box}
button,input{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--line);outline-offset:4px}
button{color:inherit}
body{margin:0;background:var(--surface-glass);color:var(--text);font-family:var(--font);font-size:var(--text-body);line-height:1.45;min-height:100vh;display:flex;align-items:center;justify-content:center;gap:86px;padding:55px 36px 42px}
body:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 75% 44%,transparent 0 21%,color-mix(in srgb, var(--info) 6%, transparent) 21.1% 21.2%,transparent 21.3% 27%,color-mix(in srgb, var(--info) 6%, transparent) 27.1% 27.2%,transparent 27.3% 33%,color-mix(in srgb, var(--info) 6%, transparent) 33.1% 33.2%,transparent 33.3%);pointer-events:none}
.desktop-wordmark{position:absolute;top:28px;left:38px;font-size:var(--text-title);font-weight:790;letter-spacing:-1.7px;display:flex;align-items:center;gap:9px}
.small-mark{background:var(--surface-solid);color:var(--accent);height:27px;width:27px;border-radius:8px;display:grid;place-items:center;font-weight:900;font-size:var(--text-heading);line-height:1;padding-bottom:3px}
.desktop-label{margin-left:22px;font-size:var(--text-caption);font-weight:600;letter-spacing:2px;color:var(--muted)}
.desktop-intro{position:relative;max-width:445px;flex:1}
.overline{font-size:var(--text-caption);letter-spacing:2px;font-weight:700;color:var(--muted)}
.desktop-intro h1{font-size:var(--text-hero);font-weight:650;line-height:1.07;letter-spacing:-3px;margin:23px 0}
.desktop-intro em{font-style:normal;color:var(--muted)}
.desktop-intro p{color:var(--muted);line-height:1.7;font-size:var(--text-body)}
.desktop-preview-label{margin-top:48px;font-size:var(--text-caption);font-weight:650;letter-spacing:1.6px;color:var(--muted);display:flex;gap:9px;align-items:center}
.desktop-preview-label span{height:6px;width:6px;border-radius:50%;background:var(--surface-glass)}
.desktop-footnote{position:fixed;bottom:16px;left:0;right:0;text-align:center;font-size:var(--text-caption);color:var(--muted);letter-spacing:.2px}
.device{width:393px;height:min(852px,calc(100vh - 90px));min-height:0;border-radius:49px;background:var(--canvas);position:relative;overflow:hidden;border:7px solid var(--line);box-shadow:var(--shadow-device);display:flex;flex-direction:column;flex-shrink:0;z-index:1}
.status-bar{height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 26px;font-weight:650;font-size:var(--text-body);position:relative;z-index:1}
.island{position:absolute;left:50%;transform:translateX(-50%);top:8px;width:106px;height:27px;background:var(--surface-glass);border-radius:25px}
.status-symbols{display:flex;gap:5px;align-items:center}
.battery{width:21px;height:11px;border:1px solid var(--line);border-radius:3px;position:relative;margin-left:1px}
.battery:before{content:"";position:absolute;inset:1.5px;background:var(--surface-solid);border-radius:1px}
.battery:after{content:"";position:absolute;right:-3px;top:3px;width:2px;height:4px;background:var(--surface-glass);border-radius:0 1px 1px 0}
.app{flex:1;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;position:relative}
.app::-webkit-scrollbar{display:none}
.screen{padding:10px 23px 24px;animation:reveal .22s ease-out}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.wordmark{display:flex;gap:8px;align-items:center;font-size:var(--text-title);letter-spacing:-1.6px;font-weight:790;line-height:1}
.brand-symbol{width:27px;height:29px;position:relative;display:inline-flex;align-items:center;justify-content:center}
.brand-symbol svg{width:29px;height:29px}
.avatar{border:1px solid var(--line);background:var(--surface-glass);width:37px;height:37px;border-radius:50%;font-size:var(--text-caption);font-weight:700;display:grid;place-items:center}
.eyebrow{font-size:var(--text-caption);letter-spacing:1.4px;font-weight:700;text-transform:uppercase;color:var(--muted)}
.date-line{display:flex;justify-content:space-between;align-items:center;margin:2px 0 7px}
.preview-pill{font-size:var(--text-caption);letter-spacing:1px;text-transform:uppercase;font-weight:650;padding:3px 6px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}
.home-title{font-size:var(--text-display);line-height:1.13;letter-spacing:-1.15px;font-weight:670;margin:8px 0 18px}
.hero{background:var(--surface-solid);color:var(--text);border-radius:23px;padding:22px;position:relative;overflow:hidden}
.hero-top{display:flex;justify-content:space-between;align-items:start;position:relative;z-index:1}
.hero .eyebrow{color:var(--muted);letter-spacing:1.6px}
.hero h2{font-size:var(--text-title);letter-spacing:-1px;line-height:1.1;margin:11px 0 8px;font-weight:630}
.hero-description{font-size:var(--text-footnote);color:var(--muted);line-height:1.65;margin:0;max-width:185px}
.orbit{height:67px;width:67px;flex-shrink:0;position:relative;display:grid;place-items:center;margin-top:-2px;color:var(--accent);border-radius:50%;border:1px solid var(--line)}
.orbit:before{content:"";position:absolute;inset:7px;border:1px solid var(--line);border-radius:50%}
.orbit:after{content:"";position:absolute;width:7px;height:7px;background:var(--accent);border:4px solid var(--text);box-sizing:content-box;top:0;left:10px;border-radius:50%}
.orbit svg{width:29px;height:29px}
.hero-meta{display:flex;gap:13px;align-items:center;font-size:var(--text-caption);color:var(--muted);margin:19px 0 17px}
.hero-meta span{display:flex;gap:5px;align-items:center}
.hero-meta svg{height:12px;width:12px;color:var(--muted)}
.hero-divider{height:3px;width:3px;background:var(--surface-glass);border-radius:50%}
.primary{background:var(--accent);color:var(--text);border:0;border-radius:12px;padding:14px 16px;font-size:var(--text-body);font-weight:700;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px}
.primary:disabled{background:var(--surface-glass);color:var(--muted)}
.primary svg{width:14px;height:14px}
.hero .primary{justify-content:space-between}
.hero-footer{font-size:var(--text-caption);text-align:center;color:var(--muted);margin:12px 0 0}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin:23px 0 12px}
.section-heading h2{font-size:var(--text-heading);font-weight:680;margin:0;letter-spacing:-.2px}
.text-button{border:0;background:transparent;color:var(--muted);font-size:var(--text-footnote);padding:5px 0;font-weight:650}
.stats-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mini-stat{background:var(--surface-glass);border:1px solid var(--line);border-radius:15px;padding:13px 14px 12px;position:relative}
.mini-stat .stat-icon{position:absolute;top:13px;right:12px;color:var(--muted)}
.stat-icon svg{width:17px;height:17px}
.stat-value{font-size:var(--text-title);line-height:1;letter-spacing:-1px;font-weight:660;margin:3px 0 6px}
.stat-value small{font-size:var(--text-caption);font-weight:450;letter-spacing:0;color:var(--muted)}
.stat-label{font-size:var(--text-caption);color:var(--muted)}
.focus-row{display:flex;gap:6px;flex-wrap:wrap}
.focus-chip{border:1px solid var(--line);background:transparent;border-radius:20px;font-size:var(--text-caption);padding:7px 10px;color:var(--muted);display:flex;gap:4px;align-items:center}
.focus-chip svg{height:10px;width:10px}
.reminder-banner{display:flex;gap:11px;align-items:center;margin-top:20px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;width:100%;text-align:left;background:transparent;border-left:0;border-right:0}
.reminder-banner>svg{height:19px;width:19px;color:var(--muted)}
.reminder-banner strong{font-size:var(--text-footnote);font-weight:650;display:block}
.reminder-banner p{font-size:var(--text-caption);color:var(--muted);margin:2px 0 0}
.reminder-banner .chevron{height:14px;width:14px;margin-left:auto}
.navigation{height:70px;flex-shrink:0;display:flex;border-top:1px solid var(--line);background:var(--surface-glass);padding:8px 17px 12px;gap:4px}
.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);border:0;background:transparent;font-size:var(--text-caption);font-weight:550;position:relative}
.nav-item svg{width:20px;height:20px;stroke-width:1.6}
.nav-item.active{color:var(--text);font-weight:700}
.nav-item.active:before{content:"";background:var(--accent);border-radius:15px;position:absolute;height:29px;width:46px;top:0;z-index:-1}
.home-indicator{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:111px;height:4px;background:var(--surface-solid);border-radius:9px;z-index:3}
.page-heading{font-size:var(--text-display);letter-spacing:-1px;line-height:1.16;margin:3px 0 8px;font-weight:660}
.page-subtitle{font-size:var(--text-footnote);color:var(--muted);line-height:1.6;margin:0 0 23px}
.page-top{display:flex;justify-content:space-between;align-items:center;margin:6px 0 25px}
.page-top .eyebrow{color:var(--muted)}
.icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);background:transparent;border-radius:50%;flex-shrink:0}
.icon-button svg{width:16px;height:16px}
.progress-hero{background:var(--surface-solid);border-radius:20px;color:var(--text);padding:22px;margin:21px 0;position:relative;overflow:hidden}
.progress-hero .eyebrow{color:var(--muted)}
.progress-hero h2{font-size:var(--text-display);font-weight:620;letter-spacing:-1.4px;margin:15px 0 3px}
.progress-hero h2 small{font-size:var(--text-body);font-weight:400;color:var(--muted);letter-spacing:0}
.progress-hero p{font-size:var(--text-footnote);color:var(--muted);margin:0;max-width:190px}
.progress-hero .orbit{position:absolute;right:20px;top:34px}
.weekly-chart{display:flex;align-items:end;gap:12px;height:133px;margin-top:20px}
.chart-day{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:9px;font-size:var(--text-caption);color:var(--muted)}
.bar-track{height:97px;width:22px;display:flex;align-items:end;position:relative;border-bottom:2px solid var(--line)}
.bar-fill{background:var(--surface-glass);border-radius:6px 6px 2px 2px;width:100%;min-height:0}
.chart-day.today{color:var(--text);font-weight:700}
.chart-day.today .bar-fill{background:var(--surface-solid)}
.chart-value{position:absolute;top:-17px;width:100%;text-align:center;font-size:var(--text-caption);color:var(--muted)}
.empty-chart{text-align:center;color:var(--muted);font-size:var(--text-footnote);margin:17px 0 0}
.white-card{border:1px solid var(--line);background:var(--surface-glass);border-radius:17px;padding:17px}
.list-action{display:flex;width:100%;gap:12px;align-items:center;text-align:left;border:0;background:transparent;padding:15px 0;color:var(--text)}
.list-action+.list-action{border-top:1px solid var(--line)}
.list-action>svg{width:20px;height:20px;color:var(--muted)}
.list-action strong{font-size:var(--text-body);font-weight:620;display:block}
.list-action small{font-size:var(--text-footnote);color:var(--muted);display:block;margin-top:3px}
.list-action .chevron{width:15px;height:15px;margin-left:auto;color:var(--muted)}
.compact-card{padding:1px 16px;margin-top:19px}
.empty-state{text-align:center;padding:26px 12px}
.empty-illustration{position:relative;height:154px;margin:5px auto 17px;width:195px}
.community-orbit{position:absolute;border:1px solid var(--line);width:142px;height:142px;border-radius:50%;left:27px;top:6px}
.community-orbit:before{content:"";position:absolute;inset:19px;border:1px solid var(--line);border-radius:50%}
.community-center{position:absolute;left:70px;top:48px;background:var(--surface-solid);color:var(--accent);border-radius:18px;width:56px;height:56px;display:grid;place-items:center;transform:rotate(-9deg);box-shadow:var(--shadow-card)}
.community-center svg{height:29px;width:29px}
.community-dot{position:absolute;border-radius:50%;background:var(--surface-glass);border:4px solid var(--canvas);width:31px;height:31px;display:grid;place-items:center;color:var(--muted)}
.community-dot svg{height:13px;width:13px}
.community-dot.one{left:24px;top:30px}
.community-dot.two{right:19px;top:82px}
.community-dot.three{left:59px;bottom:0;background:var(--accent)}
.empty-state h2{font-size:var(--text-heading);line-height:1.2;letter-spacing:-.7px;font-weight:640;margin:0 0 10px}
.empty-state p{font-size:var(--text-footnote);line-height:1.8;color:var(--muted);margin:0 auto 21px;max-width:260px}
.secondary{border:1px solid var(--line);background:transparent;color:var(--text);border-radius:12px;padding:13px 15px;font-size:var(--text-body);font-weight:640;min-height:44px;width:100%}
.dark-button{background:var(--surface-solid);color:var(--text)}
.note{font-size:var(--text-caption);color:var(--muted);line-height:1.7}
.community-note{padding:15px;display:flex;align-items:start;gap:10px;border:1px solid var(--line);border-radius:15px;margin-top:12px}
.community-note svg{height:16px;width:16px;flex-shrink:0;color:var(--muted);margin-top:2px}
.community-note .note{margin:0}
.profile-header{display:flex;align-items:center;gap:13px;margin:8px 0 24px}
.profile-avatar{height:59px;width:59px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface-glass);font-size:var(--text-heading);font-weight:650}
.profile-header h1{font-size:var(--text-heading);font-weight:650;letter-spacing:-.6px;margin:0 0 3px}
.profile-header p{font-size:var(--text-footnote);color:var(--muted);margin:0}
.trial-card{background:var(--surface-solid);color:var(--muted);border-radius:19px;padding:20px}
.trial-card .eyebrow{color:var(--muted)}
.trial-card h2{font-size:var(--text-heading);line-height:1.2;letter-spacing:-.6px;margin:10px 0}
.trial-card p{font-size:var(--text-footnote);color:var(--muted);line-height:1.7;margin-bottom:18px}
.profile-group{margin-top:22px}
.profile-group .eyebrow{margin-bottom:6px}
.switch{width:35px;height:22px;border-radius:13px;border:0;background:var(--surface-glass);padding:2px;display:block;margin-left:auto;flex-shrink:0}
.switch:before{content:"";display:block;width:18px;height:18px;border-radius:50%;background:var(--on-accent);box-shadow:0 1px 3px var(--shadow);transition:transform .2s}
.switch.on{background:var(--surface-solid)}
.switch.on:before{transform:translateX(13px);background:var(--accent)}
.profile-disclaimer{text-align:center;font-size:var(--text-caption);line-height:1.7;color:var(--muted);margin:24px 8px 5px}
.quiz-screen{padding-top:9px}
.quiz-header{display:flex;align-items:center;gap:13px;margin-bottom:14px}
.quiz-header .eyebrow{color:var(--muted);flex:1;text-align:center}
.question-counter{font-size:var(--text-footnote);font-weight:650;color:var(--muted);min-width:34px;text-align:right}
.quiz-progress{display:flex;gap:4px;margin-bottom:29px}
.quiz-progress i{display:block;height:3px;flex:1;background:var(--surface-glass);border-radius:4px}
.quiz-progress i.done{background:var(--surface-glass)}
.quiz-progress i.current{background:var(--surface-solid)}
.category-pill{display:inline-flex;border:1px solid var(--line);background:var(--surface-glass);color:var(--muted);font-size:var(--text-caption);letter-spacing:.9px;text-transform:uppercase;font-weight:700;padding:6px 9px;border-radius:5px}
.question-title{font-size:var(--text-heading);letter-spacing:-.75px;line-height:1.18;margin:15px 0 12px;font-weight:650}
.question-stem{font-size:var(--text-reading);line-height:1.75;color:var(--muted);margin-bottom:22px}
.answer-options{display:grid;gap:9px}
.answer-option{border:1px solid var(--line);background:var(--surface-glass);border-radius:13px;padding:14px 12px;display:flex;gap:11px;align-items:center;text-align:left;width:100%;font-size:var(--text-body);line-height:1.55;transition:border-color .12s,background .12s;min-height:58px}
.answer-letter{height:25px;width:25px;border-radius:50%;border:1px solid var(--line);color:var(--muted);display:grid;place-items:center;flex-shrink:0;font-size:var(--text-caption);font-weight:600}
.answer-option.selected{border-color:var(--line);background:var(--surface-glass)}
.answer-option.selected .answer-letter{background:var(--surface-solid);color:var(--accent);border-color:var(--text)}
.answer-option.correct{border-color:var(--line);background:var(--surface-glass)}
.answer-option.correct .answer-letter{border-color:var(--line);background:var(--surface-glass);color:var(--muted)}
.answer-option.incorrect{border-color:var(--line);background:var(--surface-glass)}
.answer-option.incorrect .answer-letter{background:var(--surface-glass);color:var(--text);border-color:var(--line)}
.answer-option .option-status{margin-left:auto;flex-shrink:0;width:15px;height:15px}
.quiz-bottom{position:sticky;bottom:-24px;background:var(--canvas);padding:20px 0 23px;margin-top:3px}
.quiz-bottom .primary{background:var(--surface-solid);color:var(--accent)}
.quiz-bottom .primary:disabled{background:var(--surface-glass);color:var(--muted)}
.quiz-bottom .note{text-align:center;margin:9px 0 0;font-size:var(--text-caption)}
.feedback{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.feedback-status{display:flex;align-items:center;gap:7px;font-size:var(--text-heading);font-weight:700;color:var(--success)}
.feedback-status svg{width:17px;height:17px}
.feedback-status.missed{color:var(--danger)}
.feedback p{font-size:var(--text-body);color:var(--muted);line-height:1.8}
.pearl{border-radius:12px;background:var(--surface-glass);padding:14px;margin:17px 0}
.pearl .eyebrow{font-size:var(--text-footnote);color:var(--muted)}
.pearl p{margin:6px 0 0;font-size:var(--text-body);line-height:1.7;color:var(--muted)}
.rationale{border-top:1px solid var(--line);padding:10px 0}
.rationale strong{font-size:var(--text-footnote);font-weight:650}
.rationale p{font-size:var(--text-footnote);line-height:1.7;margin:4px 0}
.source-link{display:block;color:var(--muted);font-size:var(--text-caption);line-height:1.6;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px;margin:12px 0}
.completion{text-align:center;padding-top:32px}
.completion-badge{width:103px;height:103px;border-radius:50%;margin:0 auto 23px;background:var(--accent);border:11px solid var(--line);display:grid;place-items:center;outline:1px solid var(--line);outline-offset:7px}
.completion-badge svg{height:34px;width:34px}
.completion h1{font-size:var(--text-display);line-height:1.08;letter-spacing:-1.2px;font-weight:650;margin:12px 0}
.completion>p{font-size:var(--text-footnote);color:var(--muted);line-height:1.8;margin:0 15px 24px}
.completion-score{background:var(--surface-solid);color:var(--text);border-radius:21px;padding:23px 15px;display:grid;grid-template-columns:1fr 1fr;margin:22px 0}
.completion-score>div+div{border-left:1px solid var(--line)}
.completion-score strong{font-size:var(--text-title);letter-spacing:-1px;font-weight:600;display:block}
.completion-score small{font-size:var(--text-caption);color:var(--muted);display:block;margin-top:3px}
.completion .secondary{margin-top:9px}
.completion .note{margin-top:20px;font-size:var(--text-caption)}
.toast{position:absolute;bottom:89px;left:19px;right:19px;background:var(--surface-glass);color:var(--muted);border-radius:14px;padding:13px 16px;font-size:var(--text-footnote);line-height:1.6;z-index:30;box-shadow:var(--shadow-nav);opacity:0;transform:translateY(10px);pointer-events:none;transition:all .2s}
.toast.visible{opacity:1;transform:translateY(0)}
.modal-overlay{position:absolute;inset:0;background:var(--surface-glass);z-index:20;display:flex;align-items:end;backdrop-filter:blur(3px)}
.modal{background:var(--canvas);padding:11px 23px 29px;border-radius:25px 25px 0 0;width:100%;max-height:88%;overflow:auto;animation:slideup .24s ease-out}
.modal-handle{width:34px;height:4px;background:var(--surface-glass);border-radius:5px;margin:0 auto 18px}
.modal-heading{display:flex;gap:12px;align-items:start;margin-bottom:13px}
.modal-heading h2{font-size:var(--text-title);font-weight:650;letter-spacing:-.8px;line-height:1.2;margin:0;flex:1}
.modal p{font-size:var(--text-body);color:var(--muted);line-height:1.8}
.modal .primary{margin-top:18px}
.modal .secondary{margin-top:8px}
.modal .note{font-size:var(--text-caption)}
.modal-icon{height:45px;width:45px;background:var(--accent);border-radius:13px;display:grid;place-items:center;margin-bottom:18px}
.modal-icon svg{height:24px;width:24px}
.form-field{display:grid;gap:8px;margin:18px 0}
.form-field label{font-size:var(--text-footnote);font-weight:650}
.form-field input{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface-glass);padding:13px;color:var(--text);min-height:47px}
.modal-price{font-size:var(--text-display);letter-spacing:-1px;font-weight:650;margin:20px 0 4px}
.modal-price span{font-size:var(--text-footnote);font-weight:400;letter-spacing:0;color:var(--muted)}
.benefit{display:flex;gap:8px;align-items:center;font-size:var(--text-footnote);margin:12px 0;color:var(--muted)}
.benefit svg{width:16px;height:16px;color:var(--muted)}
.danger{color:var(--muted);border-color:var(--line)}
.review-item{display:block;width:100%;border:1px solid var(--line);background:var(--surface-glass);padding:14px;border-radius:11px;text-align:left;margin-top:8px}
.review-item strong{display:block;font-size:var(--text-body);margin-bottom:4px}
.review-item span{font-size:var(--text-footnote);color:var(--muted)}
.loading-note{font-size:var(--text-footnote);margin:18px 0;color:var(--muted);line-height:1.7}
.focus-description{padding:12px 0;border-top:1px solid var(--line)}
.focus-description strong{font-size:var(--text-body)}
.focus-description p{font-size:var(--text-footnote);margin:4px 0}
.no-nav .navigation{display:none}
.no-nav .app{padding-bottom:14px}
.no-nav .home-indicator{bottom:7px}
.appearance-list{display:grid;gap:8px;margin:16px 0 6px}
.appearance-choice{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:var(--surface-glass);border-radius:14px;padding:11px 14px;min-height:58px;color:var(--text)}
.appearance-choice strong{display:block;font-size:var(--text-body);font-weight:640}
.appearance-choice small{display:block;font-size:var(--text-footnote);color:var(--muted);margin-top:3px;line-height:1.45}
.appearance-choice[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.appearance-check{margin-left:auto;width:22px;height:22px;border-radius:50%;border:1.5px solid color-mix(in srgb, var(--muted) 50%, transparent);display:grid;place-items:center;flex-shrink:0}
.appearance-check svg{width:13px;height:13px;opacity:0}
.appearance-choice[aria-pressed="true"] .appearance-check{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.appearance-choice[aria-pressed="true"] .appearance-check svg{opacity:1}
.appearance-swatch{width:36px;height:36px;border-radius:10px;flex-shrink:0;position:relative;overflow:hidden;border:1px solid var(--line-strong)}
.appearance-swatch::after{content:"";position:absolute;right:6px;bottom:6px;width:10px;height:10px;border-radius:50%;background:var(--swatch-dot)}
.appearance-light{--swatch-dot:var(--swatch-light-accent);background:linear-gradient(135deg,var(--swatch-light-canvas) 0 52%,var(--swatch-light-surface) 52%)}
.appearance-dark{--swatch-dot:var(--swatch-dark-accent);background:linear-gradient(135deg,var(--swatch-dark-canvas) 0 52%,var(--swatch-dark-surface) 52%)}
.appearance-system{--swatch-dot:var(--swatch-dark-accent);background:linear-gradient(135deg,var(--swatch-light-canvas) 0 50%,var(--swatch-dark-canvas) 50%)}
.review-tag{margin-bottom:12px;font-size:var(--text-caption);color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes reveal{from{opacity:0;transform:translateY(5px)}
to{opacity:1;transform:translateY(0)}
}
@keyframes slideup{from{transform:translateY(20px);opacity:.7}
to{transform:translateY(0);opacity:1}
}
@media(min-width:1500px){body{gap:135px}
.desktop-intro{max-width:530px}
.desktop-intro h1{font-size:var(--text-hero)}
}
@media(max-width:950px){.desktop-intro{display:none}
.desktop-wordmark{left:25px}
.desktop-label{display:none}
body{padding:42px 20px}
.device{height:min(852px,calc(100vh - 72px))}
}
@media(max-width:500px){body{padding:0;background:var(--canvas);display:block;min-height:100dvh}
.desktop-wordmark,.desktop-footnote{display:none}
.device{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}
.status-bar{height:max(45px,env(safe-area-inset-top));padding-top:0}
.island{display:none}
.screen{padding-left:25px;padding-right:25px}
.navigation{padding-bottom:max(15px,env(safe-area-inset-bottom));height:calc(61px + max(0px, env(safe-area-inset-bottom) - 10px))}
.home-indicator{display:none}
.app{scroll-behavior:smooth}
.modal{padding-bottom:max(29px,env(safe-area-inset-bottom))}
.home-title{font-size:var(--text-display)}
.hero{padding:23px}
.hero h2{font-size:var(--text-title)}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


.brand-icon{display:block;width:31px;height:31px;border-radius:9px;object-fit:cover;background:var(--surface-glass)}
.review-chip{margin-left:7px;background:var(--surface-glass);color:var(--muted);border-color:var(--line)}
.desktop-wordmark .brand-icon{width:29px;height:29px;border-radius:8px}


.page-subtitle,.note,.profile-header p,.list-action small,.profile-disclaimer,.reminder-banner p,.focus-chip,.review-tag,.question-counter,.answer-letter,.preview-pill,.empty-chart,.chart-day,.modal p,.empty-state p,.completion>p{color:var(--muted)}
.modal .note{color:var(--muted)}
.hero-footer{color:var(--muted)}
.stat-value small{color:var(--muted)}
.nav-item{color:var(--muted)}
.nav-item.active{color:var(--muted)}

@media(min-width:501px) and (max-height:800px){.device{zoom:.72;height:852px;min-height:852px}
}

@media(min-width:501px) and (max-height:660px){.device{zoom:.60;height:852px;min-height:852px}
}


/* ===== Polish, September 24, 2026: type scale, the round ring, motion. Shared by the preview and the website. ===== */
input,select,textarea{font-size:var(--text-input)}
/* Case text in New York (Apple's reading serif) or the closest serif on other devices. */
.question-stem{font-family:var(--font-serif);line-height:1.62;letter-spacing:.003em}
/* Rounded headlines and numbers, as in the iPhone app (Safari shows SF Pro Rounded). */
.home-title,.page-heading,.hero h2,.completion h1,.modal-heading h2,.progress-hero h2,.stat-value,.completion-score strong,.ring-count,.wordmark{font-family:var(--font-rounded)}
.stat-value,.completion-score strong,.progress-hero h2,.question-counter,.ring-count,.topic-value,.week-day b{font-variant-numeric:tabular-nums}
/* A quiet sentence-case label. Each screen keeps a single all-caps .eyebrow. */
.label{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-footnote);font-weight:650;color:var(--eyebrow);letter-spacing:0;text-transform:none;margin:0}
.label svg{width:14px;height:14px}

/* The round: ten segments, one per question. */
.ring{display:block;overflow:visible}
.ring .seg{fill:none;stroke-linecap:round}
.ring .track{stroke:var(--ring-track)}
.ring .fill{transition:stroke .35s ease}
.ring .answered{stroke:var(--accent)}
.ring .current{stroke:color-mix(in srgb,var(--accent) 38%,transparent)}
.ring .correct{stroke:var(--success)}
.ring .missed{stroke:var(--danger)}
.ring-wrap{position:relative;display:grid;place-items:center;flex-shrink:0}
.ring-wrap>.ring{position:absolute;inset:0;width:100%;height:100%}
.ring-center{position:relative;display:grid;justify-items:center;line-height:1}
.ring-count{font-size:var(--text-heading);font-weight:700;letter-spacing:-.5px}
.ring-of{font-size:var(--text-caption);color:var(--muted);font-weight:600;margin-top:3px}
.ring-center svg{width:26px;height:26px}
/* Closing the ring: each segment draws in, in order. */
.ring.sweep .fill{stroke-dasharray:100 100;stroke-dashoffset:100;animation:ring-draw .34s ease-out both;animation-delay:calc(var(--i) * 70ms + 150ms)}
@keyframes ring-draw{0%{opacity:0;stroke-dashoffset:100}1%{opacity:1}100%{opacity:1;stroke-dashoffset:0}}
/* A checkmark that draws itself in. */
.drawn-check{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.drawn-check path{stroke-dasharray:30;stroke-dashoffset:30;animation:check-draw .42s ease-out forwards;animation-delay:var(--delay,0ms)}
@keyframes check-draw{to{stroke-dashoffset:0}}
.answer-options:not(.revealed) .drawn-check path{stroke-dashoffset:0;animation:none}

/* Today card: the ring replaces the decorative orbit. */
.hero-ring{width:84px;height:84px;margin:-4px -4px 0 8px}
.hero-ring .ring-center svg{color:var(--text)}
/* Avatar inside today's ring. */
.avatar.ringed{position:relative;border:0;background:transparent;width:42px;height:42px;padding:0}
.avatar.ringed>.ring{position:absolute;inset:0;width:100%;height:100%}
.avatar.ringed .avatar-face{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 24%,var(--surface-raised)),color-mix(in srgb,var(--accent) 6%,var(--surface-raised)));color:var(--accent-label);font-weight:700;font-size:var(--text-caption)}
.avatar.ringed .avatar-face img{width:100%;height:100%;object-fit:cover}

/* Quiz header: close, question count, the ring. */
.quiz-header .question-counter{flex:1;text-align:center;font-size:var(--text-body);font-weight:650;color:var(--text)}
.quiz-header .ring{width:34px;height:34px;flex-shrink:0}
.quiz-header .review-label{color:var(--muted);font-weight:600}
.category-pill{text-transform:none;letter-spacing:0;font-weight:650}

/* Answer reveal: a quick spring, then the result mark. */
.answer-options.revealed .answer-option.correct,.answer-options.revealed .answer-option.incorrect{animation:answer-pop .4s cubic-bezier(.2,.9,.3,1.25)}
@keyframes answer-pop{0%{transform:scale(.985)}55%{transform:scale(1.018)}100%{transform:scale(1)}}
.answer-options.revealed .incorrect .option-status{animation:status-in .28s ease-out both;animation-delay:.06s}
@keyframes status-in{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
.answer-option .option-status.drawn-check{width:18px;height:18px;stroke-width:2.6}

/* Explanations: the takeaway first, then the reasoning, then the source as a citation chip. */
.pearl .label{color:var(--info)}
.pearl p{font-size:var(--text-body);font-weight:650;color:var(--text)}
.feedback .pearl{margin:14px 0 16px}
.citation{display:inline-flex;align-items:center;gap:7px;max-width:100%;margin:14px 0 6px;padding:8px 12px;border-radius:999px;font-size:var(--text-caption);font-weight:600;line-height:1.35;color:var(--accent-label);text-decoration:none;background:color-mix(in srgb,var(--accent) 8%,transparent);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent)}
.citation svg{width:13px;height:13px;flex-shrink:0}
.citation span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.citation:hover{background:color-mix(in srgb,var(--accent) 13%,transparent)}

/* Completion: the round closes with each question's result. */
.completion-ring{width:150px;height:150px;margin:0 auto 20px}
.completion-ring .ring-center svg{width:54px;height:54px;color:var(--text);stroke-width:2.2}

/* Progress: a week of small rounds and accuracy by topic. */
.week-rounds{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:6px}
.week-day{display:grid;justify-items:center;gap:8px;font-size:var(--text-caption);color:var(--muted);min-width:0}
.week-day .ring-wrap{width:100%;max-width:38px;aspect-ratio:1}
.week-day b{font-size:var(--text-caption);font-weight:700;color:var(--text)}
.week-day .ring-center svg{width:13px;height:13px;color:var(--info)}
.week-day.today{color:var(--text);font-weight:700}
.topic-list{display:grid;gap:16px}
.topic-row{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px 10px}
.topic-row strong{font-size:var(--text-body);font-weight:620;display:flex;align-items:center;gap:8px}
.topic-row strong svg{width:16px;height:16px;color:var(--muted)}
.topic-value{font-size:var(--text-body);font-weight:650}
.topic-value small{font-size:var(--text-caption);color:var(--muted);font-weight:500;margin-left:4px}
.topic-bar{grid-column:1/-1;height:8px;border-radius:99px;background:var(--ring-track);overflow:hidden}
.topic-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.topic-none{font-size:var(--text-caption);color:var(--muted)}

/* Zoom from the Today card into the round (browsers with view transitions). */
::view-transition-old(round),::view-transition-new(round){animation-duration:.38s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
@media(prefers-reduced-motion:reduce){
  .ring.sweep .fill{stroke-dashoffset:0;opacity:1;animation:none}
  .drawn-check path{stroke-dashoffset:0;animation:none}
}
.drawn-check{stroke-width:2.4}
.hero.round-source,.screen.quiz-screen,.completion{view-transition-name:round}
.avatar.ringed{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
