/* couple-app — Фаза 2. Тёмно-тёплая интимная тема.
   Вся палитра — через CSS-переменные (меняешь тон в одном месте).
   Доминанта — тёплый espresso; единственный акцент — тёплая терракота/персик. */

:root {
  /* фон / поверхности */
  --bg:          #14110f;   /* тёплый near-black (espresso) */
  --surface:     #1d1916;   /* карточка */
  --surface-2:   #262019;   /* приподнятое / hover / трек прогресса */
  --border:      #342c24;   /* волосяная граница */
  --border-soft: #2a231d;

  /* текст */
  --text:        #f3eae1;   /* тёплый off-white */
  --text-dim:    #b7a89b;   /* приглушённый */
  --text-faint:  #837567;   /* самый тихий — подписи, плейсхолдеры */

  /* акцент — тёплая терракота/персик */
  --accent:      #e3a06f;
  --accent-strong:#f0b386;
  --accent-deep: #c9824f;
  --accent-soft: rgba(227, 160, 111, 0.14);
  --accent-line: rgba(227, 160, 111, 0.30);

  --danger:      #d98b76;
  --danger-soft: rgba(217, 139, 118, 0.16);

  --shadow:      0 10px 30px rgba(0, 0, 0, 0.35);
  --radius:      16px;
  --radius-sm:   11px;

  --maxw:        560px;
  --vh:          100vh;        /* перекрывается Telegram viewportStableHeight */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  /* мягкое тёплое свечение сверху — глубина без «градиентного клише» */
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(227, 160, 111, 0.07), transparent 60%),
    var(--bg);
}

.app {
  position: relative;          /* якорь для иконки профиля в углу */
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 18px calc(40px + env(safe-area-inset-bottom));
  padding-top: calc(20px + env(safe-area-inset-top));
}

/* ---------- иконка входа в профиль (угол шапки) ---------- */
.profilebtn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 5;
  appearance: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .12s ease;
}
.profilebtn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--surface-2); }
.profilebtn:active { transform: scale(.94); }
.profilebtn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* шапка-аватар (Ф9): картинка заполняет кружок; нет аватара → инициал в кружке */
.profilebtn { overflow: hidden; }
.profilebtn.has-avatar { border-color: var(--accent-line); background: var(--surface-2); }
.profilebtn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profilebtn__initial {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

/* ---------- hero: счётчик «дней вместе» (первый блок — заголовок «Наше» убран) ---------- */
.hero { text-align: center; margin-bottom: 22px; margin-top: 4px; }
.hero__line {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: .5px;
  color: var(--accent);
  /* мягкое появление числа при загрузке (в духе Ф2, без перебора) */
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__word {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dim);
}
.hero__milestone {
  margin: 11px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-dim);
}
.hero__milestone:empty { display: none; }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  min-width: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;          /* 4 вкладки не должны переноситься на 2 строки */
  transition: color .25s ease, background .25s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: #1a1410;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 4px 14px rgba(227, 160, 111, 0.25);
}

/* ---------- panels ---------- */
.panel { display: none; animation: fadein .3s ease both; }
.panel.is-active { display: block; }

/* ---------- progress ---------- */
.progress {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.progress__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 11px;
}
.progress__label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.progress__caption {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: .2px;
}
.progress__track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-strong));
  transition: width .6s cubic-bezier(.22, .68, 0, 1);
}

/* ---------- add forms ---------- */
.addform {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}
.addform--dict { flex-direction: column; }
.addform__input {
  flex: 1;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.addform__input::placeholder { color: var(--text-faint); }
.addform__input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-2);
}
.addform__input--sub { font-size: 14px; }

.addform__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #1a1410;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 4px 14px rgba(227, 160, 111, 0.22);
}
.addform__btn { width: 52px; font-size: 24px; line-height: 1; }
.addform__btn--wide { width: 100%; padding: 13px; font-size: 15px; }
.addform__btn:hover { box-shadow: 0 6px 18px rgba(227, 160, 111, 0.32); }
.addform__btn:active { transform: translateY(1px) scale(.99); }

