.dgx-agent-center {
    display: grid;
    gap: 16px;
    color: #e5f2ff;
}

.dgx-agent-header,
.dgx-agent-list-panel,
.dgx-agent-detail {
    border: 1px solid rgba(125, 211, 252, .16);
    background: rgba(5, 10, 24, .68);
    border-radius: 16px;
    padding: 16px;
}

.dgx-agent-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.dgx-agent-header h1,
.dgx-agent-panel-head h2,
.dgx-agent-detail h2,
.dgx-agent-section h3 {
    margin: 0;
    color: #e0f2fe;
}

.dgx-agent-header p,
.dgx-agent-detail p,
.dgx-agent-card p {
    margin: 6px 0 0;
    color: #94a3b8;
    line-height: 1.45;
}

.dgx-agent-eyebrow {
    display: block;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dgx-agent-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    gap: 8px;
}

.dgx-agent-summary div,
.dgx-agent-section,
.dgx-agent-empty,
.dgx-agent-required {
    border: 1px solid rgba(125, 211, 252, .14);
    background: rgba(2, 6, 23, .48);
    border-radius: 12px;
    padding: 12px;
}

.dgx-agent-summary span,
.dgx-agent-rows dt {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.dgx-agent-summary strong {
    display: block;
    margin-top: 4px;
    color: #e0f2fe;
    font-size: 22px;
}

.dgx-agent-layout {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 16px;
    align-items: start;
}

.dgx-agent-list-panel,
.dgx-agent-detail,
.dgx-agent-sections {
    display: grid;
    gap: 12px;
}

.dgx-agent-panel-head,
.dgx-agent-detail-head,
.dgx-agent-section-head,
.dgx-agent-card-main,
.dgx-agent-card-meta,
.dgx-agent-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dgx-agent-panel-head,
.dgx-agent-detail-head,
.dgx-agent-section-head,
.dgx-agent-card-main {
    align-items: flex-start;
    justify-content: space-between;
}

.dgx-agent-search {
    display: grid;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.dgx-agent-search input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(125, 211, 252, .18);
    background: rgba(2, 6, 23, .7);
    color: #e5f2ff;
    border-radius: 12px;
    padding: 11px 12px;
}

.dgx-agent-filters button,
.dgx-agent-toggle,
.dgx-agent-link-button,
#agentRetryButton {
    border: 1px solid rgba(125, 211, 252, .24);
    background: rgba(56, 189, 248, .1);
    color: #7dd3fc;
    border-radius: 10px;
    padding: 9px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.dgx-agent-filters button.active,
.dgx-agent-toggle[aria-pressed="true"] {
    border-color: rgba(125, 211, 252, .48);
    background: rgba(56, 189, 248, .18);
    color: #e0f2fe;
}

.dgx-agent-toggle.locked,
.dgx-agent-toggle:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.dgx-agent-list {
    display: grid;
    gap: 10px;
}

.dgx-agent-card {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(125, 211, 252, .14);
    background: rgba(2, 6, 23, .5);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}

.dgx-agent-card:hover,
.dgx-agent-card:focus-visible,
.dgx-agent-card.selected {
    border-color: rgba(125, 211, 252, .48);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, .08);
    outline: none;
}

.dgx-agent-card strong {
    display: block;
    color: #e0f2fe;
}

.dgx-agent-status,
.dgx-agent-card-meta span {
    border: 1px solid rgba(125, 211, 252, .14);
    background: rgba(56, 189, 248, .08);
    color: #bae6fd;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1;
}

.dgx-agent-status[data-state="disabled"] {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(148, 163, 184, .08);
    color: #cbd5e1;
}

.dgx-agent-required {
    color: #bae6fd;
}

.dgx-agent-capabilities {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.dgx-agent-capabilities span {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #dbeafe;
    line-height: 1.35;
}

.dgx-agent-capabilities span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .14);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
}

.dgx-agent-rows {
    display: grid;
    gap: 8px;
    margin: 0;
}

.dgx-agent-rows div {
    display: grid;
    grid-template-columns: minmax(120px, .44fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.dgx-agent-rows dd {
    margin: 0;
    color: #e0f2fe;
}

.dgx-agent-empty {
    color: #94a3b8;
}

@media (max-width: 1180px) {
    .dgx-agent-header,
    .dgx-agent-layout {
        grid-template-columns: 1fr;
    }

    .dgx-agent-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dgx-agent-summary,
    .dgx-agent-rows div {
        grid-template-columns: 1fr;
    }

    .dgx-agent-header,
    .dgx-agent-list-panel,
    .dgx-agent-detail {
        padding: 14px;
    }
}
