:root {
    color-scheme: light;
    --blue: #0b5ed7;
    --blue-dark: #084298;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e0ea;
    --paper: #ffffff;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f5f7fb;
}

.page {
    min-height: 100vh;
}

.blue-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 6vw, 72px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        #0757c2;
}

.panel,
.content {
    width: min(100%, 980px);
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.panel {
    max-width: 480px;
    padding: clamp(28px, 5vw, 44px);
    border: 0;
    box-shadow: 0 22px 70px rgba(4, 28, 68, 0.26);
}

.brand-line {
    width: 56px;
    height: 5px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #d71920;
}

.panel h1 {
    max-width: 360px;
    margin-bottom: 30px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.08;
}

.code-form {
    display: grid;
    gap: 12px;
}

.code-form button {
    width: 100%;
    margin-top: 8px;
}

.code-form input {
    font-size: 18px;
    letter-spacing: 0;
}

.content {
    margin-top: 40px;
    margin-bottom: 40px;
}

.narrow {
    max-width: 520px;
}

.wide {
    max-width: 1180px;
}

h1 {
    margin: 0 0 24px;
    font-size: 28px;
    line-height: 1.2;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
}

button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 9px 15px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
button:focus {
    background: var(--blue-dark);
}

.secondary {
    background: #eef2f7;
    color: var(--ink);
}

.secondary:hover,
.secondary:focus {
    background: #dbe3ee;
}

.danger {
    background: var(--danger);
}

.stack {
    display: grid;
    gap: 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.notice {
    color: var(--muted);
}

.topbar,
.inline-form,
.name-edit,
.term-actions {
    display: flex;
    align-items: end;
    gap: 12px;
}

.topbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.topbar h1 {
    margin-bottom: 0;
}

.inline-form {
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 14px;
}

td:last-child,
th:last-child {
    text-align: right;
}

a {
    color: var(--blue);
}

@media (max-width: 720px) {
    .content {
        margin-top: 0;
        margin-bottom: 0;
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .field-grid,
    .inline-form,
    .topbar,
    .name-edit,
    .term-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