/* ---------- list + cards ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border); }
.card.is-mine { border-left: 2px solid var(--accent-line); }

/* staggered reveal (только первая загрузка) */
.card.reveal { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.card.enter  { animation: fadein .35s ease both; }

/* ---- wish card ---- */
.wish__body { flex: 1; min-width: 0; }
.wish__text {
  margin: 1px 0 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
  transition: color .3s ease;
}
.wish.is-done .wish__text {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--accent-line);
}

.check {
  flex: none;
  position: relative;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  border: 1.8px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .25s ease, border-color .25s ease, transform .15s ease;
}
/* визуально 26px, но тач-цель ~44px (палец) — невидимая зона вокруг */
.check::before { content: ""; position: absolute; inset: -9px; }
.check:hover { border-color: var(--accent-line); }
.check:active { transform: scale(.92); }
.check__mark { width: 17px; height: 17px; fill: none; stroke: #1a1410; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check__mark path { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .35s ease .02s; }
.wish.is-done .check {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: var(--accent);
}
.wish.is-done .check__mark path { stroke-dashoffset: 0; }

/* ---- реакции на «100 вещей» (Ф7): компактный ряд ❤️ 🔥 🤔 ---- */
.reactions { display: flex; gap: 7px; margin-top: 9px; }
.rx {
  position: relative;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
  color: var(--text-dim);
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
/* визуально компактно, тач-цель крупнее (палец на телефоне) — грабля CLAUDE.md */
.rx::before { content: ""; position: absolute; inset: -7px; }
.rx:hover { border-color: var(--accent-line); }
.rx:active { transform: scale(.9); }
/* эмодзи приглушено, пока никто не отреагировал; «зажигается» при наличии реакции */
.rx__em { font-size: 15px; line-height: 1; opacity: .4; filter: grayscale(.5); transition: opacity .2s ease, filter .2s ease; }
.rx.has .rx__em { opacity: 1; filter: none; }
.rx__n { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.rx__n:empty { display: none; }
/* моя реакция — акцентная рамка/фон */
.rx.is-mine { border-color: var(--accent); background: var(--accent-soft); }
.rx.is-mine .rx__n { color: var(--accent-strong); }

/* ---- dictionary card ---- */
.entry { flex-direction: column; align-items: stretch; gap: 0; }
.entry__word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.entry__row { margin: 7px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-dim); word-break: break-word; }
.entry__lbl {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 7px;
}
.entry__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.entry__actions { display: flex; gap: 6px; }

/* attribution chip */
.who {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
}
.who:empty { display: none; }
.who::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  margin-right: 7px;
}
.is-mine .who { color: var(--accent); }
.is-mine .who::before { background: var(--accent); }
.wish .who { margin-top: 5px; }

/* icon buttons */
.iconbtn {
  flex: none;
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color .2s ease, background .2s ease;
}
/* визуально 34px, тач-цель ~40px; inset -3px = ровно gap между кнопками (без перекрытия) */
.iconbtn::before { content: ""; position: absolute; inset: -3px; }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { color: var(--text); background: var(--surface-2); }
.iconbtn.confirm {
  color: var(--danger);
  background: var(--danger-soft);
  position: relative;
}
.iconbtn.confirm::after {
  content: "ещё раз — удалить";
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  white-space: nowrap;
  font-size: 11px;
  color: var(--danger);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  pointer-events: none;
}

/* ---- inline edit form (dictionary) ---- */
/* класс отличается от кнопки .entry__edit намеренно (см. app.js openEdit/closeEdit) */
.entry__editform { display: flex; flex-direction: column; gap: 8px; }
.ef__input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
}
.ef__input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ef__word { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.ef__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px; }
.ef__btn {
  appearance: none; border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ef__btn:hover { color: var(--text); border-color: var(--border); background: var(--surface-2); }
.ef__btn--save {
  border: 0; color: #1a1410;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  font-weight: 600;
}

/* ---------- empty states ---------- */
.empty {
  text-align: center;
  padding: 48px 24px 36px;
  animation: fadein .4s ease both;
}
.empty__art { font-size: 34px; margin-bottom: 14px; opacity: .9; }
.empty__text {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes rise   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .check__mark path { stroke-dashoffset: 0; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 400px) {
  .app { padding-left: 14px; padding-right: 14px; }
  .entry__word { font-size: 19.5px; }
  .randomscreen__q { font-size: 21px; }
  /* четыре вкладки в ряд: ужимаем шрифт/паддинги, чтобы влезло на ~360px без переноса */
  .tabs { gap: 2px; padding: 3px; }
  .tab { font-size: 12.5px; padding: 9px 6px; letter-spacing: -0.1px; }
}

/* ---------- questions: блоки, прогресс, гейт 18+ ---------- */
.qhead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.qprogress { margin-bottom: 0; }

.randombtn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
}
.randombtn:hover { background: rgba(227, 160, 111, 0.20); box-shadow: 0 4px 16px rgba(227, 160, 111, 0.16); }
.randombtn:active { transform: translateY(1px); }
.randombtn__ic { font-size: 17px; }

.qblock { margin-bottom: 12px; }
/* заголовок блока — кнопка-переключатель (свернуть/раскрыть) */
.qblock__head {
  width: 100%;
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 15px 16px;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}
.qblock__head:hover { border-color: var(--border); background: var(--surface-2); }
.qblock__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); }
.qblock__meta { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.qblock__count { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.qblock__chev {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: var(--text-faint); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.qblock.is-expanded .qblock__chev { transform: rotate(180deg); }
.qblock.is-expanded .qblock__head {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.qlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qlist[hidden] { display: none; }

.question { cursor: pointer; }
/* текст + ряд реакций (Ф12) живут в body, чтобы реакции легли ПОД текстом (как .wish__body) */
.question__body { flex: 1; min-width: 0; }
/* реакции на вопросе: тот же ряд .rx, что и у «100 вещей»/словаря; компактно — карточек много */
.question .reactions { margin-top: 8px; }
.question__text {
  margin: 1px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
  transition: color .3s ease;
}
.question.is-answered .question__text { color: var(--text-faint); }
.question.is-answered .check {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: var(--accent);
}
.question.is-answered .check__mark path { stroke-dashoffset: 0; }

/* ---------- режим «Случайный вопрос» ---------- */
.randomscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 6, 5, 0.74);
  backdrop-filter: blur(4px);
  animation: fadein .25s ease both;
}
.randomscreen[hidden] { display: none; }
.randomscreen__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 26px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: rise .35s cubic-bezier(.2, .7, .2, 1) both;
}
.randomscreen__close {
  position: absolute;
  top: 12px;
  right: 12px;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  color: var(--text-faint);
  font-size: 16px;
  transition: color .2s ease, background .2s ease;
}
.randomscreen__close:hover { color: var(--text); background: var(--surface-2); }
.randomscreen__cat {
  margin: 0 0 14px;
  font-size: 11.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
}
.randomscreen__q {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.35;
  color: var(--text);
}
.randomscreen__btns { display: flex; gap: 10px; justify-content: center; }
.randomscreen__btns .ef__btn { min-width: 120px; }

/* ---------- таймлайн «нас» ---------- */
.tl { flex-direction: column; align-items: stretch; gap: 0; position: relative; }
/* тонкая «нить времени» слева — связывает вехи в ленту */
.tl::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-line), transparent);
  border-radius: 2px;
}
.tl__view { padding-left: 14px; }
.tl__date {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
}
.tl__title {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.tl__desc {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dim);
  word-break: break-word;
}
.tl__desc[hidden] { display: none; }
.tl__rel {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}
.tl__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
/* inline-форма вехи (класс ОТЛИЧАЕТСЯ от кнопки .tl__edit — грабля CLAUDE.md) */
.tl__editform { display: flex; flex-direction: column; gap: 8px; }

