.text-cleanup-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.text-cleanup-top-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.text-cleanup-top-bar a {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    text-decoration: underline;
}

.text-cleanup-top-bar a:hover {
    color: #000;
}

.text-cleanup-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.text-cleanup-section {
    border: 2px solid black;
    box-shadow: 2px 2px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-cleanup-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.text-cleanup-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-cleanup-option {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.text-cleanup-option input[type="checkbox"] {
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.text-cleanup-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.text-cleanup-buttons button {
    box-shadow: 3px 3px;
}

.text-cleanup-count {
    font-size: 13px;
    color: #555;
}

.text-cleanup-output-controls {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.text-cleanup-output-controls button {
    font-size: 14px;
    padding: 5px 7px;
    box-shadow: 1px 1px;
}

@media (max-width: 768px) {
    .text-cleanup-sections {
        grid-template-columns: 1fr;
    }

    .text-cleanup-output-controls {
        justify-content: flex-start;
    }
}
