/* Аскезы (JAN-8/JAN-9) — компактные тёмные карточки, оранжевый только как акцент.
   Референс JAN-8 + причёска JAN-9: плотный интерфейс, 3–4 карточки на экране, без теней. */
.ascetic-screen { display: grid; gap: 14px; }
.ascetic-screen h2, .ascetic-screen h3, .ascetic-screen p { margin: 0; }

/* ─── 1. Статистика: две равные плитки по DNEVNIK-32 ─── */
.ascetic-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ascetic-stat-card { display: grid; min-width: 0; min-height: 120px; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--card-radius); background: #101826; }
.ascetic-stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; }
.ascetic-stat-icon svg { width: 25px; height: 25px; }

.ascetic-stat-copy { display: grid; min-width: 0; gap: 3px; align-content: center; }
.ascetic-stat-label { overflow: hidden; color: currentColor; font-size: 10.5px; font-weight: 670; letter-spacing: -.01em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ascetic-stat-value { color: var(--text); font-size: clamp(30px, 8vw, 38px); font-weight: 670; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.ascetic-stat-hint { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ascetic-stat-card.is-days { border-color: rgba(243,154,88,.55); color: #f39a58; }
.ascetic-stat-card.is-completed { border-color: rgba(80,208,107,.44); color: #59d66a; }

/* ─── 2. Табы: компактный segmented control 48–52px ─── */
.ascetic-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: var(--button-radius); background: #0d131d; }
.ascetic-tab { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 570; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ascetic-tab.is-active { background: rgba(243,154,88,.13); color: #f6b183; }
.ascetic-tab-badge { min-width: 17px; padding: 1px 5px; border-radius: 999px; background: rgba(243,154,88,.2); color: #f6b183; font-size: 10.5px; font-weight: 640; text-align: center; }

/* ─── 3. Карточки доступных аскез: ~88–105px высотой ─── */
.ascetic-list { display: grid; gap: 8px; }
.ascetic-card { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--small-radius); background: #101826; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ascetic-card:hover, .ascetic-card:focus-visible { border-color: rgba(243,154,88,.3); background: rgba(243,154,88,.04); }
.ascetic-card.is-active-attempt { cursor: default; }
.ascetic-card-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; box-sizing: border-box; }
.ascetic-card-body { display: grid; gap: 3px; min-width: 0; align-content: center; }
.ascetic-card-body h3 { margin: 0; font-size: 15.5px; font-weight: 620; letter-spacing: -.01em; line-height: 1.2; }
.ascetic-card-body p { display: -webkit-box; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ascetic-card-side { display: grid; gap: 6px; justify-items: end; align-content: center; }
.ascetic-card-arrow { color: var(--subtle); font-size: 20px; font-weight: 600; line-height: 1; }
.ascetic-duration-chip { padding: 3px 8px; border: 1px solid rgba(243,154,88,.32); border-radius: 999px; color: #f0a76e; font-size: 11px; font-weight: 590; white-space: nowrap; }
.ascetic-duration-chip.is-active-chip { border-color: transparent; background: rgba(243,154,88,.16); color: #f6b183; }

/* ─── Пустые состояния ─── */
.ascetic-empty { display: grid; gap: 8px; padding: 22px 16px; text-align: center; }
.ascetic-empty h3 { margin: 0; font-size: 16px; }
.ascetic-empty p { margin: 0; color: var(--muted); font-size: 13px; }

/* ─── Завершённые: компактные ряды ─── */
.ascetic-history { display: grid; gap: 8px; }
.ascetic-history-item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--small-radius); background: #0e1520; }
.ascetic-history-icon { width: 40px; height: 40px; border-radius: 50%; }
.ascetic-history-body { display: grid; gap: 2px; min-width: 0; }
.ascetic-history-body h3 { margin: 0; font-size: 14.5px; }
.ascetic-history-range { margin: 0; color: var(--subtle); font-size: 11.5px; }
.ascetic-history-outcome { margin: 0; font-size: 12.5px; font-weight: 600; }
.ascetic-history-item.is-completed .ascetic-history-outcome { color: var(--good); }
.ascetic-history-item.is-broken .ascetic-history-outcome { color: var(--subtle); }
.ascetic-history-reflection { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ─── 6. Активная аскеза: компактная dashboard-card ─── */
.ascetic-attempt-card { display: grid; padding: 14px; border: 1px solid var(--border); border-radius: var(--card-radius); background: #101826; }
.ascetic-attempt-body { display: grid; gap: 7px; min-width: 0; }
.ascetic-attempt-head { display: flex; align-items: center; gap: 12px; }
.ascetic-attempt-head h3 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -.01em; }
.ascetic-attempt-head .ascetic-card-icon { width: 44px; height: 44px; border-radius: 50%; }
.ascetic-attempt-status { margin: 0; color: #f0a76e; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.ascetic-attempt-dates { margin: 0; color: var(--subtle); font-size: 12px; }
.ascetic-attempt-tracking { margin: 4px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.45; }
.ascetic-attempt-intention { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ─── 7. Статус-чип отметки — слабее CTA ─── */
.ascetic-status-chip { justify-self: start; padding: 5px 12px; border: 1px solid rgba(55,224,138,.25); border-radius: 999px; background: rgba(55,224,138,.07); color: #6fe3ac; font-size: 12.5px; font-weight: 600; }

/* ─── 8. Кнопки ─── */
.ascetic-primary-btn { justify-self: start; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--button-radius); background: rgba(243,154,88,.92); color: #1a0f06; font-size: 14px; font-weight: 640; cursor: pointer; }
.ascetic-primary-btn:disabled { background: rgba(255,255,255,.09); color: var(--subtle); cursor: default; }
.ascetic-secondary-btn { min-height: 48px; padding: 0 16px; border: 1px solid rgba(255,107,114,.34); border-radius: var(--button-radius); background: transparent; color: var(--bad); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ascetic-attempt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

/* ─── Экран аскезы (детальный) ─── */
.ascetic-detail { display: grid; gap: 14px; }
.ascetic-detail-head { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.ascetic-detail-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; }
.ascetic-detail-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.ascetic-detail-tagline { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ascetic-detail-description { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ascetic-rules { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--small-radius); background: #0e1520; }
.ascetic-rules h3 { margin: 0; font-size: 14px; font-weight: 620; }
.ascetic-rules ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ascetic-safety-warning { margin: 0; padding: 10px 12px; border: 1px solid rgba(241,199,91,.3); border-radius: var(--small-radius); background: rgba(241,199,91,.07); color: #eccd8a; font-size: 12.5px; line-height: 1.45; }
.ascetic-start-form { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--small-radius); background: #0e1520; }
.ascetic-form-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.ascetic-form-field input, .ascetic-form-field select, .ascetic-form-field textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #0d131d; color: var(--text); font-size: 14px; font-family: inherit; }
.ascetic-form-hint { margin: 0; color: var(--subtle); font-size: 12px; }
.ascetic-form-error { margin: 0; min-height: 0; margin: 0; color: var(--bad); font-size: 12.5px; }
.ascetic-form-error:empty { display: none; }
.ascetic-submit-btn { justify-self: stretch; text-align: center; }
.ascetic-error { display: grid; gap: 10px; padding: 20px 16px; text-align: center; }

/* ─── Узкие экраны: статистика не ломается ─── */
@media (max-width: 360px) {
  .ascetic-screen { width: 100%; min-width: 0; }
  .ascetic-stats, .ascetic-tabs, .ascetic-list { min-width: 0; }
  .ascetic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ascetic-stat-card { min-width: 0; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; min-height: 112px; padding-inline: 8px; }
  .ascetic-stat-icon { width: 38px; height: 38px; }
  .ascetic-stat-icon svg { width: 22px; height: 22px; }
  .ascetic-stat-label, .ascetic-stat-hint { overflow: hidden; text-overflow: ellipsis; }
  .ascetic-stat-label { font-size: 10.5px; }
  .ascetic-tab { min-width: 0; padding-inline: 4px; font-size: 12px; }
  .ascetic-card { grid-template-columns: 48px minmax(0,1fr) auto; }
}

/* ─── Кнопка «← Аскезы» на экране аскезы (по образцу практик) ─── */
.ascetic-back { margin: 0; color: #fff; }

/* ── JAN-10: категории «Исключаем/Оставляем», суть, выбор длительности ── */
.ascetic-category { margin-top: 12px; }
.ascetic-category .ascetic-category-title { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ascetic-category-red .ascetic-category-title { color: #e07856; }
.ascetic-category-blue .ascetic-category-title { color: #7ba7d4; }
.ascetic-category-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
/* Три ячейки делят ширину поровну; подписи переносятся внутри карточки. */
.ascetic-category-cells.is-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ascetic-category-cells.is-cols-3 .ascetic-cell-label,
.ascetic-category-cells.is-cols-3 .ascetic-cell-sub { white-space: normal; overflow-wrap: anywhere; }
.ascetic-cell { display: grid; gap: 6px; justify-items: center; padding: 10px 6px 8px; background: #0e1520; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; min-width: 0; }
.ascetic-cell-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.ascetic-cell-red .ascetic-cell-icon { color: #e07856; background: rgba(224,120,86,.12); }
.ascetic-cell-blue .ascetic-cell-icon { color: #7ba7d4; background: rgba(123,167,212,.12); }
.ascetic-cell-icon svg { width: 18px; height: 18px; }
.ascetic-cell-label { font-size: 10.5px; line-height: 1.25; color: rgba(255,255,255,.72); text-align: center; }
.ascetic-cell-sub { font-size: 9.5px; line-height: 1.3; color: rgba(255,255,255,.45); text-align: center; }

/* JAN-12 final: только карточки с detail становятся горизонтальным accordion 2×2. */
.ascetic-category-cells.is-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; align-items: start; }
.ascetic-cell.is-interactive { width: 100%; height: 92px; min-height: 92px; align-self: start; padding: 10px 10px 9px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; justify-items: stretch; align-items: center; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.ascetic-cell.is-interactive.ascetic-cell-red { border-left: 2px solid #e07856; }
.ascetic-cell.is-interactive.ascetic-cell-blue { border-left: 2px solid #4aa3ff; }
.ascetic-cell.is-interactive .ascetic-cell-icon { width: 42px; height: 42px; font-size: 24px; background: rgba(255,255,255,.045); }
.ascetic-cell-copy { display: grid; gap: 3px; min-width: 0; }
.ascetic-cell.is-interactive .ascetic-cell-label { font-size: 13px; line-height: 1.2; font-weight: 650; color: rgba(255,255,255,.9); text-align: left; }
.ascetic-cell.is-interactive .ascetic-cell-sub { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.58); text-align: left; }
.ascetic-cell-arrow { font-size: 20px; color: rgba(255,255,255,.58); }
.ascetic-cell-detail { grid-column: 1 / -1; display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.72); transition: max-height .2s ease, opacity .16s ease, margin-top .2s ease; }
.ascetic-cell.is-expanded { height: auto; background: #111c2b; border-color: rgba(255,255,255,.13); }
.ascetic-cell.is-expanded .ascetic-cell-detail { max-height: 240px; opacity: 1; margin-top: 2px; }

/* Метрики активной карточки «Раннего пробуждения» (JAN-11) */
.ascetic-metrics-row { display: flex; gap: 8px; margin: 10px 0 0; }
.ascetic-metric { flex: 1; min-width: 0; display: grid; gap: 3px; padding: 8px 10px; background: #0e1520; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.ascetic-metric-value { font-size: 14px; font-weight: 640; color: var(--text, #fff); }
.ascetic-metric-label { font-size: 10px; color: rgba(255,255,255,.5); }
.ascetic-metric-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; display: block; }
.ascetic-metric-bar-fill { display: block; height: 100%; width: calc(var(--ascetic-progress, 0) * 1%); background: #f39a58; border-radius: 2px; }

/* Подпись под строкой-настройкой (JAN-11) */
.ascetic-duration-row-hint { font-size: 10.5px; color: rgba(255,255,255,.45); margin-top: 1px; }

.ascetic-essence { margin-top: 12px; padding: 12px 14px; background: #101826; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.ascetic-essence .ascetic-essence-title { margin: 0 0 12px; font-size: 13px; font-weight: 620; color: #e8965a; }
.ascetic-essence-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); }

.ascetic-duration-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; background: #0e1520; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; color: inherit; font: inherit; text-align: left; }
.ascetic-duration-row-icon { font-size: 16px; }
.ascetic-duration-row-body { display: grid; gap: 2px; min-width: 0; }
.ascetic-duration-row-title { font-size: 14px; font-weight: 600; }
.ascetic-duration-row-value { font-size: 12.5px; color: rgba(255,255,255,.65); }
.ascetic-duration-row-arrow { font-size: 18px; color: rgba(255,255,255,.4); }

.ascetic-duration-picker { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; }
/* Полноэкранный sheet (правка Яна 2026-08-21): 88vh в Telegram-вьюпорте (~540px)
   оставлял сверху открытую подложку — модалка должна открываться с самого верха. */
.ascetic-duration-sheet { width: 100%; height: 100%; max-height: none; overflow-y: auto; background: #0b111b; border-radius: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
/* Компактность (JAN-10): 88vh на 844px не вмещает CTA «Подтвердить» без прокрутки — ужимаем отступы. */
.ascetic-duration-back { background: transparent; border-color: rgba(255,255,255,.12); margin-bottom: 8px; }
.ascetic-duration-title { margin: 2px 0 2px; font-size: 19px; font-weight: 640; }
.ascetic-duration-item { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.ascetic-duration-subtitle { margin: 8px 0 4px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.ascetic-duration-min { margin: 0 0 10px; font-size: 12px; color: rgba(255,255,255,.5); }
.ascetic-duration-list { display: grid; gap: 6px; }
.ascetic-duration-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 14px; background: #0e1520; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; color: inherit; font: inherit; text-align: left; }
.ascetic-duration-option.selected { border-color: #e8965a; background: rgba(232,150,90,.08); }
.ascetic-duration-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.ascetic-duration-option.selected .ascetic-duration-dot { border-color: #e8965a; background: #e8965a; }
.ascetic-duration-option.selected .ascetic-duration-dot::after { content: ''; display: block; width: 6px; height: 6px; margin: 3px auto; border-radius: 50%; background: #0b111b; }
.ascetic-duration-option-body { display: grid; gap: 1px; min-width: 0; }
.ascetic-duration-option-title { font-size: 14px; font-weight: 600; }
.ascetic-duration-option-sub { font-size: 12px; color: rgba(255,255,255,.55); }
.ascetic-duration-check { color: #e8965a; font-weight: 700; }
.ascetic-duration-how { margin-top: 10px; padding: 10px 14px; background: #0e1520; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; }
.ascetic-duration-how h3 { margin: 0 0 4px; font-size: 13px; font-weight: 620; color: rgba(255,255,255,.85); }
.ascetic-duration-how p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
.ascetic-duration-confirm { margin-top: 10px; width: 100%; }

/* ── JAN-12: «Эмоциональная тишина» — (?) экран ── */
.ascetic-cell-violet .ascetic-cell-icon { color: #a88fd4; background: rgba(168,143,212,.12); }
.ascetic-cell-green .ascetic-cell-icon { color: #7cbf8a; background: rgba(124,191,138,.12); }

.ascetic-about-btn {
  flex: none;
  width: 36px; height: 36px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
  font-size: 17px; font-weight: 640;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
}
.ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-head { grid-template-columns: 84px minmax(0,1fr) auto; gap: 14px; align-items: start; }
.ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-icon { width: 84px; height: 84px; }
.ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-head h2 { margin-top: 4px; font-size: 21px; line-height: 1.12; }
.ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-tagline { color: #f28b32; font-size: 13px; line-height: 1.35; }
.ascetic-info-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #0e1724; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ascetic-info-row-icon { font-size: 20px; }
.ascetic-info-row-text { font-size: 11.5px; line-height: 1.4; color: rgba(255,255,255,.67); }
.ascetic-info-row-arrow { font-size: 20px; color: rgba(255,255,255,.55); }
.ascetic-about-heading { margin: 4px 0 12px; font-size: 19px; font-weight: 640; }
.ascetic-about-name { margin: 0; font-size: 17px; font-weight: 640; }

/* Эмоциональная гигиена: в (?) не повторяем карточку аскезы; блоки начинаются после ясного заголовка. */
.ascetic-about-emotional-silence .ascetic-about-heading { margin: 4px 0 24px; font-size: 17px; line-height: 1.2; }
.ascetic-about-emotional-silence .ascetic-about-block:first-of-type { margin-top: 0; }
/* У каждого смыслового заголовка есть ясная пауза перед содержимым. */
.ascetic-about-emotional-silence .ascetic-about-block-title { margin-bottom: 16px; }
/* Четыре изменения — по одному в строке: текст не сжимается в узкой ячейке. */
.ascetic-about-emotional-silence .ascetic-about-changes-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ascetic-about-emotional-silence .ascetic-about-changes-grid .ascetic-cell { min-height: 72px; padding: 10px; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; row-gap: 3px; justify-items: stretch; align-items: center; text-align: left; }
.ascetic-about-emotional-silence .ascetic-about-changes-grid .ascetic-cell-icon { grid-row: 1 / span 2; width: 42px; height: 42px; font-size: 24px; background: rgba(255,255,255,.045); }
.ascetic-about-emotional-silence .ascetic-about-changes-grid .ascetic-cell-label { font-size: 13px; line-height: 1.2; font-weight: 650; color: rgba(255,255,255,.9); text-align: left; }
.ascetic-about-emotional-silence .ascetic-about-changes-grid .ascetic-cell-sub { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.58); text-align: left; }

.ascetic-about-block { margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.ascetic-about-block-title { margin: 0 0 12px; font-size: 13px; font-weight: 620; letter-spacing: .02em; }
.ascetic-about-minimalism .ascetic-about-block-title { margin-bottom: 16px; }
.ascetic-about-block-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.ascetic-about-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ascetic-about-list li { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); }

.ascetic-about-block.is-essence { background: rgba(232,150,90,.07); border-color: rgba(232,150,90,.25); }
.ascetic-about-block.is-essence .ascetic-about-block-title { color: #e8965a; }
.ascetic-about-block.is-why { background: rgba(168,143,212,.07); border-color: rgba(168,143,212,.25); }
.ascetic-about-block.is-why .ascetic-about-block-title { color: #a88fd4; }
.ascetic-about-block.is-changes { background: #101826; }
.ascetic-about-block.is-important { background: rgba(230,200,110,.07); border-color: rgba(230,200,110,.25); }
.ascetic-about-block.is-important .ascetic-about-block-title { color: #e0c86e; }
.ascetic-about-block.is-examples { background: rgba(124,191,138,.07); border-color: rgba(124,191,138,.25); }
.ascetic-about-block.is-examples .ascetic-about-block-title { color: #7cbf8a; }

.ascetic-about-example { display: grid; gap: 5px; padding: 10px 12px; background: rgba(255,255,255,.03); border-radius: 12px; }
.ascetic-about-example + .ascetic-about-example { margin-top: 8px; }
.ascetic-about-example-label { font-size: 12px; font-weight: 620; color: rgba(255,255,255,.85); }
.ascetic-about-example-bad { font-size: 13px; line-height: 1.45; color: #e07856; }
.ascetic-about-example-good { font-size: 13px; line-height: 1.45; color: #7cbf8a; }


.ascetic-intention-title { font-size: 14px; font-weight: 650; color: rgba(255,255,255,.9); }
.ascetic-intention-sub { font-size: 11.5px; color: rgba(255,255,255,.55); }

@media (max-width: 370px) {
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-head { position: relative; grid-template-columns: 68px minmax(0,1fr); gap: 10px; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-icon { width: 68px; height: 68px; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-copy { min-width: 0; padding-right: 38px; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-about-btn { position: absolute; top: 0; right: 0; }
  .ascetic-cell.is-interactive { grid-template-columns: 34px minmax(0,1fr) auto; padding-inline: 8px; }
  .ascetic-cell.is-interactive .ascetic-cell-icon { width: 34px; height: 34px; font-size: 20px; }
}

@media (max-width: 340px) {
  .nail-stat { grid-template-columns: 30px minmax(0,1fr); padding-inline: 6px; }
  .nail-stat-icon svg { width: 24px; height: 24px; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-icon { grid-column: 1; grid-row: 1; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-copy { grid-column: 2; grid-row: 1 / span 2; padding-right: 0; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-detail-head h2 { font-size: 19px; }
  .ascetic-detail[data-ascetic-key="emotional-silence"] .ascetic-about-btn { position: static; grid-column: 1; grid-row: 2; width: 32px; height: 32px; margin: 2px auto 0; }
  .ascetic-cell.is-interactive { grid-template-columns: 30px minmax(0,1fr); column-gap: 6px; padding-inline: 6px; }
  .ascetic-cell.is-interactive .ascetic-cell-icon { width: 30px; height: 30px; font-size: 18px; }
  .ascetic-cell.is-interactive .ascetic-cell-label { font-size: 11.5px; }
  .ascetic-cell.is-interactive .ascetic-cell-sub { font-size: 10.5px; }
  .ascetic-cell.is-interactive .ascetic-cell-arrow { display: none; }
}

/* ── JAN-13: «Минимализм» — трекинг отказов, тона orange/green ── */
.ascetic-category-orange .ascetic-category-title { color: #e8965a; }
.ascetic-category-orange .ascetic-cell-icon { color: #e8965a; background: rgba(232,150,90,.12); }
.ascetic-category-green .ascetic-category-title { color: #7cbf8a; }
.ascetic-category-green .ascetic-cell-icon { color: #7cbf8a; background: rgba(124,191,138,.12); }

.ascetic-refusal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--ascetic-border, #2a2a33);
  border-radius: 14px;
  background: rgba(124,191,138,.05);
}
.ascetic-refusal-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ascetic-refusal-title { font-size: 14px; font-weight: 600; color: var(--ascetic-text, #e8e8ee); }
.ascetic-refusal-sub { font-size: 12px; color: var(--ascetic-muted, #9a9aa8); }
.ascetic-refusal-count { font-size: 12px; color: #7cbf8a; }
.ascetic-refusal-saved { font-size: 12px; color: #e6c86e; }
.ascetic-refusal-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(124,191,138,.4);
  border-radius: 19px;
  background: rgba(124,191,138,.14);
  color: #b9e3c2;
  font-size: 13px;
  font-weight: 600;
}
.ascetic-refusal-btn.is-noted { border-color: #7cbf8a; background: rgba(124,191,138,.24); color: #d6f0dc; }
.ascetic-refusal-btn:disabled { opacity: .6; }

/* About-блоки JAN-13: правило 24ч (фиолет), импульсивные (оранж), польза (зелён) */
.ascetic-about-block.is-rule24 { background: rgba(168,143,212,.07); border-color: rgba(168,143,212,.25); }
.ascetic-about-block.is-rule24 .ascetic-about-block-title { color: #a88fd4; }
.ascetic-about-block.is-impulse { background: rgba(232,150,90,.07); border-color: rgba(232,150,90,.25); }
.ascetic-about-block.is-impulse .ascetic-about-block-title { color: #e8965a; }
.ascetic-about-block.is-benefits { background: rgba(124,191,138,.07); border-color: rgba(124,191,138,.25); }
.ascetic-about-block.is-benefits .ascetic-about-block-title { color: #7cbf8a; }

/* ── JAN-14: Гвоздестояние — экран практики с таймером ─────────────────── */
.nail-practice-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.nail-screen {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding-bottom: 24px;
}

.nail-screen > *,
.nail-timer-card,
.nail-audio-card,
.nail-hint-card,
.nail-calendar-card,
.nail-stats {
  min-width: 0;
  max-width: 100%;
}

.nail-head { display: flex; align-items: center; min-height: 44px; }
.nail-title { margin: 0; font-size: 20px; }

/* Две итоговые метрики идут после календаря, как в Сурья Намаскар. */
.nail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px 8px; border: 1px solid rgba(115,130,155,.19); border-radius: 21px; background: #0c1726; }
.nail-stat {
  display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 7px; padding: 3px 10px;
}
.nail-stat + .nail-stat { border-left: 1px solid rgba(255,255,255,.07); }
.nail-stat-icon { display: grid; place-items: center; color: #e8833a; }
.nail-stat-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nail-stat-copy { display: grid; gap: 3px; margin: 0; min-width: 0; }
.nail-stat-label { color: #8993a3; font-size: 10px; }
.nail-stat-value { color: #e8833a; font-size: 14px; }

/* Карточка таймера */
.nail-timer-card { display: grid; gap: 16px; }
.nail-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nail-settings-row.is-single { grid-template-columns: minmax(0, 1fr); }
.nail-selector { display: grid; gap: 6px; }
.nail-selector-label { font-size: 12px; opacity: 0.65; margin-bottom: 6px; }
.nail-selector-select {
  appearance: none; width: 100%;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--hairline, #2a2622);
  background: var(--card, #14120f); color: inherit; font-size: 13px;
}
.nail-timer-box { position: relative; width: min(260px, 72vw); margin: 0 auto; aspect-ratio: 1; }
.nail-timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nail-ring-track { fill: none; stroke: var(--hairline, #2a2622); stroke-width: 6; }
.nail-ring-progress {
  fill: none; stroke: #e8833a; stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 0.4s linear;
}
.nail-timer-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; }
.nail-clock { font-size: 40px; font-weight: 600; letter-spacing: 1px; }
.nail-play-btn {
  margin-top: 10px; width: 58px; height: 58px; border-radius: 50%;
  border: none; background: #e8833a; color: #14120f;
  font-size: 22px; cursor: pointer; display: grid; place-content: center;
}
.nail-play-btn::before { content: '▶'; }
.nail-timer-card.is-paused .nail-play-btn::before { content: '❚❚'; font-size: 16px; }
.nail-timer-card.is-running .nail-play-btn::before { content: '❚❚'; font-size: 16px; }

/* Кнопки −/+ и пресеты */
.nail-adjust-wrap { display: grid; gap: 10px; }
.nail-adjust { display: flex; justify-content: center; gap: 16px; }
.nail-adjust-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline, #2a2622); background: transparent; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.nail-adjust-btn:disabled { opacity: 0.4; }
.nail-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nail-preset-btn {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline, #2a2622); background: transparent; color: inherit;
  font-size: 13px; cursor: pointer;
}
.nail-preset-btn.is-active { border-color: #e8833a; color: #e8833a; }
.nail-preset-btn:disabled { opacity: 0.4; }
.nail-safety { margin: 0; font-size: 12px; opacity: 0.6; text-align: center; }

/* Отдельный музыкальный блок повторяет иерархию плеера Сурья Намаскар. */
.nail-audio-card { display: grid; gap: 12px; padding: 15px; }
.nail-audio-title { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 8px; }
.nail-audio-title h3 { margin: 0; font-size: 16px; }
.nail-audio-icon { display: grid; place-items: center; color: #e8833a; }
.nail-audio-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nail-audio-player { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; min-width: 0; }
.nail-audio-waveform { display: flex; grid-column: 1; min-width: 0; min-height: 48px; align-items: center; gap: 2px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nail-audio-bar { flex: 1 1 0; min-width: 1px; max-width: none; border-radius: 2px; background: #5b6371; }
.nail-audio-bar.is-active { background: #e8833a; }
.nail-audio-time { display: flex; grid-column: 1; justify-content: space-between; margin-top: -5px; color: #919aaa; font-size: 10px; font-variant-numeric: tabular-nums; }
.nail-audio-controls { display: flex; grid-column: 2; grid-row: 1 / 3; align-items: center; gap: 6px; }
.nail-audio-control { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; color: #aeb6c3; background: transparent; }
.nail-audio-control.is-primary { width: 56px; height: 56px; border: 1px solid #e8833a; border-radius: 50%; color: #e8833a; }
.nail-audio-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nail-audio-control.is-primary svg { width: 27px; height: 27px; }
.nail-audio-control:disabled { opacity: .35; }
.nail-audio-waveform:focus-visible, .nail-audio-control:focus-visible { outline: 2px solid #e8833a; outline-offset: 2px; }

@media (max-width: 420px) {
  .nail-audio-player { grid-template-columns: minmax(0,1fr); }
  .nail-audio-controls { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 8px; }
}

/* Подсказка под таймером */
.nail-hint-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.nail-hint-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center; opacity: 0.9; }
.nail-hint-icon svg { width: 26px; height: 26px; }
.nail-hint-text { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.85; }

/* Календарь месяца */
.nail-calendar-card { display: grid; gap: 12px; }
.nail-calendar-head { display: flex; align-items: center; justify-content: space-between; }
.nail-calendar-title { font-size: 15px; text-transform: capitalize; }
.nail-calendar-nav {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline, #2a2622); background: transparent; color: inherit;
  font-size: 18px; cursor: pointer;
}
.nail-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.nail-day {
  position: relative; display: grid; place-content: center; gap: 1px;
  min-height: 44px; min-width: 0; width: 100%; border-radius: 10px; padding: 4px 0;
  border: 1px solid transparent; background: transparent; color: inherit;
  font-size: 12px; cursor: pointer; text-align: center;
}
.nail-day.is-empty { visibility: hidden; }
.nail-day-num { font-size: 13px; }
.nail-day-minutes { font-size: 10px; opacity: 0.75; }
.nail-day.is-low { background: rgba(232, 131, 58, 0.16); border-color: rgba(232, 131, 58, 0.45); }
.nail-day.is-mid { background: rgba(232, 191, 58, 0.14); border-color: rgba(232, 191, 58, 0.4); }
.nail-day.is-high { background: rgba(105, 187, 97, 0.15); border-color: rgba(105, 187, 97, 0.45); }
.nail-day.is-record::after {
  content: '★'; position: absolute; top: 2px; right: 4px;
  font-size: 9px; color: #e8833a;
}
.nail-day.is-today { border-color: rgba(232, 131, 58, 0.6); }
.nail-day.is-selected { outline: 1px solid #e8833a; outline-offset: 1px; }

/* История дня */
.nail-day-details { display: grid; gap: 8px; }
.nail-day-title { font-size: 13px; }
.nail-session-row { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; }
.nail-session-start { opacity: 0.6; }
.nail-day-empty { margin: 0; font-size: 12px; opacity: 0.55; }

/* JAN-18: активная карточка «Раннее пробуждение», три автоматических состояния. */
.ascetic-early-card {
  display: grid; gap: 12px; min-width: 0; overflow: hidden; padding: 16px;
  border-color: rgba(108,130,158,.28); background: #0d1827;
}
.ascetic-early-head { display: grid; grid-template-columns: 52px minmax(0,1fr) 44px; align-items: center; gap: 11px; }
.ascetic-early-head .ascetic-card-icon { width: 52px; height: 52px; }
.ascetic-early-identity { min-width: 0; }
.ascetic-early-identity h3 { margin: 0 0 7px; font-size: 19px; line-height: 1.15; }
.ascetic-early-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ascetic-early-day, .ascetic-early-live { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border-radius: 8px; font-size: 11px; line-height: 1; }
.ascetic-early-day { border: 1px solid rgba(243,154,88,.52); color: #f0a064; }
.ascetic-early-live { gap: 6px; color: #5ddd9a; }
.ascetic-early-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ascetic-early-about { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(177,192,211,.46); border-radius: 50%; background: transparent; color: #aeb9c8; font-size: 19px; cursor: pointer; }
.ascetic-early-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(108,130,158,.26); border-radius: 14px; background: #111d2c; }
.ascetic-early-status { display: grid; min-width: 0; grid-template-columns: 58px minmax(0,1fr) minmax(190px,.9fr); align-items: center; gap: 14px; padding: 16px; }
.ascetic-early-status-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; color: #ef903d; font-size: 29px; line-height: 1; }
.ascetic-early-status-copy { display: grid; min-width: 0; gap: 3px; }
.ascetic-early-status-copy small { color: #ef974d; font-size: 11px; font-weight: 650; }
.ascetic-early-status-copy strong { color: #f29a4d; font-size: clamp(23px,7vw,34px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ascetic-early-status-copy span { color: #9ba8b9; font-size: 11px; line-height: 1.35; }
.ascetic-early-sleep { justify-self: end; min-height: 44px; padding: 0 14px; border: 1px solid #ef8c32; border-radius: 10px; background: transparent; color: #f09a4e; font-size: 12px; font-weight: 600; cursor: pointer; }
.ascetic-early-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; }
.ascetic-early-metric { display: grid; min-width: 0; gap: 5px; padding: 3px 12px; border-left: 1px solid rgba(135,151,172,.22); }
.ascetic-early-metric small { color: #93a0b1; font-size: 10px; }
.ascetic-early-metric strong { color: #edf2f8; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ascetic-early-progress { display: grid; grid-template-columns: 130px minmax(120px,1fr) minmax(190px,1.1fr); align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; border-top: 1px solid rgba(108,130,158,.22); }
.ascetic-early-progress-count { display: grid; gap: 2px; }
.ascetic-early-progress-count small { color: #98a5b6; font-size: 10px; }
.ascetic-early-progress-count strong { font-size: 15px; font-weight: 580; }
.ascetic-early-dots { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ascetic-early-dot { flex: 0 0 auto; width: 13px; height: 13px; box-sizing: border-box; border: 1.5px solid #758397; border-radius: 50%; background: transparent; }
.ascetic-early-dot.is-success { border-color: #4bd68a; background: #4bd68a; }
.ascetic-early-dot.is-late { border-color: #fa5262; background: #fa5262; }
.ascetic-early-info { color: #9ba8b9; font-size: 10.5px; line-height: 1.35; }
.ascetic-early-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ascetic-early-actions button { width: 100%; min-height: 48px; justify-self: stretch; }
.ascetic-early-card.is-success .ascetic-early-status-icon,
.ascetic-early-card.is-success .ascetic-early-status-copy small,
.ascetic-early-card.is-success .ascetic-early-status-copy strong,
.ascetic-early-card.is-success .ascetic-early-metric.is-delta strong { color: #45d287; }
.ascetic-early-card.is-late .ascetic-early-status-icon,
.ascetic-early-card.is-late .ascetic-early-status-copy small,
.ascetic-early-card.is-late .ascetic-early-status-copy strong,
.ascetic-early-card.is-late .ascetic-early-metric.is-delta strong { color: #fa5262; }
@media (max-width: 620px) {
  .ascetic-early-status { grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 13px; }
  .ascetic-early-status-icon { width: 44px; height: 44px; font-size: 24px; }
  .ascetic-early-sleep, .ascetic-early-metrics { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .ascetic-early-progress { grid-template-columns: auto minmax(0,1fr); padding: 11px 13px; }
  .ascetic-early-info { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .ascetic-early-card { padding: 13px; }
  .ascetic-early-head { grid-template-columns: 44px minmax(0,1fr) 40px; gap: 8px; }
  .ascetic-early-head .ascetic-card-icon { width: 44px; height: 44px; }
  .ascetic-early-identity h3 { font-size: 17px; }
  .ascetic-early-badges { gap: 4px; }
  .ascetic-early-day, .ascetic-early-live { padding-inline: 6px; font-size: 9.5px; }
  .ascetic-early-about { width: 40px; height: 40px; }
  .ascetic-early-metric { padding-inline: 7px; }
  .ascetic-early-metric strong { font-size: 14px; }
  .ascetic-early-progress { grid-template-columns: 106px minmax(0,1fr); gap: 8px; }
  .ascetic-early-dots { gap: 6px; }
  .ascetic-early-dot { width: 11px; height: 11px; }
  .ascetic-early-actions { gap: 7px; }
  .ascetic-early-actions button { padding-inline: 6px; font-size: 11px; }
}

/* JAN-16/17: активные timer-карточки цифровой изоляции и молчания. */
.ascetic-challenge-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(228, 148, 72, .42);
  background: #181614;
}
.ascetic-challenge-head { display: grid; grid-template-columns: 50px minmax(0,1fr) 44px; align-items: start; gap: 12px; }
.ascetic-challenge-head .ascetic-card-icon { width: 50px; height: 50px; border-radius: 50%; }
.ascetic-challenge-identity { min-width: 0; }
.ascetic-challenge-identity h3 { margin: 1px 0 8px; color: #f2c689; font-size: 19px; line-height: 1.15; }
.ascetic-challenge-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ascetic-challenge-day, .ascetic-challenge-live {
  display: inline-flex; min-height: 26px; align-items: center; padding: 4px 9px;
  border: 1px solid rgba(228,148,72,.5); border-radius: 999px; color: #e8aa68;
  font-size: 11px; line-height: 1;
}
.ascetic-challenge-live { gap: 6px; border-color: rgba(105,187,97,.42); color: #83c87b; }
.ascetic-challenge-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ascetic-challenge-about {
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(228,148,72,.32); border-radius: 50%; background: transparent;
  color: #e8aa68; font-size: 16px; cursor: pointer;
}
.ascetic-challenge-timer { display: grid; place-items: center; gap: 2px; padding: 4px 0 1px; }
.ascetic-challenge-timer strong { color: #f1b879; font-size: clamp(38px, 12vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ascetic-challenge-timer span { color: #a09890; font-size: 12px; }
.ascetic-challenge-metrics, .ascetic-challenge-range { display: flex; justify-content: space-between; gap: 12px; color: #bbb2aa; font-size: 11px; }
.ascetic-challenge-progress { position: relative; height: 6px; margin-top: 2px; border-radius: 999px; background: #3a3530; }
.ascetic-challenge-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #d9854e; }
.ascetic-challenge-progress-marker { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; border: 3px solid #181614; border-radius: 50%; background: #eb9a60; transform: translateY(-50%); }
.ascetic-challenge-range.is-detailed { align-items: center; }
.ascetic-challenge-range.is-detailed i { color: #d9854e; font-style: normal; }
.ascetic-daily-action {
  display: grid; width: 100%; min-height: 94px; grid-template-columns: 40px minmax(0,1fr) 24px;
  align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(228,148,72,.56);
  border-radius: 12px; color: inherit; background: #211d1a; text-align: left; cursor: pointer;
}
.ascetic-daily-action.is-complete { border-style: solid; border-color: rgba(105,187,97,.45); background: #182019; cursor: default; }
.ascetic-daily-check { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e49452; border-radius: 50%; color: #e49452; font-size: 0; }
.ascetic-daily-action.is-complete .ascetic-daily-check { border-color: #78bf70; color: #78bf70; font-size: 20px; }
.ascetic-daily-copy { display: grid; gap: 3px; min-width: 0; }
.ascetic-daily-copy small { color: #999087; font-size: 10px; }
.ascetic-daily-copy strong { color: #f0b571; font-size: 14px; }
.ascetic-daily-action.is-complete .ascetic-daily-copy strong { color: #82c77a; }
.ascetic-daily-copy > span { color: #aaa198; font-size: 11px; line-height: 1.35; }
.ascetic-daily-arrow { color: #8e857d; font-size: 24px; line-height: 1; }
.ascetic-challenge-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 2px; }
.ascetic-challenge-action { display: grid; align-content: start; gap: 7px; min-width: 0; text-align: center; }
.ascetic-challenge-action button { width: 100%; min-height: 46px; border-radius: 9px; font-size: 12px; }
.ascetic-challenge-action small { padding: 0 3px; color: #8f8780; font-size: 9px; line-height: 1.35; }
.ascetic-challenge-reminder {
  display: grid; min-height: 56px; grid-template-columns: 28px minmax(0,1fr) 22px; align-items: center;
  gap: 10px; padding: 11px 13px; border: 1px solid rgba(228,148,72,.2); border-radius: 9px;
  color: #aaa198; background: #1d1a18; font-size: 10px; line-height: 1.4; text-align: left; cursor: pointer;
}
.ascetic-challenge-shield { display: grid; width: 25px; height: 25px; place-items: center; color: #d98b51; font-size: 23px; }
.ascetic-history-outcome.is-early { color: #e6a160; }
@media (max-width: 360px) {
  .ascetic-challenge-card { gap: 15px; padding: 16px 14px; }
  .ascetic-challenge-head { grid-template-columns: 44px minmax(0,1fr) 40px; gap: 9px; }
  .ascetic-challenge-head .ascetic-card-icon { width: 44px; height: 44px; }
  .ascetic-challenge-identity h3 { font-size: 17px; }
  .ascetic-challenge-badges { gap: 5px; }
  .ascetic-challenge-day, .ascetic-challenge-live { padding-inline: 7px; font-size: 10px; }
  .ascetic-challenge-timer strong { font-size: 39px; }
  .ascetic-challenge-range.is-detailed { font-size: 10px; }
  .ascetic-challenge-actions { gap: 8px; }
  .ascetic-challenge-action button { padding-inline: 6px; font-size: 11px; }
}

/* JAN-19/20/21: отдельные активные карточки ежедневных аскез. */
.ascetic-feature-card {
  display: grid; gap: 14px; overflow: hidden; min-width: 0; padding: 16px;
  border-color: rgba(228,148,72,.4); background: #181614;
}
.ascetic-emotional-card, .ascetic-minimalism-card { border-color: rgba(228,148,72,.42); }
.ascetic-cold-card { border-color: rgba(91,162,211,.48); background: #14191d; }
.ascetic-feature-head { display: grid; grid-template-columns: 48px minmax(0,1fr) 42px; align-items: center; gap: 10px; min-width: 0; }
.ascetic-feature-head .ascetic-card-icon { width: 48px; height: 48px; }
.ascetic-feature-identity { display: grid; gap: 7px; min-width: 0; }
.ascetic-feature-identity h3 { overflow: hidden; color: #f2c689; font-size: 18px; line-height: 1.18; overflow-wrap: anywhere; }
.ascetic-cold-card .ascetic-feature-identity h3 { color: #9ccbe8; }
.ascetic-feature-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ascetic-feature-day, .ascetic-feature-live { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border: 1px solid rgba(228,148,72,.46); border-radius: 999px; color: #e8aa68; font-size: 10px; line-height: 1; }
.ascetic-feature-live { gap: 5px; border-color: rgba(105,187,97,.4); color: #83c87b; }
.ascetic-feature-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ascetic-cold-card .ascetic-feature-day { border-color: rgba(91,162,211,.5); color: #8dc1e2; }
.ascetic-feature-about { width: 42px; height: 42px; padding: 0; border: 1px solid rgba(228,148,72,.32); border-radius: 50%; background: transparent; color: #e8aa68; font-size: 16px; cursor: pointer; }
.ascetic-cold-card .ascetic-feature-about { border-color: rgba(91,162,211,.4); color: #8dc1e2; }
.ascetic-feature-range { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: 8px; color: #aaa198; font-size: 10.5px; line-height: 1.3; }
.ascetic-feature-range span:last-child { text-align: right; }
.ascetic-feature-daily { display: grid; width: 100%; min-height: 82px; grid-template-columns: 38px minmax(0,1fr) 22px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px dashed rgba(228,148,72,.55); border-radius: 12px; background: #211d1a; color: inherit; text-align: left; }
button.ascetic-feature-daily { cursor: pointer; }
.ascetic-feature-daily.is-complete { border-style: solid; border-color: rgba(105,187,97,.45); background: #182019; }
.ascetic-feature-check { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: #e49452; font-size: 20px; }
.is-complete .ascetic-feature-check { color: #78bf70; }
.ascetic-feature-daily-copy, .ascetic-cold-copy { display: grid; gap: 3px; min-width: 0; }
.ascetic-feature-daily-copy strong, .ascetic-cold-copy strong { color: #efb16d; font-size: 14px; }
.is-complete .ascetic-feature-daily-copy strong, .ascetic-cold-daily.is-complete .ascetic-cold-copy strong { color: #82c77a; }
.ascetic-feature-daily-copy span, .ascetic-cold-copy span { color: #aaa198; font-size: 10.5px; line-height: 1.35; }
.ascetic-feature-daily-mark { color: #a49a91; font-size: 22px; }
.ascetic-feature-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.ascetic-feature-actions button { width: 100%; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 11.5px; }
.ascetic-minimalism-refusal { grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin: 0; }
.ascetic-minimalism-refusal .ascetic-refusal-title { color: #efb16d; }
.ascetic-minimalism-refusal .ascetic-refusal-btn { min-width: 126px; }
.ascetic-feature-footer { padding-top: 2px; color: #928981; font-size: 9.5px; line-height: 1.45; }
.ascetic-cold-daily { display: grid; min-height: 86px; grid-template-columns: minmax(0,1fr) 88px 126px; align-items: end; gap: 10px; padding: 12px; border: 1px solid rgba(91,162,211,.38); border-radius: 12px; background: #182027; }
.ascetic-cold-daily.is-complete { grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; border-color: rgba(105,187,97,.42); background: #182019; }
.ascetic-cold-field { display: grid; gap: 4px; color: #9da8af; font-size: 10px; }
.ascetic-cold-field input { width: 100%; min-width: 0; height: 42px; padding: 0 9px; border: 1px solid rgba(91,162,211,.45); border-radius: 9px; background: #10171c; color: #e8f3fa; font: inherit; font-size: 14px; }
.ascetic-cold-submit { min-height: 42px; padding: 0 10px; border: 0; border-radius: 9px; background: #6aaed6; color: #0b151c; font-size: 11px; font-weight: 650; cursor: pointer; }
.ascetic-cold-actual { display: grid; justify-items: end; gap: 1px; }
.ascetic-cold-actual small, .ascetic-cold-actual span { color: #8d989f; font-size: 9px; }
.ascetic-cold-actual strong { color: #82c77a; font-size: 18px; }
.ascetic-cold-recommendation { padding: 10px 12px; border: 1px solid rgba(91,162,211,.24); border-radius: 10px; background: #171e23; color: #aab4ba; font-size: 10px; line-height: 1.45; }
.ascetic-cold-recommendation strong { color: #8dc1e2; }
@media (max-width: 360px) {
  .ascetic-feature-card { gap: 12px; padding: 13px; }
  .ascetic-feature-head { grid-template-columns: 43px minmax(0,1fr) 38px; gap: 8px; }
  .ascetic-feature-head .ascetic-card-icon { width: 43px; height: 43px; }
  .ascetic-feature-identity h3 { font-size: 16px; }
  .ascetic-feature-about { width: 38px; height: 38px; }
  .ascetic-feature-day, .ascetic-feature-live { padding-inline: 6px; font-size: 9px; }
  .ascetic-feature-range { gap: 5px; font-size: 9px; }
  .ascetic-feature-actions { gap: 7px; }
  .ascetic-feature-actions button { padding-inline: 4px; font-size: 10.5px; }
  .ascetic-minimalism-refusal { grid-template-columns: minmax(0,1fr); }
  .ascetic-minimalism-refusal .ascetic-refusal-btn { width: 100%; min-width: 0; }
  .ascetic-cold-daily { grid-template-columns: minmax(0,1fr) 76px; }
  .ascetic-cold-submit { grid-column: 1 / -1; width: 100%; }
  .ascetic-cold-daily.is-complete { grid-template-columns: 34px minmax(0,1fr) auto; }
}

/* JAN-22 — постоянная практика гвоздестояния */
.nail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trataka-page > .practice-section-header { margin-bottom: 12px; }
.nail-help-button, .nail-goals-info { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(228,148,72,.65); border-radius: 50%; background: transparent; color: #efaa64; font: 700 15px/1 inherit; cursor: pointer; }
.nail-section-label { margin: 0; color: #f3eee8; font-size: 13px; font-weight: 650; }
.nail-adjust-wrap { display: grid; gap: 12px; }
.nail-duration-minimum { margin: 0; color: #b9b1aa; font-size: 12px; line-height: 1.4; }
.nail-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.nail-preset-btn { min-width: 0; padding-inline: 4px; white-space: nowrap; }
.nail-sound-card, .nail-goals-card { display: grid; gap: 12px; }
.nail-sound-row { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(228,148,72,.28); border-radius: 14px; background: #171412; }
.nail-sound-picker { position: relative; display: grid; flex: 1; min-width: 0; grid-template-columns: 38px minmax(0,1fr) 18px; align-items: center; gap: 9px; cursor: pointer; }
.nail-sound-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(228,148,72,.45); border-radius: 50%; color: #efa55f; }
.nail-sound-icon svg { width: 18px; height: 18px; }
.nail-sound-copy { display: grid; min-width: 0; gap: 2px; }
.nail-sound-copy strong { overflow: hidden; color: #f5eee8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nail-sound-copy small { color: #978e86; font-size: 10px; }
.nail-sound-chevron { color: #9f958d; font-size: 24px; }
.nail-sound-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.nail-sound-toggle { position: relative; z-index: 2; flex: 0 0 auto; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nail-sound-toggle::before { position: absolute; top: 9px; left: 0; box-sizing: border-box; width: 44px; height: 26px; border: 1px solid #6d6259; border-radius: 999px; background: #29231f; content: ''; transition: border-color .18s ease,background .18s ease; }
.nail-sound-toggle::after { position: absolute; top: 13px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #aaa097; content: ''; transition: transform .18s ease,background .18s ease; }
.nail-sound-toggle.is-on::before { border-color: #e49452; background: #6c3d1e; }
.nail-sound-toggle.is-on::after { background: #ffad65; transform: translateX(18px); }
.nail-goals-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nail-goals-title { max-width: 250px; margin: 0; color: #f4eee8; font-size: 16px; line-height: 1.25; }
.nail-goals-info { width: 30px; height: 30px; font-size: 13px; }
.nail-goals-explanation, .nail-goal-progress { margin: 0; color: #a79c93; font-size: 11px; line-height: 1.5; }
.nail-goal-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); row-gap: 16px; padding-block: 4px; }
.nail-goal-line { z-index: 0; display: block; align-self: start; justify-self: stretch; width: auto; height: 1px; margin: 21px 10% 0; background: rgba(228,148,72,.5); pointer-events: none; }
.nail-goal-line.is-first-row { grid-column: 1 / -1; grid-row: 1; }
.nail-goal-line.is-second-row { grid-column: 1 / -1; grid-row: 2; }
.nail-goal-step { position: relative; display: grid; min-width: 0; justify-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #b16d39; cursor: pointer; }
.nail-goal-step:nth-of-type(-n+5) { grid-row: 1; }
.nail-goal-step:nth-of-type(n+6) { grid-row: 2; }
.nail-goal-step:nth-of-type(5n+1) { grid-column: 1; }
.nail-goal-step:nth-of-type(5n+2) { grid-column: 2; }
.nail-goal-step:nth-of-type(5n+3) { grid-column: 3; }
.nail-goal-step:nth-of-type(5n+4) { grid-column: 4; }
.nail-goal-step:nth-of-type(5n+5) { grid-column: 5; }
.nail-goal-circle { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d47f40; border-radius: 50%; background: #171412; color: #e79756; font-size: 14px; }
.nail-goal-label { color: #9d938a; font-size: 9px; white-space: nowrap; }
.nail-goal-step:disabled { cursor: default; }
.nail-goal-step:disabled .nail-goal-circle { border-color: rgba(212,127,64,.62); color: rgba(231,151,86,.62); }
.nail-goal-step:disabled .nail-goal-label { color: rgba(157,147,138,.62); }
.nail-goal-step.is-current .nail-goal-circle { border-color: #e98b43; background: #e98b43; color: #18120e; }
.nail-goal-step.is-complete .nail-goal-circle { border-color: #78b96f; background: #78b96f; color: #10170f; }
.nail-goal-step.is-recommended .nail-goal-circle { border-width: 2px; }
.nail-custom-goals { display: grid; gap: 7px; }
.nail-custom-goals:empty { display: none; }
.nail-custom-goals-label { color: #9e948c; font-size: 10px; }
.nail-custom-goals-row { display: flex; flex-wrap: wrap; gap: 7px; }
.nail-custom-goal-chip { min-height: 34px; padding: 0 12px; border: 1px solid rgba(228,148,72,.55); border-radius: 999px; background: #171412; color: #e9a160; font: 600 11px inherit; }
.nail-custom-goal-chip.is-current { background: #e98b43; color: #17110d; }
.nail-custom-goal-cta { width: 100%; min-height: 48px; border: 1px solid #e98b43; border-radius: 13px; background: #171412; color: #fff; font: 650 13px inherit; cursor: pointer; }
.nail-modal, .nail-help-dialog { border: 0; padding: 0; background: transparent; color: #f4eee8; }
.nail-modal::backdrop, .nail-help-dialog::backdrop { background: rgba(5,7,10,.78); }
.nail-goal-modal { inset: 0; width: min(100% - 24px,430px); max-width: 430px; max-height: min(620px,calc(100dvh - 32px)); margin: auto; border-radius: 20px; }
.nail-modal-panel { display: grid; gap: 16px; margin: 0; padding: 20px; border: 1px solid rgba(228,148,72,.32); border-radius: 20px; background: #111820; }
.nail-modal-head, .nail-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nail-modal-head h3, .nail-help-head h3 { margin: 0; font-size: 20px; }
.nail-modal-close { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: transparent; color: #eee8e2; font-size: 25px; cursor: pointer; }
.nail-modal-copy, .nail-wheel-range, .nail-modal-error { margin: 0; color: #aaa19a; font-size: 12px; line-height: 1.5; }
.nail-wheel-picker { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); align-items: end; gap: 8px; }
.nail-wheel-picker::after { display: none; }
.nail-wheel-column { display: grid; gap: 6px; text-align: center; }
.nail-wheel-column > span { color: #928981; font-size: 10px; text-transform: uppercase; }
.nail-wheel-select { width: 100%; height: 52px; min-height: 52px; padding: 0 12px; border: 1px solid rgba(228,148,72,.38); border-radius: 13px; outline: 0; appearance: none; -webkit-appearance: none; background: #10171e; background-image: none; color: #f2a45f; font: 600 18px/1 inherit; text-align: center; text-align-last: center; }
.nail-wheel-select::-ms-expand { display: none; }
.nail-wheel-select option { color: #f2a45f; background: #10171e; }
.nail-wheel-select option:checked { color: #ffad65; background: #1d232a; }
.nail-wheel-colon { display: grid; height: 52px; place-items: center; color: #e79a57; font-size: 25px; line-height: 1; }
.nail-modal-close:focus-visible,
.diary-panel[aria-labelledby="diary-tab-ascetic"]:focus-visible { outline: none; }
.nail-modal-error { min-height: 18px; color: #ef8b7f; }
.nail-modal-primary, .nail-modal-secondary { width: 100%; min-height: 48px; border-radius: 13px; font: 650 13px inherit; cursor: pointer; }
.nail-modal-primary { border: 1px solid #ee9149; background: #e98b43; color: #17110d; }
.nail-modal-secondary { border: 1px solid rgba(255,255,255,.15); background: transparent; color: #eee8e2; }
.nail-help-dialog { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; }
.nail-help-screen { box-sizing: border-box; display: grid; min-height: 100%; align-content: start; gap: 14px; padding: max(18px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); background: #0b1118; overflow-y: auto; }
.nail-help-head { position: sticky; top: 0; z-index: 2; padding-block: 4px 8px; background: #0b1118; }
.nail-help-block { display: grid; gap: 7px; padding: 14px; border: 1px solid rgba(228,148,72,.2); border-radius: 14px; background: #111820; }
.nail-help-block h4, .nail-help-block p { margin: 0; }
.nail-help-block h4 { color: #f0a25c; font-size: 14px; }
.nail-help-block p, .nail-help-list { color: #b8afa7; font-size: 12px; line-height: 1.6; }
.nail-help-list { margin: 0; padding-left: 19px; }
.nail-help-list li + li { margin-top: 7px; }
.nail-help-rich { gap: 10px; }
.nail-help-rich > p + p { margin-top: -2px; }
.nail-dhyana-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nail-dhyana-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 9px; }
.nail-dhyana-number { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(228,148,72,.38); border-radius: 50%; color: #f0a25c; background: rgba(228,148,72,.08); font-size: 12px; font-weight: 750; }
.nail-dhyana-copy { padding-top: 3px; }
.nail-dhyana-copy strong { color: #e9ddd2; }
.nail-focus-milestones { display: grid; gap: 8px; }
.nail-focus-milestone { display: grid; gap: 3px; padding: 11px 12px; border-left: 3px solid rgba(228,148,72,.72); border-radius: 0 11px 11px 0; background: rgba(228,148,72,.07); }
.nail-focus-milestone strong { color: #f3b173; font-size: 14px; font-variant-numeric: tabular-nums; }
.nail-focus-milestone p { color: #c5bbb1; }
.nail-youtube-cta { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,0,51,.55); border-radius: 14px; background: #17191d; color: #fff; font: 650 13px inherit; cursor: pointer; }
.nail-youtube-icon, .nail-youtube-icon svg { display: block; width: 28px; height: 20px; }
.nail-youtube-icon svg, .nail-youtube-icon svg * { stroke: none; }
@media (max-width: 360px) {
  .nail-presets { gap: 6px; }
  .nail-preset-btn { font-size: 10px; }
  .nail-goals-card { padding-inline: 11px; }
  .nail-goal-circle { width: 38px; height: 38px; }
  .nail-goal-line { margin-top: 19px; }
  .nail-goal-label { font-size: 8px; }
}
