.olg-page .olg-subtitle {
    max-width: 760px;
    margin-inline: auto;
}

.olg-page .tool-card {
    height: auto;
}

.olg-card {
    border-radius: 18px;
}

.olg-card .tool-card-header {
    padding: 1rem 1.3rem 0.35rem;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 0.85rem;
    row-gap: 0.25rem;
    align-items: start;
}

.olg-card .tool-card-body {
    padding: 0.85rem 1.3rem 1.3rem;
}

.olg-card #olgForm > .mb-3:first-child {
    margin-top: -0.65rem;
}

.olg-card .tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.olg-card .tool-card-title {
    margin-top: -3px;
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    grid-column: 2;
    grid-row: 1;
}

.olg-card .tool-card-text {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    grid-column: 2;
    grid-row: 2;
}

.olg-page .form-label {
    margin-bottom: 0.38rem;
    font-weight: 600;
}

.olg-page .tool-input {
    min-height: 42px;
    border-radius: 5px;
}

.olg-output {
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    background: #fbfffb;
    padding: 1rem;
    min-height: 420px;
    color: #1f2937;
    font-size: 0.96rem;
    line-height: 1.68;
    white-space: pre-wrap;
}

.olg-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.olg-actions .btn {
    width: auto !important;
    min-width: 102px;
    min-height: 42px;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.olg-actions #olg_reset {
    background-color: #f8f9fa;
    border: 1px solid #8b98a7;
    color: #526070;
}

.olg-actions #olg_reset:hover,
.olg-actions #olg_reset:focus {
    background-color: #eef2f6;
    border-color: #748396;
    color: #3f4c5c;
}

@media (max-width: 991.98px) {
    .olg-output {
        min-height: 340px;
    }

    .olg-actions { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .olg-card .tool-card-header,
    .olg-card .tool-card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .olg-card .tool-card-title {
        font-size: 1.45rem;
    }

    .olg-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
