/* screens-life.css — слой экрана поверх brand.css (DESIGN-3.md). Только var(), только transform/opacity в движении.
   Экраны «жизни»: Дневник, Цели, Рутины, Колесо. Раскладка и поведение — app.css; здесь — вид бренда «Два света». */

/* ---------- общее: сторона человека ---------- */
.dot.him { background: var(--him); }
.dot.her { background: var(--her); }
/* белый на авроре — как у .btn-primary и .hero-card: иначе иконка внутри орба пропадает в Полночи */
.empty .orb .ic, .rt-orb .ic { color: #fff; }

/* строка-ссылка (вход в «Нашу историю») и карточка-вход (в «Копилку мечты») */
.life-top { padding-bottom: 0; gap: 8px; }
.life-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px; color: var(--text);
  border-radius: var(--r-md); transition: background var(--t-base), transform var(--t-fast); }
.life-link:active { background: var(--surface-2); transform: scale(.985); }
.life-link .ll-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.life-link .ll-text b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.life-link .ll-text .hint { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base); }
.entry-card:active { transform: scale(.98); }
.entry-card .lead { width: 44px; height: 44px; border-radius: 14px; background: var(--us-soft);
  display: flex; align-items: center; justify-content: center; flex: none; }
.entry-card .ec-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.entry-card .ec-text b { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.entry-card .ec-text .hint { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Дневник ---------- */
.cal-spoiler { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow), var(--shadow-inset); }
.cal-sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 32px; }
.cal-sum::-webkit-details-marker { display: none; }
.cal-chev { transition: transform var(--t-base) var(--ease-out); }
.cal-spoiler[open] .cal-chev { transform: rotate(90deg); }
.j-list { display: flex; flex-direction: column; gap: 14px; }
.date-head { font-family: var(--font-display); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--muted); margin: 6px 2px -4px; }
.date-head::after { background: var(--hairline); }
/* карточка записи — бумага с кромкой цвета автора: 3 px слева, скруглена под радиус бумаги */
.j-card { position: relative; padding: 16px 16px 14px 19px; gap: 9px; }
.j-card::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--muted); opacity: .45; }
.j-card.j-him::before { background: var(--him); opacity: 1; }
.j-card.j-her::before { background: var(--her); opacity: 1; }
.j-head { gap: 10px; }
.j-head .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: var(--shadow-inset); }
/* Шапка: имя и настроение — первой строкой, время и раздел — второй. Блок автора забирает всё
   свободное место (а не сжимается до «D…»), кнопки прижаты вправо. */
