/* Fonts: Instrument Sans and IBM Plex Mono (SIL Open Font License), copied from the design system. */
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/_gate/instrument-sans-400.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/_gate/instrument-sans-500.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/_gate/instrument-sans-600.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/_gate/plex-mono-400.woff2) format("woff2")}
/* Vantage tokens (dark), square variant: sharp corners, pill chips. */
:root { --bg:#0b0e13; --surface:#131920; --surface-2:#1a222c; --fg:#e8edf2; --muted:#8b96a5; --subtle:#6b7684; --border:#24303c; --primary:#8fbfb2; --primary-fg:#0b0e13; --positive:#6fbfa3; --negative:#d98989; --ring:0 0 0 1px rgb(255 255 255 / .08); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { background: var(--surface); box-shadow: var(--ring); padding: 28px; width: 100%; }
.narrow { max-width: 380px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: 600; } .brand span { color: var(--muted); font-size: 12px; display: block; }
h1 { font-size: 18px; font-weight: 600; margin: 0 0 4px; } h2 { font-size: 14px; font-weight: 500; margin: 0 0 12px; }
p.sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
input, select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); font: inherit; border-radius: 0; }
input:focus, select:focus { outline: none; border-color: var(--primary); }
button { height: 36px; padding: 0 14px; border: 0; border-radius: 0; font: inherit; font-weight: 500; cursor: pointer; background: var(--primary); color: var(--primary-fg); }
button.secondary { background: var(--surface-2); color: var(--fg); box-shadow: var(--ring); }
button.ghost { background: transparent; color: var(--muted); } button.ghost:hover { color: var(--fg); background: var(--surface-2); }
button.danger { background: rgb(217 137 137 / .15); color: var(--negative); }
button.sm { height: 28px; padding: 0 10px; font-size: 12px; }
button:disabled { opacity: .45; cursor: default; }
.full { width: 100%; margin-top: 18px; }
.msg { margin-top: 12px; font-size: 13px; min-height: 18px; word-break: break-word; } .msg.err { color: var(--negative); } .msg.ok { color: var(--positive); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.top nav { display: flex; gap: 16px; font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 24px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.row label { margin-top: 0; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.actions { white-space: nowrap; text-align: right; } td.actions button { margin-left: 4px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--surface-2); color: var(--muted); }
.chip.admin { background: rgb(143 191 178 / .15); color: var(--primary); } .chip.banned { background: rgb(217 137 137 / .15); color: var(--negative); } .chip.active { background: rgb(111 191 163 / .15); color: var(--positive); }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.hint { color: var(--subtle); font-size: 12px; }
.modal-bg { position: fixed; inset: 0; background: rgb(11 14 19 / .7); display: none; place-items: center; z-index: 10; padding: 16px; }
.modal-bg.open { display: grid; }
.modal { max-width: 440px; }
.modal .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.inline { display: flex; gap: 8px; } .inline input { flex: 1; }
