/* ghacks Tools: word counter. Prefix gtwc-. Fixed-height result tiles, so live counts never shift the layout. */
.gtwc-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.gtwc-big { margin: 0; padding: 10px 12px; height: 74px; background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; overflow: hidden; }
.gtwc-big dt { font-size: 13px; line-height: 1.25; color: var(--gt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtwc-big dd { margin: 4px 0 0; font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--gt-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtwc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin: 0 0 6px; }
.gtwc-label { font-weight: 600; font-size: 15px; }
.gtwc-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.gtwc-link { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; font: inherit; font-size: 14px; color: var(--gt-accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gtwc-link:focus-within { outline: 3px solid var(--gt-accent); outline-offset: 2px; border-radius: 4px; }
.gtwc-file input:focus-visible { outline: 0; }
.gtwc-ta { display: block; width: 100%; height: 240px; min-height: 120px; margin: 0; padding: 12px 14px; resize: vertical; font: inherit; font-size: 16px; line-height: 1.55; color: var(--gt-ink); background: var(--gt-bg, #fff); border: 1px solid #b9bfc9; border-radius: 8px; }
.gtwc-ta::placeholder { color: var(--gt-muted); opacity: 1; }
.gtwc-ta:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 1px; }
.gtwc-ta.gtwc-drop { border-style: dashed; border-color: var(--gt-accent); background: var(--gt-field); }
.gtwc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 14px; }
.gtwc-priv { margin: 0 0 0 auto; font-size: 13px; color: var(--gt-muted); }
.gtwc-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0 16px; margin: 0 0 12px; padding: 4px 0 0; border-top: 1px solid var(--gt-line); }
.gtwc-sm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; padding: 7px 0; height: 36px; border-bottom: 1px solid var(--gt-line); font-size: 14px; }
.gtwc-sm dt { color: var(--gt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gtwc-sm dd { margin: 0; font-weight: 600; color: var(--gt-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gtwc-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.gtwc-limit label { font-weight: 600; font-size: 15px; }
.gtwc-sel { height: 44px; min-width: 0; max-width: 100%; padding: 0 10px; font: inherit; font-size: 15px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtwc-lim { margin: 0 0 12px; }
.gtwc-track { height: 10px; border-radius: 5px; background: var(--gt-line); overflow: hidden; }
.gtwc-fill { height: 100%; width: 0; background: #1e8449; transition: width .2s ease; }
.gtwc-lim[data-over="1"] .gtwc-fill { background: #c0392b; }
.gtwc-limtxt { margin: 6px 0 2px; font-size: 14px; }
.gtwc-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: #1e8449; vertical-align: -3px; }
.gtwc-lim[data-over="1"] .gtwc-icon { background: #c0392b; }
.gtwc-lim[data-over="1"] .gtwc-state { color: #b03a2e; }
.gtwc-limnote { margin: 0; font-size: 13px; color: var(--gt-muted); }
.gtwc-det { margin: 0 0 8px; border: 1px solid var(--gt-line); border-radius: 8px; }
.gtwc-det > summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.gtwc-det > summary:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; border-radius: 8px; }
.gtwc-det[open] > summary { border-bottom: 1px solid var(--gt-line); }
.gtwc-det > :not(summary) { margin-left: 14px; margin-right: 14px; }
.gtwc-det > :last-child { margin-bottom: 12px; }
.gtwc-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.gtwc-chk input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtwc-dempty { font-size: 14px; color: var(--gt-muted); }
.gtwc-dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px 16px; }
.gtwc-dt { width: 100%; border-collapse: collapse; font-size: 14px; }
.gtwc-dt caption { text-align: left; font-weight: 600; padding: 4px 0; }
.gtwc-dt th, .gtwc-dt td { padding: 4px 6px; border-top: 1px solid var(--gt-line); text-align: right; white-space: nowrap; }
.gtwc-dt th:first-child { text-align: left; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.gtwc-dt thead th { font-size: 13px; color: var(--gt-muted); font-weight: 600; border-top: 0; }
.gtwc-rate { display: grid; grid-template-columns: minmax(110px, auto) 1fr 76px auto; align-items: center; gap: 4px 10px; margin: 8px 0; font-size: 15px; }
.gtwc-rate label { font-weight: 600; }
.gtwc-range { width: 100%; height: 32px; margin: 0; accent-color: var(--gt-accent); cursor: pointer; }
.gtwc-n { width: 76px; height: 44px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--gt-ink); background: var(--gt-field); border: 1px solid var(--gt-line); border-radius: 8px; }
.gtwc-unit { font-size: 13px; color: var(--gt-muted); }
.gtwc-reset { margin: 4px 0 8px; }
.gtwc-note { font-size: 13px; line-height: 1.5; color: var(--gt-muted); }
.gtwc-flag { margin: 4px 0 0; min-height: 20px; font-size: 13px; color: var(--gt-muted); }
.gtwc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
	.gtwc-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gtwc-big { height: 64px; padding: 8px 10px; }
	.gtwc-big dd { font-size: 22px; margin-top: 2px; }
}
@media (max-width: 440px) {
	.gtwc-ta { height: 170px; }
	.gtwc-actions .gt-btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; font-size: 15px; }
	.gtwc-bar { margin-bottom: 2px; }
	.gtwc-priv { margin: 0; flex-basis: 100%; }
	.gtwc-rate { grid-template-columns: 1fr 76px; }
	.gtwc-rate label { grid-column: 1 / -1; }
	.gtwc-unit { grid-column: 1 / -1; margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) { .gtwc-fill { transition: none; } }
