:root {
    color-scheme: light;
    --bg: #f4f7f6;
    --panel: #ffffff;
    --text: #1d2527;
    --muted: #667174;
    --line: #dbe4e2;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --danger: #b42318;
    --success: #067647;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 40px;
    background: #102a2d;
    color: #fff;
}

.topbar h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.topbar p {
    margin: 0;
    color: #c9d7d5;
}

.api-link,
button {
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
    font-weight: 700;
}

button:hover,
.api-link:hover {
    background: var(--accent-dark);
}

button.secondary {
    background: #eef5f4;
    color: var(--accent-dark);
}

.layout {
    display: grid;
    gap: 20px;
    max-width: 1180px;
    margin: 24px auto 48px;
    padding: 0 20px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

input {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
}

.form-grid button {
    align-self: end;
}

.notice {
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.notice.success {
    background: #ecfdf3;
    color: var(--success);
}

.notice.error {
    background: #fef3f2;
    color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.muted {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.badge {
    background: #eef5f4;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
    padding: 3px 8px;
}

.inline-form {
    margin: 0;
}

.empty {
    color: var(--muted);
    text-align: center;
}

.details dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 18px;
}

.details dt {
    color: var(--muted);
    font-weight: 700;
}

.details dd {
    margin: 0;
}

pre {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.json {
    max-height: 460px;
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

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

    .details dl {
        grid-template-columns: 1fr;
    }
}
