/* Word counter (kilaz.com/word-counter/) */
.wc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.25rem; }
.wc-stat {
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 0.6rem 0.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0;
}
.wc-num { font-size: 1.45rem; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wc-label { font-size: 0.78rem; color: var(--text-secondary); }
#wc-input { min-height: 220px; line-height: 1.5; }
.wc-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 1rem; margin-top: 0.9rem; }
.wc-limit { font-size: 0.85rem; color: var(--text-secondary); }
.wc-limit-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.wc-limit-head strong { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.wc-bar { height: 6px; border-radius: 3px; background: var(--border-color); overflow: hidden; }
.wc-bar span { display: block; height: 100%; width: 0; background: var(--accent-color); transition: width 0.15s ease; }
.wc-limit.over .wc-bar span { background: #e53935; }
.wc-limit.over .wc-limit-head strong { color: #e53935; }
.wc-buttons { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.wc-buttons .btn { padding: 0.45rem 0.8rem; font-size: 0.88rem; }
.wc-kw th { width: auto; }
.wc-kw td.num, .wc-kw th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
    .wc-stats { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
    .wc-stat { padding: 0.45rem 0.2rem; }
    .wc-num { font-size: 1.05rem; }
    .wc-label { font-size: 0.68rem; line-height: 1.2; }
}