.j-who { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.j-head .who-line { display: flex; align-items: center; gap: 6px; min-width: 0; height: 20px; }
.j-head .who { font-weight: 700; font-size: 14px; max-width: none; }
.j-head time { font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; flex: none; }
.j-head .mood { font-size: 16px; line-height: 20px; height: 20px; margin-left: 0; flex: none; }
.j-sub { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.j-sec { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* линейная иконка раздела (когда в icons.js есть все) — по средней линии мелкого текста */
.j-sec .ic { vertical-align: -2px; }
.j-head .priv-tag { flex: none; white-space: nowrap; }
.j-acts { margin-left: auto; }
.j-acts { display: inline-flex; align-items: center; gap: 0; flex: none; margin-right: -6px; }
.j-act { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); position: relative; transition: transform var(--t-fast), background var(--t-base), color var(--t-base); }
.j-act::after { content: ''; position: absolute; inset: -6px; }      /* цель 44 */
.j-act:active { transform: scale(.88); background: var(--surface-2); color: var(--text); }
.j-text { font-size: 15px; line-height: 1.55; }
/* длинное письмо — около восьми строк и «Читать дальше» */
.j-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.j-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0;
  font-size: 13px; font-weight: 700; color: var(--her); }
.j-more .ic { transform: rotate(90deg); }
/* «свернуть» — тот же шеврон, повёрнутый вверх; «показать всё» у «Смысла» — как «Читать дальше» */
.j-more .ic.chev-up, .j-card .explain-more .ic.chev-up { transform: rotate(-90deg); }
.j-card .explain-more { display: inline-flex; align-items: center; gap: 2px; }
.j-card .explain-more .ic { transform: rotate(90deg); }
/* лента порциями: кнопка-продолжение (и цель для автоподгрузки) */
.j-load-more { margin-top: 2px; }
/* стопка подряд идущих закрытых записок партнёра — одна строка вместо экрана конвертов */
.j-stack { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; color: var(--text);
  transition: transform var(--t-fast) var(--ease-out); }
.j-stack:active { transform: scale(.985); }
.js-env { position: relative; flex: none; }
.js-env .env-wrap { margin: 0; }
.js-env .env-stamp { display: none; }   /* марка 27 px на конверте в 58 px закрывала сердце */
.js-env::before { content: ''; position: absolute; inset: 4px -4px -4px 4px; border-radius: 9px;
  border: 1.5px solid color-mix(in oklab, var(--her) 35%, var(--border)); background: var(--surface-2); z-index: -1; }
.js-env { isolation: isolate; }
.js-n { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--her-fill, var(--her)); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.js-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.js-text b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.js-text .hint { font-size: 12px; }
.js-hint { color: var(--her); }
.j-stack-fold { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13px; font-weight: 700;
  color: var(--muted); align-self: flex-start; }
/* «Смысл и оттенки»: иконка в строку с текстом, переносы ИИ сохраняются, жирный — как в тексте */
/* переносы абзацев — только в раскрытом виде: в свёрнутых двух строках пустая строка
   после заголовка съедала вторую строку целиком */
.j-explain .explain-body:not(.clamp) { white-space: pre-line; }
.j-explain .explain-body b { font-weight: 700; }
/* приватная записка: «Отправить партнёру» во всю ширину, под ней — подписанное поле даты */
.priv-controls { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.priv-controls [data-reveal] { justify-content: center; }
.priv-auto { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.priv-auto span { flex: none; }
/* 16 px, а не 13: на iPhone поле мельче 16 px при фокусе увеличивает страницу — с этим
   и держался запрет масштабирования во viewport (handoff design, аудит 12.10.2026) */
.priv-auto input[type="date"] { flex: 1 1 auto; min-width: 0; width: auto; padding: 6px 10px; font-size: 16px; }
.priv-opens { font-size: 11.5px; color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
/* Тёмная бумага секретной записки в Полночи живёт в brand.css рядом с её токенами (группа
   design). Здесь стояло своё правило с border-left-color: var(--her): оно подключалось позже
   и красило кромку записки Дениса розовым, а кромка — цвет АВТОРА (--side). Убрано. */
/* Подвал записи, бывшей секретной: «Мия открыла твою сокровенную записку · 15:00» — ~290 px.
   app.css держит отметку прочтения в один ряд с реакциями и не сжимает её (flex: none), и ряд
   реакций схлопывался до 10 px — от сердечка оставался обрезок. Эта длинная отметка уходит
   на свою строку под реакциями; короткая «✓✓ прочитано» остаётся в ряду, как задумано. */
.j-foot:has(> .read-mark.secret) { flex-wrap: wrap; row-gap: 6px; }
.j-foot > .read-mark.secret { flex: 1 1 100%; margin-left: 0; white-space: normal;
  display: flex; align-items: center; gap: 4px; }
.j-place { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); }
.j-toggle { display: inline-flex; align-items: center; gap: 4px; }
.priv-tag { display: inline-flex; align-items: center; gap: 3px; background: var(--surface-2); border-color: transparent; }
.j-send { padding: 0 12px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.j-comments { border-top-color: var(--hairline); }
.j-comment .dot { width: 8px; height: 8px; }
.j-card.sealed-note { border-style: solid; padding-left: 16px;
  background: linear-gradient(165deg, var(--surface) 30%, color-mix(in oklab, var(--her) 6%, var(--surface))); }
.j-card.sealed-note .who { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.j-card.sealed-note .btn-primary { display: inline-flex; align-items: center; gap: 6px; }
/* «В этот день» — карточка с мягким золотым свечением, заголовок display-шрифтом */
.mem-card { border-radius: var(--r-lg); padding: 16px 16px 14px; margin-bottom: 0;
  background: linear-gradient(160deg, color-mix(in oklab, var(--gold) 9%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in oklab, var(--gold) 35%, var(--border));
  box-shadow: 0 0 0 1px var(--gold-soft), 0 12px 34px color-mix(in oklab, var(--gold) 24%, transparent), var(--shadow-inset); }
.mem-card::after { content: none; }
.mem-head { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; text-transform: none;
  color: var(--gold); gap: 6px; padding-right: 0; margin-bottom: 4px; }
.mem-date { font-family: var(--font-body); font-size: 11.5px; color: var(--muted); }
.mem-text { font-family: var(--font-display); font-size: 17px; line-height: 1.45; }
.mem-arrow { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  transition: transform var(--t-fast), background var(--t-base); }
.mem-arrow:active { transform: scale(.88); background: var(--surface-2); }
.mem-dots i { background: color-mix(in oklab, var(--gold) 30%, transparent); }
.mem-dots i.on { background: var(--gold); }

/* ---------- Цели ---------- */
.goal-list { display: flex; flex-direction: column; gap: 12px; }
.goal-card .stripe { top: 12px; bottom: 12px; }
.goal-card.gc { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; }
.goal-card .gc-main { flex: 1; min-width: 0; display: block; }
.goal-card .ttl { font-size: 15.5px; line-height: 1.3; }
.goal-card .ring { width: 46px; height: 46px; flex: none; }
.goal-card .ring circle { stroke-width: 3.4; }
.goal-card .ring-val { font-size: 15px; line-height: 1; }
.ring-val small { font-size: 10px; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.gc-done { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--us); color: #fff; box-shadow: var(--glow-us), var(--shadow-inset); }
.goal-card .area-tag { font-weight: 700; }
/* событие: дата-бейдж display-шрифтом, отсчёт крупно */
.event-card { gap: 14px; padding: 14px 16px 14px 20px; }
.event-badge { width: 58px; padding: 8px 2px 7px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--shadow-inset); }
.event-badge .d { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.event-badge .m { font-size: 10.5px; letter-spacing: .08em; margin-top: 2px; }
.countdown { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; margin-top: 4px; letter-spacing: -.01em; }
.event-card .meta { margin-top: 6px; }
.event-card .meta:empty { display: none; }
/* детали цели: шаги с анимированной галочкой (transform/opacity) */
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.steps-head .ring { width: 44px; height: 44px; }
.steps-head .ring circle { stroke-width: 3.6; }
.steps-head .ring-val { font-size: 14px; line-height: 1; }
.step-row { align-items: center; padding: 10px 0; border-bottom-color: var(--hairline); }
.step-check { width: 26px; height: 26px; border-radius: 9px; margin-top: 0; position: relative;
  border: 1.5px solid var(--border); background: var(--surface-2); color: #fff; transition: border-color var(--t-base); }
.step-check::before { content: ''; position: absolute; inset: -1.5px; border-radius: 9px; background: var(--us);
  transform: scale(.4); opacity: 0; transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base); }
.step-check::after { content: ''; position: absolute; inset: -9px; }   /* цель 44 */
.step-check .ic { position: relative; transform: scale(0) rotate(-25deg); opacity: 0;
  transition: transform var(--t-base) var(--ease-spring) 40ms, opacity var(--t-base) 40ms; }
.step-row.done .step-check { background: transparent; border-color: transparent; }
.step-row.done .step-check::before { transform: scale(1); opacity: 1; }
.step-row.done .step-check .ic { transform: none; opacity: 1; }
.step-row .del { color: var(--muted); border-radius: 10px; }
.step-row .del:active { background: var(--surface-2); }
.ai-btn { min-height: 44px; padding: 10px 16px; gap: 8px; font-size: 14px; box-shadow: var(--shadow-inset); }
/* мечты: карточка с авророй-полоской по верхней кромке */
.dream-card { overflow: hidden; padding-top: 18px; }
.dream-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--us); opacity: .9; }
.dream-card .em { font-size: 24px; line-height: 1; }
.dream-head { flex-wrap: wrap; row-gap: 6px; }
.dream-text { font-size: 15px; line-height: 1.5; }
.chip-new { color: var(--her); background: var(--her-soft); }

/* ---------- Рутины ---------- */
.hab-widget { padding: 14px 16px; }
.hab-widget-row { gap: 10px; padding: 5px 0; }
.hab-w-name { gap: 7px; font-size: 13.5px; width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hab-w-name .dot { width: 9px; height: 9px; }
.hab-widget-row.him .progress i { background: var(--him); }
.hab-widget-row.her .progress i { background: var(--her); }
.hab-w-pct { font-size: 20px; width: 54px; line-height: 1; }
.rt-list { gap: 8px; }
.rt-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow), var(--shadow-inset); padding: 8px 12px; gap: 10px; min-height: 52px; }
.rt-row.done-me { opacity: 1; }
.rt-row.done-me .tt { color: var(--muted); }
/* круглая отметка: при done заливка авророй разрастается из центра, галочка выныривает следом */
.rt-check { width: 30px; height: 30px; border: 1.5px solid var(--border); background: var(--surface-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color var(--t-base), box-shadow var(--t-base); }
.rt-check::before { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--us);
  transform: scale(.3); opacity: 0; transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base); }
.rt-check .ic { position: relative; transform: scale(0); opacity: 0;
  transition: transform var(--t-base) var(--ease-spring) 60ms, opacity var(--t-base) 60ms; }
.rt-check.on { background: var(--surface-2); border-color: transparent; box-shadow: var(--glow-us); }
.rt-check.on::before { transform: scale(1); opacity: 1; }
.rt-check.on .ic { transform: scale(1); opacity: 1; }
.rt-check.ghost { width: 30px; box-shadow: none; }
.rt-row .em { font-size: 18px; }
.rt-row .tt { font-size: 14px; font-weight: 600; }
.rt-u.him { --uc: var(--him); }
.rt-u.her { --uc: var(--her); }
.rt-u i { width: 18px; height: 18px; font-size: 9px; }
.rt-u.on { color: var(--text); }
.rt-thumb { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--highlight); box-shadow: var(--shadow); }
.rt-cam { width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-radius: 10px; color: var(--muted); opacity: 1;
  transition: transform var(--t-fast), background var(--t-base); }
.rt-cam:active { transform: scale(.88); background: var(--surface-2); }
.rt-orb { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; background: var(--us); box-shadow: var(--glow-us);
  display: flex; align-items: center; justify-content: center; }
.hab-list { display: flex; flex-direction: column; gap: 10px; }
.hab-card { padding: 14px 16px; transition: transform var(--t-fast) var(--ease-out); }
.hab-card:active { transform: scale(.985); }
/* Заголовок — обычный блок, не inline-flex: на flex-контейнере text-overflow не работает, и длинное
   название обрывалось посреди буквы. Две строки вместо одной — чтобы «Курс английского ежедневно»
   читался целиком; длиннее — многоточие. Звезда важности — отдельный элемент перед заголовком. */
.hab-title { font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.hab-star { display: inline-flex; flex: none; margin-right: -4px; }
.hab-head .hab-when { flex: none; white-space: nowrap; }
.hab-line { gap: 8px; margin-top: 8px; font-size: 12.5px; }
.hab-line.him { --uc: var(--him); }
.hab-line.her { --uc: var(--her); }
.hab-line .hab-u-name { width: 72px; }
.hab-u-name .dot { width: 9px; height: 9px; }
.hab-line .hab-streak { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.4; }
.hab-line .hab-dot { max-width: 10px; height: 10px; border-radius: 3px; }
/* сегодня по плану, но ещё не отмечено: день не кончился — пустая клетка с обводкой цвета
   стороны, а не «пропуск» (иначе утром полоска каждой привычки заканчивалась провалом) */
.hab-dot.today { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--uc, var(--muted)) 65%, transparent); }
.hab-line .hab-pct { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); width: 40px; }
.hab-legend { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.hab-legend .hab-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; --uc: var(--him); }

