/* 当前设计入口：2026-10-25 温柔治愈六页稿。语义令牌供全部主/子页复用。 */
:root {
  --cream: #fff9f0;
  --peach: #ffe3d2;
  --sage: #dfedcf;
  --sky: #dceff7;
  --lavender: #eee2f6;
  --coral: #f5b39e;
  --soft-ink: #444b43;
  --soft-muted: #666e62;
  --soft-line: #ede4d8;
  --soft-surface: #fffdf8;
  --soft-accent: #9b5944;
  --primary-bg: #f8c8ae;
  --primary-text: #623e30;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --control-radius: 16px;
  --soft-shadow: 0 6px 28px #a4866710;
  --page-gutter: 18px;
  --tap-size: 44px;
  --nav-height: 70px;
  --font-small: 13px;
  --font-body: 15px;
  --font-heading: 23px;
}
:root body[data-route] {
  --canvas: var(--cream);
  --surface: var(--soft-surface);
  --ink: var(--soft-ink);
  --muted: var(--soft-muted);
  --line: var(--soft-line);
  --action: var(--soft-accent);
  --action-ink: var(--primary-text);
  --accent: #9fc393;
  --soft: #f2f3e9;
  --shadow: var(--soft-shadow);
  --radius: var(--radius-md);
  background: radial-gradient(ellipse at 90% 0, #ffe3db80, transparent 440px), var(--canvas);
  font-size: var(--font-body);
  line-height: 1.65;
}
body[data-route="ai"] { --primary-bg: #dfc5ec; --primary-text: #544064; }
body[data-route="tasks"],body[data-route="reviews"],body[data-route="goals"] { --primary-bg: #cee3bd; --primary-text: #354c30; }
body[data-route="analysis"] { --primary-bg: #d6e7ee; --primary-text: #35505b; }
h1,h2,h3 { color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: var(--font-heading); font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: var(--font-heading); }
.page-header .icon-btn { border-radius: 50%; background: #fffdf880; }
.leaf-logo { color: #83aa91; border-radius: 11px; }
.btn,.theme-options button,.scenery-options button { border-radius: var(--control-radius); min-height: var(--tap-size); }
.btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; box-shadow: none; }
.btn.primary,.home-review .home-start { background: var(--primary-bg); color: var(--primary-text); border-color: transparent; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 12px #c48d6920; }
.btn.secondary { background: var(--sage); color: #405239; border-color: transparent; }
.btn.danger { color: #9e4d43; background: #ffebe4; }
button:disabled,.btn:disabled { opacity: .5; box-shadow: none; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 2px solid #628a80; outline-offset: 3px; }
.field { gap: 8px; font-size: 14px; }
.field input,.field select,.field textarea,.input,.textarea,.select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius); min-height: 48px; padding: 12px 14px; font-size: 15px; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; }
.form-grid { gap: 17px; }
.editor-page,.detail-sheet,.stack { max-width: 720px; }
.panel,.detail-sheet,.settings-list,.profile-card,.profile-metrics,.goal-card,.review-card,.complete-page,.backup-hero,.ai-setting-card,.period-total { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: var(--soft-shadow); }
.detail-sheet { background: var(--surface); padding: 23px; }
.detail-sheet h1 { font-size: 23px; line-height: 1.5; }
.detail-meta { gap: 14px; font-size: 14px; }
.detail-meta dt { color: var(--muted); }
.tag { background: var(--sage); color: #42543c; border-radius: 999px; padding: 3px 10px; }
.segments,.period-tabs { border-radius: 999px; background: #f4eee5; padding: 5px; gap: 5px; }
.segments button,.period-tabs button { border-radius: 999px; min-height: 40px; font-size: 14px; }
.segments button[aria-pressed=true],.period-tabs button[aria-pressed=true] { background: var(--sage); color: #42543c; box-shadow: none; }
.bottom-nav { grid-template-columns: repeat(5,minmax(0,1fr)); min-height: var(--nav-height); border: 1px solid var(--line); border-radius: 23px 23px 0 0; background: #fffaf2f2; backdrop-filter: blur(16px); padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 24px #ac957c0b; }
.bottom-nav .nav-link { min-height: 52px; color: #777c74; font-size: 11px; gap: 4px; }
.bottom-nav .nav-link svg { width: 21px; height: 21px; }
.bottom-nav .nav-link[aria-current=page] { color: #a35c42; }
.bottom-nav .nav-link[aria-current=page] svg { background: var(--peach); border-radius: 50%; }
.rail { background: #fffaf5; border-color: var(--line); }
.rail .nav-link[aria-current=page] { background: var(--peach); border-radius: 17px; }
.home-review { --home-paper: var(--surface); }
.home-review .home-landscape-card { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: var(--soft-shadow); }
.home-landscape { min-height: 138px; color: #556248; background-image: linear-gradient(180deg,#ffe6d2a6,#fff2df40 60%,var(--surface)),url(../v31-preview/focus-assets/morning-lake.png); background-position: center,center 43%; }
.home-review .home-landscape h2 { font-weight: 550; font-size: 21px; }
.home-progress-heading { gap: 12px; }
.home-empty-plan { padding: 5px 0 8px; }
.home-empty-plan strong { font-size: 16px; font-weight: 550; }
.home-empty-plan p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.home-review .home-progress-ring { display: grid; place-content: center; margin-left: auto; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(closest-side,var(--surface) 77%,transparent 79%),conic-gradient(#9fc393 var(--progress),#f1e9dc 0); font-size: 16px; white-space: nowrap; }
.home-review .home-overview .progress-track { display: none; }
.home-time-link { min-height: 44px; font-size: 12px; }
.home-next { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 15px; background: #fff8ef70; }
.home-next>small,.home-next-task { grid-column: 1/-1; }
.home-review .home-start { margin-top: 14px; min-height: 48px; }
.home-review .home-new-task { display: flex; align-items: center; justify-content: center; margin-top: 14px; padding: 0 18px; min-height: 48px; background: var(--sage); border: 0; color: #405239; border-radius: 999px; }
.home-review .today-tasks { border-radius: var(--radius-md); border-color: var(--line); background: var(--surface); }
.home-ai-link { border-radius: 20px; }
.home-review .home-ai-link { margin-top: 12px; padding: 14px 17px; background: linear-gradient(110deg,#f0e5f5,#fff0e5); }
.home-review .home-footer { border-color: var(--line); }
.home-review .home-footer a { min-height: 44px; display: flex; align-items: center; }
.home-review .today-tasks .task-row { padding: 5px 0; }
.design-task-list { padding: 7px 14px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--soft-shadow); }
.design-task-list .task-row { padding: 14px 0; min-height: 78px; border-bottom: 1px solid var(--line); gap: 10px; }
.design-task-list .task-row:last-child { border-bottom: 0; }
.subject-badge { width: 43px; height: 45px; flex-shrink: 0; border-radius: 16px; display: grid; place-content: center; background: var(--sky); color: #456780; font-size: 18px; font-weight: 550; }
[data-tone="1"] .subject-badge { background: var(--peach); color: #9a5d48; }
[data-tone="2"] .subject-badge { background: var(--lavender); color: #75608c; }
[data-tone="3"] .subject-badge { background: var(--sage); color: #57734d; }
[data-tone="4"] .subject-badge { background: #f9e9bd; color: #8c733f; }
[data-tone="5"] .subject-badge { background: #f5dce4; color: #8d5d72; }
.design-task-list .task-check { order: 3; margin-left: auto; }
.design-task-list .task-open { order: 1; }
.design-task-list .task-minutes { order: 2; font-size: 12px; }
.task-check span { border-color: #bdcbb8; width: 21px; height: 21px; }
.task-check[aria-pressed=true] span { background: #94b784; border-color: #94b784; color: white; }
.task-open strong { font-size: 15px; font-weight: 550; }
.task-open small { font-size: 12px; color: var(--muted); }
.task-inline-time { display: none; }
.task-row.done .task-open strong { color: var(--muted); }
.floating-create { background: var(--coral); color: #573b30; border: 3px solid #fff5e9; border-radius: 50%; width: 54px; height: 54px; box-shadow: 0 5px 14px #b1765426; }
.home-review .task-check { order: 0; margin-left: 0; }
.home-review .design-task-list { box-shadow: none; padding: 0; }
.home-review .design-task-list .task-row { min-height: 58px; border-bottom: 0; }
.focus-scene { border-radius: 0; }
.focus-scene .mode-pills { background: #fff7e2b8; border-radius: 999px; padding: 4px; }
.focus-scene .mode-pills button { color: #4a6057; border-radius: 999px; min-height: 36px; }
.focus-scene .mode-pills button[aria-pressed=true] { background: #d0e2b6; color: #3b513b; }
.focus-glass { background: #fffdf14a; border: 1px solid #fffdf199; box-shadow: inset 0 2px 8px #fff8,0 10px 35px #345c6b16; }
.focus-glass output { font-size: clamp(48px,15vw,66px); font-weight: 550; letter-spacing: -.04em; }
.focus-primary .btn { border-radius: 999px; min-height: 49px; }
.focus-primary .btn.primary { background: #fff0c9; color: #496139; }
.focus-settings { width: min(100%,340px); margin: 18px auto 0; background: #fffdf1ce; border: 1px solid #fff9; color: #40584e; border-radius: 21px; padding: 0 14px; }
.focus-settings>summary { text-align: center; font-size: 13px; min-height: 44px; padding: 11px; cursor: pointer; }
.focus-settings .focus-extras { margin: 8px 0; padding: 0; }
.focus-settings .focus-history-link { color: inherit; display: block; padding: 10px; margin: 0; text-align: center; min-height: 44px; }
.focus-settings .unavailable-mini { color: #53675d; }
.focus-scene.mode-C .focus-glass { background: transparent; border: 0; box-shadow: none; }
.focus-scene.mode-A { background: radial-gradient(ellipse at 40% 20%,#f3f7e9,#deead6 60%,#d9ece8); color: #344a43; }
.complete-mark { background: var(--sage); color: #5d8053; border-radius: 46% 54% 52% 48%; }
.complete-page { background: var(--surface); padding: 28px 20px; }
.analysis-page { max-width: 760px; }
.analysis-date { font-size: 12px; margin: 15px 0 6px; }
.allocation-donut { width: 100%; max-width: 480px; overflow: visible; margin: 0 auto; display: block; }
.allocation-donut .donut-label { font-size: 16px; font-weight: 550; fill: var(--ink); }
.allocation-donut .donut-minutes { font-size: 14px; fill: var(--muted); }
.donut-total { font-size: 19px; font-weight: 600; }
.donut-caption { font-size: 12px; }
.allocation-caption { margin-top: 0; }
.subject-breakdown { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.subject-breakdown>summary { padding: 12px 15px; min-height: 44px; cursor: pointer; color: var(--action); font-size: 13px; }
.subject-list { padding: 0 14px 7px; }
.subject-list a { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 12px 0; min-height: 48px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.subject-list a>span { overflow-wrap: anywhere; }
.subject-list i { width: 8px; height: 8px; border-radius: 50%; }
.subject-list small { color: var(--muted); font-size: 12px; text-align: right; }
.analysis-records { margin-top: 24px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); }
.analysis-records h2 { font-size: 16px; }
.time-row { min-height: 72px; border-color: var(--line); }
.time-row small { color: var(--muted); font-size: 12px; }
.time-row strong { font-weight: 500; font-size: 14px; }
.summary-route { display: flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 12px 18px; background: var(--sage); border-radius: 18px; font-size: 14px; text-decoration: none; }
.replay-strip { border-radius: 999px; height: 15px; }
.replay-caption { font-size: 12px; flex-wrap: wrap; }
.section-label { font-size: 16px; margin-top: 22px; }
.period-total { background: linear-gradient(110deg,var(--surface),#f1f4e7); padding: 21px; margin: 18px 0 15px; }
.period-total strong { font-size: 28px; }
.period-chart { min-height: 240px; height: 240px; padding: 15px 0 10px; gap: 7px; border-bottom: 1px solid var(--line); }
.period-chart .bar-day { flex: 1; min-width: 0; }
.period-chart .bar-day i { max-width: 32px; min-height: 2px; border-radius: 7px 7px 2px 2px; background: #a8cddb; }
.period-chart .bar-day:nth-child(3n) i { background: #b9d2a3; }
.period-chart .bar-day span { font-size: 11px; color: var(--muted); }
.legend-row { font-size: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.profile-card { background: linear-gradient(110deg,#f5f2e5,#edf4e8); border: 1px solid var(--line); padding: 20px; }
.profile-avatar { background: linear-gradient(135deg,#cde0c3,#e6efd6); color: #557a55; border-radius: 42% 58% 55% 45%; }
.profile-metrics { background: var(--surface); margin: 14px 0; padding: 16px 10px; }
.profile-metrics b { font-size: 18px; }
.profile-metrics span { font-size: 12px; }
.settings-list { border: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 5px 15px; }
.setting-row { min-height: 70px; padding: 13px 0; gap: 13px; border-color: var(--line); }
.setting-icon { width: 38px; height: 40px; min-width: 38px; border-radius: 15px; background: var(--peach); color: #995f48; }
.setting-row:nth-child(4n+2) .setting-icon { background: var(--lavender); color: #7d6191; }
.setting-row:nth-child(4n+3) .setting-icon { background: var(--sage); color: #52774e; }
.setting-row:nth-child(4n) .setting-icon { background: var(--sky); color: #50798c; }
.setting-row>span:not(.setting-icon) { font-size: 15px; }
.setting-row small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.status-row { min-height: 64px; padding: 14px 0; }
.status-row small { text-align: right; }
.backup-hero,.ai-setting-card { background: linear-gradient(110deg,#e8f1dc,#eef4e8); padding: 22px; border: 1px solid #e4ead9; }
.backup-hero p,.ai-setting-card p { font-size: 13px; }
.backup-actions .btn { border-radius: 20px; min-height: 72px; }
.backup-actions .btn.primary { background: var(--sage); color: #405b36; }
.backup-actions .btn.primary small { color: inherit; opacity: .9; }
.honest-state { border-radius: 18px; background: var(--sky); color: #435d68; font-size: 13px; padding: 18px; }
.goal-card,.review-card { background: var(--surface); padding: 20px; border-color: var(--line); }
.goal-card:nth-child(2n) { background: #fcf2e9; }
.review-card:nth-child(2n) { background: #f0eff7; }
.provider { border-radius: 16px; min-height: 48px; }
.provider.wechat { background: var(--sage); color: #47643c; }
.provider.qq { background: var(--sky); color: #456b7e; }
.account-page h1,.about-page h1 { font-weight: 550; }
dialog,#safety-dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 20px 70px #514e3433; max-height: calc(100dvh - 32px); color: var(--ink); }
dialog::backdrop { background: #39403b66; backdrop-filter: blur(3px); }
.dialog-actions,.actions { gap: 10px; }
.empty,.donut-empty { background: #fff9f16b; border-radius: var(--radius-lg); color: var(--ink); }
.empty p,.donut-empty span { font-size: 13px; color: var(--muted); }
.warning,.error { border-radius: 15px; border-left-width: 3px; }
.ai-lab { background: transparent; }
body[data-route="ai"] { background-image: radial-gradient(ellipse at 10% 0,#e5d8f0aa,transparent 460px),radial-gradient(ellipse at 95% 45%,#ffe8db80,transparent 420px); }
.chat-welcome { background: linear-gradient(130deg,#f0e2f487,#fff4e7b0); border: 1px solid #f0e6ec; border-radius: var(--radius-lg); padding: 22px 17px; }
.chat-welcome .chat-orb { background: var(--sage); border-radius: 42% 58% 40% 60%; color: #618454; }
.chat-welcome h2 { font-size: 21px; font-weight: 550; }
.chat-welcome p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.chat-welcome .row-wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.chat-welcome .row-wrap .btn { background: var(--sky); border: 0; border-radius: 17px; font-size: 13px; padding: 12px 8px; }
.chat-welcome .row-wrap .btn:nth-child(2) { background: #fae9c6; }
.chat-welcome .row-wrap .btn:nth-child(3) { background: var(--sage); }
.chat-welcome .row-wrap .btn:nth-child(4) { background: #f7dbdd; }
.ai-message { background: #f4ebf8; border: 1px solid #eee1f1; border-radius: 23px 23px 23px 7px; font-size: 15px; line-height: 1.85; color: var(--ink); padding: 15px 17px; }
.ai-user { background: #e0edcf; border-color: #d9e6ca; color: #3e5434; border-radius: 23px 23px 7px 23px; }
.ai-user .ai-debug,.ai-user .ai-debug small { color: #567046; }
.chat-composer { border-color: var(--line); background: #fff9f1ee; border-radius: 23px; padding: 7px; box-shadow: 0 4px 24px #b6967910; gap: 7px; }
.chat-composer textarea { background: var(--surface); border-radius: 999px; font-size: 15px; padding: 11px 14px; }
.chat-composer .btn { border-radius: 50%; background: #dfc2e9; color: #5b3d69; min-width: 48px; min-height: 48px; }
.ai-access-status { background: #fbf7ed; border: 1px solid var(--line); border-radius: 17px; padding: 10px 12px; font-size: 12px; }
.ai-options { border-radius: 20px; background: var(--surface); }
.ai-scopes label { font-size: 14px; }
.ai-question,.ai-confirm { border-radius: 18px; }
.ai-toolbar .btn { border-radius: 14px; font-size: 12px; }
#toast { border-radius: 18px; background: #415d4b; color: #fffdf6; }
.analysis-date,.replay-caption,.time-row small,.status-row small,.profile-metrics span,.legend-row small,.setting-row small,.ai-access-status,.home-ai-link small,.home-review .home-footer a,.task-open small,.task-minutes { font-size: var(--font-small); }
@media(max-width:899px) {
  .workspace { padding: calc(16px + env(safe-area-inset-top)) var(--page-gutter) calc(100px + env(safe-area-inset-bottom)); }
  .bottom-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .home-review .home-landscape h2 { font-size: 20px; }
  .home-next { grid-template-columns: minmax(0,1fr) auto; }
  .focus-settings { margin-bottom: 12px; }
  .focus-scene { min-height: calc(100dvh - 80px); height: auto; padding-bottom: 15px; }
  .focus-glass { margin-top: 24px; margin-bottom: 24px; }
  .focus-primary { margin-top: 10px; }
  .focus-settings[open] { backdrop-filter: blur(15px); }
  .period-chart { min-height: 225px; height: 225px; }
  .field input,.field select,.field textarea { font-size: 16px; }
}
@media(max-width:360px) {
  :root { --page-gutter: 14px; }
  .home-new-task { font-size: 12px; }
  .home-review .home-new-task { padding-left: 13px; padding-right: 13px; }
  .home-progress-heading { gap: 8px; }
  .design-task-list { padding: 5px 10px; }
  .design-task-list .task-row { flex-wrap: wrap; gap: 7px; }
  .subject-badge { width: 34px; height: 38px; min-width: 34px; font-size: 16px; border-radius: 12px; }
  .design-task-list .task-minutes { display: none; }
  .task-inline-time { display: inline; }
  .task-open strong { font-size: 14px; }
  .home-review .today-tasks .task-row { flex-wrap: nowrap; }
  .home-review .home-progress-count { font-size: 15px; }
  .period-chart { gap: 3px; }
  .period-chart .bar-day span { font-size: 10px; }
  .status-row { gap: 9px; }
}
@media(max-height:520px) and (min-width:500px) {
  .focus-scene { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,.8fr); grid-template-areas: "top top" "modes modes" "task timer" "primary timer" "settings settings"; gap: 5px 20px; padding: 7px 18px 10px; min-height: calc(100dvh - 76px); align-items: center; }
  .focus-scene-top { grid-area: top; margin: 0; min-height: 32px; }
  .focus-scene .mode-pills { grid-area: modes; margin: 0 auto; }
  .focus-glass { grid-area: timer; width: 140px; height: 140px; margin: 3px auto; }
  .focus-scene .focus-glass output { font-size: 44px; }
  .focus-glass p { font-size: 12px; }
  .focus-primary { grid-area: primary; max-width: 320px; margin: 0 auto; padding: 0; }
  .focus-task-pill { grid-area: task; margin: 0; font-size: 13px; padding: 7px 10px; }
  .focus-settings { grid-area: settings; margin: 0 auto; }
  .focus-settings>summary { min-height: 36px; padding: 7px; }
}
@media(max-height:380px) and (min-width:500px) {
  .focus-scene { grid-template-columns: minmax(0,1.25fr) minmax(140px,.9fr); grid-template-areas: "top top" "modes timer" "task timer" "primary settings"; gap: 3px 12px; padding: 4px 12px 8px; }
  .focus-scene-top { min-height: 44px; }
  .focus-scene .mode-pills { width: 100%; min-width: 0; }
  .focus-scene .mode-pills button { padding: 5px 6px; white-space: nowrap; }
  .focus-scene .focus-glass { width: 96px; height: 96px; margin: 0 auto; }
  .focus-scene .focus-glass output { font-size: 31px; }
  .focus-glass p { font-size: 11px; line-height: 1.4; margin-top: 3px; }
  .focus-task-pill { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; padding: 5px 10px; }
  .focus-task-pill svg { display: none; }
  .focus-primary { gap: 8px; }
  .focus-primary .btn { min-height: 44px; padding: 7px 10px; }
  .focus-settings { min-width: 0; width: 100%; padding: 0 5px; }
  .focus-settings>summary { font-size: 12px; }
  body[data-route="focus"] #toast { top: 5px; bottom: auto; max-width: calc(100% - 130px); padding: 6px 10px; font-size: 12px; }
}
@media(prefers-reduced-motion:no-preference) {
  .btn,.task-check span { transition: background-color .16s ease,transform .16s ease; }
  .btn:active { transform: scale(.985); }
  .task-check[aria-pressed=true] span { animation: soft-check .22s ease-out; }
  @keyframes soft-check { 50% { transform: scale(1.15); } }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-theme="dark"] {
  --cream: #292f2d;
  --peach: #57473e;
  --sage: #405541;
  --sky: #3b5059;
  --lavender: #50465a;
  --coral: #ca9583;
  --soft-ink: #efece2;
  --soft-muted: #c0c5b9;
  --soft-line: #4a5148;
  --soft-surface: #343d36;
  --soft-accent: #e6b49d;
  --primary-bg: #d7b49e;
  --primary-text: #3b3028;
  --soft-shadow: 0 6px 22px #00000014;
}
:root[data-theme="dark"] body[data-route] { --canvas:var(--cream);--ink:var(--soft-ink);--muted:var(--soft-muted);--surface:var(--soft-surface);--line:var(--soft-line);--action:var(--soft-accent);--soft:#3f493e;background:radial-gradient(ellipse at 90% 0,#59473c33,transparent 450px),var(--canvas); }
:root[data-theme="dark"] .bottom-nav,:root[data-theme="dark"] .rail { background:#303a33f5; }
:root[data-theme="dark"] .page-header .icon-btn { background:#435047;color:#efc9b5; }
:root[data-theme="dark"] .bottom-nav .nav-link { color:var(--muted); }
:root[data-theme="dark"] .bottom-nav .nav-link[aria-current=page] { color:#f1c1a9; }
:root[data-theme="dark"] .home-landscape { background-image:linear-gradient(180deg,#2d3d39ae,#2f3d3c55 60%,var(--surface)),url(../v31-preview/focus-assets/twilight-lake.png);color:var(--ink); }
:root[data-theme="dark"] .home-next { background:#344137; }
:root[data-theme="dark"] .home-review .home-ai-link,:root[data-theme="dark"] .chat-welcome { background:linear-gradient(110deg,#484354,#4f453d);border-color:var(--line); }
:root[data-theme="dark"] .subject-badge { color:#d2e4ed; }
:root[data-theme="dark"] [data-tone="1"] .subject-badge,:root[data-theme="dark"] [data-tone="4"] .subject-badge { background:var(--peach);color:#f5d9c8; }
:root[data-theme="dark"] [data-tone="2"] .subject-badge,:root[data-theme="dark"] [data-tone="5"] .subject-badge { background:var(--lavender);color:#eadcf3; }
:root[data-theme="dark"] [data-tone="3"] .subject-badge { color:#d5e7c9; }
:root[data-theme="dark"] .btn.secondary,:root[data-theme="dark"] .tag,:root[data-theme="dark"] .home-review .home-new-task,:root[data-theme="dark"] .segments button[aria-pressed=true],:root[data-theme="dark"] .summary-route { background:var(--sage);color:#e5ecd9; }
:root[data-theme="dark"] .profile-card,:root[data-theme="dark"] .period-total,:root[data-theme="dark"] .backup-hero,:root[data-theme="dark"] .ai-setting-card { background:linear-gradient(110deg,#3e493b,#34463e);border-color:var(--line); }
:root[data-theme="dark"] .goal-card:nth-child(2n),:root[data-theme="dark"] .review-card:nth-child(2n) { background:#403d45; }
:root[data-theme="dark"] .setting-icon { color:#edc7b8; }
:root[data-theme="dark"] .setting-row:nth-child(4n+2) .setting-icon { color:#e0ccec; }
:root[data-theme="dark"] .setting-row:nth-child(4n+3) .setting-icon { color:#d5e5c7; }
:root[data-theme="dark"] .setting-row:nth-child(4n) .setting-icon { color:#c6e1ef; }
:root[data-theme="dark"] .honest-state,:root[data-theme="dark"] .provider { color:var(--ink); }
:root[data-theme="dark"] .ai-message { background:#494150;border-color:#5d5266;color:var(--ink); }
:root[data-theme="dark"] .ai-user { background:#42563e;border-color:#53664b; }
:root[data-theme="dark"] .ai-user .ai-debug,:root[data-theme="dark"] .ai-user .ai-debug small { color:#cadcbf; }
:root[data-theme="dark"] .chat-composer,:root[data-theme="dark"] .ai-access-status { background:#374037; }
:root[data-theme="dark"] .chat-welcome .row-wrap .btn { color:var(--ink);background:var(--sky); }
:root[data-theme="dark"] .chat-welcome .row-wrap .btn:nth-child(2n) { background:var(--lavender); }
:root[data-theme="dark"] .chat-welcome .row-wrap .btn:nth-child(3) { background:var(--sage); }
:root[data-theme="dark"] .empty,:root[data-theme="dark"] .donut-empty { background:#343d365c; }
:root[data-theme="dark"] .focus-settings { background:#344842ec;border-color:#6c8178;color:#e5eddf; }
:root[data-theme="dark"] .focus-settings .unavailable-mini { color:#c9d9c8; }
:root[data-theme="dark"] .focus-scene .mode-pills { background:#304942bd; }
:root[data-theme="dark"] .focus-scene .mode-pills button { color:#dce8d6; }
:root[data-theme="dark"] .focus-scene .mode-pills button[aria-pressed=true] { background:#658b69;color:#fff9ee; }
:root[data-theme="dark"] .focus-scene.mode-A { background:radial-gradient(ellipse at 40% 20%,#415447,#31473d 60%,#314d4b);color:#e5ecdf; }
