/* The admin page. Light and dark by the browser's setting; the same few colours do everything. */
:root {
  color-scheme: light dark;
  --plane: #f9f9f7; --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e; --muted: #72716c; --grid: #e1e0d9; --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.12); --wash: rgba(11, 11, 11, 0.045);
  --series-1: #2a78d6; --series-2: #eb6834; --accent: #1f66bd; --on-accent: #fff;
  --warning: #8a5a00; --critical: #b72e2e; --warn-bg: rgba(250, 178, 25, 0.16); --crit-bg: rgba(208, 59, 59, 0.11);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --plane: #0d0d0d; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #9b9992; --grid: #2c2c2a; --axis: #383835;
    --border: rgba(255, 255, 255, 0.13); --wash: rgba(255, 255, 255, 0.06);
    --series-1: #3987e5; --series-2: #d95926; --accent: #5a9ff0; --on-accent: #0b0b0b;
    --warning: #fab219; --critical: #f08080; --warn-bg: rgba(250, 178, 25, 0.13); --crit-bg: rgba(208, 59, 59, 0.2);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
#app { min-height: 100%; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 15px; } h3 { font-size: 13px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.error { color: var(--critical); min-height: 1.45em; margin: 0; }
.empty { color: var(--muted); padding: 14px 0; margin: 0; }
[hidden] { display: none !important; }

/* controls */
button, select, input, textarea { font: inherit; color: inherit; }
button { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 5px 12px; cursor: pointer; }
button:hover { background: var(--wash); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.quiet { border-color: transparent; background: none; padding: 3px 8px; color: var(--accent); }
button.quiet:hover { background: var(--wash); }
button.danger { color: var(--critical); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
input[type="text"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 5px 8px; min-width: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
label.check { gap: 5px; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; background: none; padding: 4px 11px; color: var(--ink-2); }
.segmented button + button { border-left: 1px solid var(--border); }
.segmented button.on { background: var(--wash); color: var(--ink); font-weight: 600; }

/* sign-in */
.signin { margin: 12vh auto 0; width: min(360px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 26px; }
.signin h1 { margin-bottom: 8px; }
.signin form { display: grid; gap: 12px; margin-top: 16px; }
.signin label { display: grid; gap: 5px; }
.signin input { width: 100%; padding: 8px 10px; }
.signin button { padding: 8px 12px; }

/* the top bar and the tabs */
.top { display: flex; align-items: center; gap: 22px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 700; white-space: nowrap; }
.top nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; }
.top nav a { padding: 13px 12px 11px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tab { padding: 18px; display: grid; gap: 16px; align-content: start; max-width: 1500px; width: 100%; margin: 0 auto; }

/* panels, figures, tables */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.tile-label { color: var(--ink-2); font-size: 12.5px; }
.tile-value { font-size: 24px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.tile-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: top; }
th { color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.flag { color: var(--warning); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* charts */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px 22px; }
.chart { min-width: 0; }
.chart header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.chart h3 { color: var(--ink-2); font-weight: 600; }
.chart-now { display: flex; gap: 12px; font-size: 13px; white-space: nowrap; }
.now-item { display: inline-flex; align-items: center; gap: 5px; }
.now-name { color: var(--ink-2); }
.key { display: inline-block; width: 12px; height: 0; border-top: 2px solid var(--series-1); border-radius: 1px; }
.key.s2 { border-top-color: var(--series-2); }
.plot { position: relative; outline-offset: 2px; border-radius: 4px; touch-action: pan-y; }
.plot svg { display: block; overflow: visible; }
.plot .grid { stroke: var(--grid); stroke-width: 1; }
.plot .axis { stroke: var(--axis); stroke-width: 1; }
.plot .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.plot .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke: var(--series-1); }
.plot .line.s2 { stroke: var(--series-2); }
.plot .wash { fill: var(--series-1); opacity: 0.1; }
.plot .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.plot .dot.s2 { fill: var(--series-2); }
.plot .cross line { stroke: var(--axis); stroke-width: 1; }
.tip { position: absolute; top: 6px; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); white-space: nowrap; z-index: 2; }
.tip-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row span { color: var(--ink-2); }
.as-table { margin-top: 12px; }
.as-table summary { cursor: pointer; color: var(--accent); width: max-content; }
.as-table .table-wrap { max-height: 320px; overflow: auto; margin-top: 8px; }

/* the console */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.console { height: min(56vh, 520px); overflow: auto; background: var(--plane); border: 1px solid var(--border); border-radius: 6px; padding: 6px 0; font: 12px/1.5 var(--mono); }
.line { display: flex; gap: 10px; padding: 0 10px; }
.line time { color: var(--muted); flex: none; }
.line .src { color: var(--muted); flex: none; width: 6ch; }
.line .level { flex: none; font-weight: 700; }
.line .text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.line.warn { background: var(--warn-bg); } .line.warn .level { color: var(--warning); }
.line.error { background: var(--crit-bg); } .line.error .level { color: var(--critical); }

/* /fps reports */
.report-row { border-bottom: 1px solid var(--grid); padding: 6px 0; }
.report-row:last-child { border-bottom: 0; }
.report-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report { margin: 8px 0 4px; padding: 10px; background: var(--plane); border: 1px solid var(--border); border-radius: 6px; font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--plane); padding: 8px 14px; border-radius: 8px; z-index: 100; max-width: min(560px, calc(100% - 32px)); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }
.toast.bad { background: var(--critical); color: #fff; }
@media (max-width: 640px) {
  .top { gap: 10px; padding: 0 10px; } .tab { padding: 10px; } .facts { grid-template-columns: 1fr; gap: 0 0; } .facts dd { margin-bottom: 8px; }
  .charts { grid-template-columns: 1fr; }
}

/* windows over the page */
dialog { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
dialog.wide { width: min(980px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dialog-body { padding: 14px 16px; display: grid; gap: 10px; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.form { display: grid; gap: 10px; }
.form > label { display: grid; gap: 4px; }
.form > label.check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.form input[type="number"] { width: 110px; }
.form > label > input[type="text"], .form > label > input[type="number"], .form > label > select { width: 100%; }
.pick-list { display: grid; max-height: 50vh; overflow: auto; }
.pick-list button, .map-results button, .menu-list > button, .back-list button { text-align: left; border: 0; background: none; border-radius: 4px; padding: 6px 8px; }
.pick-list button:hover, .map-results button:hover, .menu-list > button:hover, .back-list button:hover { background: var(--wash); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 62vh; overflow: auto; }
.pick-grid button { display: grid; gap: 4px; justify-items: center; align-content: end; padding: 6px; min-height: 96px; background: var(--plane); }
.pick-grid img { max-width: 96px; max-height: 96px; object-fit: contain; image-rendering: pixelated; }
.pick-grid span { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.problems { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.problems li.bad strong { color: var(--critical); }
.problems .link { margin-left: 6px; }
.chip { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.chip.on { border-color: var(--accent); color: var(--accent); }
.chip.warn { border-color: var(--warning); color: var(--warning); }

/* the map editor */
.tab.tab-maps { padding: 0; gap: 0; max-width: none; height: calc(100vh - 47px); grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.map-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.map-open { position: relative; }
.map-find { width: 240px; }
.map-results { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: min(440px, 90vw); max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); padding: 4px; display: grid; }
.map-results button { display: flex; gap: 8px; align-items: center; white-space: pre; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sep { width: 1px; height: 22px; background: var(--border); margin: 0 3px; }
.menu { position: relative; }
.menu-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); padding: 4px; display: grid; }
.menu-list.checks { padding: 8px 10px; gap: 6px; min-width: 230px; }
.map-main { display: flex; min-height: 0; }
.map-stage { flex: 1; min-width: 0; position: relative; background: #2b2d31; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: default; }
.map-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.map-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: #d6d6d6; padding: 20px; }
.map-side { width: 310px; flex: none; overflow: auto; padding: 12px; background: var(--surface); border-left: 1px solid var(--border); display: grid; gap: 7px; align-content: start; }
.map-side h3 { margin-top: 8px; font-size: 13.5px; }
.map-side h3:first-child { margin-top: 0; }
.map-side p { margin: 0; }
.field { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.field > span { overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12px; }
.field input, .field select { width: 100%; padding: 3px 6px; }
.adder { width: 100%; }
.side-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.back-list { display: grid; }
.map-status { display: flex; gap: 14px; align-items: center; padding: 5px 12px; background: var(--surface); border-top: 1px solid var(--border); font-size: 12.5px; min-height: 30px; }
.map-status > span:first-child { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.map-hint { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-at { font-variant-numeric: tabular-nums; color: var(--muted); white-space: pre; }
@media (max-width: 760px) { .map-main { flex-direction: column; } .map-side { width: auto; max-height: 40vh; border-left: 0; border-top: 1px solid var(--border); } .map-stage { min-height: 300px; } }

/* items, equips and NPCs */
.tab.tab-items, .tab.tab-npcs, .tab.tab-quests { padding: 0; max-width: none; height: calc(100vh - 47px); align-content: stretch; }
.things { display: flex; min-height: 0; height: 100%; }
.thing-side { width: 320px; flex: none; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 8px; padding: 12px; background: var(--surface); border-right: 1px solid var(--border); align-content: start; min-height: 0; }
.thing-side .segmented { width: max-content; }
.thing-list { overflow: auto; display: grid; align-content: start; min-height: 0; }
.thing-list button { display: flex; gap: 8px; align-items: center; justify-content: space-between; text-align: left; border: 0; background: none; border-radius: 4px; padding: 6px 8px; }
.thing-list button:hover { background: var(--wash); }
.thing-list button.on { background: var(--wash); box-shadow: inset 2px 0 0 var(--accent); }
.thing-list button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.thing-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 16px; display: grid; gap: 14px; align-content: start; }
.thing-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: -14px; background: var(--plane); padding: 8px 0; z-index: 2; }
.thing-head:empty { display: none; }
.spacer { flex: 1; }
.thing-editor { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: start; }
.thing-editor .panel { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.thing-editor .panel p { overflow-wrap: anywhere; }
.thing-empty { grid-column: 1 / -1; text-align: center; padding: 12vh 20px; color: var(--ink-2); display: grid; gap: 8px; }
.word { display: grid; gap: 4px; }
.word input, .word textarea { width: 100%; }
textarea { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 6px 8px; resize: vertical; font: inherit; }
.fields { display: grid; gap: 6px; }
.adder-row { display: flex; gap: 6px; }
.adder-row .adder { flex: 1; }
.pic-row { display: flex; gap: 10px; align-items: center; }
.pic-what { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pic-point { display: flex; gap: 8px; }
.mini { gap: 4px; font-size: 12px; }
.mini input { width: 62px; padding: 2px 5px; }
.pic-frame { width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: repeating-conic-gradient(rgba(128, 128, 128, 0.22) 0% 25%, transparent 0% 50%) 50% / 16px 16px; }
.pic-frame.small { width: 64px; height: 64px; flex: none; }
.pic-frame img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }

/* pictures brought in */
.drop { border: 2px dashed var(--border); border-radius: 10px; padding: 26px 16px; display: grid; gap: 4px; justify-items: center; text-align: center; cursor: pointer; margin: 6px 0 10px; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--accent); background: var(--wash); }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.pic { margin: 0; display: grid; gap: 6px; justify-items: center; }
.pic figcaption { display: grid; gap: 2px; justify-items: center; text-align: center; font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .things { flex-direction: column; } .thing-side { width: auto; border-right: 0; border-bottom: 1px solid var(--border); max-height: 40vh; } }

/* a node of any shape (quests) */
.tree { display: grid; gap: 6px; }
.group { border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.group > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.group > summary::before { content: "\25b8"; color: var(--muted); }
.group[open] > summary::before { content: "\25be"; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary .quiet { margin-left: auto; }
.group-name { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.group > .tree { margin: 6px 0 4px; }
.field.long { grid-template-columns: 104px minmax(0, 1fr) auto; align-items: start; }
.field textarea { width: 100%; padding: 4px 6px; }
.adder-row input { flex: 1; min-width: 0; padding: 3px 6px; }
.adder-row select { padding: 3px 6px; }
.npc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.npc-row strong { min-width: 96px; }

/* Game server */
.game { display: grid; gap: 14px; }
.chip.ok { background: rgba(46, 160, 67, 0.16); color: #1a7f37; }
.chip.off { background: var(--wash); color: var(--muted); }
@media (prefers-color-scheme: dark) { .chip.ok { color: #6fdd8b; } }
.table.worlds input { width: 100%; min-width: 0; }
.table.worlds input.num { width: 6.5ch; text-align: right; }
.table.worlds td, .table.worlds th { padding: 4px 6px; white-space: nowrap; }
.table.worlds td:nth-last-child(-n+2) { min-width: 180px; }
.table.worlds td.changed, .setting.changed { box-shadow: inset 3px 0 0 var(--accent); }
.settings { display: grid; gap: 6px; }
.setting { display: grid; grid-template-columns: minmax(180px, 280px) minmax(120px, 220px) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--border); }
.setting-name { display: grid; overflow-wrap: anywhere; }
.setting-name code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.setting-value input:not([type=checkbox]) { width: 100%; }
.setting-value pre { margin: 0; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
.setting-note { font-size: 12px; overflow-wrap: anywhere; }
.savebar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.savebar[hidden] { display: none; }
.savebar span { margin-right: auto; font-weight: 600; }
@media (max-width: 760px) { .setting { grid-template-columns: 1fr; } }

.setting-note { white-space: pre-line; }
.tab-client .savebar { margin-top: 10px; }

/* Bots */
.bot-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.bot-state button { margin-left: auto; }
.table.worlds input.num.wide { width: 13ch; }
.table.worlds tfoot th, .table.worlds tfoot td { border-top: 1px solid var(--border); padding-top: 8px; }
.town-maps { display: flex; flex-wrap: wrap; gap: 4px 14px; white-space: normal; }
.town-maps label { display: inline-flex; align-items: center; gap: 4px; }

/* the Players tab: search and filters over the list, columns that sort, pages */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.filters .grow { flex: 1 1 220px; }
.filters input[type="number"] { width: 72px; }
th button.sort { border: 0; background: none; padding: 0; border-radius: 4px; color: inherit; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
th button.sort:hover { background: none; color: var(--ink); }
th button.sort.on { color: var(--ink); }
th button.sort .arrow { display: inline-block; width: 9px; font-size: 9px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pager:empty { display: none; }
/* the Players tab's head: the count and New account; the New account window */
.head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-grid { display: grid; gap: 10px; }
.form-grid label { display: grid; gap: 4px; }
.form-grid input, .form-grid select { width: 100%; }
/* the Ban window: how long */
.ban-length input.ban-amount { width: 80px; }
input.ban-reason { width: 100%; }
/* Kick and Ban stay in view when the list is wider than the window and scrolls sideways */
th.actions, td.actions { position: sticky; right: 0; background: var(--surface); padding-left: 8px; padding-right: 0; }
