@font-face {
  font-family: "Golos Text";
  src: url("../vendor/golos-text.caa4693f600e.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../vendor/manrope.946beb949095.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --blue: #385ce8;
  --blue-hover: #294bd1;
  --blue-soft: #edf1ff;
  --mist: #f3f5fa;
  --paper: #fff;
  --ink: #202b45;
  --muted: #69758c;
  --line: #e1e6f1;
  --warm: #a74a35;
  --warm-soft: #fbefeb;
  --green: #36745e;
  --green-soft: #edf6f1;
  --body-font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Manrope, "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar-width: 232px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 14px/1.5 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
a { color: var(--blue); text-decoration: none; }
button { border: 0; }
input, textarea, select { max-width: 100%; }
textarea { resize: vertical; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9caefb; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { color: var(--ink); background: #dce4ff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; color: var(--paper); background: var(--ink); border-radius: 9px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 37px 20px 22px; border-right: 1px solid var(--line); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 750 26px/1.15 var(--display-font); letter-spacing: -1px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; background: var(--blue); border-radius: 11px; color: var(--paper); }
.brand-mark .icon { width: 23px; height: 23px; stroke-width: 2.6; }
.brand-dot { color: var(--blue); }
.brand-caption { color: var(--muted); font-size: 12px; margin: 12px 0 38px 2px; }
.desktop-nav { display: grid; gap: 5px; margin-top: 38px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 13px; color: var(--muted); border-radius: 11px; transition: background-color .15s, color .15s; }
.nav-link:hover { background: var(--mist); color: var(--ink); }
.nav-link.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.nav-count { font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; margin-left: auto; min-width: 18px; text-align: center; opacity: .85; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-note { padding: 0 13px 21px; margin: 0 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.sidebar-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 500; }
.mobile-header, .bottom-nav { display: none; }
.main-content { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; max-width: 1128px; margin: 0 auto; padding: 37px clamp(28px, 4.6vw, 72px) 60px; outline: none; }
.workspace-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 31px; }
.timezone-note { color: var(--muted); font-variant-numeric: tabular-nums; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font: 750 clamp(29px, 2.8vw, 36px)/1.22 var(--display-font); letter-spacing: -1.3px; }
.page-subtitle { margin: 9px 0 0; color: var(--muted); line-height: 1.6; }
.page-subtitle::first-letter { text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 17px; border: 1px solid transparent; border-radius: 11px; font-weight: 500; font-size: 14px; line-height: 1.4; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.button .icon { width: 19px; height: 19px; }
.button-primary { color: var(--paper); background: var(--blue); box-shadow: 0 3px 6px #385ce810; }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 12px #385ce822; }
.button-primary:active { box-shadow: none; }
.button-secondary { color: var(--ink); background: var(--mist); border-color: var(--line); }
.button-secondary:hover { background: #e9edf6; }
.button-danger-quiet { color: var(--warm); background: var(--warm-soft); }
.button-danger-quiet:hover { background: #f6e3dd; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; min-height: 44px; padding: 10px; border-radius: 10px; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--ink); background: var(--mist); }
.task-toolbar { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; margin-bottom: 28px; }
.search-field { display: flex; align-items: center; gap: 10px; width: min(100%, 330px); min-height: 44px; padding-left: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.search-field > .icon { width: 17px; height: 17px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; height: 42px; padding: 8px 0; background: transparent; border: 0; outline-offset: -2px; }
input::placeholder, textarea::placeholder { color: #8c96a9; opacity: 1; }
.search-submit { flex: 0 0 auto; display: grid; place-items: center; width: 41px; height: 42px; border-radius: 0 9px 9px 0; background: transparent; color: var(--muted); }
.search-submit:hover { color: var(--blue); background: var(--blue-soft); }
.search-submit .icon { width: 17px; height: 17px; }
.sort-field { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-field label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sort-field select { min-height: 44px; padding: 8px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; }
.history-sort-caption { margin-left: auto; color: var(--muted); font-size: 11px; }
.history-filters { flex-basis: 100%; margin-top: -3px; }
.history-filters summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 32px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.history-filters summary::-webkit-details-marker { display: none; }
.history-filters summary::after { content: "+"; margin-left: 2px; font-size: 16px; }
.history-filters[open] summary::after { content: "−"; }
.history-filters summary .icon { width: 15px; height: 15px; }
.history-filter-fields { display: flex; align-items: end; gap: 13px; padding-top: 11px; max-width: 540px; }
.history-filter-fields .field { flex: 1; min-width: 0; margin-bottom: 0; }
.history-filter-fields .field input { min-width: 0; font-size: 14px; }
.history-filter-fields .field label { font-size: 12px; }
.history-filter-fields .button { font-size: 12px; }
.filter-dot, .overdue-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.filter-dot { color: var(--blue); }
.search-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: -7px 0 23px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.search-summary strong { font-weight: 500; color: var(--ink); }
.search-summary a { margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }
.task-group + .task-group { margin-top: 25px; }
.group-heading { display: flex; align-items: center; gap: 9px; min-height: 22px; margin: 0 2px 9px; }
.group-heading h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.5; font-weight: 500; }
.group-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.is-overdue > .group-heading h2 { color: var(--warm); }
.task-list { list-style: none; margin: 0; padding: 0 13px; background: var(--paper); border: 1px solid #e8ecf4; border-radius: 15px; }
.task-row { display: flex; align-items: center; min-height: 89px; gap: 7px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.completion-form { flex-shrink: 0; align-self: stretch; display: flex; align-items: center; margin: 0; }
.task-checkbox { display: grid; place-items: center; flex: 0 0 auto; width: 44px; min-height: 52px; padding: 0; border-radius: 9px; background: transparent; }
.check-square { display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #cdd5e6; border-radius: 7px; color: transparent; background: var(--paper); transition: color .15s, background-color .15s, border-color .15s; }
.check-square .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.task-checkbox:hover .check-square { border-color: var(--blue); color: #91a5f6; background: #f6f8ff; }
.task-checkbox:active .check-square { background: var(--blue-soft); }
.task-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; min-height: 88px; padding: 17px 5px 17px 0; color: var(--ink); }
.task-title { line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
.task-body:hover .task-title { color: var(--blue); }
.task-description { display: -webkit-box; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.55; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.is-overdue:not(.is-completed) .task-meta { color: var(--warm); }
.priority-badge { flex-shrink: 0; padding: 4px 8px; min-width: 34px; text-align: center; border-radius: 8px; background: var(--mist); color: var(--muted); font: 650 11px/1.6 var(--display-font); font-variant-numeric: tabular-nums; }
.priority-1 { color: var(--blue); background: var(--blue-soft); }
.priority-2 { color: #5c6b9c; background: #f1f3fb; }
.task-edit { width: 34px; margin-left: 2px; padding: 8px; opacity: 0; }
.task-row:hover .task-edit, .task-row:focus-within .task-edit { opacity: 1; }
.task-edit .icon { width: 15px; height: 15px; }
.is-completed .check-square { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.is-completed .task-checkbox:hover .check-square { color: var(--paper); background: var(--blue-hover); }
.is-completed .task-title { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: #a8b1c3; color: var(--muted); }
.is-completed .priority-badge { background: var(--mist); color: var(--muted); }
.list-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 25px 2px 0; color: var(--muted); font-size: 11px; }
.priority-example { font: 650 10px/1.6 var(--display-font); }
.footer-dot { margin: 0 6px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 330px; padding: 48px 26px; border: 1px solid var(--line); border-radius: 15px; text-align: center; background: var(--paper); }
.empty-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; background: var(--blue-soft); color: var(--blue); border-radius: 18px; }
.empty-symbol .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.empty-state h2 { margin: 0 0 9px; font: 700 22px/1.35 var(--display-font); letter-spacing: -.5px; }
.empty-state h2 + .button { margin-top: 14px; }
.empty-state p { max-width: 390px; color: var(--muted); margin: 0 0 23px; font-size: 13px; line-height: 1.7; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; margin: -6px 0 27px; font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--blue); }
.back-link .icon { width: 16px; height: 16px; }
.form-page-header { align-items: flex-start; margin-bottom: 28px; }
.task-form { max-width: 750px; padding: 30px; }
.field { min-width: 0; margin-bottom: 22px; }
.field label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #dbe1ed; border-radius: 9px; background: var(--paper); font-size: 15px; line-height: 1.5; }
.field textarea { min-height: 110px; }
.field-title input { font-weight: 500; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #c4cde0; }
.field [aria-invalid="true"] { border-color: var(--warm); }
.label-optional { font-size: 11px; color: var(--muted); font-weight: 400; }
.required-indicator { color: var(--muted); }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.kind-field { min-width: 0; margin: 0 0 23px; padding: 0; border: 0; }
.kind-field legend { margin-bottom: 9px; padding: 0; font-size: 13px; font-weight: 500; }
.kind-options { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-option { position: relative; display: block; cursor: pointer; }
.kind-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.kind-option span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; transition: background-color .15s, border-color .15s; }
.kind-option input:checked + span { border-color: #b3c2fc; background: var(--blue-soft); color: var(--blue); }
.kind-option input:focus-visible + span { outline: 3px solid #9caefb; outline-offset: 3px; }
.kind-option:hover span { border-color: #b3c2fc; }
.priority-field { max-width: 320px; }
.date-fields.single-date > .field { grid-column: 1; }
.form-divider { height: 1px; margin: 28px 0 23px; background: var(--line); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-footnote { margin: 18px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-errors { margin: 0 0 20px; padding: 12px 14px; color: var(--warm); background: var(--warm-soft); border-radius: 9px; font-size: 13px; }
.field-error { margin-top: 7px; color: var(--warm); font-size: 12px; line-height: 1.6; }
.errorlist { padding: 0; margin: 0; list-style: none; }
.errorlist li + li { margin-top: 4px; }
.status-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 10px; margin-top: 5px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 11px; }
.status-label .icon { width: 15px; height: 15px; }
.messages { margin-bottom: 23px; }
.message { display: flex; align-items: center; gap: 11px; padding: 7px 8px 7px 15px; border: 1px solid #d9e4dc; border-radius: 11px; color: var(--green); background: var(--green-soft); font-size: 13px; }
.message + .message { margin-top: 7px; }
.message > .icon { width: 18px; height: 18px; }
.message > span { flex: 1; }
.message .message-dismiss { color: inherit; width: 34px; min-height: 34px; padding: 7px; }
.message-error { background: var(--warm-soft); color: var(--warm); border-color: #efd6cd; }
.settings-stack { display: grid; gap: 22px; max-width: 750px; }
.settings-section { padding: 27px 30px 30px; }
.settings-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.settings-heading h2 { font: 700 19px/1.4 var(--display-font); letter-spacing: -.4px; margin: 0 0 4px; }
.settings-heading p { font-size: 12px; color: var(--muted); margin: 0; }
.settings-heading strong { font-weight: 500; color: var(--ink); }
.settings-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mist); color: var(--muted); }
.password-form { max-width: 480px; }
.password-hint ul { margin: 6px 0 0; padding-left: 17px; }
.password-hint li + li { margin-top: 3px; }
.settings-explanation { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.session-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.session-actions .button { font-size: 12px; }
.guest-shell { min-height: 100vh; min-height: 100dvh; }
.guest-main { padding: 34px 20px; outline: none; }
.guest-main > .messages { width: min(440px, 100%); margin: 0 auto 22px; }
.login-layout { display: flex; flex-direction: column; align-items: center; width: 100%; padding: clamp(0px, 5vh, 55px) 0 10px; }
.login-brand { margin-bottom: 32px; font-size: 29px; }
.login-brand .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
.login-card { width: min(440px, 100%); padding: 33px 35px 27px; box-shadow: 0 12px 45px #202b4506; }
.login-emblem { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; background: var(--blue-soft); color: var(--blue); border-radius: 13px; }
.login-card h1 { font-size: 31px; line-height: 1.25; letter-spacing: -1.2px; }
.login-card h1 + .login-form { margin-top: 26px; }
.login-intro { margin: 13px 0 28px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.login-form .field { margin-bottom: 18px; }
.password-control { display: flex; border: 1px solid #dbe1ed; border-radius: 9px; }
.password-control input { border: 0; min-width: 0; border-radius: 9px 0 0 9px; }
.password-toggle { flex: 0 0 auto; padding: 0 12px; background: transparent; color: var(--muted); font-size: 11px; border-radius: 0 9px 9px 0; }
.password-toggle:hover { color: var(--blue); }
.login-submit { width: 100%; justify-content: space-between; margin-top: 5px; }
.login-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.session-caption { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.login-footer { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.error-state { display: flex; flex-direction: column; align-items: flex-start; width: min(650px, 100%); padding: 36px; margin: 36px auto 0; }
.error-state .eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.error-state h1 { font-size: 30px; }
.error-state > p:not(.eyebrow) { margin: 15px 0 25px; color: var(--muted); line-height: 1.7; }
.warning-symbol { background: var(--warm-soft); color: var(--warm); }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.conflict-task { display: grid; gap: 5px; width: 100%; padding: 15px; margin-bottom: 25px; background: var(--mist); border-radius: 10px; overflow-wrap: anywhere; }
.conflict-task strong { font-weight: 500; }
.conflict-task span { font-size: 12px; color: var(--muted); }
.connection-notice { position: fixed; z-index: 20; display: flex; align-items: center; gap: 10px; bottom: 25px; left: 50%; transform: translateX(-50%); width: min(510px, calc(100% - 32px)); padding: 11px 10px 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 5px 30px #202b4520; font-size: 13px; }
.connection-notice button { margin-left: auto; }
.htmx-request .task-checkbox, .completion-form.htmx-request .task-checkbox { opacity: .45; pointer-events: none; }
form.htmx-request .button[type="submit"] { opacity: .7; pointer-events: none; }

@media (min-width: 1500px) {
  :root { --sidebar-width: 260px; }
  .sidebar { padding-right: 27px; padding-left: 27px; }
}
@media (max-width: 1060px) {
  :root { --sidebar-width: 205px; }
  .sidebar { padding-right: 15px; padding-left: 15px; }
  .sidebar > .brand { font-size: 24px; }
  .main-content { padding-right: 28px; padding-left: 28px; }
  .task-edit { display: none; }
  .task-row { gap: 6px; }
  .search-field { width: min(100%, 280px); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: max(14px, env(safe-area-inset-top)) 20px 9px; }
  .mobile-header .brand { font-size: 24px; gap: 9px; }
  .mobile-header .brand-mark { width: 29px; height: 29px; border-radius: 10px; }
  .mobile-header .brand-mark .icon { width: 20px; height: 20px; }
  .mobile-header .icon-button { width: 44px; margin-right: -8px; }
  .main-content { max-width: 650px; padding: 16px 20px calc(108px + env(safe-area-inset-bottom)); }
  .workspace-heading { margin-bottom: 24px; font-size: 11px; }
  .page-header { gap: 15px; margin-bottom: 23px; align-items: flex-start; }
  h1 { font-size: 32px; letter-spacing: -1.2px; }
  .page-subtitle { margin-top: 7px; font-size: 12px; }
  .new-task-button { margin-top: 1px; min-width: 46px; min-height: 46px; padding: 12px; }
  .new-task-button span { display: none; }
  .new-task-button .icon { width: 21px; height: 21px; }
  .task-toolbar { gap: 10px 12px; margin-bottom: 23px; }
  .search-field { flex: 1 1 100%; width: 100%; }
  .search-field input { font-size: 16px; }
  .sort-field { margin-left: 0; }
  .sort-field select { min-height: 34px; padding: 5px 2px; font-size: 11px; }
  .history-sort-caption { margin-left: 2px; font-size: 10px; }
  .history-filters { flex-basis: auto; margin: 0 0 0 auto; }
  .history-filters[open] { flex-basis: 100%; margin: 0; }
  .history-filters summary { font-size: 11px; }
  .history-filter-fields { gap: 9px; flex-wrap: wrap; }
  .history-filter-fields .field { flex-basis: 40%; }
  .history-filter-fields .field input { font-size: 16px; padding: 9px; }
  .history-filter-fields .button { width: 100%; min-height: 42px; }
  .task-list { padding: 0 8px; border-radius: 13px; }
  .task-row { gap: 5px; min-height: 85px; }
  .task-checkbox { width: 39px; min-height: 52px; }
  .task-body { min-height: 84px; padding-top: 16px; padding-bottom: 16px; }
  .task-title { font-size: 14px; }
  .task-description { font-size: 11px; }
  .task-meta { gap: 3px 5px; font-size: 10px; }
  .priority-badge { margin-right: 4px; padding: 4px 6px; min-width: 30px; font-size: 10px; border-radius: 7px; }
  .group-heading { margin-bottom: 8px; }
  .task-group + .task-group { margin-top: 23px; }
  .bottom-nav { position: fixed; z-index: 10; display: flex; align-items: stretch; justify-content: space-around; right: 0; bottom: 0; left: 0; min-height: 73px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffffff5; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .bottom-nav .nav-link { position: relative; flex: 1; flex-direction: column; justify-content: center; gap: 5px; max-width: 160px; min-height: 57px; padding: 5px 10px; font-size: 10px; border-radius: 10px; }
  .bottom-nav .nav-link.is-current { background: transparent; color: var(--blue); }
  .bottom-nav .nav-link:hover { background: var(--mist); }
  .bottom-nav .icon { width: 20px; height: 20px; stroke-width: 1.7; }
  .bottom-nav .nav-count { display: none; }
  .list-footer { margin-top: 21px; font-size: 10px; }
  .footer-dot { margin: 0 3px; }
  .back-link { margin: -3px 0 21px; }
  .form-page-header { margin-bottom: 24px; }
  .task-form { padding: 22px 20px; }
  .field { margin-bottom: 20px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kind-options { gap: 6px; }
  .kind-option { flex: 1 1 auto; }
  .kind-option span { padding: 9px 10px; font-size: 11px; }
  .priority-field { max-width: none; }
  .form-divider { margin: 24px 0 21px; }
  .form-actions { padding-top: 21px; gap: 8px; }
  .form-actions .button { padding-right: 13px; padding-left: 13px; font-size: 12px; }
  .form-actions .button-primary { flex: 1; }
  .form-actions .button-primary .icon { display: none; }
  .status-label { margin-top: 6px; font-size: 10px; padding: 6px 8px; }
  .status-label .icon { display: none; }
  .settings-section { padding: 22px 20px; }
  .settings-heading { margin-bottom: 22px; }
  .settings-heading h2 { font-size: 18px; }
  .session-actions { display: grid; }
  .session-actions .button { width: 100%; }
  .connection-notice { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .error-state { margin-top: 8px; padding: 28px 24px; }
  .error-state h1 { font-size: 28px; }
  .error-actions { width: 100%; }
  .error-actions .button { width: 100%; }
}
@media (max-width: 390px) {
  .mobile-header { padding-left: 16px; padding-right: 16px; }
  .main-content { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 29px; }
  .task-list { padding-right: 6px; padding-left: 5px; }
  .task-checkbox { width: 36px; }
  .priority-badge { margin-right: 2px; }
  .task-form, .settings-section { padding-right: 16px; padding-left: 16px; }
  .guest-main { padding: 25px 17px; }
  .login-brand { margin-bottom: 25px; }
  .login-card { padding: 27px 24px 24px; }
  .login-card h1 { font-size: 30px; }
  .login-intro { font-size: 12px; }
  .empty-state { padding: 35px 20px; }
  .empty-state h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.voice-composer { margin: 0 0 26px; padding: 17px; border-radius: 12px; background: var(--mist); }
.voice-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.voice-record { color: var(--blue); background: var(--paper); border-color: #d5defa; }
.voice-record:hover { background: var(--blue-soft); border-color: #b3c2fc; }
.voice-file-button { min-height: 44px; margin-left: auto; padding: 9px 2px; background: transparent; color: var(--muted); font-size: 12px; }
.voice-file-button:hover { color: var(--blue); }
.voice-composer button:disabled { opacity: .55; }
.voice-recording { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.voice-recording time { min-width: 43px; color: var(--warm); font-variant-numeric: tabular-nums; font-weight: 500; }
.recording-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }
.voice-recording .button { min-height: 44px; padding: 10px 12px; font-size: 12px; }
.voice-recording .icon { width: 16px; height: 16px; }
.voice-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.voice-preview audio { display: block; flex: 1; width: 100%; min-width: 200px; height: 42px; }
.voice-preview .button { min-height: 44px; font-size: 12px; }
.voice-status { margin: 14px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.voice-status.is-error { color: var(--warm); }
.voice-login { display: inline-block; padding-top: 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.voice-confirm { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.voice-confirm p { margin: 0 0 12px; font-size: 13px; }
.voice-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.voice-confirm-actions .button { min-height: 40px; padding: 9px 13px; font-size: 12px; }
@media (max-width: 760px) {
  .voice-composer { padding: 14px; margin-bottom: 22px; }
  .voice-toolbar { gap: 5px 10px; }
  .voice-record { flex: 1 1 100%; justify-content: flex-start; font-size: 13px; }
  .voice-file-button { margin-left: 0; }
  .voice-preview audio { min-width: 0; flex: 1 1 100%; }
  .voice-preview .button { width: 100%; }
}
