.utility-tool-page {
    max-width: 1100px;
    color: #263247;
}

.utility-tool-header {
    margin: 0 0 18px;
}

    .utility-tool-header h1 {
        margin: 0 0 8px;
        color: #253b70;
        font-size: clamp(1.7rem, 3vw, 2.25rem);
        font-weight: 750;
    }

    .utility-tool-header p {
        max-width: 850px;
        margin: 0;
        color: #5b6475;
        line-height: 1.65;
    }

.utility-tool-card {
    background: #fff;
    border: 1px solid #dbe2ee;
    border-radius: 14px;
    padding: clamp(16px, 3vw, 26px);
    box-shadow: 0 8px 24px rgba(24, 39, 75, .06);
}

.ut-code-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 190px;
    max-height: 70vh;
    resize: vertical;
    overflow-y: hidden;
    white-space: pre;
    overflow-wrap: normal;
    tab-size: 2;
    font-family: Consolas, "Courier New", monospace;
    font-size: .92rem;
    line-height: 1.55;
    padding: 12px;
    color: #202b3c;
    background: #fbfcff;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
}

    .ut-code-input:focus {
        background: #fff;
        border-color: #8299d8;
        box-shadow: 0 0 0 3px rgba(65, 105, 207, .12);
        outline: none;
    }

    .ut-code-input[readonly] {
        background: #f7f9fd;
    }

.ut-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ut-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f2f5fb;
    color: #344054;
    min-height: 42px;
    overflow-wrap: anywhere;
}

    .ut-status.is-success {
        background: #e9f8ee;
        color: #176536;
    }

    .ut-status.is-error {
        background: #fff0f0;
        color: #9b1c1c;
    }

.utility-privacy-note {
    margin: 12px 2px 0;
    font-size: .85rem;
    color: #667085;
}

.ut-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ut-check-list {
    display: grid;
    gap: 10px;
    align-content: start;
}

    .ut-check-list label {
        display: flex;
        align-items: center;
        gap: 9px;
    }

.ut-password-output {
    min-height: 54px;
    font: 600 1.05rem Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
}

.ut-result-panel {
    padding: 18px;
    border: 1px solid #dbe2ee;
    border-radius: 10px;
    background: #f7f9fd;
}

.ut-conversion-result {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 750;
    color: #253b70;
    overflow-wrap: anywhere;
}

.ut-muted {
    color: #667085;
    font-size: .9rem;
}

.ut-seo-content {
    line-height: 1.7;
    color: #344054;
}

    .ut-seo-content h2 {
        margin: 22px 0 8px;
        color: #253b70;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .ut-seo-content h3 {
        margin: 16px 0 5px;
        color: #263e68;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .ut-seo-content p, .ut-seo-content ul, .ut-seo-content ol {
        margin-bottom: 10px;
    }

    .ut-seo-content a {
        color: #2d55a1;
        text-underline-offset: 2px;
    }

@media (max-width: 640px) {
    .ut-field-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ut-button-row > button {
        flex: 1 1 auto;
    }

    .ut-code-input {
        min-height: 160px;
        max-height: 65vh;
        font-size: .85rem;
        padding: 10px;
    }
}
/* SQL Formatter input */
#utSqlInput.ut-sql-textarea {
    display: block;
    width: 100%;
    min-height: 320px;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    white-space: pre;
    overflow: auto;
    tab-size: 2;
    box-sizing: border-box;
}

    #utSqlInput.ut-sql-textarea:focus {
        outline: none;
        border-color: #2e8b57;
        box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.14);
    }

    #utSqlInput.ut-sql-textarea::placeholder {
        color: #9ca3af;
        opacity: 1;
    }

@media (max-width: 576px) {
    #utSqlInput.ut-sql-textarea {
        min-height: 240px;
        padding: 12px;
        font-size: 13px;
    }
}
