/* MC Paneel – vormgeving.
   Idee: seinen langs de vaart, gebouwd van blokken. Rechte hoeken, dikke randen, en per server
   één seinlamp die zegt hoe het ervoor staat. Kleur betekent hier altijd een toestand. */

@font-face {
  font-family: "Koppen";
  src: url("/koppen.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #E4E7DF;
  --surface: #FAFBF7;
  --surface-2: #ECEFE8;
  --ink: #12354A;
  --muted: #55707E;
  --line: #12354A;
  --hair: #CDD4CE;
  --shade: #B7C1BA;
  --water: #1B6A9C;
  --water-ink: #FFFFFF;
  --green: #2E9E4F;
  --green-ink: #1C7437;
  --amber: #E3A008;
  --amber-ink: #855B00;
  --red: #C5322A;
  --red-ink: #AE2A23;
  --lamp-off: #93A2A8;
  --rail: #12354A;
  --rail-ink: #F2F6F4;
  --rail-muted: #A3BCC8;
  --rail-line: #2C5169;
  --console: #0C1F2B;
  --console-ink: #D3E0E7;
  --console-line: #24404F;
  --kop: "Koppen", "Arial Narrow", "Roboto Condensed", sans-serif;
  --tekst: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Roboto Mono", "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1B25;
    --surface: #12293A;
    --surface-2: #193549;
    --ink: #E7EEF1;
    --muted: #9FB5C1;
    --line: #6E91A5;
    --hair: #24404F;
    --shade: #050E14;
    --water: #55ACDD;
    --water-ink: #06202E;
    --green: #45BD69;
    --green-ink: #6FD48C;
    --amber: #F0B429;
    --amber-ink: #F3C552;
    --red: #EC6A62;
    --red-ink: #F58C85;
    --lamp-off: #4B6473;
    --rail: #07151E;
    --rail-line: #1B3444;
    --console: #050D13;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--tekst);
}

h1, h2, h3, p { margin: 0; }

h1 { font: 700 30px/1.05 var(--kop); letter-spacing: .005em; }
h2 { font: 700 24px/1.1 var(--kop); }
h3 { font: 700 19px/1.15 var(--kop); }

a { color: var(--water); }

button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.noscript { padding: 24px; }

/* ---------- seinlamp ---------- */

.lamp {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: var(--lamp-off);
}
.lamp::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, .6);
}
.lamp.is-on { background: var(--green); box-shadow: 0 0 0 3px rgba(46, 158, 79, .28); }
.lamp.is-busy { background: var(--amber); animation: knipper 1.1s steps(1, end) infinite; }
.lamp.is-crash { background: var(--red); box-shadow: 0 0 0 3px rgba(197, 50, 42, .25); }
.lamp-lg { width: 28px; height: 28px; border-width: 3px; }
.lamp-lg::after { top: 3px; left: 3px; width: 6px; height: 6px; }
.lamp-lg.is-on { box-shadow: 0 0 0 5px rgba(46, 158, 79, .28); }
.lamp-lg.is-crash { box-shadow: 0 0 0 5px rgba(197, 50, 42, .25); }

@keyframes knipper { 50% { background: var(--lamp-off); } }
@media (prefers-reduced-motion: reduce) { .lamp.is-busy { animation: none; } }

/* ---------- knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 3px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--line);
  font: 600 15px/1 var(--tekst);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .06s, box-shadow .06s;
}
.btn:active:not(:disabled), .btn.is-busy { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--water); color: var(--water-ink); }
.btn-danger { color: var(--red-ink); border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
.btn-danger-fill { background: var(--red); color: #fff; }
.btn-small { min-height: 34px; padding: 0 10px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .btn-danger-fill { color: #2A0806; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- opbouw ---------- */

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.rail {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 8px 0 14px;
  padding-top: env(safe-area-inset-top);
  background: var(--rail);
  color: var(--rail-ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  font: 700 23px/1 var(--kop);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }

.rail-servers { display: none; }

.account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 2px solid var(--rail-line);
  background: none;
  color: var(--rail-ink);
  font: 600 14px/1 var(--tekst);
  cursor: pointer;
}
.account:hover { border-color: var(--rail-muted); }

