.xs2h-admin-wrap {
    max-width: 1040px;
}

.xs2h-admin-wrap .xs2h-lead {
    max-width: 820px;
    margin: .5rem 0 1.25rem;
    color: #50575e;
    font-size: 1.05rem;
}

.xs2h-card {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.xs2h-card > :first-child {
    margin-top: 0;
}

.xs2h-card > :last-child {
    margin-bottom: 0;
}

.xs2h-quick-start {
    max-width: 760px;
}

.xs2h-quick-start ol {
    margin-bottom: 0;
}

.xs2h-settings-form {
    margin-top: 1.25rem;
    padding: 0 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.xs2h-save-bar {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.xs2h-save-bar-top {
    border-bottom: 1px solid #f0f0f1;
}

.xs2h-save-bar-bottom {
    border-top: 1px solid #f0f0f1;
}

.xs2h-settings-form .form-table textarea {
    min-height: 13rem;
    resize: vertical;
}

.xs2h-generator-section {
    scroll-margin-top: 3rem;
}

.xs2h-help {
    margin: 1.25rem 0;
    padding: .75rem 1rem;
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
}

.xs2h-help summary {
    cursor: pointer;
    font-weight: 600;
}

.xs2h-help dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .4rem 1rem;
}

.xs2h-help dt,
.xs2h-help dd {
    margin: 0;
}

.xs2h-generator-form {
    max-width: 820px;
}

.xs2h-gen-row {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.xs2h-gen-label {
    padding-top: .35rem;
    font-weight: 600;
}

.xs2h-gen-input select,
.xs2h-gen-input input[type="number"] {
    min-width: 12rem;
}

.xs2h-check-all {
    display: inline-block;
    margin-bottom: .6rem;
    font-weight: 600;
}

.xs2h-gen-ids-list {
    max-height: 190px;
    padding: .6rem .75rem;
    overflow-y: auto;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.xs2h-gen-ids-list label {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    margin: .2rem 0;
    overflow-wrap: anywhere;
}

.xs2h-inline-checks {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: .35rem;
}

.xs2h-gen-actions {
    margin: 1.25rem 0 1.5rem 226px;
}

.xs2h-gen-output-row {
    padding: 1rem;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 4px;
}

.xs2h-gen-output-row label {
    display: block;
    margin-bottom: .5rem;
}

.xs2h-gen-output-row textarea {
    display: block;
    width: 100%;
    margin-bottom: .6rem;
    font-family: Consolas, Monaco, monospace;
    resize: vertical;
}

.xs2h-gen-copied {
    margin-left: .5rem;
    color: #008a20;
    font-weight: 600;
}

.xs2h-empty {
    margin: 0;
    padding: .75rem;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
}

@media screen and (max-width: 782px) {
    .xs2h-card,
    .xs2h-settings-form {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .xs2h-gen-row {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .xs2h-gen-actions {
        margin-left: 0;
    }

    .xs2h-help dl {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .xs2h-help dd {
        margin-bottom: .5rem;
    }
}
