:root {
    color-scheme: light;
    --bg: #f6f7f4;
    --surface: #ffffff;
    --surface-soft: #eef4f1;
    --ink: #17201c;
    --muted: #65736d;
    --line: #dce4df;
    --accent: #0f766e;
    --accent-strong: #134e4a;
    --warn: #b45309;
    --shadow: 0 18px 50px rgba(23, 32, 28, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 26px 0 20px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: 4.75rem;
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.summary,
.section-head p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.status-panel,
.metric,
.panel,
.endpoint,
.tool-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.status-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 220px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.status-panel strong,
.status-panel span {
    display: block;
}

.status-panel span {
    color: var(--muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.status-dot.warn {
    background: var(--warn);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 10px 0 18px;
}

.metric {
    padding: 16px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.metric strong {
    display: block;
    margin-top: 4px;
    font-size: 1.65rem;
}

.panel {
    margin-top: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.endpoint {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: var(--surface-soft);
}

.endpoint span {
    color: var(--accent-strong);
    font-weight: 800;
}

code {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tool-list {
    display: grid;
    gap: 10px;
}

.tool-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.tool-row span {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .topbar,
    .metrics,
    .endpoint-grid,
    .tool-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.6rem;
    }

    .status-panel {
        min-width: 0;
    }
}