/* ---------- Колесо ---------- */
.wheel-card { padding: 8px 4px 14px; }
.wheel-svg .grid { fill: none; stroke: var(--hairline); stroke-width: .8; }
.wheel-svg .grid.outer { stroke: var(--border); fill: color-mix(in oklab, var(--violet) 4%, transparent); }
.wheel-svg .axis { stroke: var(--hairline); stroke-width: .8; }
.wheel-svg .poly { stroke-width: 2; stroke-linejoin: round; fill-opacity: .2; }
.wheel-svg .poly.him { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--him) 60%, transparent)); }
.wheel-svg .poly.her { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--her) 60%, transparent)); }
.wheel-svg .vertex { stroke: var(--surface); stroke-width: 1.5; }
.wheel-svg .vertex.him { fill: var(--him); }
.wheel-svg .vertex.her { fill: var(--her); }
.wheel-svg .lbl text { fill: var(--muted); font-size: 10.5px; font-weight: 600; font-family: var(--font-body); }
.legend .dot { width: 10px; height: 10px; }
/* кто ещё не оценил — имя в легенде остаётся, но тише и с подписью, а не «пустой точкой» */
.legend .lg-none { color: var(--muted); }
/* не оценил(а) — пустое кольцо цвета человека, а не та же точка на 35 %: в тёмной теме индиго
   Дениса на .35 почти сливалось с фоном (кадр mia-dark-wheel-02) */
