.text-cleaner-page {
    margin: 0 auto;
    max-width: 1100px;
    padding: 0.5rem 0 2rem;
}

.text-cleaner-hero { margin-bottom: 1rem; }

.text-cleaner-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.text-cleaner-hero p {
    color: #4b5563;
    margin-bottom: 0;
}

.text-cleaner-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.08);
    padding: 1rem;
}

.text-cleaner-textarea {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
}

.text-cleaner-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.text-cleaner-stat-label {
    color: #475569;
    font-weight: 600;
}

.text-cleaner-stat-value {
    font-size: 2rem;
    line-height: 1;
}

.text-cleaner-output {
    background: #0f1218;
    border: 1px solid #20252f;
    border-radius: 12px;
    color: #f7f7f8;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.65;
    min-height: 140px;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.text-cleaner-table-wrap {
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    overflow: hidden;
}

.text-cleaner-table thead th {
    background: #f1f5f9;
    border-bottom: 1px solid #dbe4ef;
    font-weight: 600;
}

.text-cleaner-table tbody tr:last-child td { border-bottom: 0; }

.text-cleaner-char-pill {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    display: inline-block;
    min-width: 2.2rem;
    padding: 0.15rem 0.45rem;
    text-align: center;
}

@media (max-width: 768px) {
    .text-cleaner-stats { gap: 1.5rem; }

    .text-cleaner-stat-value { font-size: 1.6rem; }
}