/* Word Counter — ink blue + highlighter yellow */
#text { font-size: 17px; min-height: 260px; background: var(--field); }
.limit { margin-bottom: 12px; font-size: 14px; }
.limit-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 550; }
.limit-top .muted { font-variant-numeric: tabular-nums; font-weight: 500; }
.bar { height: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; border-radius: 99px; transition: width .2s; }
.bar i.near { background: var(--warn); }
.bar i.over { background: var(--bad); }
.wc-panels { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-strong); gap: 32px !important; }
.keywords { list-style: none; margin: 0; padding: 0; font-size: 14.5px; counter-reset: kw; }
.keywords li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; margin-bottom: 3px; counter-increment: kw; z-index: 0; }
.keywords li::before { content: counter(kw); color: var(--muted); font-size: 12px; width: 18px; flex: none; align-self: center; }
.keywords li > em { font-style: normal; font-weight: 600; flex: 1; }
.keywords li::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in oklab, var(--accent-2) 45%, transparent); border-radius: 6px; z-index: -1; }
.keywords span { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.keywords li.muted::before, .keywords li.muted::after { display: none; }
