/* License console. Cold concrete base, dark equipment rail, and the license
   key drawn as a stamped metal tag (the one decorative element). */

:root {
    --bg: #e6ebec;
    --surface: #f7f9f9;
    --sunken: #dde4e6;
    --ink: #1b2327;
    --ink-2: #4f5e66;
    --ink-3: #74848b;
    --line: #c7d1d4;
    --rail: #1b2327;
    --rail-ink: #b9c7cc;
    --rail-hover: #26323a;
    --frost: #1d5c77;
    --frost-ink: #ffffff;
    --frost-wash: #d6e6ed;
    --pine: #2a6649;
    --pine-wash: #d4e7dc;
    --amber: #8f5a0c;
    --amber-wash: #f1e2c4;
    --rust: #a33d1c;
    --rust-wash: #f3dbd1;
    --plate-hi: #f3f6f7;
    --plate-lo: #c4cfd3;
    --plate-edge: #a3b1b7;
    --plate-ink: #28333a;
    --plate-gloss: rgba(255, 255, 255, 0.75);
    --plate-dent: rgba(0, 0, 0, 0.28);
    --shadow: 0 18px 44px rgba(12, 22, 28, 0.2);
    --radius: 6px;
    --font: "Bahnschrift", "DIN Alternate", "Barlow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11171a;
        --surface: #182024;
        --sunken: #0e1416;
        --ink: #dae3e6;
        --ink-2: #9aabb2;
        --ink-3: #6f8088;
        --line: #2a363c;
        --rail: #0b1013;
        --rail-ink: #a9b8be;
        --rail-hover: #172026;
        --frost: #64afce;
        --frost-ink: #08171e;
        --frost-wash: #15303b;
        --pine: #6cbf94;
        --pine-wash: #163025;
        --amber: #e3a84b;
        --amber-wash: #372912;
        --rust: #ee8563;
        --rust-wash: #3a1d14;
        --plate-hi: #515e64;
        --plate-lo: #2c353a;
        --plate-edge: #5d6b71;
        --plate-ink: #e8eff1;
        --plate-gloss: rgba(255, 255, 255, 0.14);
        --plate-dent: rgba(0, 0, 0, 0.6);
        --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--frost); }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.nowrap { white-space: nowrap; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- shell */

.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }

.rail {
    background: var(--rail);
    color: var(--rail-ink);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    font-variation-settings: "wdth" 82;
    text-decoration: none;
}
.brand svg { flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--rail-ink);
    text-decoration: none;
}
.nav a:hover { background: var(--rail-hover); color: #fff; }
.nav a[aria-current="page"] { background: var(--rail-hover); color: #fff; box-shadow: inset 3px 0 0 #8cc7de; }
.nav .nav-issue { margin-top: 10px; border: 1px solid #34434b; text-align: center; color: #fff; }

.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid #2a363c; }
.me img { width: 30px; height: 30px; border-radius: 50%; flex: none; background: #2a363c; }
.me-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.me button {
    font: inherit; font-size: 13px; color: var(--rail-ink); background: none;
    border: 1px solid #34434b; border-radius: 5px; padding: 4px 9px; cursor: pointer;
}
.me button:hover { color: #fff; border-color: #56666e; }

main { padding: 30px 38px 64px; width: 100%; max-width: 1280px; }
main:focus { outline: none; }

@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .rail { position: static; height: auto; padding: 12px 16px; gap: 10px; }
    .nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
    .nav a { white-space: nowrap; }
    .nav .nav-issue { margin-top: 0; }
    .me { position: absolute; top: 10px; right: 16px; margin: 0; border: 0; padding: 0; }
    .me-name { display: none; }
    main { padding: 20px 16px 48px; }
}

/* ---------------------------------------------------------------- type */

h1 {
    font-size: 34px;
    line-height: 1.08;
    font-weight: 600;
    font-variation-settings: "wdth" 80;
    letter-spacing: -0.005em;
    margin: 0;
}
h2 { font-size: 19px; line-height: 1.25; font-weight: 600; margin: 0; font-variation-settings: "wdth" 88; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.lede { color: var(--ink-2); margin: 6px 0 0; max-width: 70ch; }

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- controls */

.btn {
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--frost); border-color: var(--frost); color: var(--frost-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--rust); }
.btn.danger:hover { border-color: var(--rust); }
.btn.danger.solid { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.linkish {
    font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.linkish:hover { color: var(--frost); text-decoration: underline; }

input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 8px 10px;
    min-width: 0;
    width: 100%;
}
input:disabled { opacity: 0.45; cursor: not-allowed; }
input:focus, select:focus, textarea:focus { border-color: var(--frost); outline: none; box-shadow: 0 0 0 3px var(--frost-wash); }
textarea { resize: vertical; min-height: 70px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--frost); width: 16px; height: 16px; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--ink-3); margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 2px; gap: 2px; }
.seg a {
    padding: 5px 11px; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap;
}
.seg a:hover { color: var(--ink); background: var(--sunken); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 6px; flex: 1 1 260px; max-width: 420px; }
.toolbar select { width: auto; }

/* ---------------------------------------------------------------- readout */

.readout {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 22px;
    overflow: hidden;
}
.readout a {
    padding: 14px 18px 13px;
    color: inherit;
    text-decoration: none;
    border-left: 1px solid var(--line);
}
.readout a:first-child { border-left: 0; }
.readout a:hover { background: var(--frost-wash); }
.readout b {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 600;
    font-variation-settings: "wdth" 78;
    font-variant-numeric: tabular-nums;
}
.readout span { font-size: 13px; color: var(--ink-2); }
.readout .warn b { color: var(--amber); }
.readout .bad b { color: var(--rust); }
@media (max-width: 1000px) {
    .readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .readout a:nth-child(4) { border-left: 0; }
    .readout a:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .readout a { border-left: 0; border-top: 1px solid var(--line); }
    .readout a:nth-child(even) { border-left: 1px solid var(--line); }
    .readout a:nth-child(-n + 2) { border-top: 0; }
}

/* ---------------------------------------------------------------- panels */

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > header { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.panel > header p { margin: 0; font-size: 13px; color: var(--ink-3); }
.panel-body { padding: 6px 18px 16px; }
.panel-body > h3 { margin: 14px 0 4px; font-size: 13px; color: var(--ink-2); }
.empty { color: var(--ink-3); padding: 16px 0 6px; margin: 0; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.feed li:last-child { border-bottom: 0; }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.feed .when { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.feed .sub { grid-column: 2 / -1; color: var(--ink-3); font-size: 13px; margin-top: -2px; overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); align-self: center; }
.dot.fail { background: var(--rust); }
.dot.warn { background: var(--amber); }

/* ---------------------------------------------------------------- tables */

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-2);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: var(--sunken);
}
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-row-open] { cursor: pointer; }
tr[data-row-open]:hover td { background: var(--frost-wash); }
td .sub { display: block; color: var(--ink-3); font-size: 13px; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.key { white-space: nowrap; }
td.key .linkish { font-family: var(--mono); font-size: 13px; }
td.key .sub { font-family: var(--font); }
td.customer { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.customer .sub { max-width: none; }
td .badge + .sub { margin-top: 3px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.pager .actions { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px 2px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.5;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-active { color: var(--pine); background: var(--pine-wash); }
.b-lifetime { color: var(--frost); background: var(--frost-wash); }
.b-expiring { color: var(--amber); background: var(--amber-wash); }
.b-expired { color: var(--ink-2); background: var(--sunken); }
.b-revoked { color: var(--rust); background: var(--rust-wash); }
.b-free { color: var(--ink-3); background: var(--sunken); }

/* ---------------------------------------------------------------- plate */

.plate {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 11px 18px 11px 12px;
    border-radius: 9px;
    background: linear-gradient(178deg, var(--plate-hi), var(--plate-lo));
    border: 1px solid var(--plate-edge);
    box-shadow: inset 0 1px 0 var(--plate-gloss), inset 0 -2px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.14);
    color: var(--plate-ink);
    font: 600 17px/1.2 var(--mono);
    letter-spacing: 0.07em;
    text-shadow: 0 1px 0 var(--plate-gloss), 0 -1px 0 var(--plate-dent);
}
.plate::before {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 0 var(--plate-gloss);
}
.plate .k { overflow-wrap: anywhere; user-select: all; }
.plate.small { font-size: 14px; padding: 8px 14px 8px 10px; gap: 10px; }
.plate.small::before { width: 9px; height: 9px; }
.plate.void { color: var(--ink-3); }
.plate.void .k { text-decoration: line-through; text-decoration-color: var(--rust); text-decoration-thickness: 2px; }
.plate.void::after {
    content: "Revoked";
    position: absolute;
    top: -11px;
    right: -6px;
    transform: rotate(6deg);
    font: 700 12px/1 var(--font);
    letter-spacing: 0.03em;
    color: var(--rust);
    background: var(--surface);
    border: 2px solid var(--rust);
    border-radius: 4px;
    padding: 3px 7px;
    text-shadow: none;
}

#c-result { margin-bottom: 22px; }
#c-result .panel-body { padding-top: 16px; }
.keys-issued { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.keys-issued li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- create form */

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-section { padding: 20px 22px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section > h2 { margin-bottom: 14px; font-size: 17px; }
.form-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.form-foot .field { flex-direction: row; align-items: center; gap: 8px; }
.form-foot input[type="number"] { width: 80px; }
.form-error { color: var(--rust); margin: 0; font-size: 14px; }

.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices.stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
}
.choice input { margin-top: 3px; }
.choice b { font-weight: 600; }
.choice small { grid-column: 2; color: var(--ink-3); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--frost); background: var(--frost-wash); box-shadow: inset 0 0 0 1px var(--frost); }
.choice-extra { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice-extra input[type="number"] { width: 110px; }
.choice-extra input[type="date"] { width: auto; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.seat-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.seat-row input[type="number"] { width: 110px; }

/* ---------------------------------------------------------------- drawer */

.scrim {
    position: fixed; inset: 0; background: rgba(8, 16, 20, 0.4);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 20;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(740px, 100vw);
    background: var(--bg);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 21;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0s linear 0.24s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.24s ease, visibility 0s; }
#drawer-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
    .drawer, .drawer.open, .scrim { transition: none; }
}
.drawer-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; }
.drawer-close {
    position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 5px;
    border: 1px solid transparent; background: none; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.drawer-close:hover { border-color: var(--line); color: var(--ink); }
.plate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 40px; margin-top: 6px; }
.head-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; color: var(--ink-2); }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.drawer-scroll { overflow-y: auto; padding: 8px 26px 40px; flex: 1; }
.drawer-scroll > section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer-scroll > section:last-child { border-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-3); font-size: 13px; }
@media (max-width: 600px) {
    .drawer-head { padding: 18px 16px 14px; }
    .drawer-scroll { padding: 4px 16px 32px; }
}

.facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .facts dd { margin-bottom: 8px; }
}
.callout { margin: 12px 0 0; padding: 10px 12px; border-radius: 5px; background: var(--rust-wash); color: var(--rust); font-size: 14px; }

.seats { list-style: none; margin: 0; padding: 0; }
.seats li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.seats li:last-child { border-bottom: 0; }
.seats .addr { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.seats .meta { color: var(--ink-3); font-size: 13px; grid-column: 1; }
.seats li > .btn, .seats li > .badge { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.seats li.off .addr { color: var(--ink-3); }

/* ---------------------------------------------------------------- dialog & toast */

dialog {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    padding: 0;
    width: min(480px, calc(100vw - 32px));
    box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(8, 16, 20, 0.5); }
.dlg { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.dlg p { margin: 0; color: var(--ink-2); font-size: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.dlg .form-error { margin: 0; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
    max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--rust); color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.loading { color: var(--ink-3); padding: 30px 0; }
.error-block { padding: 16px 18px; border-radius: 6px; background: var(--rust-wash); color: var(--rust); }

/* ---------------------------------------------------------------- login */

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.login-band {
    background: var(--rail);
    color: var(--rail-ink);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}
.login-band .plate { align-self: flex-start; }
.login-band p { margin: 0; max-width: 34ch; font-size: 14px; }
.login-main { display: flex; align-items: center; padding: 40px clamp(24px, 7vw, 96px); }
.login-box { max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.login-box h1 { font-size: 40px; }
.login-box > p { margin: 0; color: var(--ink-2); }
.btn-discord {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #5865f2; color: #fff; border: 0; border-radius: 6px; padding: 12px 18px;
    font: 600 16px/1.2 var(--font); text-decoration: none; align-self: flex-start;
}
.btn-discord:hover { background: #4752c4; }
.btn-discord[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.notice { padding: 12px 14px; border-radius: 6px; font-size: 14px; background: var(--amber-wash); color: var(--amber); }
.notice.bad { background: var(--rust-wash); color: var(--rust); }
.notice code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .login-page { grid-template-columns: minmax(0, 1fr); }
    .login-band { padding: 20px 16px; flex-direction: row; align-items: center; }
    .login-band p, .login-band .plate { display: none; }
    .login-main { padding: 32px 16px; align-items: flex-start; }
}
