:root {
  --ink: #1d2733;
  --ink-soft: #647180;
  --ink-muted: #8b96a4;
  --canvas: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f7;
  --line: #e2e8ed;
  --line-strong: #d3dde4;
  --teal: #167e73;
  --teal-dark: #0e625b;
  --teal-soft: #e3f3ef;
  --amber: #a46516;
  --amber-soft: #fff1d9;
  --red: #b9474a;
  --red-soft: #fde9e9;
  --shadow-sm: 0 1px 2px rgba(25, 42, 56, .04), 0 4px 14px rgba(25, 42, 56, .04);
  --shadow-drawer: -12px 0 34px rgba(25, 42, 56, .13);
  --radius: 16px;
  --radius-sm: 10px;
  font-family: 'Avenir Next', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; background: var(--canvas); }

body { margin: 0; min-height: 100vh; background: var(--canvas); }

button, input, textarea { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.app-shell { min-height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--teal);
  font: 800 13px/1 'Avenir Next', 'Helvetica Neue', sans-serif;
  letter-spacing: -.04em;
}

.brand-title, .brand-subtitle { display: block; }

.brand-title { font: 800 17px/1.05 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.03em; }

.brand-subtitle { margin-top: 4px; color: var(--ink-muted); font-size: 11px; letter-spacing: .02em; }

.topbar-actions { display: flex; align-items: center; gap: 18px; }

.read-only-badge {
  padding: 7px 11px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .day-card:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22, 126, 115, .25); outline-offset: 2px; }
