.ops-loading-card {
    display: grid;
    place-items: center;
    gap: 16px;
    min-height: 360px;
}

.ops-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    align-items: stretch;
    gap: clamp(18px, 3vw, 34px);
    min-height: 220px;
    padding-bottom: 24px;
}

.ops-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--ops-accent-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.ops-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--ops-text);
    font-size: clamp(26px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.ops-hero p {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--ops-muted);
    font-size: 15px;
    line-height: 1.42;
}

.ops-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.ops-link-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ops-accent-soft);
    color: var(--ops-accent-text);
    font-size: 13px;
    font-weight: 600;
}

.ops-hero-card,
.signal-card,
.agent-card,
.ops-panel {
    border: 1px solid var(--ops-border);
    border-radius: var(--ops-radius-card);
    background: var(--ops-card);
    box-shadow: var(--ops-shadow);
}

.ops-hero-card {
    min-height: 220px;
    padding: 20px;
    overflow: hidden;
}

.ops-device-tile {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #063160;
    background: linear-gradient(180deg, #d7ecff 0%, #a9d7ff 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.12);
}

.ops-hero-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 16px;
}

.ops-hero-card dt,
.ops-hero-card > span {
    color: var(--ops-muted);
    font-size: 12px;
    font-weight: 500;
}

.ops-hero-card dd {
    margin: 5px 0 0;
    color: var(--ops-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.ops-shelf {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--ops-border);
}

/* A shelf separates sibling sections. As the first block of a page or tab
   panel it has nothing to separate, so it must not add a stray rule and gap. */
.ops-shelf:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ops-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ops-section-title h1,
.ops-section-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
}

.ops-section-title span,
.ops-section-title a {
    color: var(--ops-muted);
    font-size: 13px;
    font-weight: 400;
}

.ops-section-title.compact h1,
.ops-section-title.compact h2 {
    font-size: 17px;
}

.ops-page-surface {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ops-section-title.ops-page-header {
    align-items: flex-end;
    margin-bottom: 22px;
}

.ops-section-title.ops-page-header > div {
    display: grid;
    gap: 5px;
}

.ops-section-title.ops-page-header .ops-eyebrow {
    margin: 0;
    color: var(--ops-accent-text);
    font-size: 12px;
    font-weight: 600;
}

.ops-section-title.ops-page-header h1 {
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ops-section-title.ops-page-header p {
    max-width: 650px;
    margin: 0;
    color: var(--ops-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .ops-section-title.ops-page-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.signal-card {
    min-height: 118px;
    padding: 16px;
    color: #101012;
}

.signal-card span,
.signal-card small {
    display: block;
}

.signal-card span {
    color: #2d3135;
    font-size: 12px;
    font-weight: 500;
}

.signal-card strong {
    display: block;
    margin-top: 16px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    overflow-wrap: anywhere;
}

.signal-card small {
    margin-top: 8px;
    color: #2d3135;
    font-weight: 400;
}

.tone-good {
    background: linear-gradient(180deg, #dff8e7 0%, #b7f0cc 100%);
}

.tone-accent {
    background: linear-gradient(180deg, #e4f2ff 0%, #acd9ff 100%);
}

.tone-neutral {
    background: linear-gradient(180deg, #eee9ff 0%, #d7ccff 100%);
}

.tone-warning {
    background: linear-gradient(180deg, #fff0ea 0%, #ffd6c7 100%);
}

.agent-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.agent-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 268px;
    padding: 12px;
}

.agent-art {
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #111;
    background: linear-gradient(180deg, #ffe5f2 0%, #f3c2dd 100%);
}

.agent-card:nth-child(2) .agent-art {
    background: linear-gradient(180deg, #e9f7ff 0%, #c4e8ff 100%);
}

.agent-card:nth-child(3) .agent-art {
    background: linear-gradient(180deg, #e9fae6 0%, #ccefc7 100%);
}

.agent-card:nth-child(4) .agent-art {
    background: linear-gradient(180deg, #fff2df 0%, #ffdfb4 100%);
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.evaluation-card {
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 14px;
    border: 1px solid var(--ops-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ops-shadow);
}

.evaluation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.evaluation-head span,
.evaluation-card small {
    color: var(--ops-muted);
    font-size: 12px;
    font-weight: 500;
}

.evaluation-head h2 {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.12;
}

.evaluation-card p {
    margin: 0;
    color: var(--ops-muted);
    font-size: 13px;
    line-height: 1.36;
    overflow-wrap: anywhere;
}

.agent-copy span,
.agent-card small,
.agent-meta span {
    color: var(--ops-muted);
    font-size: 12px;
    font-weight: 500;
}

.agent-copy h2 {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
}

.agent-copy p {
    margin: 0;
    color: var(--ops-muted);
    font-size: 13px;
    font-weight: 400;
}

.agent-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
    margin-top: 30px;
}

.ops-panel {
    padding: 16px;
}
