/* «Договоры онлайн» — токены и компоненты по DESIGN.md */

:root {
  /* Поверхности */
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-alt: #EDF1F6;
  --surface-sunken: #E9EDF3;
  --overlay: rgba(16, 24, 40, 0.48);
  /* Границы */
  --border: #DCE3EC;
  --border-strong: #C4CEDB;
  --border-input: #7E8CA0;
  /* Текст */
  --text: #101828;
  --text-secondary: #48566A;
  --text-tertiary: #64748B;
  --text-disabled: #6E7A8A;
  --text-inverse: #FFFFFF;
  /* Бренд */
  --brand: #14508C;
  --brand-solid: #14508C;
  --brand-hover: #103F6E;
  --brand-active: #0C3157;
  --brand-weak: #E8F0FA;
  --brand-weak-2: #D6E4F5;
  --gold: #8A5C00;
  --gold-weak: #FBF3DF;
  /* Семантика */
  --success: #12643B; --success-weak: #E6F4EC; --success-line: #A7D6BC;
  --warning: #7A4E00; --warning-weak: #FDF3E2; --warning-line: #EBD09A;
  --danger: #B42318;  --danger-weak: #FDECEA;  --danger-line: #F3B9B3;
  --danger-solid: #B42318; --danger-hover: #96201A;
  --info: #114A85;    --info-weak: #E8F0FA;    --info-line: #B6CFEC;
  --neutral: #3F4C5E; --neutral-weak: #EDF1F6; --neutral-line: #CBD5E1;
  /* Фокус */
  --focus: #1F6FEB;
  --focus-ring: 0 0 0 3px rgba(31, 111, 235, 0.28);
  /* Тени */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.06);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px -1px rgba(16, 24, 40, 0.06);
  --sh-md: 0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --sh-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.10), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
  --sh-xl: 0 20px 24px -4px rgba(16, 24, 40, 0.12), 0 8px 8px -4px rgba(16, 24, 40, 0.04);
  --sh-2xl: 0 24px 48px -12px rgba(16, 24, 40, 0.24), 0 8px 16px -8px rgba(16, 24, 40, 0.12);
  --sh-sticky: 0 -1px 0 0 var(--border), 0 -8px 24px -12px rgba(16, 24, 40, 0.16);
  --sh-header: 0 1px 0 0 var(--border), 0 4px 12px -8px rgba(16, 24, 40, 0.16);
  --sh-inset: inset 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sheet: 0 -20px 40px -16px rgba(16, 24, 40, 0.22);
  /* Типографика */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  /* Отступы, радиусы */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --gutter: 16px; --content-max: 560px;
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  /* Рамка приложения */
  --app-inset-top: env(safe-area-inset-top, 0px);
  --app-inset-bottom: env(safe-area-inset-bottom, 0px);
  --bottombar-h: 0px;
  --kb: 0px; /* высота клавиатуры, считает app.js по visualViewport */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141B; --surface: #161E28; --surface-alt: #1E2834; --surface-sunken: #121A23;
    --overlay: rgba(2, 6, 12, 0.64);
    --border: #2C3A48; --border-strong: #3E4E5E; --border-input: #64748A;
    --text: #E9EEF4; --text-secondary: #A9B6C6; --text-tertiary: #8B9AAC;
    --text-disabled: #7D8B9C; --text-inverse: #0B1220;
    --brand: #7FB0EE; --brand-solid: #2C6CBF; --brand-hover: #3A7CD1; --brand-active: #245A9F;
    --brand-weak: #12243A; --brand-weak-2: #17304D;
    --gold: #E3B457; --gold-weak: #2A2010;
    --success: #6FD79B; --success-weak: #10281C; --success-line: #2E5C43;
    --warning: #F0BE58; --warning-weak: #2A2010; --warning-line: #5E4A1E;
    --danger: #F2887E; --danger-weak: #2B1614; --danger-line: #66302B; --danger-solid: #C4352A;
    --info: #8CBBF2; --info-weak: #12243A; --info-line: #2B4768;
    --neutral: #B3C0D0; --neutral-weak: #1E2834; --neutral-line: #3A4757;
    --focus: #8AB4F8; --focus-ring: 0 0 0 3px rgba(138, 180, 248, 0.36);
    --sh-xs: 0 1px 2px rgba(0,0,0,.40);
    --sh-sm: 0 1px 3px rgba(0,0,0,.48), 0 1px 2px -1px rgba(0,0,0,.40);
    --sh-md: 0 4px 8px -2px rgba(0,0,0,.52), 0 2px 4px -2px rgba(0,0,0,.40);
    --sh-lg: 0 12px 16px -4px rgba(0,0,0,.56), 0 4px 6px -2px rgba(0,0,0,.40);
    --sh-xl: 0 20px 24px -4px rgba(0,0,0,.60), 0 8px 8px -4px rgba(0,0,0,.40);
    --sh-2xl: 0 24px 48px -12px rgba(0,0,0,.72), 0 0 0 1px var(--border);
    --sh-sticky: 0 -1px 0 0 var(--border), 0 -12px 28px -16px rgba(0,0,0,.70);
    --sh-inset: inset 0 1px 2px rgba(0,0,0,.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0E141B; --surface: #161E28; --surface-alt: #1E2834; --surface-sunken: #121A23;
  --overlay: rgba(2, 6, 12, 0.64);
  --border: #2C3A48; --border-strong: #3E4E5E; --border-input: #64748A;
  --text: #E9EEF4; --text-secondary: #A9B6C6; --text-tertiary: #8B9AAC;
  --text-disabled: #7D8B9C; --text-inverse: #0B1220;
  --brand: #7FB0EE; --brand-solid: #2C6CBF; --brand-hover: #3A7CD1; --brand-active: #245A9F;
  --brand-weak: #12243A; --brand-weak-2: #17304D;
  --gold: #E3B457; --gold-weak: #2A2010;
  --success: #6FD79B; --success-weak: #10281C; --success-line: #2E5C43;
  --warning: #F0BE58; --warning-weak: #2A2010; --warning-line: #5E4A1E;
  --danger: #F2887E; --danger-weak: #2B1614; --danger-line: #66302B; --danger-solid: #C4352A;
  --info: #8CBBF2; --info-weak: #12243A; --info-line: #2B4768;
  --neutral: #B3C0D0; --neutral-weak: #1E2834; --neutral-line: #3A4757;
  --focus: #8AB4F8; --focus-ring: 0 0 0 3px rgba(138, 180, 248, 0.36);
  --sh-xs: 0 1px 2px rgba(0,0,0,.40);
  --sh-sm: 0 1px 3px rgba(0,0,0,.48), 0 1px 2px -1px rgba(0,0,0,.40);
  --sh-md: 0 4px 8px -2px rgba(0,0,0,.52), 0 2px 4px -2px rgba(0,0,0,.40);
  --sh-lg: 0 12px 16px -4px rgba(0,0,0,.56), 0 4px 6px -2px rgba(0,0,0,.40);
  --sh-xl: 0 20px 24px -4px rgba(0,0,0,.60), 0 8px 8px -4px rgba(0,0,0,.40);
  --sh-2xl: 0 24px 48px -12px rgba(0,0,0,.72), 0 0 0 1px var(--border);
  --sh-sticky: 0 -1px 0 0 var(--border), 0 -12px 28px -16px rgba(0,0,0,.70);
  --sh-inset: inset 0 1px 2px rgba(0,0,0,.35);
}

