/* 글자수 세기 */
[data-tool="char-counter"] .cc-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
[data-tool="char-counter"] .cc-result { margin-top: 0; position: sticky; top: 80px; }
[data-tool="char-counter"] .cc-result .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-tool="char-counter"] .cc-result .stat.main { grid-column: 1 / -1; }
[data-tool="char-counter"] .cc-result .stat.main strong { font-size: 34px; }
.cc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cc-target { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.cc-target input { width: 110px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.cc-text {
  width: 100%; min-height: 360px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: calc(var(--radius) * .7);
  background: var(--surface); font-size: 16px; line-height: 1.75; outline: none;
}
.cc-text:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cc-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 700; }
.cc-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.cc-bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s; }
.cc-progress.over .cc-bar span { background: #dc2626; }
.cc-progress.over { color: #dc2626; }
.cc-autosave { display: flex; align-items: center; gap: 6px; margin-top: 12px; cursor: pointer; }
.cc-note { margin: 12px 0 0; }
@media (max-width: 860px) {
  [data-tool="char-counter"] .cc-layout { grid-template-columns: 1fr; }
  [data-tool="char-counter"] .cc-result { position: static; }
  .cc-text { min-height: 240px; }
}
