.fileget-text-counter-page {
    --tc-surface-soft: #f7f8ff;
    --tc-brand-soft: #eef0ff;
    width: 100%;
}

.fileget-text-counter-page [hidden] {
    display: none !important;
}

.fileget-text-counter-page__hero {
    margin: 0 0 30px;
}

.fileget-text-counter-page__eyebrow,
.fileget-text-counter-page__section-kicker {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.fileget-text-counter-page__hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5.2vw, 54px);
    line-height: 1.05;
}

.fileget-text-counter-page__hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.fileget-text-counter-page__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .9fr);
    gap: 20px;
    align-items: start;
}

.fileget-text-counter-page__editor,
.fileget-text-counter-page__stats {
    min-width: 0;
}

.fileget-text-counter-page__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fileget-text-counter-page__section-head h2 {
    margin: 7px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.fileget-text-counter-page__live-pill,
.fileget-text-counter-page__counter-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.fileget-text-counter-page__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand);
}

.fileget-text-counter-page__textarea {
    display: block;
    width: 100%;
    min-height: 430px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    padding: 18px 18px 20px;
    font: inherit;
    font-size: 16px;
    line-height: 1.72;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.fileget-text-counter-page__textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(91, 92, 226, .10);
}

.fileget-text-counter-page__textarea::placeholder {
    color: #98a2b3;
}

.fileget-text-counter-page__editor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 30px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.fileget-text-counter-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.fileget-text-counter-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 15px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, opacity .16s ease, background .16s ease;
}

.fileget-text-counter-page__button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #cfd5e1;
}

.fileget-text-counter-page__button--primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.fileget-text-counter-page__button--quiet {
    color: var(--muted);
}

.fileget-text-counter-page__button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fileget-text-counter-page__status {
    min-height: 21px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.fileget-text-counter-page__stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fileget-text-counter-page__stat-card,
.fileget-text-counter-page__reading-card {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    padding: 15px;
}

.fileget-text-counter-page__stat-card--hero {
    grid-column: 1 / -1;
    background: var(--tc-surface-soft);
    border-color: #e7e8ff;
}

.fileget-text-counter-page__stat-card span,
.fileget-text-counter-page__reading-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.fileget-text-counter-page__stat-card strong,
.fileget-text-counter-page__reading-card strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 27px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fileget-text-counter-page__stat-card--hero strong {
    color: var(--brand);
    font-size: 42px;
}

.fileget-text-counter-page__stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.fileget-text-counter-page__reading-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.fileget-text-counter-page__reading-card {
    background: var(--tc-surface-soft);
}

.fileget-text-counter-page__reading-card strong {
    font-size: 21px;
}

.fileget-text-counter-page__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px solid #e5e7ff;
    border-radius: 17px;
    background: var(--tc-surface-soft);
}

.fileget-text-counter-page__note-icon {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: var(--brand);
    font-weight: 900;
}

.fileget-text-counter-page__note strong {
    display: block;
    color: var(--text);
}

.fileget-text-counter-page__note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.fileget-text-counter-page__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .fileget-text-counter-page__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .fileget-text-counter-page__hero h1 {
        font-size: 36px;
    }

    .fileget-text-counter-page .panel {
        padding: 20px;
        border-radius: 21px;
    }

    .fileget-text-counter-page__textarea {
        min-height: 340px;
    }

    .fileget-text-counter-page__stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fileget-text-counter-page__reading-grid {
        grid-template-columns: 1fr;
    }
}
