/* Подсчёт символов: плитки и списки — как в HTML-редакторе (классы he-). */
.cc { display: flex; flex-direction: column; gap: var(--s-sm); }
.cc-text { min-height: 220px; font-size: 1rem; line-height: 1.55; }
.he-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.he-metric { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.he-metric b { font-family: var(--font-mono); font-size: 1.15rem; color: var(--text); overflow-wrap: anywhere; }
.he-metric span { font-size: .78rem; color: var(--text-muted); }
.he-metric.is-bad b { color: var(--amber); }
.cc-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-sm); }
@media (min-width: 980px) { .cc-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.cc-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-sm); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-h { font-size: 1rem; margin: 0; }
.cc-sub { margin: 4px 0 0; }
.he-limits { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; padding: 0; margin: 0; }
.he-limits li { padding: 6px 10px 6px 28px; border-radius: var(--r-sm); position: relative; color: var(--text-read); overflow-wrap: anywhere; }
.he-limits li::before { position: absolute; left: 10px; font-weight: 800; }
.he-limits li.is-ok::before { content: "✓"; color: var(--green); }
.he-limits li.is-bad { background: rgba(245,158,11,.08); } .he-limits li.is-bad::before { content: "!"; color: var(--amber); }
.he-top { display: flex; flex-direction: column; gap: 3px; font-size: .88rem; color: var(--text-read); padding-left: 1.3em; margin: 0; }
.he-top li.is-bad { color: var(--amber); }
.he-top .he-empty { list-style: none; color: var(--text-muted); margin-left: -1.3em; }