/* ── Основа ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3, p { margin: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* ── Каркас экрана ──────────────────────────────────────────────────── */

#app { min-height: 100dvh; display: flex; flex-direction: column; }

.screen { display: flex; flex-direction: column; min-height: 100dvh; }

.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 56px;
  padding: var(--app-inset-top) var(--gutter) 0;
  background: var(--bg);
  transition: box-shadow 160ms ease;
}
.header.scrolled { box-shadow: var(--sh-header); }
.header__title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; flex: 1; }
.header__actions { display: flex; gap: var(--sp-1); }

.content {
  flex: 1;
  padding: var(--sp-4) var(--gutter);
  padding-bottom: calc(var(--bottombar-h) + var(--app-inset-bottom) + var(--sp-6) + var(--kb));
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.bottombar {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--kb));
  z-index: 20;
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + var(--app-inset-bottom));
  background: var(--bg);
  box-shadow: var(--sh-sticky);
}
.bottombar__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-2); }
.bottombar__row { display: flex; gap: var(--sp-3); align-items: center; }

/* ── Кнопки ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font: 600 16px/20px var(--font-sans);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: 14px; }
.btn--primary { background: var(--brand-solid); color: #FFFFFF; box-shadow: var(--sh-xs); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--danger { background: var(--danger-solid); color: #FFFFFF; }
.btn--icon { min-height: 44px; min-width: 44px; padding: 0; border-radius: var(--r-md); background: transparent; color: var(--text-secondary); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-hover); box-shadow: var(--sh-md); }
  .btn--secondary:hover { background: var(--surface-alt); box-shadow: var(--sh-md); }
  .btn--ghost:hover { background: var(--brand-weak); }
  .btn--danger:hover { background: var(--danger-hover); }
  .btn--icon:hover { background: var(--surface-alt); }
}
.btn:active { transform: scale(0.985); box-shadow: var(--sh-xs); }
.btn--primary:active { background: var(--brand-active); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-sunken); color: var(--text-disabled);
  border-color: var(--border); box-shadow: none; cursor: default; pointer-events: none;
}
.btn__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Карточки, строки списка ────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-4);
}
.card + .card { margin-top: var(--sp-3); }

.row {
  display: block; width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: inherit; color: inherit;
  transition: box-shadow 160ms ease, transform 80ms ease;
}
.row:active { transform: scale(0.99); box-shadow: var(--sh-xs); }
.row + .row { margin-top: var(--sp-3); }
.row--attention::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warning);
}
.row__top { display: flex; align-items: flex-start; gap: var(--sp-3); }
.row__title {
  font-size: 16px; line-height: 22px; font-weight: 600; flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row__sub { margin-top: var(--sp-1); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.row__meta { margin-top: var(--sp-2); display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; line-height: 18px; color: var(--text-tertiary); }

/* ── Бейджи ─────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
  padding: 3px var(--sp-2); border-radius: var(--r-xs);
  font: 600 12px/16px var(--font-sans); letter-spacing: .03em; text-transform: uppercase;
  border: 1px solid transparent;
}
.badge--neutral { background: var(--neutral-weak); color: var(--neutral); border-color: var(--neutral-line); }
.badge--info { background: var(--info-weak); color: var(--info); border-color: var(--info-line); }
.badge--warning { background: var(--warning-weak); color: var(--warning); border-color: var(--warning-line); }
.badge--success { background: var(--success-weak); color: var(--success); border-color: var(--success-line); }
.badge--danger { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-line); }
.badge--gold { background: var(--gold-weak); color: var(--gold); border-color: var(--gold); }

/* ── Текстовые стили ────────────────────────────────────────────────── */

