@font-face { font-family: Pretendard; src: url('../assets/fonts/PretendardVariable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #EFF8F3; --surface: #FFFFFF; --text: #183C2D;
  --green: #247A5B; --green-hover: #196448; --yellow: #FFE69B;
  --sub: #526A5D; --line: #D7EBDD; --tint: #D9F8E7;
  --red: #AE2F32; --red-bg: #FFF0EF; --done: #617066;
  font-family: Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-synthesis: none; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; min-height: 44px; border: 0; }
button:disabled { cursor: not-allowed; opacity: .65; }
button, input, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; word-break: keep-all; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.skip-link { position: fixed; z-index: 30; left: 16px; top: -80px; padding: 12px 16px; color: white; background: var(--green); border-radius: 12px; }
.skip-link:focus { top: 16px; }
.app { width: 100%; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
.app[data-connected='true'] { background: #E9FCF2; }
.app-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 24px 16px 16px; max-width: 560px; margin: auto; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--green); color: white; display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
h1 { font-size: 26px; line-height: 1.35; font-weight: 750; letter-spacing: -.04em; }
.purpose { width: 100%; margin: 0; color: var(--sub); font-size: 14px; }
.app[data-connected='true'] .app-header { max-width: none; }
.service-notice { margin: 0 auto 24px; padding: 16px 20px; width: calc(100% - 32px); max-width: 1360px; background: #FFF3CB; border: 1px solid #E6CF83; border-radius: 16px; color: #654D15; font-size: 14px; }
.service-notice strong { display: block; font-size: 16px; }
.service-notice p { margin: 8px 0 0; }
.view-nav { display: flex; gap: 4px; width: 100%; padding: 4px; background: #F0F5F1; border-radius: 12px; }
.view-nav button { flex: 1; min-width: 0; border-radius: 9px; padding: 8px 6px; font-size: 14px; color: var(--sub); background: transparent; font-weight: 650; white-space: nowrap; }
.view-nav button[aria-pressed='true'] { background: var(--green); color: white; box-shadow: 0 2px 4px rgb(24 60 45 / 10%); }
.primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; color: white; background: var(--green); font-size: 16px; font-weight: 650; line-height: 1.5; transition: background-color .16s; }
.primary:hover { background: var(--green-hover); }
.secondary { background: #F3F7F4; color: var(--green); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.secondary:hover { background: #E5F0E9; }
.quick-add { display: none; }
.connection-bar { padding: 0 16px; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.connection-bar p { margin: 0; color: var(--green); font-size: 14px; }
#current-account { overflow-wrap: anywhere; font-weight: 600; }
.connection-bar[data-state='error'] #sync-status { color: var(--red); }
.connection-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.connection-actions button { padding: 6px 10px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px 24px; align-items: start; }
.planner-intro { grid-column: 1 / -1; order: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.calendar-mark { width: 52px; flex-shrink: 0; border-radius: 12px; background: var(--green); color: white; text-align: center; padding: 4px 0; }
.calendar-mark span { display: block; font-size: 14px; line-height: 1.3; }
.calendar-mark strong { display: block; font-size: 26px; line-height: 1.3; }
.intro-copy { flex: 1; min-width: 150px; }
.intro-copy h2 { font-size: 20px; letter-spacing: -.035em; }
.intro-copy p { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.intro-copy .intro-date { margin: 0 0 2px; font-size: 14px; color: var(--green); }
.intro-counts { display: flex; gap: 8px; width: 100%; }
.intro-counts button { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #F0F5F1; color: var(--text); }
.intro-counts button:first-child { background: #EEF7F1; }
.intro-counts span { font-size: 14px; }
.intro-counts strong { font-size: 18px; white-space: nowrap; }
.composer-group { order: 1; min-width: 0; }
.results { order: 2; min-width: 0; scroll-margin-top: 16px; }
.composer { display: none; border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; background: white; }
.app[data-editor-open='true'] .composer, .app[data-empty='true'] .composer { display: block; }
.app[data-editor-open='true'] .add-strip, .app[data-empty='true'] .add-strip { display: none; }
.compose-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
h2 { font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -.04em; }
.compose-header h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.close-editor { border-radius: 10px; background: var(--tint); color: var(--sub); padding: 8px; font-size: 14px; min-width: 44px; }
.edit-note { margin: -8px 0 16px; font-size: 14px; color: var(--sub); }
.field { margin: 0 0 20px; min-width: 0; }
label, legend { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.required { font-size: 14px; font-weight: 400; color: var(--sub); margin-left: 4px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.character-count { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.input { width: 100%; min-width: 0; height: 52px; padding: 10px 12px; border: 1px solid #D9E3DC; border-radius: 10px; background: #FFFFFF; color: var(--text); font-size: 16px; }
.input::placeholder { color: var(--sub); opacity: 1; }
.input:focus { border-color: var(--green); }
.input[aria-invalid='true'] { border: 2px solid var(--red); background: #FFFAFA; }
.field-error, .field-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.field-note { color: var(--sub); }
.field-error { color: var(--red); }
.field-error:empty { display: none; }
.title-suggestions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.title-suggestions > span { color: var(--sub); font-size: 14px; }
.title-suggestions button { background: #F3F6F4; color: var(--sub); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.category-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.category-suggestions button { display: flex; align-items: center; justify-content: flex-start; gap: 6px; background: #F7F9FC; color: var(--text); padding: 8px; font-size: 14px; min-height: 48px; border-radius: 10px; text-align: left; line-height: 1.4; }
.category-suggestions button svg { width: 16px; height: 16px; }
.category-name { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.category-suggestions button[aria-pressed='true'] { background: var(--green); color: white; font-weight: 650; }
.custom-category { width: 100%; margin-top: 8px; border-radius: 10px; background: #F3F6F4; color: var(--green); font-size: 14px; }
.custom-category-field { margin-top: 12px; }
.custom-category-field label { font-size: 14px; }
fieldset { padding: 0; border: 0; }
.priority-options { display: grid; gap: 8px; }
.priority-option { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #F7F9FC; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.priority-option:first-child { background: #FFFFFF; }
.priority-option::before { content: ''; width: 15px; height: 15px; flex-shrink: 0; border: 1.5px solid #AFB9CA; border-radius: 50%; background: white; }
.priority-option input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.priority-option:has(input:checked) { background: var(--yellow); box-shadow: inset 0 0 0 1px #C7A952; }
.priority-option:has(input:checked)::before { background: var(--green); box-shadow: inset 0 0 0 3px white; border-color: var(--green); }
.priority-option:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
.priority-option small { margin-left: auto; font-size: 14px; color: #526A5D; white-space: nowrap; }
.stars { color: #825B14; font-size: 16px; letter-spacing: .5px; line-height: 1.4; font-weight: 650; white-space: nowrap; }
.date-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.date-presets button { min-width: 0; font-size: 14px; color: var(--text); background: #F7F9FC; border-radius: 9px; padding: 8px 2px; }
.date-presets button[aria-pressed='true'] { color: white; background: var(--green); }
.period-fields { margin-top: 16px; }
.period-fields summary { display: list-item; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--green); font-weight: 650; }
.period-fields label { display: block; margin: 8px 0; }
.period-fields .input { width: 100%; }
.deadline-inputs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.deadline-inputs label { font-size: 14px; }
.deadline-inputs .input { padding: 8px; }
.past-time-note { display: flex; align-items: flex-start; gap: 8px; color: var(--red); font-size: 14px; margin: 0 0 16px; }
.past-time-note svg { width: 18px; height: 18px; margin-top: 3px; }
.cancel-edit { width: 100%; margin-top: 8px; }
.results-header { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; margin-bottom: 12px; }
.list-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.list-heading h2 { font-size: 20px; }
.count { color: #196448; background: #EEF7F1; padding: 3px 8px; font-size: 14px; font-weight: 650; border-radius: 8px; white-space: nowrap; }
.list-note { margin: 4px 0 12px; font-size: 14px; color: var(--sub); }
.list-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.list-tools button { border-radius: 9px; color: var(--sub); background: #F3F6F4; font-size: 14px; padding: 8px 12px; }
.list-tools button[aria-pressed='true'] { color: var(--green); background: #EEF7F1; font-weight: 650; box-shadow: inset 0 0 0 1px #BCD8C7; }
.sort-note { margin: 8px 0 0; font-size: 14px; color: var(--sub); }
.overdue-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); text-align: left; font-size: 14px; font-weight: 600; }
.overdue-link svg { width: 18px; height: 18px; }
.overdue-link { margin-bottom: 0; font-weight: 500; }
.task-list { display: grid; grid-auto-rows: max-content; align-content: start; gap: 12px; list-style: none; padding: 4px 8px 4px 4px; margin: 0; max-height: 65vh; max-height: 65dvh; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-color: #83B69A #E4F3EA; scrollbar-width: auto; scroll-padding-block: 8px; }
.task-list::-webkit-scrollbar { width: 10px; }
.task-list::-webkit-scrollbar-track { background: #E4F3EA; border-radius: 8px; }
.task-list::-webkit-scrollbar-thumb { background: #83B69A; border: 2px solid #E4F3EA; border-radius: 8px; }
.task-list::-webkit-scrollbar-thumb:hover { background: var(--green); }
.task-row { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.row-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.task-content { position: relative; min-width: 0; }
.complete-button { width: 44px; min-height: 44px; display: grid; place-items: center; background: transparent; padding: 0; border-radius: 10px; margin-top: 0; }
.checkmark { width: 24px; height: 24px; display: grid; place-items: center; background: #FFFFFF; color: var(--green); border: 1.5px solid #BDCCC2; border-radius: 7px; }
.checkmark svg { width: 17px; height: 17px; visibility: hidden; }
.complete-button:hover .checkmark { border-color: var(--green); }
.complete-button[aria-pressed='true'] .checkmark { color: white; background: var(--green); border-color: var(--green); }
.complete-button[aria-pressed='true'] .checkmark svg { visibility: visible; }
.task-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.category { padding: 3px 8px; border-radius: 8px; color: #496252; background: #EEF7F1; font-size: 14px; }
.category[data-category-type='1'] { background: #F0F5F1; }
.category[data-category-type='3'] { background: #FFF1C9; color: #655019; }
.category[data-category-type='4'] { background: #EDF5F0; color: #466151; }
.priority-trigger { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 6px; border-radius: 9px; background: transparent; color: #825B14; font-size: 14px; }
.priority-trigger:hover, .priority-trigger[aria-expanded='true'] { background: var(--yellow); }
.priority-trigger .stars { font-size: 14px; }
.priority-trigger svg { width: 14px; height: 14px; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; letter-spacing: -.025em; font-weight: 650; }
.task-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.task-time { display: inline-flex; align-items: center; gap: 5px; color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.task-time svg, .warning-badge svg { width: 16px; height: 16px; }
.warning-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--red); background: var(--red-bg); padding: 3px 8px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.task-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.task-actions button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px; border-radius: 9px; color: var(--sub); background: transparent; font-size: 14px; }
.task-actions button svg { width: 16px; height: 16px; }
.task-actions button:hover { background: #F3F7F4; color: var(--green); }
.task-actions button.delete:hover { color: var(--red); background: var(--red-bg); }
.priority-picker { margin-top: 12px; padding: 12px; border-radius: 12px; background: #F3F6F4; }
.priority-picker p { margin: 0 0 8px; font-size: 14px; }
.picker-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.picker-options button { background: white; color: var(--text); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; padding: 8px 4px; }
.picker-options button[aria-pressed='true'] { background: var(--yellow); border-color: #C7A952; }
.task-row[data-done='true'] { background: #F7F9F7; }
.task-row[data-done='true'] h3 { color: var(--done); font-weight: 500; text-decoration: line-through; }
.task-row[data-done='true'] .category, .task-row[data-done='true'] .task-time, .task-row[data-done='true'] .priority-static { color: var(--done); background: transparent; }
.priority-static, .done-label { color: var(--done); font-size: 14px; }
.empty-state { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: white; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: #EEF7F1; color: var(--green); }
.empty-state p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; word-break: keep-all; }
.empty-state .primary { max-width: 260px; }
.all-done { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin: 0 0 12px; border-radius: 12px; background: white; color: var(--green); font-size: 16px; }
.storage-note { margin: 16px 0 0; color: var(--sub); font-size: 14px; }
.storage-error { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-bottom: 12px; border-radius: 12px; background: var(--red-bg); color: var(--red); font-size: 15px; }
.storage-error svg { margin-top: 4px; }
.storage-error p { margin: 8px 0; }
.migration { padding: 16px; margin: 0 16px 16px; background: var(--yellow); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.migration p { margin: 0; font-size: 14px; }
.account-link { margin: 0 16px 16px; color: var(--sub); font-size: 14px; }
.account-link form { max-width: 528px; padding: 16px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.account-link .secondary { width: 100%; margin-top: 16px; }
summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; line-height: 1.6; }
.welcome { max-width: 528px; margin: 8px 16px 32px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.welcome h2 { font-size: 24px; }
.welcome > p:first-of-type { margin: 12px 0 24px; color: var(--sub); font-size: 16px; }
#account-panel .field { margin-top: 16px; margin-bottom: 16px; }
.account-actions { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 16px 0 8px; }
.text-button { min-height: 44px; padding: 8px 0; color: var(--green); background: transparent; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.password-input { display: flex; align-items: center; border: 1px solid #D9E3DC; border-radius: 10px; background: #FFFFFF; }
.password-input .input { border: 0; }
.password-input:focus-within { outline: 2px solid var(--green); }
.password-input button { flex-shrink: 0; min-width: 52px; min-height: 44px; margin-right: 4px; padding: 8px; border-radius: 9px; background: #EEF7F1; color: var(--green); font-size: 14px; }
.account-help, .legacy-access { margin-top: 16px; font-size: 14px; color: var(--sub); }
.account-help p { margin: 8px 0; }
.legacy-access { border-top: 1px solid var(--line); padding-top: 8px; }
.legacy-access form { margin-top: 16px; }
.legacy-access form .secondary { width: 100%; }
.remember-code { display: flex; gap: 8px; align-items: center; min-height: 44px; margin: 8px 0 16px; font-weight: 400; font-size: 14px; color: var(--sub); }
.remember-code input { width: 20px; height: 20px; accent-color: var(--green); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); min-height: 60px; border-radius: 14px; padding: 8px 8px 8px 16px; background: var(--text); color: white; box-shadow: 0 8px 24px rgb(24 60 45 / 15%); font-size: 15px; }
.toast span { min-width: 0; }
.toast button { min-width: 44px; color: white; padding: 8px; border-radius: 10px; background: transparent; font-size: 14px; white-space: nowrap; }
.toast button:hover { background: rgb(255 255 255 / 12%); }
.toast #undo-delete { color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; }
noscript { display: block; padding: 24px; }
@media (min-width: 600px) {
  .app[data-connected='true'] { max-width: 1184px; width: calc(100% - 32px); margin: 16px auto; }
  .app[data-connected='true'] .app-header { padding: 24px 24px 16px; }
  .workspace { padding: 0 24px 24px; gap: 20px; }
  .connection-bar { padding: 0 24px; }
  .migration, .account-link { margin-left: 24px; margin-right: 24px; }
  .welcome { margin: 8px auto 40px; }
  .planner-intro { padding: 20px; }
  .intro-counts { width: auto; margin-left: auto; }
  .intro-counts button { display: block; min-width: 112px; text-align: left; }
  .intro-counts span, .intro-counts strong { display: block; }
  .task-content h3 { padding-right: 92px; min-height: 44px; display: flex; align-items: center; }
  .task-actions { position: absolute; top: 0; right: 0; margin: 0; }
  .task-actions button { width: 44px; justify-content: center; font-size: 0; }
  .task-actions button svg { width: 18px; height: 18px; }
}
@media (min-width: 960px) {
  .app[data-connected='true'] { width: calc(100% - 48px); margin: 24px auto; }
  .app[data-connected='true'] .app-header { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; column-gap: 16px; row-gap: 2px; }
  .app[data-connected='true'] .brand { grid-column: 1; grid-row: 1; }
  .app[data-connected='true'] .purpose { grid-column: 1; grid-row: 2; }
  .view-nav { grid-column: 2; grid-row: 1 / 3; width: auto; }
  .view-nav button { padding-left: 14px; padding-right: 14px; }
  .quick-add { display: flex; grid-column: 3; grid-row: 1 / 3; width: auto; min-height: 48px; font-size: 14px; }
  .workspace { grid-template-columns: 360px minmax(0, 1fr); }
  .composer-group { order: 1; }
  .results { order: 2; }
  .composer { display: block; padding: 20px; }
  .add-strip, .close-editor { display: none !important; }
  .intro-copy h2 { font-size: 24px; }
  .results-header { padding: 16px 20px; }
}
@media (max-width: 359px) {
  .priority-option { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .priority-option small { font-size: 14px; }
  .priority-option .stars { font-size: 14px; }
  .date-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deadline-inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Mint surfaces and pastel categories, following the user's reference. */
.app-header { padding-top: 28px; padding-bottom: 24px; }
.brand-mark { border-radius: 11px; box-shadow: 0 3px 8px rgb(36 122 91 / 12%); }
.view-nav { border: 1px solid #C6EAD7; background: #D9F5E6; }
.view-nav button[aria-pressed='true'] { box-shadow: 0 2px 6px rgb(36 122 91 / 18%); }
.connection-bar { margin-bottom: 24px; }
.connection-bar p { color: var(--sub); }
#current-account { color: var(--text); }
#sync-status { display: flex; align-items: center; gap: 6px; }
#sync-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #287A57; flex-shrink: 0; }
.connection-bar[data-state='error'] #sync-status::before { background: var(--red); }
.connection-actions button { background: transparent; }
.planner-intro { border-color: var(--line); box-shadow: 0 4px 20px rgb(24 60 45 / 3%); }
.calendar-mark { background: var(--green); color: white; padding: 8px 0; }
.intro-copy h2 { font-weight: 750; }
.intro-copy .intro-date { color: var(--sub); }
.intro-counts button { background: #D6F5E5; border: 1px solid #C5EAD7; }
.intro-counts button:first-child { background: #FFF0BF; border-color: #F0DDA4; }
.intro-counts strong { color: var(--green); font-size: 22px; }
.intro-counts button:first-child strong { color: #705417; }
.composer, .results-header, .empty-state { box-shadow: 0 4px 20px rgb(24 60 45 / 3%); }
.compose-header { margin-bottom: 24px; }
.compose-header h2 { font-weight: 700; }
.compose-header [data-icon] { color: var(--green); }
.field { margin-bottom: 24px; }
.input { background: white; border-color: #D9E3DC; }
.input::placeholder { color: #68766D; }
.title-suggestions { gap: 4px 6px; }
.title-suggestions > span { width: 100%; }
.title-suggestions button { background: #E0F6E9; color: #1E5B43; font-size: 14px; padding: 6px 8px; }
.title-suggestions button:nth-of-type(2) { background: #EEE3FB; color: #64468B; }
.title-suggestions button:nth-of-type(3) { background: #FFEADD; color: #7A4B2C; }
.title-suggestions button:nth-of-type(4) { background: #FBE4EF; color: #824C63; }
.quick-tasks-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--sub); font-size: 14px; }
#quick-task-options { margin-top: 0; }
#quick-task-options button { background: var(--category-bg); color: var(--category-text); overflow-wrap: anywhere; text-align: left; max-width: 100%; }
#quick-task-options button:hover { outline: 1px solid var(--green); }
.quick-task-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 4px 0; }
.quick-task-editor-row .input { min-width: 0; }
.quick-task-editor-row .icon-button:hover { color: var(--red); background: var(--red-bg); }
#quick-tasks-editor { display: flex; flex-direction: column; max-height: calc(100dvh - 100px); }
#quick-tasks-editor > :not(.category-editor-list) { flex-shrink: 0; }
.category-field-heading { align-items: center; margin-bottom: 8px; }
.category-field-heading label { margin: 0; }
.manage-categories { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; color: var(--green); background: transparent; font-size: 14px; font-weight: 600; }
.manage-categories svg { width: 16px; height: 16px; }
.manage-categories:hover { background: var(--tint); }
.category-suggestions button { background: var(--category-bg, var(--tint)); color: var(--category-text, var(--text)); border: 1px solid var(--category-line, var(--line)); min-height: 48px; padding: 8px 10px; }
.category-suggestions button:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.category-suggestions button[aria-pressed='true'] { background: var(--category-bg); color: var(--category-text); outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); font-weight: 700; }
.selected-category-check { display: none; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--green); color: white; margin-left: auto; }
.category-suggestions button[aria-pressed='true'] .selected-category-check { display: inline-flex; align-items: center; justify-content: center; }
.selected-category-check svg { width: 14px; height: 14px; }
.custom-category { background: #E4F8ED; color: var(--green); border: 1px dashed #B9DCC8; }
.priority-option, .priority-option:first-child { background: #E4F9ED; border: 1px solid #CAEAD7; }
.priority-option:has(input[value='3']) { background: #FFF3D1; border-color: #EEDDAB; }
.priority-option:has(input[value='1']) { background: #F1E9FA; border-color: #DDCFEB; }
.priority-option:has(input:checked) { background: var(--yellow); border-color: #C9A64D; box-shadow: none; }
.date-presets button { background: #D9F5E6; }
.results-header { padding: 20px; }
.count { background: var(--tint); color: #196448; border-radius: 6px; }
.list-note { margin-top: 8px; }
.list-tools { gap: 8px; }
.list-tools button { background: #EDF8F1; }
.list-tools button[aria-pressed='true'] { background: #D9F8E7; color: #196448; box-shadow: inset 0 0 0 1px #A9D9BE; }
.task-list { gap: 10px; }
.task-row { padding: 16px; box-shadow: 0 2px 6px rgb(24 60 45 / 2%); transition: border-color .16s; }
.task-row:hover { border-color: #BED4C6; }
.row-body { gap: 10px; }
.complete-button { margin-top: 0; }
.task-content h3 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.5; }
.task-meta { margin-top: 4px; gap: 6px 8px; }
.category[data-category-color] { background: var(--category-bg, var(--tint)); color: var(--category-text, var(--text)); padding: 3px 8px; font-size: 14px; border-radius: 6px; max-width: 100%; overflow-wrap: anywhere; }
.priority-trigger { color: #825B14; padding-left: 2px; padding-right: 4px; }
.priority-trigger[data-priority='3'] { background: #FFF0BF; color: #705417; padding-left: 8px; padding-right: 8px; }
.task-row[data-urgency='soon'], .task-row[data-urgency='now'] { border-left: 4px solid #AE2F32; background: #FFF9F7; }
.task-row[data-urgency='overdue'] { border-left: 4px solid #D9999B; }
.task-time { color: #526A5D; }
.priority-picker { background: #E8F8EE; }
.task-row[data-done='true'] { background: #EAF8EF; box-shadow: none; }
.task-row[data-done='true'] .category[data-category-color] { color: var(--done); background: transparent; }
.task-row[data-done='true'] .checkmark { background: #84958B; border-color: #84958B; }
.task-actions button:hover { background: #EEF7F1; }
.password-input { background: white; border-color: #D9E3DC; }
.category-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: white; box-shadow: 0 24px 80px rgb(24 60 45 / 18%); overscroll-behavior: contain; }
.category-dialog::backdrop { background: rgb(24 60 45 / 36%); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 24px; }
.dialog-eyebrow { margin: 0 0 4px; font-size: 14px; color: var(--green); font-weight: 600; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--sub); background: transparent; flex-shrink: 0; }
.icon-button:hover { background: #F3F6F4; }
.category-editor-heading { margin: 24px 0 8px; display: flex; justify-content: space-between; color: var(--sub); font-size: 14px; }
.category-editor-list { display: grid; gap: 8px; }
#category-editor { display: flex; flex-direction: column; max-height: calc(100dvh - 100px); }
#category-editor > :not(.category-editor-list) { flex-shrink: 0; }
.category-editor-list { overflow-y: auto; min-height: 0; max-height: 55dvh; padding: 3px; }
.category-editor-row { display: grid; gap: 8px; padding: 8px 0; }
.category-editor-line { display: flex; align-items: center; gap: 8px; }
.category-editor-row .input { flex: 1; }
.category-editor-row .icon-button:hover { color: var(--red); background: var(--red-bg); }
.add-category { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px; padding: 12px; background: #E4F8ED; color: var(--green); border: 1px dashed #BCD8C7; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dialog-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.dialog-footer .secondary { min-width: 88px; }
.dialog-footer .primary { flex: 1; }
.category-editor-row .input { background: white; color: var(--text); }
.category-color-trigger { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-width: 96px; border-radius: 10px; padding: 6px 8px; background: #F3F7F4; color: var(--text); border: 1px solid var(--line); font-size: 14px; }
.category-color-trigger svg { width: 14px; height: 14px; }
.category-color-dot { width: 20px; height: 20px; border-radius: 6px; border: 1px solid #526A5D; background: var(--category-bg); flex-shrink: 0; }
.category-color-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 12px; background: #F4FAF6; }
.color-swatch { color: var(--category-text); background: var(--category-bg); border: 1px solid #A1B5A8; border-radius: 8px; font-size: 14px; min-height: 44px; }
.color-swatch[aria-pressed='true'] { outline: 2px solid var(--green); outline-offset: 1px; font-weight: 700; }
.custom-color-label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.custom-color-input { width: 64px; height: 44px; padding: 3px; border: 1px solid #A1B5A8; border-radius: 8px; background: white; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-controls { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.order-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: #EDF8F1; color: var(--green); border-radius: 8px; min-width: 44px; min-height: 44px; font-size: 14px; padding: 8px; }
.order-controls .drag-handle { margin-right: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.order-controls .drag-handle:active { cursor: grabbing; }
.task-row[data-dragging='true'] { opacity: .3; outline: 2px dashed var(--green); outline-offset: -2px; }
.task-drag-active, .task-drag-active * { cursor: grabbing !important; user-select: none !important; }
.task-drag-preview { position: fixed; z-index: 90; margin: 0 !important; pointer-events: none; list-style: none; box-shadow: 0 14px 32px rgb(24 60 45 / 18%); will-change: transform; }
.task-drop-indicator { position: fixed; top: 0; left: 0; z-index: 91; height: 3px; border-radius: 3px; background: var(--green); pointer-events: none; }
.task-drop-indicator::before { content: ''; position: absolute; left: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.progress-fields { margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0 12px; }
.progress-fields summary { color: var(--green); font-weight: 650; font-size: 16px; }
.progress-fields > label { display: block; margin-top: 16px; margin-bottom: 8px; }
.progress-fields textarea { display: block; width: 100%; min-height: 108px; resize: vertical; }
.checklist-editor { display: grid; gap: 8px; margin: 12px 0; }
.checklist-editor-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; align-items: center; }
.checklist-editor-row .input { min-width: 0; padding: 8px; }
.checklist-done-label { display: grid; place-items: center; min-height: 44px; cursor: pointer; }
.checklist-done-label input { width: 22px; height: 22px; accent-color: var(--green); }
.task-progress { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.task-progress > summary { color: var(--green-hover); font-weight: 600; }
.task-checklist { list-style: none; margin: 0; padding: 0; }
.checklist-toggle { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 44px; padding: 6px 4px; background: transparent; color: var(--text); font-size: 16px; border-radius: 8px; }
.checklist-toggle:hover { background: #EFF8F3; }
.checklist-mark { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #82AA94; border-radius: 6px; background: #EDF8F1; }
.checklist-mark svg { width: 16px; height: 16px; visibility: hidden; }
.checklist-text { overflow-wrap: anywhere; }
.checklist-toggle[aria-pressed='true'] .checklist-mark { color: white; background: var(--green); border-color: var(--green); }
.checklist-toggle[aria-pressed='true'] .checklist-mark svg { visibility: visible; }
.checklist-toggle[aria-pressed='true'] .checklist-text { color: var(--sub); text-decoration: line-through; }
.task-notes { margin: 8px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--sub); font-size: 16px; }
::selection { background: var(--yellow); color: var(--text); }
.device-tools { margin-top: 12px; color: var(--sub); border-top: 1px solid var(--line); }
.device-tools summary { color: var(--green); font-weight: 600; }
.device-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.reminder-panel { margin-top: 16px; padding: 16px; border: 1px solid #D8CCE9; border-radius: 16px; background: #F5F0FC; }
.reminder-heading { display: flex; gap: 8px; align-items: center; color: #66448B; }
.reminder-heading h3 { font-size: 16px; }
.reminder-panel .field-note { margin: 8px 0 0; }
.reminder-panel .device-actions button { min-width: 0; flex: 1 1 160px; }
.reminder-panel #toggle-reminders[aria-pressed='true'] { background: var(--green); color: white; }
.reminder-help { margin-top: 8px; color: var(--sub); font-size: 14px; }
.reminder-help summary { color: #66448B; font-weight: 600; }
.reminder-help p { margin: 8px 0; }
.device-tools .field-note:last-child { margin-bottom: 12px; }
#mini-return { display: none; text-decoration: none; align-items: center; }
body[data-mini='true'] #mini-return { display: inline-flex; }
body[data-mini='true'] .app { width: 100%; max-width: 480px; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
body[data-mini='true'] .app-header { display: flex; padding: 20px 16px 12px; }
body[data-mini='true'] .workspace { display: block; padding: 0 16px 20px; }
body[data-mini='true'] .connection-bar { padding: 0 16px; }
body[data-mini='true'] :is(.purpose, .view-nav, .quick-add, .planner-intro, .composer-group, .list-tools, .sort-note, .task-actions, .order-controls, .device-tools, .reminder-panel, #current-account, #show-code, #logout, #open-widget, #account-link) { display: none !important; }
body[data-mini='true'] .task-content h3 { padding-right: 0; min-height: 0; }
body[data-mini='true'] .results-header { padding: 16px; }
body[data-mini='true'] .task-row[data-done='true'] { display: none; }
.widget-body { padding: 20px 16px; background: #E9FCF2; min-width: 240px; }
.widget-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.widget-header h1 { font-size: 24px; }
.widget-header button { margin-left: auto; }
.widget-date { color: var(--sub); font-size: 14px; margin: 8px 0 20px; }
.widget-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.widget-task { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 12px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.widget-task h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.widget-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--sub); font-size: 14px; }
.widget-complete { width: 44px; height: 44px; border-radius: 8px; color: var(--green); background: #D9F5E6; border: 1px solid #9BC9AE; }
.widget-complete::before { content: ''; display: block; width: 18px; height: 18px; border: 2px solid var(--green); border-radius: 5px; margin: auto; }
.widget-sync, .widget-empty { font-size: 14px; color: var(--sub); }
.widget-sync { margin: 16px 0 0; }
@media (max-width: 479px) {
  .category-editor-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
  .category-editor-line > .input { grid-column: 1 / -1; }
  .category-color-trigger { justify-content: flex-start; min-width: 0; }
  .category-editor-row + .category-editor-row { border-top: 1px solid var(--line); padding-top: 12px; }
}
.checkmark { background: #D9F5E6; border-color: #A9D4BA; }
.secondary { background: #E7F8EE; }
.secondary:hover { background: #D7F3E2; color: var(--green-hover); }
.empty-icon { background: #D9F8E7; }
@media (min-width: 600px) { .app[data-connected='true'] { border: 1px solid #D1EBDD; border-radius: 20px; box-shadow: 0 8px 28px rgb(24 60 45 / 5%); } }
@media (min-width: 600px) { .planner-intro { padding: 24px; } .intro-counts button { min-width: 112px; padding: 12px 16px; } .workspace { gap: 24px; } }
@media (min-width: 960px) { .app[data-connected='true'] .app-header { padding: 16px 24px 24px; } .composer { padding: 24px; } }
@media (max-width: 599px) { .task-content h3 { padding-right: 0; min-height: 30px; } .task-actions { margin-top: 4px; } .task-actions button { min-width: 44px; } .category-dialog { padding: 20px; } .task-meta { gap: 4px 8px; } }
