:root {
    color-scheme: dark;
    --bg: #0f1411;
    --surface: #151c1f;
    --surface-strong: #1d272b;
    --line: #2d3b40;
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #eef6f1;
    --muted: #9db0aa;
    --accent: #72e4cf;
    --accent-strong: #d6f36a;
    --warning: #f4b860;
    --shadow: rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--accent-strong);
}

button,
input {
    font: inherit;
}

button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--accent-strong);
    color: #152018;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
button:focus-visible {
    background: #e4fb88;
}

input {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: #0d1214;
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(114, 228, 207, 0.16);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    color: #c6d6d0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

td {
    color: #edf7f3;
}

tbody tr:hover {
    background: rgba(114, 228, 207, 0.05);
}

.page-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 36px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
}

.brand:hover,
.brand:focus-visible {
    color: var(--text);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #263238;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.05rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.topnav a {
    border-radius: 6px;
    padding: 8px 12px;
    color: #d8e7e1;
    font-size: 0.92rem;
}

.topnav a[aria-current="page"],
.topnav a:hover,
.topnav a:focus-visible {
    background: var(--surface-strong);
    color: var(--accent-strong);
}

.summary-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: end;
    padding: 34px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #172023;
    box-shadow: 0 20px 70px var(--shadow);
}

.summary-band.compact {
    align-items: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 10px;
    font-size: 2.35rem;
    line-height: 1.08;
}

h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.summary-text {
    margin-bottom: 0;
    color: var(--muted);
}

.summary-text strong {
    color: var(--text);
}

.lookup-form {
    display: grid;
    gap: 8px;
}

.lookup-form label {
    color: #c3d4ce;
    font-size: 0.9rem;
    font-weight: 700;
}

.lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
    min-width: 0;
}

.metric-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface);
}

.metric-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    color: var(--accent-strong);
    font-size: 1.45rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.content-section {
    margin-top: 18px;
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.section-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface);
}

.blocks-table-wrap table {
    min-width: 980px;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.break-word {
    overflow-wrap: anywhere;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(214, 243, 106, 0.32);
    border-radius: 999px;
    padding: 3px 10px;
    background: rgba(214, 243, 106, 0.08);
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 800;
}

.empty-cell {
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .summary-band {
        grid-template-columns: 1fr;
        padding: 24px;
    }

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

@media (max-width: 640px) {
    .page-shell {
        padding: 10px 10px 32px;
    }

    .topbar,
    .section-heading,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .topnav {
        justify-content: space-between;
        width: 100%;
    }

    .topnav a {
        flex: 1;
        text-align: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    .lookup-row {
        grid-template-columns: 1fr;
    }

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

    .metric-card {
        min-height: 94px;
    }

    th,
    td {
        padding: 12px;
    }
}