.t-display { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.t-h1 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.t-h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.t-h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
.t-body { font-size: 16px; line-height: 24px; }
.t-sm { font-size: 14px; line-height: 20px; }
.t-caption { font-size: 13px; line-height: 18px; }
.t-label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--text-secondary); }
.muted-2 { color: var(--text-tertiary); }
.stack > * + * { margin-top: var(--sp-3); }
.stack-6 > * + * { margin-top: var(--sp-6); }

/* ── Знак сервиса и список доводов (экран входа) ────────────────────── */

.brandmark {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--brand-solid); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-md);
}
.feature { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature + .feature { margin-top: var(--sp-4); }
.feature__icon {
  width: 32px; height: 32px; flex: none; border-radius: var(--r-pill);
  background: var(--brand-weak); color: var(--brand);
  display: grid; place-items: center;
}
.feature__title { font-size: 15px; line-height: 21px; font-weight: 500; }
.feature__sub { font-size: 13px; line-height: 18px; color: var(--text-secondary); }

/* ── Поля и чекбоксы ────────────────────────────────────────────────── */

.field { display: block; }
.field + .field { margin-top: var(--sp-4); }
.field__label { display: block; font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--sp-4);
  font: 400 17px/24px var(--font-sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-input);
  border-radius: var(--r-md); box-shadow: var(--sh-inset);
}
.input::placeholder { color: var(--text-tertiary); }
.input:focus { border-color: var(--focus); outline: none; box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.16); }
.field__hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.field__error { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--danger); }

.check {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); min-height: 56px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
}
.check--on { background: var(--brand-weak); border-color: var(--brand); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 24px; height: 24px; flex: none; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-input); background: var(--surface);
  display: grid; place-items: center; color: #fff;
}
.check--on .check__box { background: var(--brand-solid); border-color: var(--brand-solid); }
.check__text { font-size: 15px; line-height: 21px; }

