.command-surface-head {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.command-surface-head h4 {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.command-surface .surface-badge {
    flex-shrink: 0;
}

.command-surface .table-wrap {
    overflow: visible;
    margin-top: 14px;
}

.command-surface table {
    min-width: 0;
    table-layout: fixed;
}

.command-surface td,
.command-surface th {
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.command-surface td:first-child,
.command-surface th:first-child {
    width: 38%;
    white-space: nowrap;
}

.command-surface td:last-child,
.command-surface th:last-child {
    width: 62%;
}

.command-surface td code {
    display: inline-flex;
    max-width: 100%;
}

@media (max-width: 1080px) {
    .command-surface .table-wrap {
        overflow: auto;
    }

    .command-surface table {
        min-width: 560px;
    }
}

.command-surface {
    align-content: start;
}

.command-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.command-row {
    display: grid;
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.command-row:last-child {
    border-bottom: 0;
}

.command-row code {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    white-space: nowrap;
}

.command-row p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.command-surface .command-note {
    margin-top: 14px;
    padding-left: 0;
}

@media (max-width: 1240px) {
    .command-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.command-extra {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.command-extra-label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.command-extra-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.command-extra-chips code {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.command-extra .command-note {
    margin-top: 0;
}
