/* BellTask — one responsive design system. Legacy supplies functional fallbacks. */
@import url('./legacy-components.css') layer(legacy);

:root { --color-bg:#f8f8fa; --color-surface:#fff; --color-primary:#5267d5; --color-primary-dark:#3c51bb; --color-primary-tint:#eef0fc; --color-text:#19243b; --color-text-muted:#747c8e; --color-border:#e7e8ee; --color-danger:#bc4854; --accent-peach:#ee996c; --radius:16px; --shadow:0 8px 28px #19243b06; }
:root[data-theme="verde"], :root[data-theme="menta"] { --color-primary:#31856f; --color-primary-dark:#206b58; --color-primary-tint:#eaf5ef; }
:root[data-theme="rosa"], :root[data-theme="rosita"] { --color-primary:#b45377; --color-primary-dark:#913c5b; --color-primary-tint:#fbecf2; }
:root[data-theme="azul"] { --color-primary:#347caa; --color-primary-dark:#225d83; --color-primary-tint:#ebf4fa; }
:root[data-theme="naranja"], :root[data-theme="durazno"] { --color-primary:#bc6740; --color-primary-dark:#985033; --color-primary-tint:#fcf0e8; }
:root[data-theme="lavanda"] { --color-primary:#8061b6; --color-primary-dark:#65459b; --color-primary-tint:#f2edfa; }
:root[data-theme="negro"], :root[data-theme="azulnoche"] { --color-primary:#344358; --color-primary-dark:#1c2a3b; --color-primary-tint:#edf0f4; }
* { box-sizing:border-box; }
html { background:var(--color-bg); scroll-behavior:smooth; }
body { margin:0; min-width:0; background:var(--color-bg); color:var(--color-text); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:wait; opacity:.55; }
button,input,select,textarea,[contenteditable] { touch-action:manipulation; }
:focus-visible { outline:3px solid var(--color-primary); outline-offset:3px; }
[tabindex="-1"]:focus { outline:none; }
button { transition:background-color .16s,color .16s,box-shadow .16s; }
input:not([type="checkbox"]),select,textarea { color:var(--color-text); border:1px solid var(--color-border); background:#fff; border-radius:12px; min-width:0; min-height:46px; padding:11px 13px; box-shadow:none; font-size:16px; }
input::placeholder,textarea::placeholder { color:#959bac; opacity:1; }
label { font-size:13px; font-weight:500; margin:17px 0 7px; color:var(--color-text); }
.field-hint { font-size:12px; line-height:1.6; color:var(--color-text-muted); }
.field-error { font-size:12px; color:var(--color-danger); }
.btn-primary,.btn-secondary,.btn-signout,.btn-delete-local-data { min-width:0; min-height:48px; border-radius:13px; padding:12px 18px; font-size:14px; font-weight:600; line-height:1.4; white-space:normal; text-align:center; box-shadow:none; }
.btn-primary { color:white; background:var(--color-primary); border:1px solid transparent; }
.btn-primary:hover { background:var(--color-primary-dark); }
.btn-secondary { background:#fff; border:1px solid var(--color-border); color:var(--color-text); }
.btn-secondary:hover { background:var(--color-bg); }
.btn-back,.btn-save-detail,.btn-header-add { width:44px; height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; padding:0; background:#fff; color:var(--color-text); border:1px solid var(--color-border); border-radius:50%; box-shadow:none; }
.btn-back svg,.btn-save-detail svg,.btn-header-add svg { width:20px; height:20px; }
.icon { display:inline-flex; vertical-align:middle; flex-shrink:0; }
.icon svg { width:19px; height:19px; }

/* Mobile shell — content first, safe areas and four stable destinations. */
.app { background:transparent; border:0; box-shadow:none; width:100%; max-width:600px; margin:0 auto; height:100dvh; min-height:0; padding:0; display:flex; flex-direction:column; overflow:hidden; }
main { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; width:100%; max-width:none; margin:0; padding:0 22px 26px; background:none; border:0; box-shadow:none; }
.view { min-width:0; width:100%; max-width:none; margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.app-header { flex-shrink:0; width:100%; margin:0; padding:calc(env(safe-area-inset-top) + 20px) 22px 24px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:none; border:0; }
.app-header h1 { font-size:32px; font-weight:720; line-height:1.2; letter-spacing:-1.1px; margin:5px 0 0; }
.greeting { margin:0; font-size:13px; color:var(--color-text-muted); }
.app-header-actions { gap:9px; display:flex; flex-shrink:0; }
.header-subtitle,.header-action-label,#btn-open-settings { display:none; }
#btn-add-text { background:var(--color-primary-tint); color:var(--color-primary); border-color:transparent; }
.bottom-nav { position:static; flex-shrink:0; width:100%; max-width:none; height:auto; margin:0; padding:8px 12px calc(env(safe-area-inset-bottom) + 10px); display:flex; flex-direction:row; align-items:center; justify-content:space-around; gap:0; border:0; border-top:1px solid var(--color-border); border-radius:0; background:#fff; backdrop-filter:none; box-shadow:none; transform:none; z-index:50; }
.bottom-nav::before,.bottom-nav::after { content:none; }
.bottom-nav.is-auxiliary { display:none; }
.nav-item { display:flex; flex:1; flex-direction:column; justify-content:center; align-items:center; width:auto; height:50px; min-height:50px; gap:4px; margin:0; padding:4px 3px; background:transparent; color:var(--color-text-muted); border:0; border-radius:12px; font-weight:500; }
.nav-item.active { color:var(--color-primary); background:transparent; }
.nav-icon svg { width:23px; height:23px; stroke-width:1.7; }
.nav-label { font-size:10px; }
.nav-brand,.nav-section-label,.nav-footer,.nav-settings { display:none; }
.view-header-row { display:flex; align-items:center; gap:12px; margin:0 0 24px; padding:0; }
.view-header-row h2 { margin:0; min-width:0; font-size:26px; line-height:1.2; letter-spacing:-.6px; white-space:normal; overflow:visible; }
.view-header-row .btn-save-detail { margin-left:auto; color:var(--color-primary); }

/* Daily agenda and its contextual sidebar. */
#view-tasks { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"overview" "agenda" "companion"; gap:25px; }
.workspace-agenda { grid-area:agenda; min-width:0; }
.day-overview { position:static; grid-area:overview; display:flex; align-items:center; gap:19px; margin:0; padding:22px 19px; border:1px solid var(--color-border); border-radius:18px; background:#fff; box-shadow:none; }
.day-progress-ring { flex:0 0 82px; width:82px; height:82px; border:0; border-radius:50%; padding:6px; background:conic-gradient(var(--accent-peach) calc(var(--progress,0) * 1%),#f0eae6 0); transform:rotate(-90deg); }
.day-progress-ring span { height:100%; width:100%; display:flex; align-items:center; justify-content:center; border-radius:50%; background:white; font-size:24px; font-weight:650; transform:rotate(90deg); }
.day-overview-copy { text-align:left; min-width:0; flex:1; }
.day-overview-copy strong { font-size:14px; font-weight:650; }
.day-overview-copy > span { display:block; font-size:12px; line-height:1.5; color:var(--color-text-muted); margin-top:6px; }
.day-progress-track { height:4px; margin-top:15px; border-radius:10px; overflow:hidden; background:#f0ece9; }
.day-progress-track i { display:block; height:100%; width:0; background:var(--accent-peach); border-radius:10px; }
.section-tabs { display:flex; gap:2px; margin:0 0 24px; padding:4px; border:0; border-radius:13px; background:#edeef3; overflow:visible; }
.section-tab { min-width:0; flex:1; min-height:40px; padding:7px 3px; border:0; border-radius:10px; font-size:11px; font-weight:600; color:var(--color-text-muted); background:transparent; box-shadow:none; }
.section-tab.active { background:white; color:var(--color-text); box-shadow:0 2px 5px #19243b07; }
.agenda-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 18px; }
.today-label { color:var(--color-text); margin:0; font-size:14px; font-weight:650; }
.agenda-count { color:var(--color-text-muted); font-size:11px; white-space:nowrap; }
.search-bar { margin:0 0 18px; }
.chip-row { display:flex; gap:7px; margin:0 0 22px; padding:0 0 3px; overflow-x:auto; scrollbar-width:none; }
.chip { border:1px solid var(--color-border); background:white; color:var(--color-text-muted); font-size:11px; font-weight:500; padding:6px 10px; min-height:34px; box-shadow:none; flex-shrink:0; }
.chip.active { background:var(--color-primary-tint); color:var(--color-primary); border-color:transparent; }
.chip-count { font-size:10px; background:#00000006; }
.category-group { margin:0 0 24px; border:0; background:none; }
.category-group-header { font-size:12px; font-weight:650; padding:10px 12px; margin:0 0 8px; border-radius:9px; }
.subject-group { margin:0; padding:0; }
.subject-group-header { font-size:11px; color:var(--color-text-muted); font-weight:500; margin:16px 0 4px 4px; }
.task-list,.timeline-list { display:block; list-style:none; margin:0; padding:0; }
.task-item { position:relative; display:flex; align-items:flex-start; gap:12px; margin:0; padding:16px 0; border:0; border-bottom:1px solid var(--color-border); border-radius:0; background:transparent; box-shadow:none; min-width:0; }
.task-checkbox { appearance:none; -webkit-appearance:none; position:relative; inset:auto; flex:0 0 22px; width:22px; height:22px; min-height:22px; margin:1px 0 0; padding:0; border:1.5px solid #a5abb9; border-radius:50%; background:var(--color-bg); cursor:pointer; }
.task-checkbox:checked { border-color:var(--color-primary); background:var(--color-primary); }
.task-checkbox:checked::after { content:""; position:absolute; left:6px; top:3px; width:6px; height:10px; border:solid white; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.task-checkbox::before { content:""; position:absolute; inset:-10px; }
.task-body { display:block; flex:1; min-width:0; width:100%; margin:0; padding:0; border:0; background:none; text-align:left; color:inherit; }
.task-title { display:block; font-size:14px; font-weight:600; line-height:1.45; margin:0; overflow-wrap:anywhere; }
.task-description { font-size:12px; line-height:1.5; margin:4px 0 0; color:var(--color-text-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.task-item.done .task-title { color:var(--color-text-muted); text-decoration:line-through; }
.task-meta { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0 0; }
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:6px; background:var(--color-primary-tint); color:var(--color-primary); font-size:10px; font-weight:500; }
.badge svg { width:12px; height:12px; }
.badge.overdue { background:#fbecef; color:#ab4c58; }
.task-delete,.task-pin { position:relative; inset:auto; flex:0 0 28px; width:28px; height:32px; padding:5px; opacity:.65; color:var(--color-text-muted); border:0; background:transparent; }
.task-delete:hover { color:var(--color-danger); opacity:1; }
.timeline-row { display:grid; grid-template-columns:39px minmax(0,1fr); gap:13px; position:relative; }
.timeline-row::before { content:""; position:absolute; left:62px; top:33px; bottom:-21px; border-left:1px solid #dddfea; }
.timeline-row:last-child::before { bottom:18px; }
.timeline-time { padding-top:17px; color:var(--color-text-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.timeline-row .task-item { border:0; padding-bottom:24px; }
.timeline-symbol { position:relative; display:flex; justify-content:center; align-items:center; width:22px; height:22px; flex:0 0 22px; background:var(--color-primary-tint); border-radius:50%; color:var(--color-primary); margin-top:1px; }
.timeline-symbol svg { width:14px; height:14px; }
.empty-state { margin:0; padding:28px 20px; color:var(--color-text-muted); font-size:14px; text-align:center; line-height:1.7; }
.quick-add { display:flex; align-items:center; gap:9px; width:100%; margin-top:24px; padding:12px 14px; min-height:46px; border:1px solid var(--color-border); border-radius:12px; color:var(--color-primary); background:#fff; font-size:12px; text-align:left; }
.quick-add span { font-size:22px; line-height:1; }
.day-companion { grid-area:companion; min-width:0; padding:19px; background:#fff; border:1px solid var(--color-border); border-radius:18px; }
.companion-heading { display:flex; gap:12px; align-items:center; }
#avatar-day { width:60px; height:60px; flex-shrink:0; }
.companion-heading h2 { font-size:14px; margin:0 0 3px; }
.companion-heading p { font-size:11px; color:var(--color-text-muted); margin:0; }
.daily-tip { font-size:12px; line-height:1.75; color:var(--color-text-muted); background:none; border:0; padding:0; margin:18px 0 0; font-weight:400; }
.briefing-card { display:block; border:0; background:var(--color-bg); border-radius:12px; padding:13px; margin:16px 0 0; box-shadow:none; }
#briefing-text { margin:0; color:var(--color-text-muted); font-size:12px; line-height:1.65; }
.btn-listen { padding:9px 0 0; background:none; color:var(--color-primary); font-size:11px; border:0; box-shadow:none; }

/* Illustrated companions share one cached atlas, with no individual downloads. */
.avatar-art { display:block; width:100%; height:100%; aspect-ratio:1; background-image:url('../assets/assistants/companions-v1.png'); background-size:200% 200%; background-repeat:no-repeat; mix-blend-mode:multiply; }
.avatar-luma { background-position:0 0; }.avatar-nilo { background-position:100% 0; }.avatar-pipo { background-position:0 100%; }.avatar-auri { background-position:100% 100%; }
.assistant-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; margin:18px 0; }
.assistant-option { min-width:0; position:relative; border:1px solid var(--color-border); border-radius:16px; background:#fff; color:var(--color-text); padding:8px 8px 12px; display:flex; flex-direction:column; align-items:center; gap:3px; box-shadow:none; font-size:13px; font-weight:600; }
.assistant-option.selected { border-color:var(--color-primary); box-shadow:0 0 0 1px var(--color-primary); background:#fff; }
.assistant-option.selected::after { content:'✓'; position:absolute; right:7px; top:7px; width:20px; height:20px; line-height:20px; border-radius:50%; background:var(--color-primary); color:white; font-size:11px; }
.assistant-option-art { display:block; width:100px; height:100px; max-width:100%; }
.assistant-option small { font-size:10px; font-weight:400; color:var(--color-text-muted); }
.avatar-intro { margin:0 0 15px; text-align:left; display:block; }
.avatar-intro > div { width:88px; height:88px; margin:0 auto 10px; }
.avatar-caption { font-size:13px; color:var(--color-text-muted); }

/* First run: four steps on mobile; editorial welcome + form on desktop. */
.splash-screen { background:#fff; gap:14px; }
.splash-avatar-wrap { width:135px; height:135px; animation:none; }
.splash-welcome { margin:0; font-size:24px; font-weight:700; letter-spacing:-.6px; color:var(--color-text); }
.splash-cursor { display:none; }
#onboarding-dialog { width:100%; max-width:none; height:100dvh; max-height:100dvh; margin:0; padding:0; border:0; border-radius:0; background:#fff; overflow:auto; }
#onboarding-dialog[open] { display:flex; }
#onboarding-dialog::backdrop { background:#eef0f5; }
.onboarding-story { display:none; text-align:left; }
#onboarding-form { width:100%; min-width:0; max-width:460px; flex:1; display:flex; flex-direction:column; min-height:0; margin:0 auto; padding:calc(env(safe-area-inset-top) + 22px) 24px calc(env(safe-area-inset-bottom) + 24px); overflow-y:auto; }
#onboarding-form::before,#onboarding-form::after { content:none; }
.onboarding-top { display:flex; align-items:center; gap:18px; min-height:36px; margin-bottom:22px; }
.onboarding-progress { display:flex; flex:1; gap:6px; max-width:200px; margin:0; }
.onboarding-progress span { flex:1; width:auto; height:3px; border-radius:4px; background:#ececf1; }
.onboarding-progress span.active { background:var(--color-primary); }
.onboarding-counter { margin-left:auto; color:var(--color-text-muted); font-size:11px; }
.onboarding-step { flex:1 0 auto; min-height:0; min-width:0; max-width:none; margin:0; width:100%; display:flex; flex-direction:column; justify-content:flex-start; text-align:left; overflow:visible; padding:12px 0 0; }
.onboarding-step input,.onboarding-step select,.onboarding-step label,.onboarding-step .birthday-select-row,.onboarding-step .field-hint { max-width:none; }
.onboarding-step input,.onboarding-step select { width:100%; margin-left:0; margin-right:0; }
.onboarding-step .birthday-select-row select { width:0; }
.onboarding-assistant-step .assistant-picker { max-width:none; }
.onboarding-assistant-step .btn-preview { display:flex; }
.onboarding-account-step .dialog-actions { grid-template-columns:minmax(0,1fr); }
.onboarding-account-step .dialog-actions .onboarding-back { background:transparent; border-color:transparent; color:var(--color-text-muted); }
.onboarding-step h2 { font-size:29px; line-height:1.2; font-weight:700; letter-spacing:-.8px; margin:0 0 12px; text-align:left; }
.onboarding-intro { color:var(--color-text-muted); font-size:14px; line-height:1.65; margin:0 0 14px; text-align:left; }
.onboarding-kicker { order:0; color:var(--color-primary); font-size:11px; font-weight:650; letter-spacing:1.8px; margin:16px 0; }
.onboarding-step[data-step="0"] { justify-content:center; text-align:center; padding-top:0; }
.onboarding-step[data-step="0"] h2,.onboarding-step[data-step="0"] .onboarding-intro { text-align:center; }
.onboarding-welcome-avatar { width:220px; height:220px; flex-shrink:0; margin:0 auto; opacity:1; animation:welcome-wave .9s ease-out both; transform-origin:50% 85%; }
.onboarding-welcome-title,.onboarding-step[data-step="0"] .onboarding-intro,.onboarding-step[data-step="0"] .dialog-actions { opacity:1; animation:none; }
.onboarding-step[data-step="0"] .dialog-actions { margin-top:26px; flex:none; }
.dialog-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); align-items:stretch; gap:12px; width:100%; margin:26px 0 0; padding:0; flex-shrink:0; }
.dialog-actions > button { width:100%; max-width:none; min-width:0; min-height:50px; margin:0; overflow:visible; }
.dialog-actions > button:only-child { grid-column:1/-1; }
.onboarding-text-action { color:var(--color-primary); background:none; border:0; padding:12px; min-height:44px; font-size:12px; margin:7px 0 0; }
.onboarding-account-step > .btn-secondary { width:100%; margin:12px 0 0; min-height:52px; border-radius:13px; }
.signin-note { font-size:12px; color:var(--color-text-muted); padding:15px; background:var(--color-bg); border-radius:12px; margin:24px 0 0; line-height:1.65; }
.birthday-select-row { display:flex; gap:9px; width:100%; }
.birthday-select-row select { flex:1; width:0; padding:12px 8px; font-size:14px; }
.birthday-select-row select:nth-child(2) { flex:1.4; }
#onboarding-age-preview,#profile-age-preview { border-radius:12px; background:var(--color-primary-tint); color:var(--color-primary); padding:12px 14px; margin:14px 0 0; font-size:13px; }
.assistant-customization { margin-top:6px; border-top:1px solid var(--color-border); padding-top:14px; }
.assistant-customization summary { cursor:pointer; font-size:12px; color:var(--color-primary); padding:8px 0; }
.assistant-customization label { display:block; }
.assistant-customization input,.assistant-customization select { width:100%; }
.theme-swatch-row { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; }
.theme-swatch { width:30px; height:30px; min-width:30px; border:3px solid white; box-shadow:0 0 0 1px var(--color-border); border-radius:50%; }
.theme-swatch.active { box-shadow:0 0 0 2px var(--color-primary); transform:none; }
.theme-indigo { background:#5267d5; }.theme-verde,.theme-menta { background:#31856f; }.theme-rosa,.theme-rosita { background:#b45377; }.theme-azul { background:#347caa; }.theme-naranja,.theme-durazno { background:#bc6740; }.theme-lavanda { background:#8061b6; }.theme-negro,.theme-azulnoche { background:#344358; }
.theme-group-label { font-size:11px; margin:15px 0 4px; }
.onboarding-assistant-step .avatar-intro > div { display:none; }
.onboarding-assistant-step .avatar-intro { margin:0; }
.onboarding-assistant-step .avatar-caption { margin:0; }
@keyframes welcome-wave { 0% { opacity:0; transform:translateY(8px) rotate(-5deg); } 65% { opacity:1; transform:rotate(4deg); } 100% { transform:rotate(0); } }

/* Account, preferences, calendar and progress use the same surface language. */
.account-layout,.account-main,.account-details,.settings-grid { display:grid; gap:18px; min-width:0; }
.account-main,.account-details { align-content:start; }
.account-profile-card,.account-sync-card,.account-session-section,.account-local-data,.account-settings-list,.settings-panel { margin:0; border:1px solid var(--color-border); background:#fff; border-radius:17px; padding:19px; box-shadow:none; min-width:0; }
.account-profile-card { display:flex; align-items:center; gap:14px; }
.account-avatar { width:72px; height:72px; min-width:72px; border-radius:50%; background:var(--color-bg); overflow:hidden; }
.account-profile-card > div:nth-child(2) { min-width:0; flex:1; }
#account-name-text { font-size:16px; }
#account-email-text { font-size:12px; color:var(--color-text-muted); overflow-wrap:anywhere; margin:5px 0 0; }
.account-chevron { background:var(--color-bg); color:var(--color-text-muted); border:0; border-radius:50%; width:34px; height:34px; flex-shrink:0; }
.account-sync-card { display:flex; gap:13px; align-items:center; }
.account-sync-icon { width:34px; height:34px; border-radius:50%; background:#edf7f1; color:#408969; display:grid; place-items:center; flex-shrink:0; }
.account-sync-card strong { font-size:14px; }
.account-sync-card.is-local .account-sync-icon { color:var(--color-text-muted); background:var(--color-bg); }
.account-sync-card p { margin:4px 0 0; }
.account-auth-actions { display:grid; gap:10px; margin:0; }
.account-section-label { margin:0 0 11px; font-size:11px; letter-spacing:1px; color:var(--color-text-muted); font-weight:600; }
.account-settings-list { padding:0 17px; overflow:hidden; }
.account-settings-list button { display:flex; justify-content:space-between; align-items:center; width:100%; padding:17px 0; min-height:54px; text-align:left; background:#fff; color:var(--color-text); border:0; border-bottom:1px solid var(--color-border); font-size:13px; }
.account-settings-list button:last-child { border:0; }
.account-settings-list button span { color:var(--color-text-muted); }
.account-local-data > p:not(.account-section-label) { font-size:12px; color:var(--color-text-muted); margin:0 0 17px; }
.btn-signout,.btn-delete-local-data { width:100%; border:1px solid #f1d9dc; color:#ad4855; background:#fff8f8; font-size:12px; }
.settings-panel { padding:22px; }
.settings-section-title { font-size:16px; margin:0 0 17px; padding:0; color:var(--color-text); letter-spacing:-.2px; }
.settings-panel > label { display:block; }
.settings-panel > input,.settings-panel > select { width:100%; }
.settings-divider { display:none; }
.settings-panel .assistant-picker { margin-top:12px; }
.settings-panel .assistant-option-art { width:83px; height:83px; }
.settings-panel .avatar-intro { display:none; }
.settings-saved-label { color:#408969; font-size:12px; }
.calendar-surface { padding:17px; background:#fff; border:1px solid var(--color-border); border-radius:18px; }
.calendar-nav { padding:0; border:0; background:none; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 20px; }
.calendar-nav h2 { font-size:17px; font-weight:650; margin:0; text-transform:capitalize; }
.calendar-nav .btn-back { width:34px; height:34px; min-width:34px; border:0; background:var(--color-bg); }
.calendar-weekdays,.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.calendar-weekdays { font-size:10px; color:var(--color-text-muted); margin-bottom:8px; text-align:center; }
.calendar-day { min-width:0; font-size:13px; aspect-ratio:1; border:0; border-radius:10px; background:transparent; padding:4px; }
.calendar-grid { padding:0; border:0; margin:0; }
.calendar-day.is-today { background:var(--color-primary-tint); color:var(--color-primary); }
.calendar-day.is-selected { background:var(--color-primary); color:white; }
.calendar-agenda { margin-top:25px; min-width:0; }
.calendar-agenda h3 { font-size:14px; }
.progress-hero { padding:30px; background:#fbefe8; border:1px solid #f2e2d7; border-radius:18px; margin:0; color:#986040; }
.streak-number { font-size:58px; line-height:1.1; font-weight:650; letter-spacing:-3px; margin:0 0 12px; }
.progress-hero > p:last-child { font-size:13px; margin:0; }
#view-progress { display:grid; gap:20px; }
.progress-stats-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0; }
.progress-stat { padding:20px 6px; border:1px solid var(--color-border); background:#fff; border-radius:14px; text-align:center; box-shadow:none; }
.stat-number { display:block; font-size:26px; font-weight:650; color:var(--color-text); }
.stat-label { font-size:10px; color:var(--color-text-muted); }
.progress-section { padding:24px; margin:0; border:1px solid var(--color-border); background:#fff; border-radius:17px; }
.progress-section-title { font-size:14px; margin:0 0 10px; }
.progress-section-value { font-size:22px; font-weight:650; margin:0 0 18px; }
.progress-bar-wrap { height:6px; background:var(--color-primary-tint); border-radius:8px; }
.progress-bar-fill { height:100%; background:var(--color-primary); border-radius:8px; }
#progress-message { background:#fff; border:1px solid var(--color-border); padding:18px; margin:0; border-radius:14px; }

/* Task composer: readable writing area and deliberately grouped metadata. */
.type-selector { display:flex; width:100%; border:1px solid var(--color-border); border-radius:14px; background:#fff; padding:4px; gap:3px; margin:0 0 24px; }
.type-selector-btn { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:66px; padding:8px 4px; color:var(--color-text-muted); border:0; border-radius:10px; font-size:12px; background:transparent; }
.type-selector-btn.active { color:var(--color-primary); background:var(--color-primary-tint); box-shadow:none; }
.editor-content { display:grid; gap:24px; }
.editor-writing { min-width:0; }
.editor-writing > label { display:block; margin:0 0 9px; font-size:12px; }
.note-title-input { width:100%; margin:0 0 20px; font-size:18px; font-weight:550; resize:none; min-height:64px; border-radius:12px; padding:15px; background:#fff; border:1px solid var(--color-border); }
.rte-toolbar { display:flex; align-items:center; gap:3px; margin:0; padding:7px; border:1px solid var(--color-border); border-bottom:0; border-radius:12px 12px 0 0; background:#fff; }
.rte-btn { width:36px; height:34px; border:0; border-radius:7px; color:var(--color-text-muted); background:none; }
.note-body-input { background:#fff; border:1px solid var(--color-border); border-top:0; border-radius:0 0 12px 12px; padding:12px 15px 20px; min-height:160px; font-size:14px; line-height:1.7; margin:0; overflow-wrap:anywhere; }
.detail-meta { border:1px solid var(--color-border); border-radius:15px; background:#fff; padding:0 15px; margin:0; overflow:visible; min-width:0; }
.detail-meta-row { display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding:13px 0; border-bottom:1px solid var(--color-border); min-width:0; }
.detail-meta-row > label { flex:0 0 auto; display:flex; align-items:center; gap:7px; margin:0; font-size:12px; }
.detail-meta-value { display:flex; justify-content:flex-end; align-items:center; gap:8px; flex:1; min-width:0; font-size:12px; }
.detail-meta select { min-height:36px; border:0; border-radius:7px; padding:7px 3px; font-size:12px; color:var(--color-text-muted); background:#fff; max-width:100%; }
.detail-meta-value-split { flex-wrap:wrap; gap:5px; }
#date-time-field { align-items:flex-start; }
#date-time-field .detail-meta-value { flex-basis:100%; justify-content:flex-start; }
.date-input-wrap { flex:1; min-width:100px; width:auto; background:var(--color-bg); border-radius:9px; padding:0; }
.date-input-wrap input { width:100%; height:40px; min-height:40px; font-size:12px; padding:9px; background:transparent; border:0; }
.date-input-wrap:not(.has-value):not(:focus-within) input { color:transparent; }
.date-input-wrap:not(.has-value):not(:focus-within) input::-webkit-datetime-edit { opacity:0; }
.date-input-wrap:focus-within .field-placeholder-text,.date-input-wrap.has-value .field-placeholder-text { display:none; }
.field-placeholder-text { left:10px; font-size:12px; color:var(--color-text-muted); }
.time-picker-trigger { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:40px; padding:9px 10px; border:0; border-radius:9px; background:transparent; color:var(--color-text-muted); font:inherit; font-size:12px; text-align:left; }
.time-picker-trigger.has-time { color:var(--color-text); }
.time-picker-trigger svg { width:17px; height:17px; flex:0 0 auto; color:var(--color-primary); }
.time-picker-trigger:focus-visible { outline:3px solid color-mix(in srgb,var(--color-primary) 28%,transparent); outline-offset:1px; }
#reminder-custom-row input { width:65px; min-height:36px; padding:7px; font-size:12px; }
.detail-meta .field-hint { margin:10px 0 15px; font-size:10px; }
.switch { position:relative; display:inline-flex; align-items:center; width:44px; height:44px; margin:0; }
.switch input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; z-index:1; cursor:pointer; }
.switch-track { inset:10px 1px; }
.switch-track,.switch-knob { pointer-events:none; }
.switch:focus-within { outline:3px solid var(--color-primary); outline-offset:3px; border-radius:12px; }
.save-task-bottom { display:block; width:100%; margin:24px 0 0; min-height:50px; position:static; }
#btn-save-text { display:none; }
.detail-timestamp { font-size:11px; color:var(--color-text-muted); margin:-10px 0 20px; }

/* Supporting surfaces. Dialog display rules never override the closed state. */
dialog::backdrop { background:#17203345; backdrop-filter:blur(5px); }
.time-picker-dialog { width:calc(100% - 32px); max-width:430px; margin:auto; padding:0; border:0; border-radius:22px; background:#fff; color:var(--color-text); box-shadow:0 24px 90px #1720332e; }
.time-picker-dialog[open] { display:block; }
.time-picker-card { padding:24px; }
.time-picker-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.time-picker-header .onboarding-kicker { margin:0 0 7px; }
.time-picker-header h2 { margin:0; font-size:24px; letter-spacing:-.5px; }
.time-picker-header .btn-back { font-size:25px; line-height:1; }
.time-picker-help { margin:15px 0 20px; color:var(--color-text-muted); font-size:13px; line-height:1.55; }
.time-picker-controls { display:grid; grid-template-columns:minmax(72px,1fr) auto minmax(82px,1fr) minmax(92px,1fr); align-items:end; gap:8px; }
.time-picker-controls label { display:grid; gap:7px; margin:0; color:var(--color-text-muted); font-size:11px; }
.time-picker-controls select { width:100%; min-height:54px; margin:0; padding:10px 9px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-bg); color:var(--color-text); font-size:17px; font-weight:650; }
.time-picker-separator { padding-bottom:15px; color:var(--color-text); font-size:22px; font-weight:700; }
.time-picker-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.time-picker-actions button { width:100%; min-width:0; min-height:48px; margin:0; }
.time-picker-actions #btn-time-picker-save { grid-column:1/-1; grid-row:1; }
@media (max-width:359px) { .time-picker-card { padding:20px; }.time-picker-controls { grid-template-columns:1fr auto 1fr; }.time-picker-controls label:last-child { grid-column:1/-1; }.time-picker-separator { padding-bottom:15px; } }
.add-choice-dialog { border:0; border-radius:24px 24px 0 0; background:#fff; padding:0; width:100%; max-width:500px; }
.add-choice-body { padding:12px 22px 25px; }
.add-choice-btn { border:1px solid var(--color-border); border-radius:13px; padding:18px; margin:12px 0; background:#fff; color:var(--color-text); font-size:15px; }
.add-choice-icon { color:var(--color-primary); background:var(--color-primary-tint); }
.chat-dialog { width:calc(100% - 24px); height:min(760px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); background:#fff; border:1px solid var(--color-border); border-radius:22px; max-width:500px; box-shadow:0 20px 80px #19243b20; overflow:hidden; backdrop-filter:none; }
.chat-dialog .faq-body { width:100%; padding:0; gap:0; min-width:0; }
.faq-header { flex-shrink:0; margin:0; padding:16px; border-bottom:1px solid var(--color-border); background:#fff; }
.chat-heading { flex:1; min-width:0; }
.chat-heading h2 { font-size:18px; overflow-wrap:anywhere; }
.chat-heading p { font-size:11px; color:var(--color-text-muted); margin:2px 0 0; }
.chat-shortcuts { display:flex; flex-wrap:wrap; flex-shrink:0; gap:7px; padding:12px 16px; border-bottom:1px solid var(--color-border); }
.chat-shortcuts button { border:1px solid var(--color-border); border-radius:12px; background:var(--color-bg); color:var(--color-text); min-height:44px; padding:9px 12px; font-size:12px; }
.chat-shortcuts button:hover { background:var(--color-primary-tint); color:var(--color-primary); }
.chat-messages { padding:18px 16px; gap:12px; overscroll-behavior:contain; }
.chat-msg { max-width:94%; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; font-size:14px; padding:12px 14px; }
.chat-msg-bot { background:var(--color-bg); border:1px solid var(--color-border); backdrop-filter:none; box-shadow:none; }
.chat-msg-user { background:var(--color-primary); box-shadow:none; }
.chat-input-row { margin:0; padding:12px; border-top:1px solid var(--color-border); }
.chat-input-row input { min-width:0; font-size:16px; border-radius:12px; }
.chat-send-btn { width:46px; min-width:46px; height:46px; border-radius:12px; background:var(--color-primary); box-shadow:none; }
.chat-draft { flex-shrink:0; margin:0 12px 10px; padding:12px; border:1px solid var(--color-primary); border-radius:14px; background:var(--color-primary-tint); max-height:40%; overflow-y:auto; }
.chat-draft-heading { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.chat-draft-heading span { font-size:9px; font-weight:650; letter-spacing:1px; color:var(--color-primary); }
.chat-discard { min-height:44px; padding:8px; border:0; background:transparent; color:var(--color-text-muted); font-size:12px; }
.chat-draft strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.chat-draft p { font-size:12px; color:var(--color-text-muted); margin:7px 0 12px; }
.chat-draft > .btn-primary { width:100%; }
.chat-status { flex-shrink:0; margin:0; padding:4px 16px; color:var(--color-text-muted); font-size:12px; }
.chat-dialog { top:calc(var(--chat-viewport-top,0px) + env(safe-area-inset-top) + (var(--chat-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 2); height:min(760px,calc(var(--chat-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)); max-height:calc(var(--chat-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px); }
.chat-compact .chat-shortcuts { flex-wrap:nowrap; overflow-x:auto; padding:6px 12px; }
.chat-compact .chat-shortcuts button { flex-shrink:0; }
.chat-compact .faq-header { padding:8px 12px; }
.chat-compact .chat-draft { max-height:35%; }
#tutorial-dialog { width:100%; max-width:600px; height:100dvh; max-height:100dvh; margin:0 auto; padding:calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 28px); background:#fff; border:0; border-radius:0; }
#tutorial-dialog[open] { display:flex; flex-direction:column; }
#tutorial-steps { flex:1; min-height:0; display:flex; }
.tutorial-step { flex:1; display:flex; flex-direction:column; justify-content:center; min-height:0; }
.tutorial-step h2 { font-size:28px; letter-spacing:-.7px; text-align:left; }
.tutorial-text { font-size:14px; line-height:1.7; color:var(--color-text-muted); text-align:left; }
.tutorial-demo { background:var(--color-bg); border:1px solid var(--color-border); border-radius:20px; padding:24px; margin:25px 0; }
.tutorial-demo .demo-line { display:flex; align-items:center; gap:12px; padding:15px 0; font-size:13px; border-bottom:1px solid var(--color-border); }
.tutorial-demo .demo-line:last-child { border:0; }
.demo-check { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; color:white; background:var(--color-primary); }
.tutorial-demo .demo-time { font-size:12px; color:var(--color-primary); }
.tutorial-demo-art { width:190px; height:190px; margin:auto; }
.tutorial-demo small { display:block; margin-top:8px; color:var(--color-text-muted); font-size:12px; }

/* Desktop is a workspace, never a stretched phone or a centered narrow rail. */
@media (min-width:900px) {
  .app { display:block; height:auto; overflow:visible; max-width:none; width:auto; min-height:100vh; margin:0 0 0 224px; padding:38px clamp(28px,3.7vw,70px) 60px; }
  main { overflow:visible; padding:0; }
  .app-header,main { max-width:1360px; margin-left:auto; margin-right:auto; }
  .app-header { margin-bottom:34px; padding:0; }
  .app-header h1 { font-size:35px; letter-spacing:-1px; }
  .header-subtitle { display:block; margin:8px 0 0; font-size:12px; color:var(--color-text-muted); }
  .app-header-actions { gap:10px; }
  #btn-add-text { width:auto; gap:9px; padding:0 17px; border-radius:11px; color:white; background:var(--color-primary); }
  .header-action-label { display:inline; font-size:12px; font-weight:600; }
  .bottom-nav,.bottom-nav.is-auxiliary { display:flex; position:fixed; inset:0 auto 0 0; margin:0; width:224px; max-width:none; height:100dvh; padding:31px 18px 22px; border:0; border-right:1px solid var(--color-border); border-radius:0; background:#fff; box-shadow:none; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:6px; transform:none; }
  .nav-brand { display:flex; align-items:center; gap:11px; padding:0 12px; margin-bottom:49px; color:var(--color-text); font-weight:700; font-size:18px; letter-spacing:-.6px; }
  .nav-brand-mark { display:grid; place-items:center; width:33px; height:33px; border-radius:11px; background:#555bd6; object-fit:cover; flex-shrink:0; }
  .nav-section-label { display:block; color:#9299a8; font-size:9px; font-weight:600; letter-spacing:1.5px; padding:0 14px; margin:0 0 10px; }
  .nav-item { flex:0 0 auto; flex-direction:row; align-items:center; justify-content:flex-start; width:100%; height:46px; min-height:46px; gap:12px; padding:12px 14px; border-radius:11px; }
  .nav-item.active { background:var(--color-primary-tint); color:var(--color-primary); }
  .nav-item:hover { background:var(--color-bg); }
  .nav-label { font-size:12px; }
  .nav-icon svg { width:20px; height:20px; }
  .nav-settings { display:flex; margin-top:auto; }
  .nav-footer { display:flex; align-items:center; gap:10px; border-top:1px solid var(--color-border); padding:22px 10px 0; margin-top:15px; }
  .nav-user-mark { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; background:#f5ece5; color:#a66e4a; font-size:12px; font-weight:650; }
  .nav-footer strong { display:block; font-size:12px; font-weight:600; }
  .nav-footer small { display:block; color:var(--color-text-muted); font-size:10px; margin-top:3px; }
  #view-tasks { grid-template-columns:minmax(0,1fr) 270px; grid-template-rows:auto 1fr; grid-template-areas:"agenda overview" "agenda companion"; gap:20px 26px; align-items:start; }
  .workspace-agenda { background:#fff; border:1px solid var(--color-border); border-radius:20px; padding:24px; min-height:610px; }
  .section-tabs { margin:-2px 0 26px; padding:0; background:none; border-radius:0; border-bottom:1px solid var(--color-border); gap:18px; }
  .section-tab { flex:0 1 auto; min-width:0; min-height:45px; padding:0 1px 12px; font-size:12px; border-radius:0; border-bottom:2px solid transparent; margin-bottom:-1px; }
  .section-tab.active { box-shadow:none; border-bottom-color:var(--color-primary); color:var(--color-primary); background:none; }
  .agenda-heading { margin-bottom:22px; }
  .today-label { font-size:17px; }
  .chip-row { margin-bottom:18px; }
  .task-item { padding-top:18px; padding-bottom:20px; }
  .task-title { display:block; font-size:14px; }
  .task-checkbox { background:#fff; }
  .timeline-time { padding-top:20px; font-size:12px; }
  .timeline-row { grid-template-columns:47px minmax(0,1fr); gap:15px; }
  .timeline-row::before { left:72px; }
  .timeline-row .task-item { padding-bottom:30px; }
  .quick-add { margin-top:32px; border-style:dashed; }
  .day-overview { padding:24px 18px; flex-direction:column; align-items:flex-start; gap:16px; }
  .day-progress-ring { margin:0; width:92px; height:92px; flex-basis:92px; }
  .day-overview-copy { width:100%; }
  .day-overview-copy strong { font-size:15px; }
  .day-companion { padding:22px; }
  .companion-heading { flex-direction:column; align-items:flex-start; gap:10px; }
  #avatar-day { height:116px; width:116px; align-self:center; }
  .companion-heading h2 { font-size:15px; }
  .account-layout { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:26px; }
  .account-profile-card { min-height:144px; padding:25px; }
  .account-avatar { width:88px; height:88px; min-width:88px; }
  .account-sync-card { padding:25px; }
  .account-auth-actions { grid-template-columns:1fr 1fr; }
  .settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px; }
  .settings-panel { padding:27px; }
  .settings-panel:nth-child(3) { grid-row:2 / span 2; }
  .settings-panel:nth-child(5) { grid-column:2; grid-row:3; }
  .settings-panel .assistant-picker { grid-template-columns:repeat(4,minmax(0,1fr)); padding:0; border:0; }
  .settings-panel .assistant-option-art { width:70px; height:70px; }
  #view-calendar { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr); gap:26px; align-items:start; }
  .calendar-surface { padding:24px; }
  .calendar-day { aspect-ratio:1.15; font-size:14px; }
  .calendar-agenda { margin:0; padding:24px; background:#fff; border:1px solid var(--color-border); border-radius:18px; }
  #view-progress { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:24px; }
  .progress-hero { grid-row:span 2; min-height:310px; display:flex; flex-direction:column; justify-content:center; align-items:center; }
  .streak-number { font-size:90px; }
  #progress-message { grid-column:1/-1; }
  #view-add-text { background:#fff; padding:28px; border:1px solid var(--color-border); border-radius:20px; }
  .type-selector { max-width:470px; }
  .editor-content { grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
  .note-body-input { min-height:270px; }
  .save-task-bottom { width:auto; min-width:205px; margin-left:auto; }
  #onboarding-dialog { inset:0; margin:auto; width:calc(100vw - 80px); max-width:1020px; height:min(790px,calc(100dvh - 64px)); max-height:calc(100dvh - 64px); border:1px solid var(--color-border); border-radius:25px; box-shadow:0 25px 100px #19243b0b; }
  #onboarding-dialog[open] { display:grid; grid-template-columns:.9fr 1.1fr; }
  .onboarding-story { display:flex; flex-direction:column; justify-content:space-between; min-height:100%; padding:38px; background:#f0f0f8; }
  .story-brand { display:flex; align-items:center; gap:10px; font-weight:650; font-size:17px; letter-spacing:-.5px; }
  .onboarding-story h2 { text-align:left; font-size:37px; line-height:1.17; letter-spacing:-1.2px; margin:0 0 16px; }
  .onboarding-story p { font-size:13px; color:var(--color-text-muted); max-width:290px; line-height:1.8; }
  #avatar-story { width:240px; height:240px; align-self:center; }
  .story-footer { font-size:10px !important; margin:0; }
  #onboarding-form { max-width:none; padding:28px 42px; overflow-y:auto; }
  .onboarding-top { margin-bottom:28px; }
  .onboarding-step { flex:1 0 auto; }
  .onboarding-step[data-step="0"] { text-align:left; }
  .onboarding-step[data-step="0"] h2,.onboarding-step[data-step="0"] .onboarding-intro { text-align:left; }
  .onboarding-welcome-avatar { display:none; }
  .onboarding-step[data-step="0"] h2 { font-size:35px; }
  .onboarding-step[data-step="0"] .dialog-actions { margin-top:40px; }
  .assistant-option-art { height:106px; width:106px; }
  .add-choice-dialog { margin:auto; border-radius:22px; }
  #tutorial-dialog { margin:auto; width:520px; height:730px; max-height:calc(100dvh - 64px); border-radius:24px; padding:36px; }
}
@media (min-width:900px) and (max-width:1150px) {
  .bottom-nav,.bottom-nav.is-auxiliary { width:190px; padding-left:13px; padding-right:13px; }
  .app { margin-left:190px; padding:30px 25px; }
  #view-tasks { grid-template-columns:minmax(0,1fr) 218px; gap:18px; }
  .workspace-agenda { padding:18px; }.section-tabs { gap:12px; }.section-tab { font-size:11px; }
  .editor-content { grid-template-columns:minmax(0,1fr); }.detail-meta { max-width:100%; }
  #view-calendar { grid-template-columns:minmax(0,1fr); }
  .calendar-day { aspect-ratio:1.8; }
  .account-layout { gap:18px; }.account-profile-card { padding:17px; }.account-avatar { min-width:56px; width:56px; height:56px; }
}
@media (max-width:899px) {
  .app-header[hidden] + main { padding-top:calc(env(safe-area-inset-top) + 20px); padding-bottom:calc(env(safe-area-inset-bottom) + 24px); }
}
@media (max-width:374px) { main,.app-header { padding-left:16px; padding-right:16px; } #onboarding-form { padding-left:20px; padding-right:20px; } .section-tab { font-size:10px; } }
.reminder-preview { margin:16px 0 0; padding:14px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-bg); font-size:13px; line-height:1.6; }
.reminder-preview[data-state="invalid"],.reminder-preview[data-state="past"] { color:var(--color-danger); }
.recurrence-weekdays { margin:12px 0; padding:0; border:0; min-width:0; }
.recurrence-weekdays legend { padding:0; margin-bottom:10px; font-size:12px; color:var(--color-text-muted); }
.weekday-picker { display:grid; grid-template-columns:repeat(4,minmax(44px,1fr)); gap:6px; }
.weekday-picker button { min-width:0; min-height:44px; padding:9px 2px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-surface); color:var(--color-text); font-size:12px; font-weight:600; }
.weekday-picker button[aria-pressed="true"] { background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.recurrence-caption { display:block; font-size:11px; line-height:1.5; margin-top:5px; color:var(--color-primary); }
.task-repeat-toggle { display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:10px; border:1px solid var(--color-border); border-radius:50%; color:var(--color-primary); background:var(--color-surface); }
.task-repeat-toggle svg { width:18px; height:18px; }
.reminder-item.is-paused .recurrence-caption { color:var(--color-text-muted); }
#editor-error { margin:0 0 12px; font-size:14px; }
.switch input:disabled + .switch-track { opacity:.45; }
#btn-day-chat { width:100%; margin-top:14px; }
#btn-push-toggle,#btn-push-test,#btn-push-check { width:100%; margin-top:10px; }
#push-diagnostics { margin-top:16px; }
.save-feedback { padding:14px; margin:0 0 20px; background:#fff; border:1px solid var(--color-border); border-left:3px solid var(--color-primary); border-radius:12px; font-size:14px; line-height:1.5; }
.save-feedback button { margin-top:8px; display:block; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }
/* Account sync states use the same contained, full-width action pattern. */
.google-web-button { width:100%; min-width:0; min-height:44px; overflow:hidden; display:flex; justify-content:center; }
.google-web-button[hidden] { display:none; }
#account-sync-actions { display:grid; gap:12px; margin:16px 0; }
#account-sync-actions[hidden] { display:none; }
.sync-conflict { display:grid; gap:12px; padding:16px; margin:12px 0; border:1px solid var(--color-border,#ddd); border-radius:16px; background:var(--color-surface,#fff); }
.sync-conflict pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:200px; overflow:auto; font-size:12px; }
.sync-conflict button { width:100%; }
