/* Кабинет HealthDream. Цвета и шрифты по брендбуку v2, как на сайте (brand/README.md, «Сайт и кабинет»).
   Две темы, по умолчанию как на устройстве, кнопка в шапке переключает и запоминает выбор (static/theme.js):
   светлая на Ice Mint с белыми карточками, тёмная на Midnight Navy с карточками Deep Blue.
   Бирюзовый Dream Teal у главных кнопок, выбранного пункта и «всё в порядке»; мелкий текст на светлом фоне
   берёт бирюзовый, смешанный с тёмно-синим (--accent-text), иначе не читается.
   Manrope для заголовков и крупных цифр, Inter для текста. Шрифты здесь же, в static/fonts (CSP: font-src 'self'). */
:root {
  /* палитра брендбука */
  --navy: #081426;
  --deep: #10243d;
  --teal: #00d6d0;
  --sky: #5b8def;
  --lavender: #a99afb;
  --gold: #f2c66d;

  /* светлая тема */
  --bg: #eefaf8;               /* Ice Mint пополам с белым */
  --card: #ffffff;
  --edge: rgba(8, 20, 38, 0.06);
  --ink: var(--navy);
  --muted: #4a5b73;
  --faint: #6b7c93;
  --line: #d3e0e6;
  --hair: #e3edf0;
  --accent: var(--teal);
  --accent-hover: color-mix(in srgb, var(--teal) 88%, var(--navy));
  --accent-ink: var(--navy);   /* текст на бирюзовой кнопке */
  --accent-text: color-mix(in srgb, var(--teal) 55%, var(--navy));
  --accent-soft: rgba(0, 214, 208, 0.16);
  --logo-health: var(--navy);  /* логотип: Health тёмно-синий на светлом, белый на тёмном; Dream бирюзовый */
  --night: color-mix(in srgb, var(--lavender) 80%, var(--navy));   /* сон на графиках */
  --ok: var(--teal);
  --ok-text: var(--accent-text);
  --ok-soft: rgba(0, 214, 208, 0.16);
  --warn: color-mix(in srgb, var(--gold) 50%, var(--navy));
  --warn-soft: rgba(242, 198, 109, 0.24);
  --bad: #c62f45;
  --bad-ink: #ffffff;
  --bad-soft: rgba(198, 47, 69, 0.1);
  --nav: rgba(238, 250, 248, 0.86);
  --field: #ffffff;
  --track: #d3e0e6;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 22px;
  --wrap: 1040px;
  color-scheme: light;
}
/* тёмная тема: по настройке устройства или кнопкой */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy); --card: var(--deep); --edge: rgba(255, 255, 255, 0.05);
    --ink: #ffffff; --muted: #a3b2c7; --faint: #7d8fa8; --line: #2b4466; --hair: #1b3150;
    --accent-hover: color-mix(in srgb, var(--teal) 84%, #ffffff); --accent-text: var(--teal); --accent-soft: rgba(0, 214, 208, 0.14);
    --logo-health: #ffffff; --night: var(--lavender);
    --ok-text: var(--teal); --ok-soft: rgba(0, 214, 208, 0.14); --warn: var(--gold); --warn-soft: rgba(242, 198, 109, 0.14);
    --bad: #ff7b7b; --bad-ink: var(--navy); --bad-soft: rgba(255, 123, 123, 0.14);
    --nav: rgba(8, 20, 38, 0.86); --field: var(--navy); --track: #2b4466;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy); --card: var(--deep); --edge: rgba(255, 255, 255, 0.05);
  --ink: #ffffff; --muted: #a3b2c7; --faint: #7d8fa8; --line: #2b4466; --hair: #1b3150;
  --accent-hover: color-mix(in srgb, var(--teal) 84%, #ffffff); --accent-text: var(--teal); --accent-soft: rgba(0, 214, 208, 0.14);
  --logo-health: #ffffff; --night: var(--lavender);
  --ok-text: var(--teal); --ok-soft: rgba(0, 214, 208, 0.14); --warn: var(--gold); --warn-soft: rgba(242, 198, 109, 0.14);
  --bad: #ff7b7b; --bad-ink: var(--navy); --bad-soft: rgba(255, 123, 123, 0.14);
  --nav: rgba(8, 20, 38, 0.86); --field: var(--navy); --track: #2b4466;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; text-wrap: balance; }
.hero-stat .value, .stat .value, input.code { font-family: var(--font-head); }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.mt-s { margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Верхняя панель */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 52px; }
/* Логотип: надпись из brand/ (templates/logo_sprite.html), дальше <use href="#hd-logo"> */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: block; height: auto; aspect-ratio: 1543.25 / 189; color: var(--logo-health); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); white-space: nowrap; }
.brand .logo { width: 128px; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--muted); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 420px) { .brand .logo { width: 112px; } .brand span { font-size: 15px; } }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.top .who .email { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.tabs { border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); background: var(--nav); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; color: var(--ink); font-size: 14px; padding: 6px 14px; border-radius: 980px; opacity: 0.8; white-space: nowrap;
}
.tabs a:hover { text-decoration: none; opacity: 1; background: var(--hair); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; opacity: 1; }

