:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f8;
    color: #172026;
}

body {
    margin: 0;
}

a {
    color: #166088;
}

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

.panel {
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid #d9e1e5;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(23, 32, 38, .08);
}

h1 {
    margin: 0 0 12px;
    font-size: 24px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #bcc8ce;
    border-radius: 6px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: #166088;
    color: #fff;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ghost {
    background: #e8eef1;
    color: #172026;
}

.nav-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.error {
    background: #fff0f0;
    border: 1px solid #f0b2b2;
    color: #941b1b;
    padding: 10px;
    border-radius: 6px;
}

.notice {
    background: #edf9f0;
    border: 1px solid #addfba;
    color: #17642b;
    padding: 10px;
    border-radius: 6px;
}

.muted {
    color: #64727a;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: #fff;
    border-bottom: 1px solid #d9e1e5;
}

.topbar p {
    margin: 4px 0 0;
    color: #64727a;
}

.content {
    padding: 28px;
}

.search {
    grid-template-columns: minmax(220px, 420px) auto;
    justify-content: start;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d9e1e5;
    border-radius: 8px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 20px;
    align-items: start;
}

.form-panel {
    box-shadow: none;
}

h2 {
    margin: 0 0 14px;
    font-size: 19px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

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

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

th {
    background: #eef3f5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

code {
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 700;
    font-size: 12px;
    background: #e8eef1;
}

.badge.linked {
    background: #dff3e5;
    color: #17642b;
}

.badge.revoked {
    background: #ffe2e2;
    color: #941b1b;
}

.badge.unlinked {
    background: #fff2cf;
    color: #73510c;
}

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

.empty {
    text-align: center;
    color: #64727a;
    padding: 34px;
}

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

    .two-column {
        grid-template-columns: 1fr;
    }

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