/* ── Нижний лист и модальные ────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--overlay);
  animation: fade 200ms ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-sheet);
  padding: var(--sp-5) var(--gutter) calc(var(--sp-5) + var(--app-inset-bottom));
  max-height: 86dvh; overflow-y: auto;
  animation: rise 240ms cubic-bezier(.22,.61,.36,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
.sheet__grip { width: 36px; height: 4px; border-radius: var(--r-pill); background: var(--border-strong); margin: 0 auto var(--sp-4); }
.sheet__title { font-size: 18px; line-height: 24px; font-weight: 600; margin-bottom: var(--sp-2); }

/* ── Пустое состояние ───────────────────────────────────────────────── */

.empty { text-align: center; padding: var(--sp-12) var(--sp-4); }
.empty__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: var(--r-pill);
  background: var(--surface-alt); color: var(--text-tertiary); display: grid; place-items: center;
}
.empty__title { font-size: 18px; line-height: 24px; font-weight: 600; margin-bottom: var(--sp-2); }
.empty__text { font-size: 14px; line-height: 20px; color: var(--text-secondary); max-width: 40ch; margin: 0 auto; }

/* ── Тост ───────────────────────────────────────────────────────────── */

.toast {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--bottombar-h) + var(--app-inset-bottom) + var(--sp-4));
  max-width: var(--content-max); margin: 0 auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-xl); padding: var(--sp-3) var(--sp-4);
  font-size: 14px; line-height: 20px;
  animation: rise 200ms ease;
}
.toast--danger { border-color: var(--danger-line); background: var(--danger-weak); color: var(--danger); }
.toast--success { border-color: var(--success-line); background: var(--success-weak); color: var(--success); }

/* ── Фильтр-табы ────────────────────────────────────────────────────── */

.tabs { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-1); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 var(--sp-4);
  border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  font: 500 14px/20px var(--font-sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab--on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ── Нижняя навигация ───────────────────────────────────────────────── */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); box-shadow: var(--sh-sticky);
  padding-bottom: var(--app-inset-bottom);
}
.tabbar__item {
  min-height: 56px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-tertiary); font: 600 11px/14px var(--font-sans);
}
.tabbar__item--on { color: var(--brand); }

/* ── Шаги процесса ──────────────────────────────────────────────────── */

.steps { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; }
.step { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--border); }
.step--done { background: var(--success); }
.step--now { background: var(--brand-solid); }

/* ── Ввод кода из 6 цифр ────────────────────────────────────────────── */

.code { display: flex; gap: var(--sp-2); justify-content: center; }
.code__cell {
  width: 48px; height: 60px; text-align: center;
  font: 600 30px/36px var(--font-sans); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-input); border-radius: var(--r-sm);
  box-shadow: var(--sh-inset);
}
.code__cell:focus { border-color: var(--focus); outline: none; box-shadow: var(--focus-ring); }
.code__cell[aria-invalid="true"] { border-color: var(--danger); }

/* ── Десктоп ────────────────────────────────────────────────────────── */

@media (min-width: 600px) { :root { --gutter: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ── Сгруппированный список (по макету): карточка с разделителями ───── */

.listcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.listrow {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  width: 100%; text-align: left; background: none; border: 0;
  padding: var(--sp-4); font: inherit; color: inherit; cursor: pointer;
  position: relative;
  transition: background-color 160ms ease;
}
.listrow + .listrow { border-top: 1px solid var(--border); }
@media (hover: hover) and (pointer: fine) { .listrow:hover { background: var(--surface-alt); } }
.listrow:active { background: var(--surface-alt); }
.listrow__icon {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-pill);
  background: var(--brand-weak); color: var(--brand);
  display: grid; place-items: center;
}
.listrow__body { flex: 1; min-width: 0; display: block; }
.listrow__head { display: flex; align-items: flex-start; gap: var(--sp-2); }
.listrow .row__sub, .listrow__time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listrow__time { display: block; margin-top: var(--sp-1); font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.listrow__chev { flex: none; color: var(--text-tertiary); align-self: center; }
.listrow .row__sub { display: block; }
.listcard .listrow.row--attention::before,
.listrow.row--attention::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warning); }
