/* Home Care brand: care green (warm, home-like, "trusted helper"). Token overrides only.
   #0b7a5f on white = 5.4:1 (AA for text); dark-mode brand #3ccb9f on #161b26 ≈ 8:1. */
:root {
  --brand: #0b7a5f; --brand-hover: #08624c; --brand-text: #08624c; --brand-soft: #ecf8f3; --brand-soft-2: #c9eedf; --brand-line: #a6dcc7;
  --accent: #1d6fa8;
}
:root[data-theme="dark"] { --brand: #3ccb9f; --brand-hover: #6ee0bd; --brand-text: #6ee0bd; --brand-soft: #0b2e24; --brand-soft-2: #114a3a; --brand-line: #1c5c49; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand: #3ccb9f; --brand-hover: #6ee0bd; --brand-text: #6ee0bd; --brand-soft: #0b2e24; --brand-soft-2: #114a3a; --brand-line: #1c5c49; }
}

/* Home care–specific components */
.timer { font-size: 1.75rem; font-weight: 700; }
.timer-bar { position: sticky; top: 76px; z-index: 15; display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; }
.pill-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-steps span { background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-line); border-radius: 999px; padding: 4px 12px; font-size: .875rem; font-weight: 700; }
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps .card { position: relative; padding-top: 38px; margin: 0; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; left: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .875rem; font-weight: 700; display: grid; place-items: center; }
.slider { display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: center; }
.sms { max-width: 75%; padding: 10px 14px; border-radius: 14px; background: var(--surface-3); margin: 4px 0; }
.sms.out { margin-left: auto; background: var(--brand); color: var(--brand-ink); }
.sms small { display: block; opacity: .8; font-size: .8125rem; }

/* Mobile forms (Req 18.3, 32.1): the assessment, home safety checklist and Daily_Log use one column. Every control
   takes the full width of the column and long words wrap, so they work at 360 px without horizontal scrolling. */
.stack { display: flex; flex-direction: column; gap: 6px; }
.mobile-check { max-width: 100%; overflow-wrap: anywhere; }
.mobile-check fieldset { min-width: 0; max-width: 100%; }
.mobile-check input:not([type="radio"]):not([type="checkbox"]), .mobile-check select, .mobile-check textarea { width: 100%; max-width: 100%; }
.mobile-check .inline label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.btn.full { width: 100%; }
.check-list { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
@media (max-width: 480px) {
  .mobile-check, .mobile-check .card { padding: 14px 12px; }
  .mobile-check fieldset { padding: 10px; }
}