.button-quiet { color: var(--ink-soft); border-color: var(--line); background: var(--surface); }
.button-quiet:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); }
.button-primary { width: 100%; color: #fff; background: var(--teal); box-shadow: 0 4px 12px rgba(22, 126, 115, .18); }
.button-primary:hover { background: var(--teal-dark); }
.button-back { padding-left: 0; color: var(--ink-soft); }
.button-back:hover { color: var(--teal-dark); }

.page-content { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 90px; }

.hero-section { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }

.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { color: var(--ink); font-family: 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.045em; }

h1 { max-width: 670px; margin-bottom: 13px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
h2 { margin-bottom: 0; font-size: clamp(21px, 3vw, 30px); line-height: 1.18; }
h3 { margin-bottom: 0; font-size: 19px; line-height: 1.25; }

.hero-lede { max-width: 660px; margin-bottom: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.hero-meta { min-width: 180px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; text-align: right; }
.hero-meta strong { display: block; color: var(--ink); font-size: 16px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }

.metric-card, .health-card, .day-group, .detail-goal, .task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-card { min-height: 144px; padding: 20px 21px; }
.metric-card-accent { border-color: #b6ded7; background: linear-gradient(145deg, #fff 25%, #f0faf7 100%); }
.metric-label { margin-bottom: 16px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.metric-value { margin-bottom: 7px; color: var(--ink); font: 800 30px/1 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.06em; }
.metric-value-small { font-size: 22px; letter-spacing: -.045em; }
.metric-note { margin-bottom: 0; color: var(--ink-muted); font-size: 12px; }

.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 65px; }
.health-card { padding: 20px 21px; }
.health-card-header { display: flex; align-items: center; gap: 12px; }
.health-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 18px; font-weight: 700; }
.health-icon-telegram { color: #197aa5; background: #e5f3f9; }
.health-icon-shield { color: var(--teal-dark); background: var(--teal-soft); }
.health-label { margin: 0 0 2px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.health-status { margin: 0; color: var(--ink); font: 700 16px/1.2 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.025em; }
.status-dot { width: 9px; height: 9px; margin-left: auto; border-radius: 50%; }
.status-dot-ok { background: #2b9b74; box-shadow: 0 0 0 4px #e2f4eb; }
.status-dot-warning { background: #d89123; box-shadow: 0 0 0 4px #fff2df; }
.status-dot-error { background: #c45759; box-shadow: 0 0 0 4px #fdeced; }
.status-dot-pending { background: #9aa7b1; box-shadow: 0 0 0 4px #edf0f2; }
.health-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 18px 0 0 50px; }
.health-details div { min-width: 0; }
.health-details dt { margin-bottom: 3px; color: var(--ink-muted); font-size: 11px; }
.health-details dd { margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.warning-list { margin: 17px 0 0 50px; padding: 11px 12px 11px 29px; color: #8e5a12; background: var(--amber-soft); border-radius: 9px; font-size: 12px; line-height: 1.5; }
.warning-list li + li { margin-top: 5px; }

.section-heading, .tasks-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-note { max-width: 330px; margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.5; text-align: right; }

.days-groups { display: grid; gap: 13px; }
.day-group { overflow: hidden; }
.day-group-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px 15px; border-bottom: 1px solid var(--line); }
.day-group-title { margin: 0; color: var(--ink); font: 700 14px/1.3 'Avenir Next', 'Helvetica Neue', sans-serif; }
.day-group-note { margin: 3px 0 0; color: var(--ink-muted); font-size: 11px; }
.day-group-progress { color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.day-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.day-card { display: flex; min-width: 0; min-height: 122px; flex-direction: column; align-items: flex-start; gap: 11px; padding: 16px; border: 0; border-radius: 0; color: var(--ink); background: var(--surface); text-align: left; transition: background .18s ease; }
.day-card:hover { background: #f9fcfc; }
.day-card:disabled { cursor: default; }
.day-card:disabled:hover { background: var(--surface); }
.day-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
.day-number { color: var(--teal); font: 700 13px/1 'Avenir Next', 'Helvetica Neue', sans-serif; }
.day-card-title { display: -webkit-box; width: 100%; overflow: hidden; color: var(--ink-soft); font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.day-card:not(:disabled) .day-card-title { color: var(--ink); }
.day-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.day-slot-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.day-slot { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); background: var(--surface-soft); font-size: 10px; line-height: 1.2; }
.day-slot-ok { color: var(--teal-dark); border-color: #b9ded7; background: var(--teal-soft); }
.day-slot-warning { color: var(--amber); border-color: #efd2a9; background: var(--amber-soft); }
.day-slot-error { color: var(--red); border-color: #f0c5c5; background: var(--red-soft); }
.status-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1; }
.status-pill-content { color: var(--teal-dark); background: var(--teal-soft); }
.status-pill-delivery { color: #6c7480; background: #eef1f3; }
.status-pill-warning { color: #8e5a12; background: var(--amber-soft); }
.status-pill-muted { color: var(--ink-muted); background: #f1f3f4; }
.loading-state, .empty-state, .error-state { padding: 34px; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 13px; text-align: center; }
.error-state { color: var(--red); background: var(--red-soft); border-style: solid; }
.error-state button { margin-top: 14px; }

.detail-section { margin-top: 62px; scroll-margin-top: 20px; }
.detail-heading { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 24px; }
.detail-heading-copy { min-width: 0; }
.detail-heading-copy .eyebrow { margin-bottom: 7px; }
.detail-heading-copy h2 { margin-bottom: 13px; }
.detail-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-goal { margin-bottom: 34px; padding: 21px 24px; border-color: #b6ded7; background: linear-gradient(125deg, #f4fbf9, #fff); }
.detail-goal-label { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-goal-text { margin: 0; color: var(--ink); font: 600 16px/1.5 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.02em; }
.tasks-heading { margin-bottom: 16px; }
.task-list { display: grid; gap: 14px; }
.task-card { overflow: hidden; }
.task-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.task-card-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.task-card-index { margin-bottom: 7px; color: var(--teal); font: 700 11px/1 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.task-card-title { margin-bottom: 6px; font-size: 19px; }
.task-card-format { margin: 0; color: var(--ink-muted); font-size: 12px; }
.preview-button { flex: 0 0 auto; color: var(--teal-dark); border-color: #b9ded7; background: var(--teal-soft); }
.preview-button:hover { background: #d6ece7; }
.replace-button { flex: 0 0 auto; color: #684c1a; border-color: #efd2a9; background: var(--amber-soft); }
.replace-button:hover { color: #523a12; border-color: #e3bc80; background: #ffebc3; }
.replace-locked { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); cursor: not-allowed; font-size: 11px; font-weight: 600; opacity: .8; }
.replace-locked:hover { transform: none; background: var(--surface-soft); }
.task-card-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 0; }
.task-card-main, .example-block { padding: 21px 24px 23px; }
.task-card-main { border-right: 1px solid var(--line); }
.content-block + .content-block { margin-top: 22px; }
.content-label { margin: 0 0 8px; color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.content-text { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.hint-list, .why-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hint-list li, .why-list li { position: relative; padding-left: 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.hint-list li::before, .why-list li::before { position: absolute; top: 1px; left: 0; color: var(--teal); content: '•'; font-size: 16px; font-weight: 800; line-height: 1; }
.example-block { background: #fbfcfd; }
.example-block .content-text { color: var(--ink); font-size: 13px; }
.example-link { display: inline-block; max-width: 100%; margin-top: 13px; overflow: hidden; color: var(--teal-dark); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.example-link:hover { text-decoration: underline; }
.metrics { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.metric-inline strong, .metric-inline span { display: block; }
.metric-inline strong { color: var(--ink); font: 700 13px/1.2 'Avenir Next', 'Helvetica Neue', sans-serif; }
.metric-inline span { margin-top: 3px; color: var(--ink-muted); font-size: 10px; }

.drawer-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(20, 35, 44, .29); backdrop-filter: blur(2px); }
.preview-drawer { position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; display: flex; width: min(490px, 100%); flex-direction: column; overflow-y: auto; padding: 27px 25px 30px; background: var(--surface); box-shadow: var(--shadow-drawer); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.drawer-header h2 { font-size: 22px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 26px; font-weight: 300; line-height: 1; }
.icon-button:hover { color: var(--ink); background: var(--surface-soft); }
.telegram-preview-shell { overflow: hidden; border: 1px solid #d8e4e8; border-radius: 14px; background: #e9f3f6; box-shadow: var(--shadow-sm); }
.telegram-topline { display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: #17333e; background: #fff; border-bottom: 1px solid #dce7ea; }
.telegram-topline strong, .telegram-topline small { display: block; }
.telegram-topline strong { font-size: 13px; }
.telegram-topline small { margin-top: 2px; color: #7b8c93; font-size: 10px; }
.telegram-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #fff; background: #5aa9ad; font: 700 14px/1 'Avenir Next', 'Helvetica Neue', sans-serif; }
.telegram-message { min-height: 180px; margin: 15px; padding: 17px 16px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 1px 1px rgba(29, 61, 74, .05); }
.telegram-message > *:first-child { margin-top: 0; }
.telegram-message > *:last-child { margin-bottom: 0; }
.telegram-heading { margin: 17px 0 9px; color: #182d38; font: 700 17px/1.25 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.025em; }
.telegram-heading:first-child { margin-top: 0; }
.telegram-message p { margin: 0 0 13px; color: #344b55; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.telegram-message a { color: #258ba1; text-decoration: none; word-break: break-word; }
.telegram-message a:hover { text-decoration: underline; }
.telegram-quote { margin: 12px 0; padding: 1px 0 1px 12px; border-left: 3px solid #53aab0; }
.telegram-divider { height: 1px; margin: 17px 0; background: #e6edef; }
.preview-loading { color: #7d8b91 !important; }
.drawer-note { margin: 17px 2px 0; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }

.replacement-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(20, 35, 44, .35); backdrop-filter: blur(2px); }
.replacement-drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; display: flex; width: min(560px, 100%); flex-direction: column; overflow-y: auto; padding: 27px 25px 30px; background: var(--surface); box-shadow: var(--shadow-drawer); }
.replacement-context { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.replacement-form { display: grid; gap: 9px; margin-bottom: 18px; }
.replacement-form .content-label { margin-bottom: 0; }
.replacement-form .content-label span { color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.replacement-form textarea { width: 100%; min-height: 82px; resize: vertical; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 13px; line-height: 1.5; }
.replacement-form textarea:focus { border-color: var(--teal); }
.replacement-form .button-primary { min-height: 43px; }
.replacement-status { margin: 0 0 18px; padding: 11px 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); font-size: 12px; line-height: 1.45; }
.replacement-status-loading { color: var(--teal-dark); border-color: #b9ded7; background: var(--teal-soft); }
.replacement-status-error { color: var(--red); border-color: #f0c5c5; background: var(--red-soft); }
.replacement-status-success { color: var(--teal-dark); border-color: #b9ded7; background: var(--teal-soft); }
.replacement-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 3px 0 11px; }
.replacement-section-heading h3 { font-size: 17px; }
.replacement-section-heading span { color: var(--ink-muted); font-size: 11px; }
.replacement-candidates { margin-bottom: 22px; }
.replacement-candidate-list { display: grid; gap: 10px; }
.replacement-candidate { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.replacement-candidate-selected { border-color: #72b9ae; background: #f5fbf9; box-shadow: 0 3px 12px rgba(22, 126, 115, .09); }
.replacement-candidate h4 { margin: 0 0 5px; color: var(--ink); font: 700 15px/1.25 'Avenir Next', 'Helvetica Neue', sans-serif; letter-spacing: -.025em; }
.replacement-candidate-format { margin: 0 0 11px; color: var(--ink-muted); font-size: 11px; }
.replacement-candidate .content-block { margin-top: 11px; }
.replacement-candidate .content-label { margin-bottom: 4px; }
.replacement-candidate .content-text { font-size: 12px; line-height: 1.5; }
.replacement-candidate .hint-list { gap: 5px; margin-top: 5px; }
.replacement-candidate .hint-list li { font-size: 11px; line-height: 1.4; }
.replacement-select { width: 100%; min-height: 36px; margin-top: 13px; color: var(--teal-dark); border-color: #b9ded7; background: var(--teal-soft); font-size: 12px; }
.replacement-select:hover { background: #d6ece7; }
.replacement-candidate-selected .replacement-select { color: #fff; background: var(--teal); }
.replacement-preview { margin-bottom: 5px; }
.replacement-preview .telegram-message { min-height: 160px; }
.replacement-confirm { margin-top: 14px; min-height: 45px; }
.replacement-confirm:disabled { cursor: not-allowed; opacity: .54; transform: none; }

.toast { position: fixed; z-index: 40; right: 22px; bottom: 22px; max-width: min(380px, calc(100vw - 44px)); padding: 12px 15px; color: #fff; border-radius: 9px; background: #263a44; box-shadow: 0 5px 18px rgba(20, 32, 39, .18); font-size: 12px; line-height: 1.45; }

/* Login */
.auth-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% -10%, #e8f6f2, var(--canvas) 52%); }
.auth-card { width: min(100%, 420px); padding: 38px 38px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 15px 45px rgba(28, 50, 61, .08); }
.auth-brand { margin-bottom: 52px; }
.auth-card h1 { margin-bottom: 12px; font-size: 30px; }
.auth-lede { margin-bottom: 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 10px; }
.login-form label { color: var(--ink); font-size: 12px; font-weight: 600; }
.login-form input { width: 100%; height: 45px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); }
.login-form input:focus { border-color: var(--teal); }
.login-form .button { margin-top: 10px; }
.form-error { margin: -8px 0 21px; padding: 11px 12px; color: var(--red); border-radius: 8px; background: var(--red-soft); font-size: 12px; line-height: 1.45; }
.auth-footnote { margin: 26px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 860px) {
  .page-content { width: min(100% - 32px, 680px); padding-top: 38px; }
  .hero-section { display: block; }
  .hero-meta { margin-top: 19px; text-align: left; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .health-grid { margin-bottom: 48px; }
  .day-list { grid-template-columns: repeat(2, 1fr); }
  .day-card:last-child { grid-column: span 2; }
  .task-card-body { grid-template-columns: 1fr; }
  .task-card-main { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .topbar { min-height: 68px; padding: 12px 16px; }
  .topbar-actions { gap: 8px; }
  .read-only-badge { display: none; }
  .button-quiet { min-height: 36px; padding: 0 11px; font-size: 12px; }
  .page-content { width: calc(100% - 24px); padding: 30px 0 58px; }
  h1 { font-size: 31px; }
  .hero-lede { font-size: 14px; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 126px; padding: 16px; }
  .metric-label { margin-bottom: 13px; }
  .metric-value { font-size: 26px; }
  .metric-value-small { font-size: 18px; }
  .health-grid { grid-template-columns: 1fr; gap: 9px; margin-bottom: 43px; }
  .health-card { padding: 16px; }
  .health-details { margin-left: 0; }
  .warning-list { margin-left: 0; }
  .section-heading, .tasks-heading { display: block; }
  .section-note { margin-top: 9px; text-align: left; }
  .day-group-header { padding: 15px; }
  .day-list { grid-template-columns: 1fr 1fr; }
  .day-card { min-height: 114px; padding: 13px; }
  .detail-section { margin-top: 42px; }
  .detail-heading { display: block; margin-bottom: 18px; }
  .detail-heading .button-back { min-height: 30px; margin-bottom: 14px; }
  .detail-goal { padding: 17px; }
  .detail-goal-text { font-size: 14px; }
  .task-card-header { display: block; padding: 18px 17px 15px; }
  .task-card-actions { justify-content: stretch; margin-top: 15px; }
  .task-card-actions .button, .replace-locked { flex: 1 1 100%; width: 100%; }
  .preview-button { width: 100%; margin-top: 0; }
  .task-card-main, .example-block { padding: 18px 17px 20px; }
  .preview-drawer { padding: 22px 16px 25px; }
  .replacement-drawer { padding: 22px 16px 25px; }
  .auth-card { padding: 30px 22px 27px; }
  .auth-brand { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
