/* Энцелад — PWA. Пять цветов (плюс сигнальный оранжевый — раздел 7.5, 11), Georgia +
   system-ui, отступы кратны 4, скругления 10/14/22 (раздел 6). */

:root {
  --bg: #000000;
  --line: #23292F;
  --muted: #AEB7BF;
  --ink: #FFFFFF;
  --cryo: #4DDCFF;
  --signal: #FF9F1C;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Roboto Mono", "Noto Sans Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* ⚠️ Без этого правило `.actions-row{display:flex}` (и подобные) побеждает встроенный
   [hidden] браузера — атрибут авторский стиль не перебивает сам, нужно явно */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

button, input {
  font: inherit;
  color: inherit;
}

#backdrop {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}

/* ── раскладка: одна, телефонная, и на ноутбуке тоже (решено владельцем 8 октября) ──
   Отдельная вёрстка ПК с боковой панелью снята: окно браузера в Hyprland почти
   всегда уже 900px, и ноутбук и так видел телефонный вид. На широком окне колонка
   не растягивается — ограничена шириной, как у большого телефона */

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding-bottom: 140px; /* место для строки ввода и кнопки Энцелада */
}

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 16px 12px;
}

.brand-name { font-family: var(--serif); font-size: 17px; }
.status { font-size: 13px; color: var(--muted); }

.title-block { padding: 4px 16px 0; }
.title { font-family: var(--serif); font-size: 22px; font-weight: normal; margin: 0; }
.subtitle {
  font-size: 14px; color: var(--muted); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.content { padding: 24px 16px; }
.title-block, .content { max-width: 640px; }

/* ── общие элементы ─────────────────────────────────────────────────────────── */

.label {
  display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--cryo); margin-bottom: 8px;
}

.muted { color: var(--muted); }

.group { display: flex; flex-direction: column; gap: 24px; }
.group + .group { margin-top: 24px; }

.card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  overflow: hidden;
}
.card.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.tile-label-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.tile-label-row .muted { font-size: 13px; font-variant-numeric: tabular-nums; }

.icon { width: 22px; height: 22px; }

/* ── строки дел ─────────────────────────────────────────────────────────────── */

.item { border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }

.row {
  display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 12px 16px 12px 14px;
  background: var(--bg); border: 0; border-left: 2px solid transparent; color: var(--ink);
  text-align: left; cursor: pointer;
}
.row-action.row-waiting { border-left-color: var(--signal); }
/* Уточнение (блок 4): ждёт ответа «когда?» — оранжевая метка PWA-11, кнопки сразу видны */
.clarify { border-bottom: 1px solid var(--line); }
.row-clarify { border-left-color: var(--signal); cursor: default; }
.clarify .actions-row { padding: 0 16px 12px 16px; }
.row-time { font-size: 20px; width: 60px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.row-when {
  font-size: 14px; color: var(--muted); width: 58px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.row-text { font-size: 15px; flex-grow: 1; }
.row-repeat { color: var(--muted); font-size: 15px; }

.row-past, .row-done {
  padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: default;
}
.row-past:last-child, .row-done:last-child { border-bottom: 0; }
.row-past .row-when { color: var(--muted); }
.row-done { color: var(--muted); }
.row-done .row-text { text-decoration: line-through; }

.collapse-bar {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px; text-align: left; cursor: pointer;
}
.collapse-bar .collapse-arrow { font-size: 13px; }
.collapse-body[hidden] { display: none; }

.actions-row {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px 88px;
}
.confirm-row { padding: 0 16px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.confirm-row .confirm-question { font-size: 15px; }
.confirm-row .confirm-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  padding: 8px 12px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14px; cursor: pointer;
}
.btn-cryo { border-color: var(--cryo); color: var(--cryo); }
.btn-muted { color: var(--muted); }

/* ── кот (раздел 6.5) ───────────────────────────────────────────────────────── */

.cat-block {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 28px 16px 24px;
}
.cat-figure { position: relative; width: 248px; height: 132px; }
.cat-art {
  position: absolute; left: 0; right: 0; top: 30px; display: flex; flex-direction: column;
  align-items: center; font-family: var(--mono); font-size: 22px; line-height: 1.22;
  color: var(--ink); white-space: pre;
}
.cat-star { position: absolute; line-height: 1; }
.cat-star-1 { left: 22px; top: 8px; font-size: 18px; color: var(--cryo); opacity: 1; }
.cat-star-2 { left: 62px; top: 44px; font-size: 18px; color: var(--ink); opacity: 0.6; }
.cat-star-3 { left: 8px; top: 70px; font-size: 16px; color: var(--ink); opacity: 0.92; }
.cat-star-4 { left: 44px; top: 104px; font-size: 14px; color: var(--muted); opacity: 1; }
.cat-star-5 { left: 104px; top: 0; font-size: 18px; color: var(--ink); opacity: 0.38; }
.cat-star-6 { left: 176px; top: 12px; font-size: 14px; color: var(--ink); opacity: 0.6; }
.cat-star-7 { left: 214px; top: 36px; font-size: 16px; color: var(--ink); opacity: 0.92; }
.cat-star-8 { left: 190px; top: 82px; font-size: 20px; color: var(--muted); opacity: 1; }
.cat-star-9 { left: 228px; top: 108px; font-size: 18px; color: var(--ink); opacity: 0.6; }
.cat-text { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cat-text .muted { font-size: 15px; }
.cat-line2 { font-family: var(--serif); font-size: 22px; font-style: italic; }

/* ── строка ввода и тост ────────────────────────────────────────────────────── */

.time-prompt {
  position: fixed; left: 16px; bottom: 76px;
  width: calc(100vw - 32px - 64px - 12px); max-width: 560px;
  display: flex; flex-wrap: wrap; gap: 8px; z-index: 2;
}
.time-prompt[hidden] { display: none; }

.composer {
  position: fixed; left: 16px; bottom: 16px;
  width: calc(100vw - 32px - 64px - 12px); max-width: 560px;
  z-index: 2;
}

/* ── запись голоса (раздел 8.2): занимает место строки ввода, телефон-only ────── */

.record-bar {
  position: fixed; left: 16px; bottom: 16px;
  width: calc(100vw - 32px - 64px - 12px); max-width: 560px; height: 52px; box-sizing: border-box;
  border-radius: 22px; border: 1px solid var(--cryo); background: var(--bg);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; z-index: 2;
}
.record-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cryo);
  opacity: 1; transition: opacity 400ms ease; flex-shrink: 0;
}
.record-dot.is-dim { opacity: 0.35; }
.record-time { font-size: 15px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.record-hint { font-size: 13px; color: var(--muted); flex-grow: 1; text-align: right; }

.lock-chip {
  position: fixed; width: 44px; height: 64px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.lock-chip svg { width: 18px; height: 18px; }
.lock-chip span:last-child { font-size: 13px; }

.draft {
  width: 100%; height: 52px; box-sizing: border-box; border-radius: 22px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 15px; padding: 0 18px; outline: none;
}
.draft:focus { border-color: var(--cryo); }
.draft:disabled { opacity: 0.5; }

/* ⚠️ Раздел 9.3: нет связи — действия и строка ввода не нажимаются, а не просто
   тихо ничего не делают. apiPost() всё равно отказал бы сам, это для глаза */
[data-offline-disabled] { opacity: 0.4; pointer-events: none; }

.toast-slot {
  position: fixed; left: 16px; right: 16px; bottom: 92px; z-index: 3; max-width: 608px;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; min-height: 48px; pointer-events: auto;
}
.toast .toast-text { font-size: 15px; }
.toast .btn { flex-shrink: 0; }

/* ── кнопка Энцелада и кольцо-меню (телефон, раздел 7.2–7.3) ───────────────── */

/* Без подложки: только планета. Касание остаётся 64×64 — палец попадает так же */
.fab {
  position: fixed; right: 16px; bottom: 16px; width: 64px; height: 64px;
  border-radius: 50%; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer; touch-action: none; z-index: 5;
  -webkit-tap-highlight-color: transparent;
}
.fab svg { transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.fab:active svg { transform: scale(0.92); }
.fab.is-open svg { transform: rotate(-12deg) scale(1.06); }

.scrim {
  position: fixed; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, 0.78);
  cursor: default; z-index: 4;
}

/* Без масштаба: он шёл от центра экрана, и кольцо прилетало сверху или снизу и
   уходило вверх. Появление и уход — прорисовка штрихом по дуге (menu.js) */
/* z-index 5 — НАД затемнением (.scrim, 4): под ним 78% чёрного глушили кольцо до еле видного */
.ring-rings {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5;
  pointer-events: none; opacity: 0; transition: opacity 160ms ease 380ms;
}
.ring-rings.is-open { opacity: 1; transition-delay: 0ms; }

.ring-items { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.ring-item {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer; opacity: 0; transform: translate(0, 0) scale(0.4);
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.15), opacity 180ms ease;
}
.ring-item.is-open { opacity: 1; pointer-events: auto; }
.ring-item.is-active { border-color: var(--cryo); color: var(--cryo); }
.ring-item .icon { width: 22px; height: 22px; }

.ring-label {
  position: fixed; left: 16px; right: 16px; z-index: 5;
  font-size: 13px; font-weight: 500; letter-spacing: 0.11em; color: var(--cryo);
  text-align: right; text-transform: uppercase;
}
.ring-label[hidden] { display: none; }

/* ── мгновенный отклик: строка уходит сразу, запрос догоняет ───────────────────── */

.item { transition: opacity 180ms ease, transform 220ms ease, max-height 260ms ease 80ms; max-height: 400px; }
.item.is-leaving { opacity: 0; transform: translateX(24px); max-height: 0; overflow: hidden; pointer-events: none; }
.draft.is-sent { animation: draft-sent 320ms ease; }
@keyframes draft-sent { 0% { border-color: var(--cryo); } 100% { border-color: var(--line); } }
.toast { animation: toast-in 160ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── карточки первого запуска (раздел 6.6) ─────────────────────────────────────── */

#intro-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
#intro-cards:empty { display: none; margin: 0; }
.intro-card-title { font-size: 15px; margin-bottom: 12px; }
.intro-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── пары (блок 6) ──────────────────────────────────────────────────────────── */

.lessons { display: flex; flex-direction: column; gap: 24px; }
.lessons-day { scroll-margin-top: 16px; }
.lessons-day.is-past { opacity: 0.55; }
.lessons-day.is-today .card { border-color: var(--cryo); }
.lesson {
  display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.lesson:last-child { border-bottom: 0; }
.lesson-time {
  display: flex; flex-direction: column; width: 60px; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.lesson-starts { font-size: 20px; }
.lesson-ends { font-size: 13px; color: var(--muted); }
.lesson-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lesson-subject { font-size: 15px; }
.lesson-details { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.lesson-link { font-size: 14px; color: var(--cryo); text-decoration: none; align-self: flex-start; }
.lesson-link:focus-visible { outline: 2px solid var(--cryo); outline-offset: 2px; border-radius: 4px; }
.lesson-none { font-size: 15px; }
.lessons-notice {
  border: 1px solid var(--muted); border-radius: 14px; padding: 12px 16px;
  font-size: 14px; margin-bottom: 24px;
}
.lessons-updated { font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ── находки Барахольщика ───────────────────────────────────────────────────── */

.finds { display: flex; flex-direction: column; gap: 16px; }
.find {
  display: flex; flex-direction: column; gap: 12px; padding: 12px; max-height: 1200px;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}
.find-main { display: flex; gap: 12px; }
.find-photo {
  width: 96px; height: 96px; flex-shrink: 0; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: #000;
}
.find-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.find-title { font-size: 15px; overflow-wrap: anywhere; }
.find-price { font-size: 20px; font-variant-numeric: tabular-nums; }
.find-price.is-none { font-size: 14px; color: var(--muted); }
.find-summary { font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.find-meta { font-size: 12px; color: var(--muted); }
.find-link { font-size: 14px; color: var(--cryo); text-decoration: none; align-self: flex-start; }
.find-link:focus-visible { outline: 2px solid var(--cryo); outline-offset: 2px; border-radius: 4px; }
.find.is-liked { border-color: var(--cryo); }
.find.is-leaving { opacity: 0; max-height: 0; padding: 0; overflow: hidden; pointer-events: none; }
.find-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.find-like[aria-pressed="true"] { background: var(--cryo); color: #000; }
.finds-empty { padding: 16px; font-size: 15px; color: var(--muted); }
.finds-run { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.finds-run-text { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.finds-run[data-busy="true"] .finds-run-text { color: var(--cryo); }
.finds-search:disabled { opacity: 0.4; cursor: default; }

/* ── настройки ──────────────────────────────────────────────────────────────── */

.settings-row { font-size: 15px; }
.settings-row.row-signal {
  border-left: 2px solid var(--signal); padding-left: 12px; color: var(--ink);
}

/* ── вход ───────────────────────────────────────────────────────────────────── */

.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.login-card {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 0 16px;
}
.login-glyph { width: 80px; height: 80px; }
.login-brand { font-family: var(--serif); font-size: 28px; }
.login-card input {
  width: 280px; height: 52px; box-sizing: border-box; border-radius: 22px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 15px; padding: 0 18px; outline: none; text-align: center;
}
.login-card input:focus { border-color: var(--cryo); }
.login-card button {
  width: 280px; height: 44px; border-radius: 10px; border: 1px solid var(--cryo);
  background: var(--bg); color: var(--cryo); font-size: 15px; cursor: pointer;
}
.login-error { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }

/* ── пометка к делу и плитка «Ответы» (блок 4) ──────────────────────────────── */

.row-note {
  padding: 0 16px 12px 88px; margin-top: -6px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
}

#answers-tile .tile { margin-top: 24px; }
.answer { padding: 12px 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.answer:last-child { border-bottom: 0; }
.answer-question { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.answer-when { font-variant-numeric: tabular-nums; margin-right: 4px; }
.answer-body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-waiting .answer-body { color: var(--cryo); }
.answer-failed .answer-body { color: var(--signal); }

/* ── утреннее письмо (раздел 9) ─────────────────────────────────────────────── */

.letter { display: flex; flex-direction: column; gap: 4px; }
.letter-title { font-family: var(--serif); font-size: 20px; }
.letter-date { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.letter-head {
  font-size: 13px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--cryo); margin-top: 12px;
}
.letter-mono { font-family: var(--mono); font-size: 14px; white-space: pre-wrap; }
.letter-line { font-size: 15px; line-height: 1.5; }
.letter-archive { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.letter-past summary { padding: 12px 16px; cursor: pointer; font-size: 15px; }
.letter-past-body { padding: 0 16px 16px; }

/* ── еда, вес, вечерние вопросы (блок 7) ────────────────────────────────────── */

#food-tile .tile, .food-section { margin-top: 24px; }
.food-muted { font-size: 13px; }
.food-empty { padding: 12px 4px; font-size: 14px; }
.food-meals { margin-top: 8px; }
.meal { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.meal:last-child { border-bottom: 0; }
.meal-open { border-left: 2px solid var(--signal); }
.meal-head { display: flex; align-items: baseline; gap: 12px; }
.meal-line { font-size: 13px; color: var(--muted); margin: 4px 0 0 70px; }
.meal-grams, .food-inline { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.meal-grams { margin-left: 70px; }
.btn-small { min-height: 28px; padding: 4px 8px; font-size: 13px; }

.field {
  min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 15px; min-width: 0; flex: 1 1 120px;
}
.field:focus { outline: none; border-color: var(--cryo); }
.field-small { flex: 0 1 96px; }
select.field { appearance: auto; }

.food-form { gap: 10px; }
.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.food-check { font-size: 14px; color: var(--muted); margin-right: 16px; }
.base-row { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.base-row:last-child { border-bottom: 0; }
.base-row .actions-row { padding: 8px 0 0 0; }
.base-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.weight-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.barcode-result { margin-top: 8px; }
.usda-results .base-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; }

.evening { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.evening-label { margin: 12px 0 0; }
.evening-q .actions-row { padding: 6px 0 0 0; }
.evening-questions { gap: 16px; }

/* ── рецепты, тиндер, план, мои блюда (блок 7, 10 октября) ──────────────────── */

.food-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); border-radius: 14px; padding: 4px;
}
.food-tabs::-webkit-scrollbar { display: none; }
.food-tab {
  flex: 1 0 auto; text-align: center; padding: 8px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.food-tab.on { color: var(--bg); background: var(--cryo); }

.dish-link { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.dish-link:hover { border-bottom-color: var(--cryo); }

.food-search { width: 100%; }
.base-block summary { cursor: pointer; list-style: none; }
.base-block summary::-webkit-details-marker { display: none; }
.base-block summary .label { margin-bottom: 0; }
.base-block:not([open]) summary .label::after { content: " ›"; }

/* переключатели режима и приёма */
.seg {
  display: flex; gap: 4px; margin-top: 16px; border: 1px solid var(--line);
  border-radius: 14px; padding: 4px;
}
.seg-item {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px; font-size: 14px;
  color: var(--muted); text-decoration: none;
}
.seg-item.on { color: var(--ink); background: var(--line); }
.seg-small { margin-top: 8px; }
.seg-small .seg-item { padding: 6px; font-size: 13px; }

/* колода */
.deck {
  position: relative; margin-top: 16px; height: min(52vh, 380px);
  touch-action: pan-y;
}
.swipe-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg);
  overflow: hidden; user-select: none; cursor: grab;
  transform: translateY(calc(var(--depth, 0) * 10px)) scale(calc(1 - var(--depth, 0) * 0.04));
  opacity: calc(1 - var(--depth, 0) * 0.35);
}
.swipe-card:active { cursor: grabbing; }
.swipe-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swipe-group {
  font-size: 13px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--cryo);
}
.swipe-reason { font-size: 13px; color: var(--signal); }
.swipe-name { font-family: var(--serif); font-weight: normal; font-size: 26px; line-height: 1.2; margin: 4px 0 0; }
.swipe-meta, .swipe-portion { font-size: 14px; }
.swipe-plate { font-size: 16px; font-variant-numeric: tabular-nums; }
.swipe-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.mark-chip, .status-chip {
  font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line);
  color: var(--muted);
}
.status-chip { border-color: var(--cryo); color: var(--cryo); }
.swipe-intro {
  font-size: 15px; line-height: 1.5; color: var(--muted); margin: 4px 0 0;
  flex: 1; overflow: hidden;
}
.swipe-recipe { color: var(--cryo); font-size: 14px; align-self: flex-start; }
.swipe-stamp {
  position: absolute; top: 24px; padding: 6px 12px; border: 2px solid; border-radius: 10px;
  font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0;
  pointer-events: none;
}
.swipe-stamp-yes { right: 20px; color: var(--cryo); transform: rotate(10deg); }
.swipe-stamp-no { left: 20px; color: var(--muted); transform: rotate(-10deg); }
.swipe-pick { cursor: default; justify-content: center; }
.swipe-pick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swipe-pick-actions .btn { text-decoration: none; }

.swipe-buttons { display: flex; justify-content: center; gap: 40px; margin-top: 28px; }
.swipe-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); font-size: 24px; cursor: pointer;
}
.swipe-no { color: var(--muted); }
.swipe-yes { color: var(--cryo); border-color: var(--cryo); }
.swipe-hint { text-align: center; font-size: 13px; margin-top: 12px; }
.swipe-never { display: block; margin: 16px auto 0; }
.deck-empty { margin-top: 24px; text-align: center; font-size: 15px; line-height: 1.8; }
.deck-link { text-decoration: none; display: inline-block; margin-top: 8px; }

/* план и покупки */
.shop { gap: 16px; }
.shop-group { display: flex; flex-direction: column; gap: 2px; }
.shop-group-name { text-transform: lowercase; margin-bottom: 4px; }
.shop-item {
  display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; cursor: pointer;
}
.shop-item input { width: 20px; height: 20px; accent-color: var(--cryo); flex-shrink: 0; }
.shop-name { flex: 1; }
.shop-amount { font-variant-numeric: tabular-nums; font-size: 14px; }
.shop-item.checked .shop-name { text-decoration: line-through; color: var(--muted); }

/* мои блюда */
.mine-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.mine-row.status-never { opacity: 0.55; }

/* рецепт */
.dish-plate { font-size: 17px; font-variant-numeric: tabular-nums; }
.dish .actions-row, .dish-actions { padding: 4px 0 0 0; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.status-btn.on { border-color: var(--cryo); color: var(--cryo); }
.note-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  font-size: 15px; line-height: 1.45; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.note-field { flex: 1 1 100%; resize: vertical; font-family: inherit; }
.recipe-text { font-size: 15px; line-height: 1.55; white-space: pre-line; }
.recipe-buy { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; }
.recipe-steps {
  margin: 0; padding: 16px 16px 16px 36px; border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55;
}
.recipe-steps strong, .recipe-text strong { color: var(--cryo); font-weight: 500; }
