body {
    background:
        radial-gradient(circle at 50% -10%, rgb(100 214 176 / 10%), transparent 28%),
        #050607;
    margin-bottom: 48px;
}

.deep-diagnostics-hero {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-width: 0;
}

.deep-diagnostics-title {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.deep-diagnostics-title img {
    display: block;
    flex-shrink: 0;
    height: 44px;
    width: 44px;
}

.deep-kicker {
    color: #aee8d1;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.deep-diagnostics-hero h2 {
    font-size: 28px;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

#diagnosticsSummary,
.deep-muted {
    color: #9da9a7;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.deep-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.deep-button-link {
    align-items: center;
    background: #11151a;
    border: 1px solid #2b333a;
    border-radius: 8px;
    box-sizing: border-box;
    color: #dfe8e5 !important;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    min-height: 36px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 14px;
}

.deep-button-link:hover {
    border-color: rgb(100 214 176 / 35%);
}

.deep-diagnostic-notice {
    background: #2d2307;
    border: 1px solid #6c5410;
    border-radius: 8px;
    color: #ffe6a3;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
    padding: 12px 14px;
}

.deep-diagnostic-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 16px;
}

.deep-diagnostic-card,
.deep-maintenance-grid > div {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 56%),
        #0f1317;
    border: 1px solid #232b31;
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 132px;
    min-width: 0;
    padding: 16px;
}

.deep-card-label,
.deep-maintenance-grid strong {
    color: #9da9a7;
    display: block;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.deep-diagnostic-card strong {
    color: #eef5f2;
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.deep-diagnostic-card p {
    color: #9da9a7;
    font-size: 13px;
    line-height: 1.45;
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

.deep-diagnostic-card.ok,
.deep-check.ok {
    border-color: rgb(100 214 176 / 28%);
}

.deep-diagnostic-card.warn,
.deep-check.warn {
    border-color: rgb(214 179 100 / 38%);
}

.deep-diagnostic-card.fail,
.deep-check.fail {
    border-color: rgb(255 125 134 / 36%);
}

/* At-a-glance status dot on each headline card. */
.deep-diagnostic-card {
    position: relative;
}

.deep-diagnostic-card::after {
    background: #3a444b;
    border-radius: 999px;
    content: "";
    height: 9px;
    position: absolute;
    right: 16px;
    top: 18px;
    width: 9px;
}

.deep-diagnostic-card.ok::after {
    background: #64d6b0;
    box-shadow: 0 0 0 3px rgb(100 214 176 / 16%);
}

.deep-diagnostic-card.warn::after {
    background: #d6b364;
    box-shadow: 0 0 0 3px rgb(214 179 100 / 18%);
}

.deep-diagnostic-card.fail::after {
    background: #ff7d86;
    box-shadow: 0 0 0 3px rgb(255 125 134 / 18%);
}

.deep-check-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
}

.deep-check {
    align-items: center;
    background: #0f1317;
    border: 1px solid #232b31;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 44px;
    min-width: 0;
    padding: 8px 12px;
}

.deep-check span:first-child {
    color: #dfe8e5;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.deep-check span:last-child {
    border-radius: 999px;
    color: #06100d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    text-align: center;
    white-space: normal;
}

.deep-check.ok span:last-child {
    background: #64d6b0;
}

.deep-check.warn span:last-child {
    background: #d6b364;
}

.deep-check.fail span:last-child {
    background: #ff7d86;
}

.deep-maintenance-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
}

.deep-maintenance-grid > div {
    min-height: 84px;
}

.deep-maintenance-grid span {
    color: #eef5f2;
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

:root.deep-rtl .deep-diagnostics-hero,
:root.deep-rtl .deep-diagnostics-title,
:root.deep-rtl .deep-check {
    text-align: right;
}

@media (max-width: 820px) {
    .deep-diagnostic-grid,
    .deep-maintenance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deep-diagnostics-hero {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .deep-diagnostic-grid,
    .deep-check-list,
    .deep-maintenance-grid {
        grid-template-columns: 1fr;
    }
}
