.word-character-counter { box-sizing: border-box; width: 100%; max-width: 100%; padding: clamp(16px, 3vw, 28px); color: #172033; }
.word-character-counter *, .word-character-counter *::before, .word-character-counter *::after { box-sizing: border-box; }
.word-character-counter > h2 { margin-top: 0; }
.wcc-intro { max-width: 820px; color: #536174; line-height: 1.55; }
.wcc-input-section { display: grid; gap: 9px; }
.wcc-input-label { font-weight: 700; }
.word-character-counter textarea, .word-character-counter select, .word-character-counter input[type="number"] { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #bac5d2; border-radius: 6px; background: #fff; color: #172033; font: inherit; }
.word-character-counter textarea { min-height: 270px; resize: vertical; line-height: 1.55; overflow-wrap: anywhere; }
.word-character-counter textarea:focus, .word-character-counter select:focus, .word-character-counter input:focus, .wcc-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .27); outline-offset: 2px; border-color: #2563eb; }
.wcc-text-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.wcc-character-count { color: #334155; font-size: .93rem; font-weight: 650; }
.wcc-help { margin: 0; color: #536174; font-size: .87rem; line-height: 1.5; }
.wcc-stats-section, .wcc-limit-section { margin-top: 25px; }
.wcc-stats-section h3, .wcc-limit-section h3 { margin: 0 0 12px; }
.wcc-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 0 0 12px; }
.wcc-stat-card { min-width: 0; min-height: 94px; padding: 14px; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; }
.wcc-stat-card dt { color: #536174; font-size: .84rem; line-height: 1.35; }
.wcc-stat-card dd { margin: 9px 0 0; color: #172033; font-size: 1.45rem; font-weight: 750; overflow-wrap: anywhere; }
.wcc-stat-card.is-primary { border-color: #b8c9e8; background: #f5f8ff; }
.wcc-stat-card.is-primary dd { color: #1d4ed8; font-size: 1.8rem; }
.wcc-limit-section { padding: 18px; border: 1px solid #dce3ec; border-radius: 9px; background: #fff; }
.wcc-limit-section > .wcc-help { margin-bottom: 12px; }
.wcc-limit-controls { display: grid; grid-template-columns: minmax(130px, .6fr) minmax(210px, 1fr) minmax(190px, .9fr); gap: 10px; align-items: end; }
.wcc-limit-controls > label, .wcc-custom-limit label { font-size: .88rem; font-weight: 650; }
.wcc-custom-limit { display: grid; gap: 6px; }
.wcc-custom-limit[hidden] { display: none; }
.wcc-limit-error { margin: 9px 0 0; color: #8e2118; font-size: .88rem; }
.wcc-limit-error[hidden] { display: none; }
.wcc-limit-result { margin-top: 14px; padding: 13px; border: 1px solid #dce3ec; border-radius: 7px; background: #f8fafc; }
.wcc-limit-result[hidden] { display: none; }
.wcc-limit-result p { margin: 0 0 7px; }
.wcc-limit-name { font-weight: 700; }
.wcc-limit-used { color: #536174; font-size: .9rem; }
.wcc-limit-meter { display: block; width: 100%; height: 10px; margin: 8px 0; accent-color: #25804a; }
.wcc-limit-status { font-size: .9rem; font-weight: 650; }
.wcc-limit-status.is-within { color: #245c36; }
.wcc-limit-status.is-over { color: #8e2118; }
.wcc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.wcc-button { min-height: 42px; padding: 9px 14px; border: 1px solid #c4ceda; border-radius: 7px; background: #fff; color: #172033; font: inherit; font-weight: 650; cursor: pointer; }
.wcc-button:hover { background: #f5f7fa; }
.wcc-button.wcc-primary { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.wcc-feedback { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #b8dcc4; border-radius: 6px; background: #f2fbf5; color: #245c36; }
.wcc-feedback[hidden] { display: none; }
.wcc-copy-fallback, .wcc-download-link { position: fixed; top: 0; left: -10000px; }

@media (max-width: 760px) {
	.wcc-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wcc-limit-controls { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.word-character-counter textarea { min-height: 220px; }
	.wcc-stat-card { min-height: 84px; padding: 11px; }
	.wcc-stat-card dt { font-size: .8rem; }
	.wcc-stat-card dd { font-size: 1.25rem; }
	.wcc-stat-card.is-primary dd { font-size: 1.6rem; }
	.wcc-actions { flex-direction: column; }
	.wcc-button { width: 100%; }
}
