/* Дневник веса, серия и награды, напоминания. */
.ng-habit-screen { padding-bottom: 96px; }
.ng-habit-card { position: relative; margin: 0 0 14px; padding: 18px; border: 1px solid rgba(255,255,255,.10); border-radius: 22px; background: linear-gradient(160deg, rgba(28,36,40,.96), rgba(13,21,26,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.24); }
.ng-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #fff; }
.ng-card-title i { color: var(--primary, #55e0ac); }
.ng-habit-section { margin: 22px 2px 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8fa4ab; }
.ng-habit-empty { margin: 0; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); color: #8fa4ab; font-size: 14px; line-height: 1.5; }
.ng-habit-footnote { margin: 14px 2px 0; color: #7d9096; font-size: 12px; line-height: 1.55; }
.ng-habit-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 2px; border: 0; background: none; color: var(--primary, #55e0ac); font-size: 13px; font-weight: 700; cursor: pointer; }
.ng-habit-link:hover { text-decoration: underline; }
.ng-habit-link:focus-visible, .ng-chip:focus-visible, .ng-weight-row-actions button:focus-visible { outline: 2px solid var(--primary, #55e0ac); outline-offset: 2px; }

.ng-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-chips-sub { margin-top: 8px; }
.ng-chip { min-height: 34px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.04); color: #c4d2d6; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ng-chip:hover { border-color: rgba(255,255,255,.24); }
.ng-chip.is-active { border-color: var(--primary, #55e0ac); background: rgba(85,224,172,.16); color: #fff; }

/* ---------- Серия и награды ---------- */
.ng-streak-card { --card-accent: #b7ff00; border-color: rgba(183,255,0,.42) !important; }
.ng-streak-main { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ng-streak-flame { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.05); color: #55666b; font-size: 28px; }
.ng-streak-flame.is-lit { background: radial-gradient(circle at 50% 60%, rgba(255,155,47,.35), rgba(255,121,0,.08)); color: #ff9b2f; box-shadow: 0 0 24px rgba(255,155,47,.22); }
.ng-streak-copy { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; min-width: 0; }
.ng-streak-copy strong { font-size: 40px; line-height: 1; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ng-streak-copy span { color: #dfe8ea; font-size: 15px; font-weight: 700; }
.ng-streak-copy small { grid-column: 1 / -1; margin-top: 4px; color: #8fa4ab; font-size: 12px; }
.ng-streak-status { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: #c4d2d6; font-size: 13px; line-height: 1.45; }
.ng-streak-status i { margin-top: 2px; color: #8fa4ab; }
.ng-streak-status.is-done i { color: var(--primary, #55e0ac); }
.ng-streak-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.ng-streak-day { display: grid; justify-items: center; gap: 4px; }
.ng-streak-day i { display: block; width: 100%; max-width: 34px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ng-streak-day.is-active i { background: linear-gradient(90deg, #ff9b2f, #b7ff00); }
.ng-streak-day small { color: #7d9096; font-size: 11px; text-transform: capitalize; }
.ng-streak-day.is-today small { color: #fff; font-weight: 800; }
.ng-badges-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; color: #c4d2d6; font-size: 13px; font-weight: 700; }
.ng-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ng-badges-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ng-badge { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.025); }
.ng-badge > div { min-width: 0; flex: 1; }
.ng-badge strong { display: block; color: #9fb0b5; font-size: 14px; font-weight: 800; line-height: 1.3; }
.ng-badge p { margin: 3px 0 0; color: #7d9096; font-size: 12px; line-height: 1.45; }
.ng-badge small { display: block; margin-top: 4px; color: #7d9096; font-size: 11px; }
.ng-badge-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.05); color: #55666b; font-size: 16px; }
.ng-badge.is-earned { border-color: rgba(183,255,0,.28); background: linear-gradient(150deg, rgba(183,255,0,.08), rgba(255,155,47,.04)); }
.ng-badge.is-earned strong { color: #fff; }
.ng-badge.is-earned .ng-badge-icon { background: rgba(183,255,0,.16); color: #d8ff7a; }
.ng-badge.is-earned small { color: #b9d77a; }
.ng-badge.is-compact { align-items: center; padding: 10px; }
.ng-badge.is-compact .ng-badge-icon { flex-basis: 32px; height: 32px; font-size: 14px; }
.ng-badge.is-compact strong { font-size: 13px; }
.ng-badge-track { display: block; height: 5px; margin-top: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ng-badge-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9b2f, #b7ff00); }
.ng-streak-card .ng-habit-link:last-child { margin-top: 8px; }

/* ---------- Дневник веса ---------- */
.ng-weight-add { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 40px; padding: 8px 14px; }
.ng-weight-summary { border-color: rgba(255,155,47,.42); }
.ng-weight-now { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ng-weight-now strong { font-size: 44px; font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ng-weight-now > div:first-child span { margin-left: 6px; color: #c4d2d6; font-size: 16px; font-weight: 700; }
.ng-weight-change { text-align: right; }
.ng-weight-change b { display: block; color: #dfe8ea; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ng-weight-change small { color: #8fa4ab; font-size: 12px; }
.ng-weight-change.is-good b { color: var(--primary, #55e0ac); }
.ng-weight-change.is-alert b { color: #ffb066; }
.ng-weight-updated { margin: 8px 0 0; color: #8fa4ab; font-size: 12px; }
.ng-weight-goal { margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.035); }
.ng-weight-goal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; font-size: 14px; font-weight: 800; }
.ng-weight-goal-row .ng-habit-link { min-height: 28px; padding: 2px; }
.ng-weight-goal-track { height: 8px; margin: 8px 0; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ng-weight-goal-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9b2f, #b7ff00); }
.ng-weight-goal p { margin: 0; color: #a9babf; font-size: 12px; line-height: 1.5; }
.ng-weight-goal-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 14px; border: 1px dashed rgba(183,255,0,.4); border-radius: 14px; background: rgba(183,255,0,.05); color: #d8ff7a; font-size: 14px; font-weight: 700; cursor: pointer; }
.ng-weight-pace { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: #c4d2d6; font-size: 13px; line-height: 1.45; }
.ng-weight-pace i { margin-top: 2px; color: #ff9b2f; }
.ng-weight-pace.is-warn { color: #ffcf99; }
.ng-weight-empty { display: grid; justify-items: center; gap: 10px; padding: 12px 4px; text-align: center; }
.ng-weight-empty i { color: #ff9b2f; font-size: 30px; }
.ng-weight-empty p { margin: 0; color: #c4d2d6; font-size: 14px; line-height: 1.5; }
.ng-weight-chart { min-height: 240px; margin-top: 10px; }
.ng-weight-chart .ng-habit-empty { margin-top: 20px; }
.ng-weight-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ng-weight-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.025); }
.ng-weight-row-date { flex: 0 0 64px; }
.ng-weight-row-date strong { display: block; color: #fff; font-size: 14px; }
.ng-weight-row-date small, .ng-weight-row-main small { color: #7d9096; font-size: 12px; text-transform: capitalize; }
.ng-weight-row-main { flex: 1; min-width: 0; }
.ng-weight-row-main strong { display: block; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.ng-weight-row-main small { display: block; margin-top: 2px; text-transform: none; }
.ng-weight-row-main em { margin-left: 6px; font-size: 12px; font-style: normal; font-weight: 700; color: #a9babf; }
.ng-weight-row-actions { display: flex; gap: 4px; }
.ng-weight-row-actions button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: #8fa4ab; cursor: pointer; }
.ng-weight-row-actions button:hover { background: rgba(255,255,255,.09); color: #fff; }
.ng-weight-row-actions button[data-weight-delete]:hover { color: #ff8a8a; }
.ng-weight-modal { display: grid; gap: 12px; }
.ng-weight-modal h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.ng-weight-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ng-weight-modal-head button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #c4d2d6; cursor: pointer; }
.ng-weight-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ng-weight-form label { display: grid; gap: 6px; min-width: 0; }
.ng-weight-form label:first-child { grid-column: 1 / -1; }
.ng-weight-form span { color: #a9babf; font-size: 12px; font-weight: 700; }
.ng-weight-form input { width: 100%; min-width: 0; }
.ng-weight-form-hint { margin: 0; color: #8fa4ab; font-size: 12px; line-height: 1.5; }
.ng-weight-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ng-weight-modal-actions > button { width: auto; min-height: 44px; padding: 10px 16px; }
.ng-btn-danger { border: 0; border-radius: 14px; background: #e5484d; color: #fff; font-weight: 700; cursor: pointer; }
.ng-btn-danger:hover { background: #d13438; }
.progress-weight-open { margin-top: 8px; }

/* ---------- Напоминания ---------- */
.ng-reminder-status { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.035); }
.ng-reminder-status > i { margin-top: 2px; font-size: 18px; color: #8fa4ab; }
.ng-reminder-status strong { display: block; color: #fff; font-size: 14px; }
.ng-reminder-status p { margin: 3px 0 0; color: #a9babf; font-size: 13px; line-height: 1.5; }
.ng-reminder-status.is-on { background: rgba(85,224,172,.08); }
.ng-reminder-status.is-on > i { color: var(--primary, #55e0ac); }
.ng-reminder-status.is-warn { background: rgba(255,155,47,.08); }
.ng-reminder-status.is-warn > i { color: #ff9b2f; }
[data-reminder-enable].is-attention { animation: ng-attention 1.2s ease 2; }
@keyframes ng-attention { 50% { box-shadow: 0 0 0 6px rgba(85,224,172,.25); } }
.ng-reminder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ng-reminder-actions .ng-btn-secondary { width: auto; min-height: 40px; padding: 8px 14px; }
.ng-reminder-off { min-height: 40px; padding: 8px 6px; border: 0; background: none; color: #a9babf; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ng-reminders { display: grid; gap: 8px; margin-top: 14px; }
.ng-reminder { padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.02); }
.ng-reminder.is-on { border-color: rgba(85,224,172,.22); }
.ng-reminder-head { display: flex; align-items: center; gap: 12px; }
.ng-reminder-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.05); color: #8fa4ab; }
.ng-reminder.is-on .ng-reminder-icon { background: rgba(85,224,172,.14); color: var(--primary, #55e0ac); }
.ng-reminder-copy { flex: 1; min-width: 0; }
.ng-reminder-copy strong { display: block; color: #fff; font-size: 14px; }
.ng-reminder-copy small { display: block; margin-top: 2px; color: #8fa4ab; font-size: 12px; line-height: 1.4; }
.ng-reminder-body { display: grid; gap: 10px; margin: 12px 0 0 48px; }
.ng-reminder-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #a9babf; font-size: 13px; }
.ng-reminder-line .ng-check { min-width: 86px; }
.ng-time { width: 136px !important; min-height: 40px; padding: 6px 10px !important; }
.ng-select { width: auto !important; min-height: 40px; padding: 6px 10px !important; }
.ng-days .ng-chip { min-width: 40px; padding: 6px 8px; text-transform: capitalize; }
.ng-check { display: inline-flex; align-items: center; gap: 8px; color: #dfe8ea; cursor: pointer; }
.ng-check input { width: 18px; height: 18px; accent-color: var(--primary, #55e0ac); }
.ng-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 46px; height: 28px; cursor: pointer; }
.ng-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ng-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .18s; pointer-events: none; }
.ng-switch span::after { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; content: ''; border-radius: 50%; background: #fff; transition: transform .18s; }
.ng-switch input:checked + span { background: var(--primary, #55e0ac); }
.ng-switch input:checked + span::after { transform: translateX(18px); }
.ng-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.ng-inbox { display: grid; gap: 8px; }
.ng-inbox-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; background: rgba(255,255,255,.025); }
.ng-inbox-item strong { color: #fff; font-size: 14px; }
.ng-inbox-item p { margin: 2px 0 0; color: #a9babf; font-size: 13px; line-height: 1.45; }
.ng-inbox-item small { flex: 0 0 auto; color: #7d9096; font-size: 11px; }
.ng-inbox-item.is-unread { border-color: rgba(85,224,172,.3); }

@media (max-width: 380px) {
  .ng-reminder-body { margin-left: 0; }
  .ng-weight-now strong { font-size: 38px; }
  .ng-streak-copy strong { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-switch span, .ng-switch span::after, .ng-chip { transition: none; }
  [data-reminder-enable].is-attention { animation: none; }
}