.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.offline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--amber);
  color: #2B1D00;
  font-weight: 600;
}

main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.page { width: 100%; max-width: 980px; padding: 20px 16px 48px; }
.page-narrow { max-width: 640px; }
.page-fill { max-width: none; flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 12px; }

.shell.is-fill { height: 100vh; height: 100dvh; }
.shell.is-fill .stage, .shell.is-fill main { min-height: 0; }

@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .rail {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 256px;
    height: 100vh;
    height: 100dvh;
    padding: 22px 14px 16px;
  }
  .brand { margin: 0 0 26px 6px; font-size: 26px; }
  .brand img { width: 32px; height: 32px; }
  .rail-servers { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 4px; }
  .account { justify-content: flex-start; margin-top: 12px; }
  .page { padding: 34px 40px 64px; }
  .page-fill { padding-bottom: 24px; }
  .back { display: none !important; }
  h1 { font-size: 36px; }
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
  border: 2px solid transparent;
  color: var(--rail-ink);
  font: 600 15px/1.2 var(--tekst);
  text-decoration: none;
}
.rail-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-link:hover { border-color: var(--rail-line); }
.rail-link.is-current { background: var(--rail-ink); color: #12354A; }
.rail-link .lamp { border-color: var(--rail-ink); }
.rail-link.is-current .lamp { border-color: #12354A; }
.rail-label { margin: 18px 10px 6px; color: var(--rail-muted); font-size: 13px; }
.rail-add { color: var(--rail-muted); }
.rail-add .icon { width: 16px; height: 16px; margin: 0 2px; }

/* ---------- overzicht ---------- */

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.lede { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.lede-inline { margin: 0; }
.page > .form { margin-top: 24px; }

.plate { background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shade); }

.server-list { display: grid; gap: 18px; margin-top: 22px; }

.server { display: grid; }
.server-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .server-main:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
}
.server-main .lamp { width: 22px; height: 22px; border-width: 3px; }
.server-main .lamp::after { top: 2px; left: 2px; width: 5px; height: 5px; }
.server-text { min-width: 0; }
.server-text h2 { overflow-wrap: anywhere; }
.server-actions { display: flex; gap: 10px; padding: 0 16px 13px; }
.server-actions .btn { flex: 1; }

.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin-top: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.status .with-icon { display: inline-flex; align-items: center; gap: 5px; }
.status .icon { width: 15px; height: 15px; }
.st { font-weight: 700; color: var(--ink); }
.st-on { color: var(--green-ink); }
.st-busy { color: var(--amber-ink); }
.st-crash { color: var(--red-ink); }

@media (min-width: 640px) {
  .server { grid-template-columns: 1fr auto; align-items: center; }
  .server-main { padding: 20px 22px; gap: 18px; }
  .server-actions { padding: 0 22px 0 0; }
  .server-actions .btn { flex: none; }
}

.empty { padding: 28px 20px; }
.empty h2 { margin-bottom: 8px; }
.empty p { max-width: 52ch; color: var(--muted); margin-bottom: 18px; }

/* ---------- serverpagina ---------- */

.back { display: inline-flex; align-items: center; gap: 2px; margin: -6px 0 12px -6px; color: var(--muted); font-weight: 600; text-decoration: none; }

.head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "lamp name" "status status" "actions actions";
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 16px;
}
.head-lamp { grid-area: lamp; display: flex; }
.head h1 { grid-area: name; overflow-wrap: anywhere; }
.head-status { grid-area: status; }
.head-status .status { margin-top: 0; }
.head-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (min-width: 720px) {
  .head { grid-template-columns: auto 1fr auto; grid-template-areas: "lamp name actions" ". status actions"; }
  .head-actions { margin-top: 0; }
}
@media (max-width: 719px) {
  .back { margin-bottom: 8px; }
  .head { gap: 4px 12px; margin-bottom: 12px; }
  .head h1 { font-size: 28px; }
  .head .fact-since { display: none; }
  /* Tijdens het bewerken van een bestand telt elke regel: alleen lamp en naam blijven staan. */
  .is-editing .head-status, .is-editing .head-actions { display: none; }
}

