/* User supplied HTML, 25 November 2026: common controls and frozen screen revisions. */
:root{--submitted-field-line:#65656c;--submitted-delete:#411f2a}
:root[data-mode=light]{--submitted-field-line:#898995;--submitted-delete:#ffe5e9}
.sheet:not(.habit-screen) .field{row-gap:8px}
.sheet:not(.habit-screen) .field>span,.sheet:not(.habit-screen) .field>label{font-size:14px;line-height:20px;margin-bottom:0}
.sheet:not(.habit-screen) .field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=hidden]),.sheet:not(.habit-screen) .field select{min-height:56px;height:auto;padding:12px 16px;font-size:16px;line-height:24px;border-radius:16px;border-color:transparent;box-shadow:inset 0 0 0 1px var(--submitted-field-line)}
.sheet:not(.habit-screen) .field textarea{padding:12px 16px;font-size:16px;border-radius:16px;border-color:transparent;box-shadow:inset 0 0 0 1px var(--submitted-field-line)}
.sheet:not(.habit-screen) :is(.date-trigger,.value-trigger,.icon-trigger,.color-trigger){min-height:56px;border-radius:16px;padding-inline:16px;border-color:transparent;box-shadow:inset 0 0 0 1px var(--submitted-field-line)}
.sheet:not(.habit-screen) .choice-control{border-color:var(--submitted-field-line);border-radius:16px}
.sheet:not(.habit-screen) .choice-control>summary{min-height:56px;padding-inline:16px;border-color:transparent;box-shadow:none;font-size:15px;line-height:20px}
.sheet:not(.habit-screen) .choice-caption{font-size:15px;line-height:20px}
.sheet:not(.habit-screen) .sheet-footer .btn,.date-picker-footer .btn{min-height:52px;height:auto;border-radius:16px;font-size:15px}
.sheet:not(.habit-screen) .sheet-footer .btn.danger,.sheet:not(.habit-screen):has(.submitted-delete) .sheet-footer .primary{background:var(--submitted-delete);color:var(--danger)}
.sheet:not(.habit-screen) .btn.ghost:not(.icon-btn):not(.assistant-entry):not(.onboarding-choice){border-radius:14px}
.sheet:not(.habit-screen) :is(.settings-card,.settings-section,.goal-panel,.goal-stat-card,.stat-card,.strength-card,.success-card,.habit-summary-card,.habit-week-card,.streak-card,.protection-card,.task-template,.template-card,.insight-card,.assistant-memory-item,.personalization-profile,.personalization-brief,.calendar-month,.calendar-week,.calendar-day-strip,.calendar-progress,.calendar-now,.calendar-ai){border-radius:24px}
:is(.task-list,.task-list-column,.column,.personal-list-card,.personal-list){border-radius:24px}
.task-card{border-radius:17px!important}
:is(.menu-sheet,.action-sheet,.view-menu,.goal-menu,.task-menu,.personal-list-menu){border-radius:24px}
:is(.settings-group,.settings-rows,.settings-link-group,.settings-reset-group,.mode-options,.assistant-conversation,.assistant-prompt,.assistant-suggestion,.goal-status-filter){border-radius:17px}
.assistant-composer{border-radius:24px}
.assistant-footnote,.assistant-disclaimer,.assistant-suggestion small{font-size:11px}
.settings-switch input:not(:checked){background:#3a3844;border-color:#3a3844}
.settings-switch input:before{background:#f8f8fb}
.goal-panel .btn.ghost,.assistant-memory-item .btn.ghost,.template-card .btn.ghost{background:var(--surface-3);color:var(--text);padding-inline:16px;min-height:44px}
.assistant-memory-item .btn.danger{color:var(--danger)}
.stats-view .app-header,#app[data-view=stats] .app-header{grid-template-columns:44px minmax(0,1fr) auto;min-height:72px}
.stats-view .app-header h1,#app[data-view=stats] .app-header h1{grid-column:2;grid-row:1;justify-self:start;text-align:left;font-size:22px}
.stats-view .app-header-actions,#app[data-view=stats] .app-header-actions{grid-column:3;grid-row:1}
:is(.stats-legend,.chart-legend,.chart-axis,.week-label,.calendar-week time,.calendar-month small,.habit-week small,.streak-week small,.heatmap small,.day-strip small){font-size:11px}
.streak-summary-stats{padding-inline:0;border-radius:24px}
.weekly-goal-message h3{text-wrap:balance}
.planning-sheet .sheet-header h2,.sheet:has(.day-planner) .sheet-header h2{position:static;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible;flex:1 1 auto;margin:0;padding:0;line-height:24px}
.planning-sheet [aria-pressed=true],.planner-tabs [aria-selected=true],.planner-tabs [aria-pressed=true]{color:var(--accent-ink);background:var(--accent-soft)}
.recurrence-scope{width:100%;max-width:none;justify-self:stretch;margin-inline:0;border-radius:24px}
.calendar-block-summary strong,.calendar-block-summary small{text-align:center}
.legal-document{text-align:left}
.legal-document p,.legal-document h3,.legal-document h4{text-align:left}
#app[data-view=stats]>.topbar{grid-template-columns:44px minmax(0,1fr) auto;min-height:72px}
#app[data-view=stats]>.topbar h1{grid-column:2;grid-row:1;justify-self:start;text-align:left;font-size:22px}
#app[data-view=stats]>.topbar>.topbar-companion{grid-column:3;grid-row:1}
.stat-card,.goal-detail-section,.goals-empty,.calendar-month,.calendar-week-board,.day-strip,.day-progress-card,.calendar-ai-card,.week-goal-card,.streak-overview,.streak-protection{border-radius:24px}
.goals-filters,.goal-detail-actions,.goal-source-list,.settings-menu,.reset-group,.reset-counts,.reset-recovery{border-radius:17px}
.stats-weekday,.history-outside,.stat-caption,.weekly-completion>small,.weekly-completion>span:last-of-type,.chart-caption,.calendar-weekday,.week-hours>time,.week-track>time,.week-now-marker time{font-size:11px}
.goal-detail-section .btn.ghost{background:var(--surface-3);color:var(--text);border-radius:14px;padding-inline:16px;min-height:44px}
.goal-delete-card{padding:20px;border-radius:24px;background:var(--surface);display:flex;gap:14px;align-items:center;margin-bottom:20px}
.goal-delete-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--accent-soft);color:var(--accent-ink);flex:none}
.goal-delete-card strong{font:650 17px/1.4 Manrope,sans-serif}
.goal-delete-card p{margin:4px 0 0;color:var(--muted);font-size:13px}
.goal-delete-note{padding:16px;border-radius:17px;background:var(--surface);color:var(--muted);font-size:14px}
.goal-milestone-editor-row{position:relative;padding:20px 16px;border-radius:24px;background:var(--surface);margin-bottom:14px;display:grid;gap:16px}
.goal-milestone-editor-row>.icon-btn{position:absolute;right:8px;top:4px;color:var(--danger)}
.goal-milestone-editor-row>.field:first-child>span{padding-right:40px}
.goal-milestone-editor-row>.field:first-child{margin-top:8px}
.goal-milestone-count{margin:0 0 16px;font-size:14px;color:var(--muted)}
.goal-milestone-editor-row>h3{font:600 18px/1.4 Manrope,sans-serif;margin:0 0 8px}
.goal-milestone-editor-row>.icon-btn{top:10px;right:12px;color:var(--muted)}
.goal-milestone-editor-row>.field:first-of-type{margin-top:0}
.goal-milestones-hero{padding:20px 16px;background:var(--surface);border-radius:24px;margin-bottom:16px}
.goal-milestones-hero>div:first-child{display:flex;gap:14px;align-items:center}
.goal-milestones-hero>div:first-child>span{width:44px;height:44px;border-radius:14px;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-items:center;flex:none}
.goal-milestones-hero strong{font:600 18px/1.4 Manrope,sans-serif}.goal-milestones-hero small{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.goal-milestones-track{height:4px;background:var(--line);border-radius:4px;margin-top:24px;position:relative}.goal-milestones-track i{position:absolute;top:-2px;width:8px;height:8px;border-radius:50%;background:var(--accent-ink);transform:translateX(-50%)}
.goal-milestones-hero>p{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin:10px 0 0}
[data-action=goal-add-milestone]{width:100%;min-height:56px;border:1px dashed var(--line-strong,#65656c);border-radius:17px!important;background:transparent!important;color:var(--accent-ink)!important}
.goal-delete-title{font:700 24px/1.3 Manrope,sans-serif;margin:24px 0 14px}
.goal-delete-facts{background:var(--surface);border-radius:24px;overflow:hidden}.goal-delete-facts>div{padding:16px;display:flex;gap:14px;border-bottom:1px solid var(--line);align-items:flex-start}.goal-delete-facts>div:last-child{border:0}.goal-delete-facts>div>svg{flex:none;color:var(--muted)}.goal-delete-facts>div:first-child>svg{color:var(--danger)}.goal-delete-facts>div:nth-child(2)>svg{color:var(--success)}.goal-delete-facts strong{display:block;font-size:15px;font-weight:600}.goal-delete-facts small{display:block;font-size:14px;color:var(--muted);margin-top:4px}
.sheet:has(.submitted-delete) .sheet-footer{display:flex;flex-direction:column;gap:10px}.sheet:has(.submitted-delete) .sheet-footer>.btn{width:100%;min-height:52px}.sheet:has(.submitted-delete) .sheet-footer>.ghost{background:var(--surface-3);color:var(--text)}
.matrix{gap:12px}
.matrix .quadrant{padding:14px 10px;border-radius:24px;min-width:0;background:var(--surface)}
.matrix .quadrant>h3{margin:0 0 14px;font-size:14px;line-height:20px;font-weight:650}
.matrix .task-card{margin-bottom:8px}
.matrix .quadrant-empty{font-size:12px;min-height:48px;display:grid;place-items:center;color:var(--muted)}
.matrix{display:grid;grid-template-columns:1fr;gap:18px}
.matrix .quadrant{padding:18px;min-height:0;border-radius:24px}
.matrix .quadrant>h3{font:500 16px/24px 'DM Sans',sans-serif;color:var(--muted);margin:0 0 14px}
.matrix .task-card{padding:24px 16px;background:var(--surface-2)!important;border-radius:24px!important;margin:0 0 8px;color:var(--text)}
.matrix .task-title{font-size:16px;line-height:24px;font-weight:600}
.matrix .task-priority .sr-only{position:static;width:auto;height:auto;clip:auto;clip-path:none;margin:0;overflow:visible;white-space:normal;font-size:12px}
.matrix .tag{padding:0;background:transparent;color:var(--accent-ink);font-size:12px;border:0}
.matrix .tags{gap:12px 24px;margin-top:20px;flex-wrap:wrap}
.matrix .priority-high{color:var(--danger)}.matrix .priority-medium{color:var(--warning,#ffc247)}.matrix .priority-low{color:var(--success,#29da96)}.matrix .tag.urgent{color:var(--danger)}
.matrix .subtasks{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}
.matrix .quadrant-empty{display:block;min-height:0;margin:0;font-size:13px;line-height:20px}
.task-priority-help{padding:12px 16px;background:var(--surface);border-radius:17px;margin-bottom:22px}
#modal .sheet:not(.habit-screen) .field>input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([data-value-source]),#modal .sheet:not(.habit-screen) .field textarea{border:0!important;box-shadow:inset 0 0 0 1px var(--submitted-field-line)!important;background:var(--control,#19191f)!important;border-radius:16px!important;padding:12px 16px!important;font-size:16px!important;min-height:56px!important;line-height:24px!important}
#modal .sheet:not(.habit-screen) :is(.value-trigger,.date-trigger,.icon-trigger){border:0!important;box-shadow:inset 0 0 0 1px var(--submitted-field-line)!important;background:var(--control,#19191f)!important;border-radius:16px!important;min-height:56px!important;padding-inline:16px!important}
#modal .sheet:not(.habit-screen) .choice-control{border:1px solid var(--submitted-field-line)!important;border-radius:16px!important;background:var(--control,#19191f)!important}
#modal .sheet:not(.habit-screen) .choice-control>summary{min-height:56px!important;border:0!important;box-shadow:none!important;padding-inline:16px!important}
#app[data-view=stats]>.topbar.title-on-row .topbar-title{grid-column:2;grid-row:1;justify-self:start!important;text-align:left!important;padding:0!important;position:static;transform:none;min-width:0;font-size:22px;white-space:normal;line-height:28px}
#app[data-view=stats]>.topbar .topbar-companion{gap:0}
.sheet:not(.habit-screen) .sheet-footer>.btn.ghost{background:var(--surface-3);color:var(--text)}
#modal .sheet:has([data-goal-milestone-editor]) [data-action=goal-add-milestone]{border:1px dashed var(--submitted-field-line)!important;min-height:56px!important;border-radius:17px!important;background:transparent!important;color:var(--accent-ink)!important}
@media(prefers-reduced-motion:reduce){.submitted-design *{scroll-behavior:auto}}
#app[data-view=stats]>.topbar[data-title-align=center]{grid-template-columns:44px minmax(0,1fr) auto!important}
@media(max-width:360px){#app[data-view=stats]>.topbar .topbar-title{font-size:20px!important}}
/* Re-audit: older editor rules used !important and overrode the supplied labels,
   textarea and footer sizes. Match the authored controls at their actual scope. */
#modal .sheet:not(.habit-screen) .field>span,#modal .sheet:not(.habit-screen) .field>label{font-size:14px!important;line-height:20px!important;margin-bottom:0!important}
#modal .sheet:not(.habit-screen) .field textarea{min-height:98px!important;background:var(--surface)!important}
#modal .sheet:not(.habit-screen) .field>input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([data-value-source]){background:var(--surface)!important}
#modal .sheet:not(.habit-screen) .sheet-footer .btn,.date-picker-footer .btn{min-height:52px!important;font-size:15px!important}
#modal .sheet:not(.habit-screen) [data-subtask-add]{background:var(--surface)!important;color:var(--text)!important;min-height:44px!important;padding:10px 16px!important;border-radius:14px!important}
/* Actual runtime selectors verified against every submitted group. */
#modal .sheet:not(.habit-screen) .date-trigger:not(.day-plan-date .date-trigger)>span,
#modal .sheet:not(.habit-screen) .choice-control .choice-caption,
#modal .sheet:not(.habit-screen) .choice-control .choice-caption>span,
#modal .sheet:not(.habit-screen) .icon-select-trigger>span{font-size:15px!important;line-height:20px!important}
#modal .sheet:not(.habit-screen) .icon-select-trigger{border:0!important;border-radius:16px!important;box-shadow:inset 0 0 0 1px var(--submitted-field-line)!important;min-height:56px!important;background:var(--surface)!important}
#modal .sheet:not(.habit-screen) :is(.form-grid,.goal-form-row) :is(.value-trigger,.date-trigger,.icon-select-trigger){padding-left:12px!important;padding-right:10px!important}
#modal .sheet.menu-sheet{border-radius:24px!important}
#modal .sheet:not(.habit-screen) .personal-add{row-gap:8px}
#modal .sheet:not(.habit-screen) [data-action=template-edit],
#modal .sheet:not(.habit-screen) .goal-detail-actions>.btn.ghost,
#modal .sheet:not(.habit-screen) [data-action=notification-test]{background:var(--surface-3)!important;border-radius:14px!important;padding-inline:16px!important;min-height:44px!important}
#modal .sheet:not(.habit-screen) :is([data-action=goal-add-step],[data-action=goal-link-task],[data-action=exp-week-target],[data-action=exp-preview],.restore-screen>[data-action=tutorial-export],.reset-export,.reset-cancel){background:var(--surface)!important;padding-inline:16px!important;min-height:44px!important}
#modal [data-goal-editor=steps]+[data-action=goal-add-step]{margin-bottom:16px}
#app[data-view=calendar] .habit-week-strip,#app .calendar-week-board{border-radius:24px!important}
#app[data-view=calendar] .habit-week-strip .day>span,.calendar-week .week-navigation-axis,.week-navigation-day>span{font-size:11px!important}
#modal .sheet:has(.day-plan-workspace) .sheet-header h2{position:static;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible;white-space:normal;flex:1 1 auto;margin:0;padding:0;line-height:24px}
#modal :is(.planning-mode,.day-plan-filters,.replan-options) [aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink)}
#modal .planning-ai,#app .stat-card.ai-insights{border-radius:24px}
#modal .series-screen .activity-series-records span,#modal .series-month-key>span{font-size:11px}
.value-picker .value-picker-footer>.btn{border-radius:16px!important;min-height:52px!important;font-size:15px!important}
.streak-celebration .btn.primary{border-radius:16px;font-size:15px}
#modal .sheet[data-screen-key=template-delete] .sheet-footer>.primary,#modal .sheet[data-screen-key=goal-entry-delete] .sheet-footer>.primary{background:var(--submitted-delete);color:var(--danger)}
#modal .sheet.screen-page.menu-sheet.subtle-section-menu{border-radius:24px!important}
#modal .sheet:not(.habit-screen) .choice-control>summary span{font-size:15px!important;line-height:20px!important}
#app .week-navigation-axis{font-size:11px!important}
.date-dialog footer>.btn,.value-picker footer>.btn{border-radius:16px!important;min-height:52px!important;font-size:15px!important}
#modal :is(.planning-mode,.day-plan-filters,.replan-delay-presets) [aria-pressed=true]{background:var(--surface-3);color:var(--accent-ink)}
#modal .sheet:not(.habit-screen) .flexible-plan-form .form-grid :is(.date-trigger,.value-trigger){padding-left:12px!important;padding-right:10px!important}
#modal .sheet:not(.habit-screen) :is(.list-editor,.personal-editor) .value-trigger{padding-inline:16px!important}
#modal .sheet:not(.habit-screen) [data-action=goal-add-task]{background:var(--surface)!important;padding-inline:16px!important}
.day-celebration .btn.primary{border-radius:16px!important;font-size:15px!important}

#modal .sheet:not(.habit-screen) .plan-date-row :is(.date-trigger,.value-trigger){padding-left:12px!important;padding-right:10px!important}
#modal .assistant-history-new,#modal .assistant-history-new>span{font-size:15px}
#modal .assistant-history-new{min-height:52px;height:52px}
#modal .assistant-memory-toggle{border-radius:17px}
#modal .assistant-memory-actions>.btn.ghost{background:var(--surface-3);padding-inline:16px}
#modal .assistant-memory-clear>.btn.ghost,#modal [data-action=tutorial-restart]{background:var(--surface);padding-inline:16px;min-height:44px}
#modal .personalization-button.is-danger,.account-overlay [data-account-form=delete-account] .auth-submit{background:var(--submitted-delete);color:var(--danger)}
.account-overlay [data-account-form=change-password] .auth-submit{min-height:52px;height:52px;font-size:15px}
.account-overlay [data-account-form=change-password] .auth-submit-label{font-size:15px}
:root{--submitted-selection:#2d2a3a}:root[data-mode=light]{--submitted-selection:var(--accent-soft)}
#modal :is(.planning-mode,.day-plan-filters,.replan-delay-presets) [aria-pressed=true]{background:var(--submitted-selection)}
#modal .sheet:is([data-screen-key=task-delete],[data-screen-key=stop-series]):not(.habit-screen) .sheet-footer>.primary,#modal .sheet:has(.reset-confirm) .sheet-footer>.primary{background:var(--submitted-delete);color:var(--danger)}
#modal .sheet:not(.habit-screen) :is(.task-list-editor,.personal-list-editor) .value-trigger{padding-inline:16px!important}
.protection-celebration .btn.primary{border-radius:16px!important;min-height:52px!important;height:52px!important;font-size:15px!important}
#modal .sheet:not(.habit-screen) [data-control=choose-option]>span{font-size:15px!important;line-height:20px!important}
#modal .sheet:not(.habit-screen) .block-size-fields:not(.is-timed) :is(.date-trigger,.value-trigger){padding-left:12px!important;padding-right:10px!important}
#modal .assistant-history-new{min-height:52px!important;height:52px!important;font-size:15px!important}
.account-overlay [data-account-form=change-password] .auth-submit{min-height:52px!important;height:52px!important;font-size:15px!important}
.account-overlay [data-account-form=delete-account] .auth-submit{background:var(--submitted-delete)!important;color:var(--danger)!important}
#modal [data-action=tutorial-restart]{background:var(--surface)!important}

.account-overlay .account-server-content [data-account-form=delete-account] .auth-submit.primary{background:var(--submitted-delete)!important;color:var(--danger)!important}
#modal .goal-update-screen .sheet-footer .btn.primary{background:var(--accent);color:var(--accent-contrast)}
#modal .goal-update-screen .field :is(input,textarea){background:var(--control)}
#modal .sheet:has(.theme-picker) .mode-options input:checked+span{background:var(--submitted-selection);color:var(--accent-ink)}
