body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2730;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header {
    align-items: center;
    background: #101820;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 18px 28px;
}

header nav {
    align-items: center;
    display: flex;
    gap: 14px;
}

header a {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

main {
    margin: 0 auto;
    max-width: 1080px;
    padding: 28px;
}

section, .login {
    background: white;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    margin-bottom: 22px;
    padding: 22px;
}

.auth {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.login {
    max-width: 420px;
    width: 100%;
}

.login-logo {
    display: block;
    height: auto;
    margin: 0 auto 18px;
    max-width: 240px;
    width: 70%;
}

h1, h2 {
    margin-top: 0;
}

label {
    display: block;
    font-weight: 700;
    margin: 12px 0;
}

input, textarea {
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-top: 6px;
    padding: 10px 12px;
    width: 100%;
}

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

th, td {
    border-bottom: 1px solid #e6ebf1;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #526173;
    font-size: 13px;
}

td small,
.tabs small,
.muted {
    color: #667789;
}

td small {
    display: block;
    margin-top: 3px;
}

code,
pre {
    background: #f2f5f8;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

code {
    padding: 2px 5px;
}

pre {
    overflow: auto;
    padding: 14px;
}

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

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tabs a,
.button-link {
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: #1f2730;
    display: inline-flex;
    gap: 8px;
    padding: 8px 11px;
    text-decoration: none;
}

.tabs a.active,
.button-link {
    background: #2364aa;
    border-color: #2364aa;
    color: white;
}

button {
    background: #2364aa;
    border: 0;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 14px;
}

button.danger {
    background: #b42318;
}

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

.wide {
    grid-column: 1 / -1;
}

.notice {
    background: #e8f1fd;
    border-radius: 6px;
    color: #1f4172;
    padding: 12px 14px;
}

.error {
    color: #b42318;
}

.list article {
    border-top: 1px solid #e6ebf1;
    padding: 14px 0;
}

.inline {
    display: flex;
    gap: 8px;
}

.compact article p {
    margin-bottom: 0;
}

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