.legend .lg-none .dot, .area-cell .vals .none .dot { background: none; box-shadow: inset 0 0 0 1.5px var(--side); }
.legend .lg-none .dot.him, .area-cell .vals .none .dot.him { --side: var(--him); }
.legend .lg-none .dot.her, .area-cell .vals .none .dot.her { --side: var(--her); }
.legend .lg-none small { font-weight: 600; font-size: 11.5px; margin-left: 2px; }
/* призыв оценить свои сферы — над колесом, чтобы его видели до прокрутки */
.wheel-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 16px; margin-bottom: 12px; }
.wheel-cta p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.wc-orb { width: 52px; height: 52px; border-radius: 50%; background: var(--us); box-shadow: var(--glow-us); color: #fff;
  display: flex; align-items: center; justify-content: center; }
/* Сетка сфер: дорожка 1fr имеет минимум auto, и правую колонку распирало до 435 px при экране 390 —
   оценки и «+» уходили за край. minmax(0,1fr) держит колонки в ширине экрана. В половине экрана
   (~170 px) имя, две оценки и «+» в одну строку не помещаются, поэтому ячейка — сетка в две строки:
   эмодзи и «+» по краям, имя сверху, оценки под ним. */
.area-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-cell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "em nm plus" "em vals plus";
  column-gap: 8px; row-gap: 2px; min-width: 0; }
