.page-tool .text-tools-card.converter-card-fill {
    height: min(44rem, calc(100dvh - 9.5rem));
}

@media (width >= 40rem) {
    .page-tool .text-tools-card.converter-card-fill {
        height: min(46rem, calc(100dvh - 9rem));
    }
}

.text-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.5rem;
    flex-shrink: 0;
}

.text-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-muted);
}

.text-stat-card--primary {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-muted));
}

.text-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.text-stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-primary);
    word-break: break-all;
}

.text-tools-result {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    overflow: auto;
}

.text-find-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.text-find-fields .tool-option-input {
    width: 100%;
}

.text-toolkit-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.text-toolkit-hint {
    margin: 0;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}
