/* User selected Winter Arc palettes. The default stays the existing night theme. */
html[data-theme="snow"]{color-scheme:light;--ink:#142027;--muted:#687780;--line:#dce4e7;--soft:#f1f6f7;--deep:#edf3f5;--pale:#e8f0f2;background:#edf3f5;color:#142027}
html[data-theme="snow"] body{background:#edf3f5;color:#142027}
html[data-theme="snow"] .app-shell,html[data-theme="snow"] .state-screen{background:#f8fbfc;color:#142027;box-shadow:0 0 0 1px #dae4e8}
html[data-theme="snow"] .page,html[data-theme="snow"] .dark-page #main-content>.page,html[data-theme="snow"] .dark-page .page.slim:has(#habit-form){background:#f8fbfc!important;color:#142027}
html[data-theme="snow"] .page h1,html[data-theme="snow"] .page h2,html[data-theme="snow"] .page strong,html[data-theme="snow"] .page-title,html[data-theme="snow"] .editor-title,html[data-theme="snow"] .back-line strong,html[data-theme="snow"] .field-label{color:#142027!important}
html[data-theme="snow"] .page-sub,html[data-theme="snow"] .editor-sub,html[data-theme="snow"] .habit-main small,html[data-theme="snow"] .task-meta,html[data-theme="snow"] .report-date,html[data-theme="snow"] .eyebrow{color:#687780}
html[data-theme="snow"] .bottom-nav,html[data-theme="snow"] .dark-page .bottom-nav{background:#fff;border-color:#dce4e7;box-shadow:0 -10px 30px #4c69701a}
html[data-theme="snow"] .bottom-nav button{color:#687780}html[data-theme="snow"] .bottom-nav button.active,html[data-theme="snow"] .dark-page .bottom-nav button.active{background:#dceff1;color:#123942}html[data-theme="snow"] .bottom-nav button.active svg{stroke:#123942}
html[data-theme="snow"] .card,html[data-theme="snow"] .dashboard-list,html[data-theme="snow"] .dashboard-summary button,html[data-theme="snow"] .week-trend,html[data-theme="snow"] .report-grid>div,html[data-theme="snow"] .dual-trend,html[data-theme="snow"] .report-categories,html[data-theme="snow"] .goal-progress-card,html[data-theme="snow"] .form-panel,html[data-theme="snow"] .settings-card,html[data-theme="snow"] .profile-main-card,html[data-theme="snow"] .habit-reference-card,html[data-theme="snow"] .streak-banner,html[data-theme="snow"] .group-list,html[data-theme="snow"] .task-row,html[data-theme="snow"] .plan-habit,html[data-theme="snow"] .reminder-settings{background:#fff!important;border:1px solid #dce4e7!important;color:#142027;box-shadow:0 5px 20px #20414a0b!important}
html[data-theme="snow"] .dashboard-summary button span,html[data-theme="snow"] .growth-icon,html[data-theme="snow"] .goal-icon,html[data-theme="snow"] .habit-symbol,html[data-theme="snow"] .plan-habit-icon,html[data-theme="snow"] .report-icon,html[data-theme="snow"] .goal-emblem,html[data-theme="snow"] .profile-avatar{background:#e6f2f2!important;color:#174e55!important}
html[data-theme="snow"] .dashboard-summary button strong,html[data-theme="snow"] .growth-copy strong,html[data-theme="snow"] .task-body strong,html[data-theme="snow"] .plan-habit-body strong,html[data-theme="snow"] .goal-progress-card>strong,html[data-theme="snow"] .habit-reference-card .habit-main{color:#142027}
html[data-theme="snow"] .growth-row,html[data-theme="snow"] .plan-habit-body,html[data-theme="snow"] .task-body{color:#142027}html[data-theme="snow"] .growth-row+.growth-row,html[data-theme="snow"] .group-list .task-row+.task-row{border-color:#e3e9eb}
html[data-theme="snow"] .growth-track,html[data-theme="snow"] .goal-progress-track,html[data-theme="snow"] .report-hero-track,html[data-theme="snow"] .trend-column,html[data-theme="snow"] .bar-track,html[data-theme="snow"] .plan-habit-track,html[data-theme="snow"] .progress{background:#e7eef0}
html[data-theme="snow"] .growth-track i,html[data-theme="snow"] .goal-progress-track i,html[data-theme="snow"] .report-hero-track i,html[data-theme="snow"] .plan-habit-track i,html[data-theme="snow"] .progress span,html[data-theme="snow"] .trend-column i,html[data-theme="snow"] .dual-bars i,html[data-theme="snow"] .bar-track i,html[data-theme="snow"] .bar-col i{background:#3c9eaa!important}
html[data-theme="snow"] .round-tool,html[data-theme="snow"] .task-chevron,html[data-theme="snow"] .back-button,html[data-theme="snow"] .date-chip,html[data-theme="snow"] .habit-day{background:#edf4f5;color:#17343b;border-color:#dce4e7}
html[data-theme="snow"] .date-chip.active,html[data-theme="snow"] .plan-tabs button.active{background:#154b54;color:#fff}html[data-theme="snow"] .date-chip.active strong,html[data-theme="snow"] .date-chip.active span{color:#fff}
html[data-theme="snow"] .plan-tabs,html[data-theme="snow"] .plan-tabs button,html[data-theme="snow"] .pill,html[data-theme="snow"] .choice,html[data-theme="snow"] .emoji-choice,html[data-theme="snow"] .weekday-row button{background:#edf4f5;color:#253c42;border-color:#dce4e7}
html[data-theme="snow"] .choice.active,html[data-theme="snow"] .emoji-choice.active,html[data-theme="snow"] .weekday-row button.active{background:#154b54;color:#fff;border-color:#154b54}
html[data-theme="snow"] .primary-button,html[data-theme="snow"] .dark-page .primary-button{background:#154b54!important;color:#fff!important;box-shadow:0 7px 22px #154b5427!important}html[data-theme="snow"] .primary-button svg{color:#fff}
html[data-theme="snow"] .secondary-button,html[data-theme="snow"] .dashboard-quick button,html[data-theme="snow"] .goal-step,html[data-theme="snow"] .advice-card,html[data-theme="snow"] .info-note{background:#edf4f5;color:#17343b;border-color:#dce4e7}
html[data-theme="snow"] .input,html[data-theme="snow"] .select,html[data-theme="snow"] .textarea,html[data-theme="snow"] .chat-compose textarea{background:#f7fafb!important;color:#142027!important;border-color:#d4e1e4!important}
html[data-theme="snow"] .check-button,html[data-theme="snow"] .plan-habit-check{background:#fff;border-color:#9fb0b5}html[data-theme="snow"] .check-button.done,html[data-theme="snow"] .plan-habit-check.done{background:#168d83;border-color:#168d83;color:#fff}html[data-theme="snow"] .check-button.done svg{stroke:#fff}
html[data-theme="snow"] .priority-badge{background:#e9f2f4;color:#34535c}html[data-theme="snow"] .task-row.done .task-body strong{color:#829297}
html[data-theme="snow"] .habit-cover{background:radial-gradient(circle at 80% 55%,#cfedef,#f4fafb 70%)!important}html[data-theme="snow"] .habit-sheet{background:#f8fbfc}html[data-theme="snow"] .habit-cover p,html[data-theme="snow"] .time-heading,html[data-theme="snow"] .plan-group-title{color:#18343b}
html[data-theme="snow"] .goals-hero,html[data-theme="snow"] .report-hero,html[data-theme="snow"] .reminder-digest{background:linear-gradient(120deg,#e0f4f4,#d3e9ec)!important;color:#17343b;border-color:#c5dfe3}html[data-theme="snow"] .reminder-digest p,html[data-theme="snow"] .report-hero p{color:#46666e}
html[data-theme="snow"] .settings-row,html[data-theme="snow"] .dialog-card,html[data-theme="snow"] .profile-streak,html[data-theme="snow"] .profile-mascot{background:#fff;color:#17343b;border-color:#dce4e7}html[data-theme="snow"] .settings-row strong,html[data-theme="snow"] .profile-streak strong,html[data-theme="snow"] .dialog-card h2{color:#142027}
html[data-theme="snow"] .full-chat,html[data-theme="snow"] .chat-header,html[data-theme="snow"] .chat-bottom{background:#f8fbfc!important}html[data-theme="snow"] .chat-header strong,html[data-theme="snow"] .chat-empty h1{color:#142027}html[data-theme="snow"] .chat-avatar,html[data-theme="snow"] .message-avatar{background:#154b54;color:#fff}
html[data-theme="snow"] .chat-header>button,html[data-theme="snow"] .prompt-chips button,html[data-theme="snow"] .full-chat .chat-compose,html[data-theme="snow"] .full-chat .chat-bubble.bot,html[data-theme="snow"] .speech-button{background:#fff!important;color:#17343b;border-color:#dce4e7}html[data-theme="snow"] .full-chat .chat-bubble.user{background:#d7eff0!important;color:#17343b;border-color:#d7eff0}
html[data-theme="snow"] .full-chat .chat-compose button.chat-send{background:#154b54;color:#fff}html[data-theme="snow"] .toast{background:#154b54;color:#fff}
html[data-theme="snow"] .reference-onboard,html[data-theme="snow"] .onboard{background:radial-gradient(circle at 50% 35%,#deeff0,#f8fbfc 70%);color:#142027}html[data-theme="snow"] .onboard-copy p{color:#50666d}html[data-theme="snow"] img[src*="mascot"]{filter:none!important;mix-blend-mode:normal!important}
html[data-theme="snow"] .reminder-switch input:checked{background:#168d83}html[data-theme="snow"] .reminder-switch input:checked:before{background:#fff}
html[data-theme="aurora"]{background:#101c27}html[data-theme="aurora"] body{background:#101c27}html[data-theme="aurora"] .app-shell,html[data-theme="aurora"] .page,html[data-theme="aurora"] .dark-page #main-content>.page,html[data-theme="aurora"] .dark-page .page.slim:has(#habit-form){background:#101c27!important}html[data-theme="aurora"] .bottom-nav,html[data-theme="aurora"] .dark-page .bottom-nav{background:#142330}html[data-theme="aurora"] .card,html[data-theme="aurora"] .dashboard-list,html[data-theme="aurora"] .goal-progress-card,html[data-theme="aurora"] .settings-card,html[data-theme="aurora"] .profile-main-card,html[data-theme="aurora"] .habit-reference-card,html[data-theme="aurora"] .task-row,html[data-theme="aurora"] .plan-habit,html[data-theme="aurora"] .reminder-settings{background:#1a2b37!important;border-color:#345063!important}
html[data-theme="aurora"] .bottom-nav button.active,html[data-theme="aurora"] .dark-page .bottom-nav button.active,html[data-theme="aurora"] .primary-button,html[data-theme="aurora"] .dark-page .primary-button{background:#b5e9dc!important;color:#12323a!important}html[data-theme="aurora"] .bottom-nav button.active svg{stroke:#12323a}html[data-theme="aurora"] .goals-hero,html[data-theme="aurora"] .report-hero,html[data-theme="aurora"] .reminder-digest{background:linear-gradient(130deg,#285463,#1a2b37)!important}html[data-theme="aurora"] img[src*="mascot"]{filter:none!important;mix-blend-mode:normal!important}
.appearance-options{display:grid;gap:9px;margin:17px 0}.appearance-option{display:flex;align-items:center;gap:12px;width:100%;padding:11px;text-align:left;background:#242528;color:#f5f5f3;border:1px solid #45474b;border-radius:15px}.appearance-option[aria-pressed="true"]{border-color:#c6e6e6;box-shadow:0 0 0 2px #7ac7c433}.appearance-option strong,.appearance-option small{display:block}.appearance-option small{margin-top:3px;font-size:11px;opacity:.7}.appearance-swatch{width:47px;height:47px;border-radius:13px;flex:none;border:1px solid #ffffff40}.appearance-swatch.night{background:linear-gradient(140deg,#0b0c0e 40%,#34383b)}.appearance-swatch.snow{background:linear-gradient(140deg,#fff,#dceff0)}.appearance-swatch.aurora{background:linear-gradient(140deg,#16212e,#4b9e9c)}
.field-hint{display:block;margin:6px 0 2px;font-size:11px;line-height:1.45;color:#a4aeb1}.goal-finish{width:100%;margin-top:8px;padding:10px;border:0;background:transparent;color:#a8c6c8;font-size:12px;font-weight:700}html[data-theme="snow"] .goal-finish{color:#217985}html[data-theme="snow"] .field-hint{color:#687780}
html[data-theme="snow"] .appearance-option{background:#fff;color:#142027;border-color:#dce4e7}html[data-theme="snow"] .appearance-option[aria-pressed="true"]{border-color:#168d83}
.completion{position:fixed;inset:0;z-index:100;display:grid;place-items:center;pointer-events:none;background:#07141955;animation:completion-fade .4s ease both}.completion.hidden{display:none}.completion-card{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:212px;padding:22px 27px;border-radius:30px;background:#f8fcfc;color:#10292c;box-shadow:0 22px 80px #0006;animation:completion-pop .55s cubic-bezier(.18,1.5,.4,1) both}.completion-card strong{font-size:21px;letter-spacing:-.5px}.completion-card small{font-size:12px;color:#60757b}.completion-ring{width:75px;height:75px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#d7f9e7,#8fdfbb);box-shadow:0 0 0 9px #96e6c336;animation:completion-pulse .65s ease-out}.completion-ring svg{width:43px;height:43px;fill:none;stroke:#075b43;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.completion-ring path{stroke-dasharray:54;stroke-dashoffset:54;animation:completion-check .45s .22s ease forwards}@keyframes completion-pop{from{opacity:0;transform:scale(.65) translateY(30px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes completion-check{to{stroke-dashoffset:0}}@keyframes completion-pulse{50%{box-shadow:0 0 0 22px #96e6c320}}@keyframes completion-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.completion,.completion-card,.completion-ring,.completion-ring path{animation:none!important}.completion-ring path{stroke-dashoffset:0}}