/* кнопка «+ Добавить веху» — открывает оверлей (Ф7); лента под ней — режим просмотра */
.addbtn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
}
.addbtn:hover { background: rgba(227, 160, 111, 0.20); box-shadow: 0 4px 16px rgba(227, 160, 111, 0.16); }
.addbtn:active { transform: translateY(1px); }
.addbtn__plus { font-size: 19px; line-height: 1; }

/* ---------- профиль «общий уголок» (оверлей) ---------- */
.profilescreen {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 6, 5, 0.74);
  backdrop-filter: blur(4px);
  animation: fadein .25s ease both;
}
.profilescreen[hidden] { display: none; }
.profilescreen__sheet {
  width: 100%;
  max-width: var(--maxw);
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  animation: sheetup .34s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes sheetup { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
.profilescreen__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.profilescreen__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
}

/* ---------- общий профиль «Rudenko family» — шапка семьи (Ф10) ---------- */
.family {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.family__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.family__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* плейсхолдер без фото — тёплое свечение в тон акцента, чтобы «шапка» жила и пустой */
.family__photo--empty {
  background:
    radial-gradient(120% 90% at 50% -10%, var(--accent-soft), transparent 65%),
    var(--surface);
}
.family__photoph { font-size: 48px; opacity: .85; }
.family__name {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .2px;
  color: var(--text);
}
.family__about {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.family__about--empty { color: var(--text-faint); font-style: italic; }
.family__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.family__by { font-size: 12px; color: var(--text-faint); }
.family__revert {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.family__revert:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.family__revert:disabled { opacity: .5; cursor: default; }
.family__edit { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

/* inline-правка общего профиля (имя + текст про нас) */
.family__form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 4px; }
.family__nameinput, .family__aboutinput {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;            /* 16px = без авто-зума на iOS при фокусе */
  padding: 10px 12px;
}
.family__nameinput { font-weight: 600; }
.family__aboutinput { line-height: 1.5; resize: vertical; min-height: 74px; }
.family__nameinput:focus, .family__aboutinput:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.family__formbtns { display: flex; gap: 8px; }
.family__formbtns .ef__btn { flex: 1; padding: 9px 10px; font-size: 13px; }

/* подзаголовок секции «Вы вдвоём» над личными витринами */
.family__sub { margin-top: 0; }

/* витрины: вы и партнёр */
.showcases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.showcase {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}
.showcase.is-me { border-color: var(--accent-line); }
.showcase__avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.showcase__avatar img { width: 100%; height: 100%; object-fit: cover; }
.showcase__info { min-width: 0; }
.showcase__name {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase__you {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 2px;
}
.showcase__nobadge { font-size: 12px; color: var(--text-faint); font-style: italic; }

/* правка моей карточки (Ф9): кнопки «имя / фото / убрать» + inline-форма имени */
.showcase__edit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.showcase__editbtn {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.showcase__editbtn:hover { color: var(--text); border-color: var(--accent-line); }
.showcase__editbtn:disabled { opacity: .5; cursor: default; }
.showcase__editbtn--rm { color: var(--text-faint); }
.showcase__editbtn--rm:hover { color: var(--danger); border-color: var(--danger); }

.showcase__nameform { display: flex; flex-direction: column; gap: 8px; }
.showcase__nameinput {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;            /* 16px = без авто-зума на iOS при фокусе */
  font-weight: 600;
  padding: 9px 11px;
}
.showcase__nameinput:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.showcase__namebtns { display: flex; gap: 6px; }
.showcase__namebtns .ef__btn { flex: 1; padding: 8px 10px; font-size: 13px; }

/* чип бейджа у имени */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 9px 3px 7px;
}
.chip__emoji { font-size: 13px; line-height: 1; }
.chip__label {
  font-size: 12px;
  color: var(--accent-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* форма создания бейджа */
.badgeform { margin-bottom: 24px; }
.badgeform__row { display: flex; gap: 9px; margin-bottom: 10px; }
.badgeform__emoji { flex: 0 0 64px; width: 64px; text-align: center; font-size: 20px; }
.badgeform__label { flex: 1; }
.badgeform__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qemoji {
  appearance: none;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 18px;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
.qemoji:hover { border-color: var(--accent-line); background: var(--surface-2); }
.qemoji:active { transform: scale(.92); }

/* общий список бейджей */
.badges__heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.badges__empty { padding: 30px 20px; }

.badge { align-items: center; justify-content: space-between; gap: 12px; }
.badge.is-selected { border-color: var(--accent-line); background: var(--surface-2); }
.badge__main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.badge__emoji { flex: none; font-size: 24px; line-height: 1; }
.badge__text { min-width: 0; }
.badge__label {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}
.badge .who { margin-top: 3px; }
.badge__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.badge__pick {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.badge__pick:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.badge__pick.is-active {
  border: 0;
  color: #1a1410;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  font-weight: 600;
}

/* узкий экран: витрины в столбик, чтобы имя+чип не сжимались */
@media (max-width: 400px) {
  .showcases { grid-template-columns: 1fr; }
}

/* ---------- оверлей «Добавить веху» (Ф7) — нижний лист, как профиль ---------- */
.tloverlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 6, 5, 0.74);
  backdrop-filter: blur(4px);
  animation: fadein .25s ease both;
}
.tloverlay[hidden] { display: none; }
.tloverlay__sheet {
  width: 100%;
  max-width: var(--maxw);
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  animation: sheetup .34s cubic-bezier(.2, .7, .2, 1) both;
}
/* крупные удобные поля (Ф7) — НЕ тесные «квадратики», как было в ленте */
.tladd { display: flex; flex-direction: column; gap: 16px; }
.tladd__field { display: flex; flex-direction: column; gap: 7px; }
.tladd__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-dim);
}
.tladd__opt {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-faint);
  font-size: 12px;
}
.tladd__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;            /* 16px = без авто-зума на iOS при фокусе */
  padding: 14px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tladd__input::placeholder { color: var(--text-faint); }
.tladd__input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-2);
}
.tladd__textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.tladd__btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.tladd__btns .ef__btn { min-width: 110px; padding: 12px 18px; font-size: 14.5px; }

/* ---------- галерея фото + загрузка (Ф8) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tl__view .gallery { margin-top: 12px; }

/* превью-плитка: тач-цель 56px (≥44px — палец), квадрат с object-fit:cover */
.thumb {
  appearance: none;
  position: relative;
  flex: none;
  width: 56px; height: 56px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  display: block;
  transition: border-color .2s ease, transform .12s ease;
}
.thumb:hover { border-color: var(--accent-line); }
.thumb:active { transform: scale(.95); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* плейсхолдер загрузки — спиннер вместо картинки */
.thumb--loading { cursor: default; display: grid; place-items: center; }
.thumb--loading:active { transform: none; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* кнопка «добавить фото» — мягкая пунктирная плитка (не кричит на длинном списке) */
.gallery__add {
  appearance: none;
  flex: none;
  width: 56px; height: 56px;
  padding: 0;
  border: 1px dashed var(--border);
  border-radius: 11px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .12s ease;
}
.gallery__add:hover { border-color: var(--accent-line); color: var(--accent); background: var(--surface); }
.gallery__add:active { transform: scale(.95); }
.gallery__add svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- лайтбокс: крупный просмотр фото (Ф8) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 5, 0.92);
  backdrop-filter: blur(6px);
  animation: fadein .2s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: rise .3s cubic-bezier(.2, .7, .2, 1) both;
}
.lightbox__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__nav[hidden] { display: none; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__bar {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.lightbox__counter { font-size: 13px; color: var(--text-dim); }
/* подпись авторства фото (Ф9): «Добавил(а): Имя» */
.lightbox__author { font-size: 13px; color: var(--text-dim); }
.lightbox__author:empty { display: none; }
.lightbox__del {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lightbox__del svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.lightbox__del:hover { color: var(--text); }
/* вторая стадия подтверждения — красная (как иконки удаления в списках) */
.lightbox__del.confirm { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }

/* ============================================================
   ФАЗА 11 — глобальный режим: Просмотр / Редактирование
   ============================================================ */
/* Тумблер в шапке (зеркально иконке профиля, слева): 👁 Просмотр / ✏️ Правка.
   Активная позиция — акцентная (как активная вкладка) и с подписью; неактивная — только иконка
   (компактно). Видимость контролов правки во всём приложении драйвит класс на <body>. */
.modeswitch {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;        /* центрированный ряд под счётчиком — свой ряд, без коллизий */
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.modeswitch__opt {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.modeswitch__ic { font-size: 14px; line-height: 1; }
.modeswitch__opt:not(.is-active):hover { color: var(--text); }
/* активная позиция — акцентная (как активная вкладка), неактивная — приглушённая */
.modeswitch__opt.is-active {
  color: #1a1410;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 4px 14px rgba(227, 160, 111, 0.22);
}

/* ----- что СКРЫТО в режиме просмотра (контролы правки: вкладки + профиль + лайтбокс) ----- */
body.is-viewmode #wish-form,
body.is-viewmode #dict-form,
body.is-viewmode #tl-add-open,
body.is-viewmode #badge-form,
body.is-viewmode .gallery__add,
body.is-viewmode .wish__del,
body.is-viewmode .entry__actions,
body.is-viewmode .badge__actions,
body.is-viewmode .showcase__edit,
body.is-viewmode .family__edit,
body.is-viewmode .family__revert,
body.is-viewmode .lightbox__del { display: none !important; }

/* ----- просмотр: чуть просторнее, акцент на контент, превью крупнее ----- */
body.is-viewmode .list { gap: 12px; }
body.is-viewmode .card { padding: 16px 17px; }
body.is-viewmode .wish__text { font-size: 16.5px; }
body.is-viewmode .gallery { gap: 8px; margin-top: 12px; }
body.is-viewmode .thumb { width: 72px; height: 72px; border-radius: 12px; }
/* галерея без фото (кнопка «+» скрыта) не должна оставлять пустой ряд. :has — прогрессивно:
   где не поддержано, в худшем случае останется небольшой отступ, вёрстка не ломается. */
body.is-viewmode .gallery:not(:has(.thumb)) { display: none; }

/* ----- пустые состояния: мягкая подсказка вместо формы (Ф11) ----- */
.empty__text--view, .empty__hint { display: none; }       /* по умолчанию (правка) — скрыты */
.empty__hint {
  margin: 12px auto 0;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint);
}
body.is-viewmode .empty__text--edit { display: none; }
body.is-viewmode .empty__text--view { display: block; }
body.is-viewmode .empty__hint { display: block; }

/* узкий экран: ужимаем тумблер, чтобы обе подписи «Просмотр»/«Редактирование» влезли (до ~320px) */
@media (max-width: 400px) {
  .modeswitch__opt { padding: 8px 12px; font-size: 12px; gap: 5px; }
}

/* ============================================================
   ФАЗА 12 — реакции на словаре, звезда-избранное, фильтр, фото к словарю
   ============================================================ */

/* ----- звезда-избранное (общая для «100 вещей» и словаря) ----- */
/* .fav наследует .iconbtn (размер/тач-зона); цвет переопределяем НИЖЕ iconbtn-правил (выигрыш
   по порядку при равной специфичности). Глиф ★/☆ ставит JS (renderFav). Звезда — просмотр-действие,
   видна в обоих режимах (НЕ в списке is-viewmode-скрытия). */
.fav { color: var(--text-faint); transition: color .2s ease, background .2s ease, transform .12s ease; }
.fav__glyph { font-size: 19px; line-height: 1; }
/* только тинт глифа на hover — без surface-box от .iconbtn:hover (rest/active у звезды тоже без фона) */
.fav:hover { color: var(--accent); background: transparent; }
.fav:active { transform: scale(.88); }
.fav.is-fav { color: var(--accent-strong); }

/* колонка справа на карточке «100 вещей»: звезда (всегда) + удалить (скрыто в просмотре) */
.card__side { flex: none; display: flex; align-items: flex-start; gap: 4px; }

/* словарь: правый блок футера — звезда (всегда) + действия правки (скрыты в просмотре) */
.entry__tools { display: flex; align-items: center; gap: 6px; }

/* реакции на карточке словаря: тот же ряд .rx, что и у «100 вещей» (стили выше переиспользуются).
   Держим компактно — карточка словаря не должна разрастись (промпт п.8). */
.entry .reactions { margin-top: 10px; }
.entry .gallery { margin-top: 10px; }

/* ----- фильтр «только избранное» (пилюля, как тумблер режима) ----- */
.favfilter { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.favfilter[hidden] { display: none; }
.favfilter__btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.favfilter__btn:hover { color: var(--text); border-color: var(--accent-line); }
.favfilter__star { font-size: 13px; color: var(--text-faint); transition: color .2s ease; }
.favfilter__btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.favfilter__btn.is-active .favfilter__star { color: var(--accent-strong); }

/* активный фильтр: CSS прячет не-избранные карточки (без удаления из DOM — polling/мердж целы) */
.list.fav-only .card:not(.is-favorite) { display: none; }

/* мягкая вторая строка пустого состояния (фильтр «нет избранного») — видна в обоих режимах */
.empty__sub {
  margin: 10px auto 0;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint);
}
