/* ═══ Экран «Сегодня» ═══════════════════════════════════════════
   Числа ниже взяты из design/mockups/today.html: отступы, радиусы, градиенты,
   свечение карточки цели. Меняя их, сверяйся с макетом, он утверждён. */
.today { display: flex; flex-direction: column; gap: 18px; }
.today-grid, .today-main, .today-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── карточка цели: дуга и три кольца ─────────────────────────── */
.hero {
  position: relative; overflow: hidden; border-radius: 32px; padding: 22px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: radial-gradient(120% 70% at 50% 18%, #3A2622 0%, #1C1719 45%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .5);
}
.hero-label { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #B7B2AA; }
.gauge { position: relative; display: block; width: 280px; height: 200px; color: inherit; border-radius: 24px; }
.gauge:hover { color: inherit; }
.gauge-glow {
  position: absolute; left: 40px; top: 19px; width: 200px; height: 200px; border-radius: 100px; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 150, 110, .45) 0%, rgba(234, 131, 105, .12) 45%, rgba(234, 131, 105, 0) 70%);
  filter: blur(18px);
}
.gauge-svg { position: absolute; left: 0; top: -12px; overflow: visible; }
.gauge-center { position: absolute; left: 0; right: 0; top: 74px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gauge-sum {
  font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap;
  color: #FFF8F3; text-shadow: 0 0 24px rgba(244, 150, 110, .45);
}
.gauge-pill {
  height: 30px; padding: 0 12px;                    /* 28 и рамка, как в макете */ border-radius: 14px; display: flex; align-items: center; white-space: nowrap;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #D8D3CC;
}
.hero-note { position: relative; font-size: 14px; color: #CFCAC3; text-align: center; }
.rings { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; border-radius: 16px; }
.ring:hover { color: inherit; }
.ring-dial {
  position: relative; width: 72px; height: 72px; border-radius: 36px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ring-dial svg { display: block; }
.ring-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 16px; font-weight: 600; color: var(--ink);
}
.ring-lbl { font-size: 12px; color: #A9A59E; }

/* ── «Сейчас»: схема здоровья на часть дня ────────────────────── */
.now-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px;
  background: linear-gradient(180deg, #1C1B22 0%, #161618 100%); border: 1px solid rgba(255, 255, 255, .06);
}
.now-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.now-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.now-list { display: flex; flex-direction: column; gap: 8px; }
.chk {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); font-size: 15px; cursor: pointer; transition: background-color .15s;
}
.chk:hover { background: rgba(255, 255, 255, .06); }
/* галочка как на макете (там родная у Chrome): белый квадрат с серой рамкой, отмеченный жёлтый
   с крупной тёмной птичкой. Своя отрисовка, чтобы на айфоне выглядело так же, как на андроиде. */
.chk input {
  flex: none; width: 20px; height: 20px; margin: 3px 3px 3px 4px;       /* поля как у родной галочки */
  border-radius: 2.5px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #767676; cursor: pointer;
  -webkit-appearance: none; appearance: none; display: grid; place-items: center;
  transition: background-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.chk input::after {
  content: ''; width: 20px; height: 20px; background: #2B2A28; transform: scale(0); transition: transform .18s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.9 10.1l4.2 4.2 8.1-8.7' fill='none' stroke='black' stroke-width='2.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.9 10.1l4.2 4.2 8.1-8.7' fill='none' stroke='black' stroke-width='2.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chk input:checked { background: #F2C14E; box-shadow: none; }
.chk input:checked::after { transform: scale(1); }
.chk input:active { transform: scale(.88); }
.chk span { min-width: 0; transition: color .15s; }
.chk.done span { color: var(--ink-3); text-decoration: line-through; }

/* ── написать сегодня ─────────────────────────────────────────── */
.write, .write-list { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
/* ссылка мелкая, а цель касания 44 px: добираем отступами, не двигая строку */
.sec-link { font-size: 13px; white-space: nowrap; padding: 14px 0 14px 12px; margin: -14px 0; }
.who {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); transition: background-color .15s;
}
.who:hover { color: var(--ink); background: var(--surface-hover); }
.who-av { flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.who-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.who-name, .who-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name { font-size: 15px; font-weight: 600; }
.who-sub { font-size: 13px; color: var(--ink-3); }
/* ✉️ 14.10.2026: у этого человека переписки в системе нет (почта, Авито, WhatsApp, инстаграм),
   значит «отправлено» держится на словах и молчание проверить нечем. Знак мелкий и приглушённый,
   он подсказка, а не тревога. */
.who-nosync { font-size: 11px; opacity: 0.55; margin-left: 4px; vertical-align: middle; }
.who-more { display: flex; justify-content: center; align-items: center; min-height: 44px; font-size: 14px; }
.card-note { padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }

/* ── ближайшие события ────────────────────────────────────────── */
.soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: background-color .15s;
}
.ev-tile:hover { color: var(--ink); background: var(--surface-hover); }
.ev-tile:only-child { grid-column: 1 / -1; }
.ev-tile:nth-child(n+3) { display: none; }          /* на телефоне два, как на макете */
.ev-date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.ev-tile.is-today .ev-date { color: var(--coral); }
.ev-title { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── скелет ───────────────────────────────────────────────────── */
.sk-hero { height: 452px; border-radius: 32px; }
.sk-card { height: 214px; border-radius: 24px; }

/* ── компьютер: цель слева, дела справа ───────────────────────── */
@media (min-width: 900px) {
  .today { max-width: 600px; }
  .today-head .avatar-btn { display: none; }        /* профиль в левом меню */
}
@media (min-width: 1180px) {
  .today { max-width: 1120px; gap: 26px; }
  .today-grid { display: grid; grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .today-main { position: sticky; top: 36px; }
  .today-side { gap: 22px; }
  .ev-tile:nth-child(n+3) { display: flex; }
}