/* Кнопка темы: луна в светлой теме, солнце в тёмной */
.theme-btn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); opacity: 0.8; cursor: pointer;
}
.theme-btn:hover { opacity: 1; background: var(--hair); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.top .wrap > .theme-btn { margin-left: auto; }

/* Заголовок страницы */
main { padding-bottom: 96px; }
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); display: grid; gap: 8px; }
.page-head .eyebrow { color: var(--muted); font-weight: 600; font-size: 17px; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.page-head .lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); font-weight: 500; line-height: 1.35; max-width: 40ch; }

/* Карточки и сетки */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); min-width: 0;
  box-shadow: inset 0 0 0 1px var(--edge);
}
.card + .card, .grid + .card, .card + .grid, .grid + .grid, .card-head + .grid { margin-top: 16px; }
.grid > .card { margin-top: 0; }
.grid.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid.tight .stat .value.text { font-size: 20px; }
a.card { display: block; color: inherit; transition: box-shadow 0.2s; }
a.card:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); }
.card h2 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; }
.card .sub { color: var(--muted); margin-top: 6px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; margin: 40px 0 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head .more { font-size: 15px; white-space: nowrap; }
.more::after { content: " ›"; }

/* Крупные цифры */
.hero-stat { display: grid; gap: 4px; }
.hero-stat .label { color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-stat .value { font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat .value small { font-size: 0.45em; letter-spacing: -0.02em; font-weight: 600; color: var(--muted); margin: 0 0.15em 0 0.05em; }
.hero-stat .meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.stat { display: grid; gap: 2px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .value.text { font-size: 22px; }
.stat .hint { color: var(--muted); font-size: 13px; }

/* Статусы */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.off { background: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: var(--hair); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok-text); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.status-row { display: flex; align-items: center; gap: 12px; }
.status-row + .status-row { margin-top: 14px; }
.status-row .grow { flex: 1; min-width: 0; }
.status-row b { font-weight: 600; }

/* Сообщения */
.note { border-radius: 16px; padding: 14px 18px; background: var(--accent-soft); color: var(--ink); }
.note.ok { background: var(--ok-soft); }
.note.warn { background: var(--warn-soft); }
.note.bad { background: var(--bad-soft); }
.flash { margin-top: 16px; }
.list-plain { margin: 0; padding: 0; list-style: none; }
.gaps { margin: 0; padding-left: 20px; color: var(--muted); }
.gaps li + li { margin-top: 4px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-quiet { background: var(--hair); color: var(--ink); }
.btn-quiet:hover { background: color-mix(in srgb, var(--hair) 70%, var(--line)); }
.btn-danger { background: var(--bad); color: var(--bad-ink); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 88%, #000); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; font-size: 15px; }
.btn-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* Формы */
form { margin: 0; }
label { display: block; }
.field { display: grid; gap: 6px; }
.field + .field, .fields + .field, .field + .fields { margin-top: 16px; }
.field > span, .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.fields > .field { margin-top: 0; }
input[type="email"], input[type="text"], input[type="number"], input[type="time"], select {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 17px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input.code {
  font-size: 34px; font-weight: 600; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums;
  min-height: 72px; padding: 0 0 0 0.35em;
}
.unit { position: relative; }
.unit input { padding-right: 52px; }
.unit em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.error-text { color: var(--bad); font-size: 15px; margin-top: 12px; }

/* Переключатели */
.switch-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); cursor: pointer; }
.switch-row:first-of-type { border-top: 0; }
.switch-row .text { flex: 1; min-width: 0; }
.switch-row .text b { display: block; font-weight: 600; }
.switch-row .text small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.switch { position: relative; flex: none; width: 51px; height: 31px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 31px; background: var(--track); transition: background 0.2s; pointer-events: none; }
.switch i::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.2s;
}
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.switch input:disabled + i { opacity: 0.5; }

.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 40px; padding: 0 10px;
  border-radius: 980px; background: var(--hair); color: var(--ink); font-size: 15px; font-weight: 500; pointer-events: none;
}
.day input:checked + span { background: var(--accent); color: var(--accent-ink); }
.day input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--hair); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check b { display: block; font-weight: 600; }
.check small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* Вход */
.auth { min-height: calc(100vh - 52px); display: grid; place-items: center; padding: 40px 0 80px; }
.auth .card { width: min(440px, 100%); padding: clamp(28px, 5vw, 44px); }
.auth h1 { font-size: clamp(2rem, 6vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.08; }
.auth .lead { color: var(--muted); margin-top: 10px; }
.auth form { margin-top: 28px; }
.auth .btn { width: 100%; margin-top: 16px; }
.auth .foot { margin-top: 20px; color: var(--muted); font-size: 14px; text-align: center; }
.devcode { margin-top: 16px; font-family: var(--mono); }

/* Графики */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .tick.dim { fill: var(--faint); font-size: 11px; }
.chart .bar { fill: var(--night); }
.chart .bar.alt { fill: var(--accent); }
.chart .bar:hover { opacity: 0.8; }
.chart .bar-empty { fill: var(--hair); }
.chart .plan { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .plan-label { fill: var(--warn); font-size: 12px; font-weight: 600; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .band { fill: var(--ok-soft); }
.chart.mini { margin: 4px 0 8px; }
.chart .plan-label { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.only-narrow { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--warn); vertical-align: middle; margin-right: 6px; }
.legend i.box { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--night); }
.legend i.box.alt { background: var(--accent); }
.legend i.box.band { background: var(--ok-soft); }
.segmented { display: inline-flex; background: var(--hair); border-radius: 980px; padding: 3px; gap: 2px; }
.segmented a { padding: 5px 14px; border-radius: 980px; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.segmented a:hover { text-decoration: none; }
.segmented a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* Таблицы */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 4px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 12px 4px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }

/* Список устройств и событий */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--hair); }
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .title { font-weight: 600; }
.rows .meta { color: var(--muted); font-size: 14px; }
.rows .side { text-align: right; color: var(--muted); font-size: 14px; white-space: nowrap; }
.readings { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; }
.readings span { color: var(--muted); }
.readings b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 15px;
}
.icon svg { width: 22px; height: 22px; }

/* Адрес вебхука */
.secret {
  display: flex; gap: 10px; align-items: stretch; margin-top: 14px; flex-wrap: wrap;
}
.secret code {
  flex: 1 1 280px; min-width: 0; font-family: var(--mono); font-size: 14px; line-height: 1.45; word-break: break-all;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; user-select: all;
}
/* Примеры запросов в тексте: длинный адрес переносится, а не уходит за край экрана. */
.card p code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.steps { margin: 16px 0 0; padding-left: 22px; }
.steps li + li { margin-top: 8px; }
.steps li::marker { color: var(--muted); font-weight: 600; }

/* Приложение: QR-код и скачивание. Код всегда тёмный на белом, иначе камера его не прочтёт. */
.app-get { display: grid; grid-template-columns: 216px 1fr; gap: 28px; align-items: center; margin-top: 18px; }
.qr { background: #fff; border-radius: 18px; padding: 8px; width: 216px; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.app-get .actions { margin-top: 14px; }
.app-get .facts { color: var(--muted); font-size: 15px; }

/* Отчёт */
.report-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 15px; }
.stars { display: flex; gap: 8px; flex-wrap: wrap; }
.stars button {
  min-width: 48px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.stars button:hover { border-color: var(--accent); }
.stars button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 24px; }

.empty { text-align: center; padding: clamp(28px, 6vw, 48px) 12px; }
.empty h2 { font-size: 24px; letter-spacing: -0.025em; }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 44ch; }
.empty .actions { justify-content: center; }

.danger-zone { box-shadow: inset 0 0 0 1px var(--bad-soft); }
details summary { cursor: pointer; color: var(--accent-text); }
details[open] summary { margin-bottom: 12px; }

footer.foot { color: var(--muted); font-size: 12px; padding: 32px 0 48px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top .who .email { display: none; }
  .rows .side { display: none; }
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .hide-narrow { display: none; }
  .app-get { grid-template-columns: 1fr; margin-top: 8px; }
  .stat .value { font-size: 24px; }
  .grid.tight .stat .value.text { font-size: 17px; }
  .segmented a { padding: 5px 11px; font-size: 13px; }
  .card { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
