:root {
    color-scheme: dark;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: #070b12;
    color: #eef3fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #122033 0, #070b12 48%);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(620px, 100%);
    padding: 32px;
    border: 1px solid #25344a;
    border-radius: 18px;
    background: rgba(10, 16, 27, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    margin: 0 0 10px;
    color: #8ba5c9;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.25rem);
    letter-spacing: -0.04em;
}

.summary {
    margin: 14px 0 24px;
    color: #afbdd0;
    line-height: 1.6;
}

.hidden {
    display: none;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-ok {
    border: 1px solid #215b46;
    background: #0d2d22;
    color: #8ee4bd;
}

.status-warn {
    border: 1px solid #72571c;
    background: #2b210b;
    color: #f3ce72;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.facts div {
    padding: 14px;
    border: 1px solid #202e42;
    border-radius: 12px;
    background: #0b121e;
}

dt {
    color: #7f91aa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

dd {
    margin: 6px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #3d6fa9;
    border-radius: 10px;
    background: #1f5f9d;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-secondary {
    border-color: #34455f;
    background: #111b2a;
}

@media (max-width: 560px) {
    .card {
        padding: 24px;
    }

    .facts {
        grid-template-columns: 1fr;
    }
}

.shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.replay-card {
    margin-top: 18px;
}

.replay-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.replay-heading h2 {
    margin: 0;
}

.replay-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

.replay-table {
    width: 100%;
    border-collapse: collapse;
}

.replay-table th,
.replay-table td {
    padding: 12px;
    border-bottom: 1px solid #202e42;
    text-align: left;
    vertical-align: top;
}

.replay-table th {
    color: #7f91aa;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.replay-link {
    border: 0;
    background: none;
    color: #8fc7ff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.replay-detail {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #25344a;
}

.signal-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #202e42;
    border-radius: 12px;
    background: #0b121e;
}

@media (max-width: 560px) {
    .replay-heading {
        flex-direction: column;
    }
}

.research-facts {
    margin-top: 20px;
}

.gate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gate-item {
    padding: 12px;
    border: 1px solid #202e42;
    border-radius: 10px;
    background: #0b121e;
}

.gate-pass {
    color: #8ee4bd;
}

.gate-fail {
    color: #f3ce72;
}

@media (max-width: 560px) {
    .gate-grid {
        grid-template-columns: 1fr;
    }
}

.model-release-note {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #202e42;
    border-radius: 10px;
    background: #0b121e;
    color: #afbdd0;
}

.shadow-latency-good { color: #9fe5c1; }
.shadow-latency-warn { color: #ffd69a; }
