.sg-cat .sg-tablehead-expand,
.sg-cat .sg-row-main {
    grid-template-columns: minmax(0, 2.8fr) 0.7fr 0.9fr 0.8fr 1.3fr 1fr 1fr minmax(112px, 1.2fr);
}

.sg-cat .sg-tablehead-expand {
    align-items: end;
}

.sg-cat .sg-row-grid-cell {
    font-size: 13px;
    color: var(--color-text-muted);
}

.sg-cat .sg-row-grid-val {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.sg-cat .sg-row-meta {
    display: flex;
    flex-direction: column;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.sg-cat .sg-row-prov,
.sg-cat .sg-row-capt {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-cat .sg-row-name-wrap {
    position: relative;
}

.sg-cat .sg-row-chips-preview {
    position: relative;
}

.sg-cat .emb-pop-wrap .js-copy-embed {
    padding-right: 34px;
}

@media (min-width: 1041px) {
    .sg-cat .sg-row-actions {
        align-items: stretch;
    }

    .sg-cat .sg-row-actions .sg-ab {
        justify-content: center;
    }

    .sg-cat .sg-row-actions .emb-pop-wrap .js-copy-embed {
        width: 100%;
    }

    .sg-cat .sg-row-detail-link {
        align-self: flex-end;
    }
}

.sg-cat .emb-help-btn {
    top: 50%;
    right: 7px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.sg-cat .emb-help-btn::before {
    inset: -4px;
}

.sg-xapi-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.sg-xapi-card {
    min-width: 0;
}

.sg-xapi-card-title,
.sg-xapi-fields,
.sg-xapi-ep-path,
.sg-xapi-ep-desc,
.sg-xapi-note {
    overflow-wrap: anywhere;
}

.sg-xapi .sg-xapi-desc {
    margin: 14px 0 28px;
}

.sg-capband .sg-capband-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-top: 18px;
    margin-top: 24px;
}

.sg-capband .sg-capband-foot span {
    white-space: nowrap;
}

.sg-capband-sep {
    margin: 0;
}

@media (max-width: 1040px) {
    .sg-cat .sg-row-meta {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .sg-cat .sg-row-capt {
        flex: none;
    }

    .sg-cat .sg-row-capt::before {
        content: "\00b7";
        margin: 0 6px;
    }

    .sg-cat .sg-row-prov {
        flex: 0 1 auto;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .sg-cat .sg-row-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px 10px;
    }

    .sg-cat .sg-row-rtp,
    .sg-cat .sg-vol,
    .sg-cat .sg-row-maxwin,
    .sg-cat .sg-row-demand {
        grid-column: span 1;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 22px;
        column-gap: 3px;
        row-gap: 3px;
        align-items: center;
        align-content: start;
    }

    .sg-cat .sg-cell-lbl {
        grid-column: 1 / -1;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .sg-cat .sg-vol .sg-vol-meter {
        grid-column: 1;
    }

    .sg-cat .sg-vol .sg-vol-word {
        grid-column: 2;
        margin-left: 6px;
    }

    .sg-cat .sg-maxwin-x {
        grid-column: 2;
        justify-self: start;
        white-space: nowrap;
    }

    .sg-cat .sg-mw-val {
        white-space: nowrap;
    }

    .sg-cat .sg-row-grid-cell,
    .sg-cat .sg-row-chips-preview,
    .sg-cat .sg-row-actions {
        order: 2;
    }

    .sg-cat .sg-ab-demo {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .sg-cat .sg-row-name::after,
    .sg-cat .sg-tag::after {
        content: "";
        position: absolute;
        inset: -12px 0;
    }

    .sg-cat .sg-tag {
        position: relative;
    }

    .sg-cat .sg-expand-tags {
        position: relative;
        gap: 8px;
    }

    .sg-cat .sg-row-chips-preview {
        gap: 8px;
    }

    .sg-cat .emb-help-btn::before {
        content: none;
    }

    .sg-cat .emb-help-btn::after {
        content: "";
        position: absolute;
        top: -13px;
        bottom: -13px;
        left: -13px;
        right: -13px;
    }

    .sg-cat .emb-pop-wrap {
        flex: 1 1 auto;
    }

    .sg-cat .emb-pop-wrap .js-copy-embed {
        width: 100%;
    }

    .sg-cat .sg-capt-detail-link,
    .sg-trust a,
    .sg-xapi-cta,
    .sg-xapi-gh-link,
    .sg-wrap .pd-ai__docs-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .sg-wrap .mcp-copy {
        min-height: 44px;
    }

    .sg-btn,
    .sg-preset-chip,
    .sg-search-input,
    .sg-sort-select,
    .sg-pg-btn {
        min-height: 44px;
    }

    .sg-pager {
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
    }

    .sg-pg {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
    }

    .sg-pg-btn,
    .sg-pg-ellipsis {
        min-width: 44px;
        padding: 0 6px;
    }

    .sg-pg-word {
        display: none;
    }

    .sg-xapi-head,
    .sg-mcp-head {
        gap: var(--space-3);
    }

    .sg-xapi-title-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .sg-pg-ellipsis {
        display: none;
    }
}

@media (max-width: 640px) {
    .sg-trust-sep {
        display: none;
    }

    .sg-trust {
        row-gap: 6px;
    }
}