.tabs { display: flex; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 9px;
  color: var(--muted);
  font: 700 18px/1 var(--kop);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--line); color: var(--surface); }
@media (max-width: 420px) { .tab { padding: 10px 10px 9px; } .tab .icon { display: none; } }

.tab-body { padding-top: 16px; }
.page-fill .tab-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 0; }

/* ---------- console ---------- */

.console {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-top: 0;
  background: var(--console);
  color: var(--console-ink);
}
.console-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px;
  font: 12px/1.55 var(--mono);
}
.ln { white-space: pre-wrap; overflow-wrap: anywhere; }
.ln-warn { color: #F0C24B; }
.ln-err { color: #FF8F85; }
.ln-panel { color: #7CC4EA; }
.ln-cmd { color: #9EE6A8; }
.console-empty { color: #7F9AA8; }
.console-in { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-top: 2px solid var(--console-line); }
.console-in .prompt { color: #9EE6A8; font: 700 16px/1 var(--mono); }
.console-in input {
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 16px/1.2 var(--mono);
}
.console-in input::placeholder { color: #6F8997; }
.console-in input:focus { outline: none; }
.console-in:focus-within { border-top-color: var(--amber); }
.console-in .icon-btn { color: var(--console-ink); }
.console-in .icon-btn:hover { background: var(--console-line); color: #fff; }
.console-in .icon-btn:disabled { opacity: .4; cursor: default; }
.console-jump { position: absolute; right: 12px; bottom: 66px; }
@media (min-width: 900px) { .console-out { font-size: 13px; padding: 14px 16px; } }

/* ---------- bestanden ---------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 600; min-width: 0; }
.crumbs a { color: var(--water); text-decoration: none; overflow-wrap: anywhere; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

.list { border: 2px solid var(--line); background: var(--surface); }
.list-empty { padding: 22px 16px; color: var(--muted); }
.list.is-drop { outline: 3px dashed var(--water); outline-offset: 3px; }

.file-row { display: flex; align-items: center; min-height: 48px; padding-right: 4px; border-top: 1px solid var(--hair); }
.file-row:first-child { border-top: 0; }
.file-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  padding: 8px 8px 8px 14px;
  color: inherit;
  text-decoration: none;
}
.file-main:hover { background: var(--surface-2); }
.file-main .icon { color: var(--muted); }
.file-row.is-dir .file-main .icon { color: var(--water); }
.file-name { overflow-wrap: anywhere; font-weight: 600; }
.file-size, .file-date { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.file-size { width: 72px; }
.file-date { display: none; width: 150px; }
@media (min-width: 720px) { .file-date { display: block; } }

.progress { display: grid; gap: 6px; margin-bottom: 14px; padding: 12px 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; }
.progress progress { width: 100%; height: 10px; }

/* ---------- editor ---------- */

.editor { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 2px solid var(--line); border-top: 0; background: var(--surface); }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px 8px 4px; border-bottom: 2px solid var(--line); }
.editor-title { flex: 1; min-width: 0; }
.editor-title strong { display: block; font: 700 20px/1.1 var(--kop); overflow-wrap: anywhere; }
.editor-title span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.editor-title span.is-dirty { color: var(--amber-ink); font-weight: 600; }
.editor-area {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  resize: none;
  background: var(--surface);
  color: var(--ink);
  font: 13px/1.6 var(--mono);
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
.editor-area:focus { outline: none; box-shadow: inset 0 0 0 3px var(--amber); }
@media (pointer: coarse) { .editor-area { font-size: 16px; } }

.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: var(--surface-2); border-bottom: 2px solid var(--line); font-weight: 600; }
.notice .icon { color: var(--amber-ink); }
.notice span { flex: 1; min-width: 200px; }
.notice-box { margin-bottom: 14px; border: 2px solid var(--line); }

/* ---------- plug-ins ---------- */

.plugin-row { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; border-top: 1px solid var(--hair); }
.plugin-row:first-child { border-top: 0; }
.plugin-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.plugin-name { font-size: 16px; overflow-wrap: anywhere; }
.plugin-version { color: var(--muted); }
.plugin-file { flex-basis: 100%; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.plugin-warn { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--amber-ink); font-size: 13px; font-weight: 600; }
.plugin-warn .icon { width: 16px; height: 16px; }
.plugin-row.is-off .plugin-name, .plugin-row.is-off .plugin-version { color: var(--muted); }
.plugin-actions { flex: none; display: flex; align-items: center; gap: 2px; }
.plugin-actions .switch { margin: 0 8px; }

.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface-2);
  cursor: pointer;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--lamp-off); transition: transform .1s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); background: #fff; }
.switch:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .switch::after, .btn { transition: none; } }

/* ---------- formulieren ---------- */

.form { display: grid; gap: 20px; max-width: 600px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.hint { color: var(--muted); font-size: 14px; }
.hint-bad { color: var(--red-ink); font-weight: 600; }
.input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.3 var(--tekst);
}
.input-mono { font-family: var(--mono); font-size: 15px; }
@media (pointer: coarse) { .input-mono { font-size: 16px; } }
.input:focus { outline: 3px solid var(--amber); outline-offset: 0; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { min-height: 32px; padding: 0 10px; border: 2px solid var(--line); background: var(--surface-2); font: 600 13px/1 var(--mono); cursor: pointer; }
.chip:hover { background: var(--surface); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; cursor: pointer; }
.check .hint { grid-column: 2; }
.box {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
}
.box:checked::after { content: ""; position: absolute; inset: 4px; background: var(--water); }
.check-label { font-weight: 700; padding-top: 1px; }

details.more { border-top: 2px solid var(--hair); padding-top: 14px; }
details.more summary { font-weight: 700; cursor: pointer; }
details.more .more-body { display: grid; gap: 20px; margin-top: 16px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.section { margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--line); max-width: 600px; }
.section p { margin: 6px 0 14px; color: var(--muted); }

/* ---------- venster ---------- */

.dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
  overflow: auto;
}
.dialog::backdrop { background: rgba(7, 21, 30, .62); }
.dialog-inner { display: grid; gap: 14px; padding: 20px; }
.dialog-inner > p { color: var(--muted); overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dialog h2 { overflow-wrap: anywhere; }
.menu { display: grid; gap: 10px; }
.menu .btn { justify-content: flex-start; min-height: 46px; }
.dialog-split { border-top: 2px solid var(--hair); padding-top: 14px; }

/* ---------- meldingen ---------- */

#toasts {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--rail-ink);
  background: #12354A;
  color: #F2F6F4;
  font-weight: 600;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
  overflow-wrap: anywhere;
}
.toast-err { background: #A9271F; }

/* ---------- inloggen ---------- */

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}
.gate::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: var(--rail);
}
.gate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--rail) 0 16px, transparent 16px 32px);
}
.gate-card { position: relative; z-index: 1; width: min(400px, 100%); padding: 26px 22px 24px; }
.gate-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.gate-brand img { width: 48px; height: 48px; image-rendering: pixelated; }
.gate-brand h1 { font-size: 32px; }
.gate-brand p { color: var(--muted); }
.gate-card .form { gap: 16px; }
.gate-card .btn { width: 100%; min-height: 46px; }
.gate-error { color: var(--red-ink); font-weight: 600; }
.gate-note { color: var(--muted); }
.gate-note code { font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