.area-cell .em { grid-area: em; }
.area-cell .nm { grid-area: nm; }
.area-cell .vals { grid-area: vals; }
.area-cell .plus { grid-area: plus; }
.area-cell { border-radius: var(--r-md); box-shadow: var(--shadow), var(--shadow-inset); padding: 10px 10px 10px 12px; gap: 8px;
  min-height: 52px; transition: transform var(--t-fast) var(--ease-out); }
.area-cell:active { transform: scale(.97); }
.area-cell .vals { gap: 7px; font-size: 13px; }
/* прочерк «нет оценки» — приглушённым текстом во всю силу (--muted держит ≥ 4.5:1), а не
   полупрозрачным: на .35 он терялся в тёмной теме */
.area-cell .vals .none { color: var(--muted); font-weight: 600; }
.area-cell .vals .dot { width: 8px; height: 8px; }
.area-cell .plus { width: 28px; height: 28px; border-radius: 9px; background: var(--us-soft); color: var(--text);
  transition: transform var(--t-fast); }
.area-cell .plus:active { transform: scale(.85); }
.dyn-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.dyn-card { padding: 12px 14px; }
.dyn-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dyn-delta { font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.dyn-delta.up { color: var(--ok); }
.dyn-delta.down { color: var(--muted); }
.lg-ic { color: var(--muted); display: inline-flex; }

/* ---------- Капсула времени ---------- */
/* оригинал названия под нейтральным заголовком — когда перевода названия ещё нет */
.cap-title-orig { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
/* «В этот день»: запись целиком, но не длиннее четырёх строк с многоточием; тап — развернуть.
   Раньше текст резался на 160-м символе посреди слова и без «…». */
.cap-mem-row > div { min-width: 0; }
.cap-mem-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
  overflow-wrap: anywhere; cursor: pointer; }
.cap-mem-txt.open { display: block; -webkit-line-clamp: none; line-clamp: none; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  .rt-check::before, .rt-check .ic, .step-check::before, .step-check .ic, .cal-chev { transition: none !important; }
}
/* Заголовок месяца календаря: первую букву поднимает calendar.js. capitalize (app.css,
   screens-home.css) поднимал каждое слово — «Октябрь 2026 Г.» */
.cal-month.display { text-transform: none; }
