/* Стили раздела «Мой день» и «Привычки» (блок A) — только токенами из app.css (тест SectionCssTest). */
.day-body { display: flex; flex-direction: column; gap: 14px; }
.day-title { font-size: 16px; }
.day-food { flex-direction: row; align-items: center; gap: 16px; }
.days .chip.counted { box-shadow: inset 0 -3px 0 var(--leaf); }
.days .chip.today.counted { box-shadow: inset 0 0 0 1.5px var(--accent-text), inset 0 -3px 0 var(--leaf); }
.day-bar { height: 8px; border-radius: 4px; background: var(--sage-soft); overflow: hidden; }
.day-bar > div { height: 8px; background: var(--sage); border-radius: 4px; transition: width 0.4s ease; }
.ghost-chip { background: none; border: 1px solid var(--line); color: var(--muted); }
.day-plan { display: flex; flex-direction: column; gap: 10px; }
.day-slot { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.day-slot:last-of-type { border-bottom: 0; }
.day-slot img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--placeholder); }
.day-slot .dish-text { flex-grow: 1; }
.day-done { width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: var(--on-accent); display: flex; align-items: center;
  justify-content: center; font-weight: 800; flex-shrink: 0; }
.day-result { font-size: 14px; padding: 4px 0; }
.day-portion { font-size: 22px; font-weight: 800; color: var(--accent-text); min-width: 140px; text-align: center; }
.day-count { color: var(--accent-text); }
.day-habit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font: inherit; color: inherit;
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 0; min-height: 56px; cursor: pointer; }
.day-habit[disabled] { cursor: default; }
.day-check { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800; color: var(--on-accent); }
.day-habit[aria-pressed="true"] .day-check { background: var(--sage); border-color: var(--sage); }
.day-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px 0; }
.day-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.day-dot i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); }
.day-dot.on i { background: var(--sage); border-color: var(--sage); }
.day-dot.today span { color: var(--accent-text); font-weight: 700; }
.day-badge { opacity: 0.7; }
.day-badge.got { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--leaf); }
.day-badge-state { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.day-missed { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.day-target { align-items: center; }
.day-target input { max-width: 140px; }
@media (prefers-reduced-motion: reduce) { .day-bar > div { transition: none; } }
/* Челленджи (Obsidian 28) */
.ch-card { gap: 10px; }
.ch-head { display: flex; align-items: center; gap: 12px; }
.ch-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; }
.ch-ico svg { width: 26px; height: 26px; stroke: var(--accent-text); }
.ch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-count { font-size: 18px; color: var(--accent-text); }
.ch-card .btn.small { align-self: flex-start; }
/* «Мой день» строками, как в макете IMG_8285 (экран 9) */
.dr-list { padding: 4px 14px; gap: 0; }
.dr { border-bottom: 1px solid var(--line); }
.dr:last-child { border-bottom: 0; }
.dr-line { display: flex; align-items: center; gap: 8px; }
.dr-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font: inherit; color: inherit; text-align: left; background: none; border: 0;
  padding: 14px 0; cursor: pointer; }
.dr-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dr-ico svg { width: 26px; height: 26px; }
.t-food { background: var(--t-food); } .t-food svg { stroke: var(--t-food-ink); }
.t-water { background: var(--t-water); } .t-water svg { stroke: var(--t-water-ink); }
.t-move { background: var(--t-move); } .t-move svg { stroke: var(--t-move-ink); }
.t-sweet { background: var(--t-sweet); } .t-sweet svg { stroke: var(--t-sweet-ink); }
.t-weight { background: var(--t-weight); } .t-weight svg { stroke: var(--t-weight-ink); }
.dr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dr-txt b { font-size: 16px; }
.dr-val { font-size: 14px; color: var(--soft); }
.dr-val.ok { color: var(--accent-text); font-weight: 700; }
.dr-txt .day-bar { height: 6px; margin-top: 2px; }
.dr-go { font-size: 22px; color: var(--muted); transition: transform 0.2s ease; }
.dr.open .dr-go { transform: rotate(90deg); }
.dr-quick { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--t-water); color: var(--t-water-ink); font: inherit;
  font-size: 22px; font-weight: 800; cursor: pointer; }
.dr-more { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px 60px; }
.dr-more[hidden] { display: none; }
.dr-more .day-food { display: flex; align-items: center; gap: 12px; }
.dr-more .ring-box { width: 104px; height: 104px; flex: none; }
.dr-more .ring-text b { font-size: 22px; }
.dr-more .ring-text span { font-size: 10px; }
.dr-more .chip { align-self: flex-start; }
.row-link > span.dr-line-txt { flex-direction: row; align-items: center; gap: 12px; }
.dr-line-txt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 360px) { .dr-more { padding-left: 0; } }
