:root {
    color-scheme: light dark;
    --canvas: #f2f4f7;
    --surface: #fff;
    --text: #192435;
    --muted: #536178;
    --line: #cbd3df;
    --accent: #234fbb;
    --accent-text: #fff;
    --danger: #a42332;
    --notice: #e9effc;
    font:
        100%/1.6 system-ui,
        sans-serif;
}
* {
    box-sizing: border-box;
    border-radius: 0;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
}
a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}
a:hover {
    text-decoration-thickness: 2px;
}
button,
input {
    font: inherit;
}
button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere;
    cursor: pointer;
    text-decoration: none;
}
button:hover,
.button-link:hover {
    border-color: var(--accent);
}
button.primary {
    color: var(--accent-text);
    background: var(--accent);
    border-color: var(--accent);
}
button.danger {
    color: var(--danger);
}
button.quiet {
    background: transparent;
}
button:disabled {
    cursor: wait;
    opacity: 0.6;
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.shell {
    width: min(1100px, calc(100% - 3rem));
    margin: 0 auto;
}
.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 92px;
    padding: 1rem 0;
}
.brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    max-width: 100%;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}
.brand small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: 0.8rem;
}
.brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--accent-text);
    background: var(--accent);
    font-size: 0.85rem;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.header-content nav {
    flex: 1;
}
nav a {
    color: var(--muted);
    padding: 0.55rem 0;
    text-decoration: none;
}
nav a[aria-current='page'] {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    font-weight: 650;
}
main {
    padding: 2.5rem 0 4rem;
}
h1,
h2,
h3 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}
h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.15rem;
}
h3 {
    font-size: 1rem;
}
p {
    margin: 0.75rem 0;
}
.page-heading {
    margin-bottom: 2rem;
}
.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 650;
}
.intro,
.muted {
    color: var(--muted);
}
.muted {
    font-size: 0.9rem;
}
.panel,
.message-card,
.credential-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
}
.panel {
    margin-bottom: 1.5rem;
}
.auth-card {
    max-width: 34rem;
    margin: 0 auto;
    padding: 2rem;
}
.auth-card .primary {
    width: 100%;
    margin: 1rem 0;
}
label {
    display: block;
    font-weight: 600;
    margin-top: 1.5rem;
}
input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem;
    color: var(--text);
    background: var(--canvas);
    border: 1px solid var(--muted);
    margin-top: 0.5rem;
}
.section-heading,
.posting-panel,
.credential-card,
.message-card header,
.message-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.section-heading {
    margin-bottom: 1.25rem;
}
.posting-panel p {
    margin-bottom: 0;
}
.tabs {
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}
.message-card {
    margin-bottom: 1rem;
}
.message-card .message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
    margin: 1.5rem 0;
}
.message-card footer {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}
.badge {
    display: inline-block;
    color: var(--accent);
    background: var(--notice);
    font-size: 0.75rem;
    font-weight: 650;
    padding: 0.2rem 0.55rem;
    vertical-align: middle;
    letter-spacing: 0;
}
.credential-card {
    margin-top: 1rem;
}
.credential-card > div {
    min-width: 0;
}
code {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    padding-top: 0.6rem;
}
summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
}
.empty-state {
    padding: 3rem;
    text-align: center;
}
.pagination {
    padding-top: 1rem;
}
.status-bar {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    width: min(30rem, calc(100% - 3rem));
    border: 1px solid var(--accent);
    background: var(--surface);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px #0002;
}
.status-bar p {
    margin: 0;
}
.status-bar[data-tone='error'] {
    border-color: var(--danger);
}
.status-bar a {
    display: inline-block;
    margin-top: 0.5rem;
}
dialog {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    width: min(32rem, calc(100% - 2rem));
    padding: 2rem;
}
dialog::backdrop {
    background: #0d172b99;
}
dialog .actions {
    margin-top: 1.5rem;
}
.skip-link {
    position: absolute;
    left: -10000px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--surface);
    padding: 0.5rem;
}
.notice {
    padding: 1rem;
    background: var(--notice);
}
.guide-index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.guide-index a {
    display: inline-block;
    color: var(--accent);
    text-decoration: underline;
}
.guide-terminal-note {
    margin: 0 0 1.5rem;
    color: var(--muted);
}
.guide-section {
    scroll-margin-top: 1rem;
}
.guide-entry {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.guide-entry p {
    margin: 0.35rem 0 0;
}
.guide-command {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.guide-command pre {
    flex: 1 1 20rem;
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    background: var(--canvas);
    border: 1px solid var(--line);
    white-space: pre-wrap;
}
.guide-command code {
    padding-top: 0;
}
@media (max-width: 650px) {
    .shell {
        width: calc(100% - 2rem);
    }
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .header-content nav {
        order: 3;
        flex-basis: 100%;
        gap: 0.25rem 1rem;
    }
    .header-content nav a {
        min-height: 44px;
        overflow-wrap: anywhere;
    }
    .header-content > button {
        margin-left: auto;
    }
    .page-heading {
        margin-bottom: 1.5rem;
    }
    h1 {
        font-size: 1.8rem;
    }
    .section-heading,
    .posting-panel,
    .credential-card,
    .message-card footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .message-card header {
        flex-wrap: wrap;
    }
    .panel,
    .message-card,
    .credential-card {
        padding: 1rem;
    }
    .actions {
        justify-content: flex-start;
    }
    .empty-state {
        padding: 2rem;
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        --canvas: #111825;
        --surface: #1b2535;
        --text: #edf2fa;
        --muted: #b3bfd2;
        --line: #48566b;
        --accent: #a8c5ff;
        --accent-text: #14233d;
        --danger: #ffb0ba;
        --notice: #2c3d59;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
}
