/* Nightbright Vision – Server Management */
:root {
  --bg: #08090e;
  --bg-2: #0c0e15;
  --surface: #11141c;
  --surface-2: #161a24;
  --surface-3: #1c2130;
  --border: #20253350;
  --line: #222836;
  --line-2: #2c3345;
  --text: #e8ebf3;
  --text-2: #a4acbe;
  --text-3: #6c7589;
  --accent: #8f9dff;
  --accent-2: #a98bff;
  --accent-soft: #8f9dff1f;
  --ok: #3ddc97;
  --ok-soft: #3ddc971a;
  --warn: #f6c453;
  --warn-soft: #f6c4531a;
  --err: #ff6b7a;
  --err-soft: #ff6b7a1a;
  --info: #6cb4ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 #ffffff08 inset, 0 12px 32px -16px #000000c0;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, #2a2f6a22, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #3b246022, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #8f9dff55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hidden { display: none !important; }

/* ---------- Boot ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 650; letter-spacing: -.01em; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d0f16f0, #0a0c12f0);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  z-index: 30;
}
.sidebar .brand { padding: 4px 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #8f9dff33, #a98bff33); border: 1px solid #8f9dff40;
  font-weight: 600; font-size: 13px; color: #cfd5ff;
}
.user-chip .who { min-width: 0; }
.user-chip .who b { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { font-size: 11.5px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 28px;
  background: #08090ef2;
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 16px; font-weight: 620; margin: 0; letter-spacing: -.01em; }
.btn.menu-btn { display: none; }
.content { padding: 26px 28px 48px; max-width: 1360px; width: 100%; animation: fade-up .25s var(--ease); }

/* ---------- Status pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.pill.online { color: var(--ok); background: var(--ok-soft); border-color: #3ddc9740; }
.pill.starting, .pill.stopping { color: var(--warn); background: var(--warn-soft); border-color: #f6c45340; }
.pill.starting .dot, .pill.stopping .dot { animation: pulse 1.1s infinite; }
.pill.offline { color: var(--text-3); }
.pill.crashed { color: var(--err); background: var(--err-soft); border-color: #ff6b7a40; }
.pill.neutral { color: var(--text-2); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), #0f121a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14px; font-weight: 620; margin: 0; }
.card-head .sub { color: var(--text-3); font-size: 12.5px; }
.card-body { padding: 18px 20px; }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 26px 0 10px; }

.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 14px; }
.hero h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.hero .meta { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.hero .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.stat { padding: 16px 18px; position: relative; overflow: hidden; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 550; text-transform: uppercase; letter-spacing: .1em; }
.stat .label svg { width: 15px; height: 15px; }
.stat .value { font-size: 25px; font-weight: 650; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.stat .foot { color: var(--text-2); font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s var(--ease); }
.bar.ok > i { background: linear-gradient(90deg, #2fbf83, var(--ok)); }
.bar.warn > i { background: linear-gradient(90deg, #e0a832, var(--warn)); }
.bar.err > i { background: linear-gradient(90deg, #e2505f, var(--err)); }
.spark { position: absolute; right: 0; bottom: 0; width: 45%; height: 30px; opacity: .45; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 560; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s, opacity .15s;
}
.btn:hover { background: var(--surface-3); border-color: #3a4258; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, #9aa7ff, #7f8df5); border-color: #9aa7ff; color: #0b0d18; }
.btn.primary:hover { background: linear-gradient(180deg, #a8b3ff, #8b98fa); }
.btn.success { color: var(--ok); border-color: #3ddc9750; background: var(--ok-soft); }
.btn.success:hover { background: #3ddc972b; }
.btn.warning { color: var(--warn); border-color: #f6c45350; background: var(--warn-soft); }
.btn.warning:hover { background: #f6c4532b; }
.btn.danger { color: var(--err); border-color: #ff6b7a50; background: var(--err-soft); }
.btn.danger:hover { background: #ff6b7a2b; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn.block { width: 100%; }
.btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.error-box { background: var(--err-soft); border: 1px solid #ff6b7a40; color: #ffb3bb; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.info-box { background: var(--accent-soft); border: 1px solid #8f9dff40; color: #cdd3ff; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.warn-box { background: var(--warn-soft); border: 1px solid #f6c45340; color: #ffe1a0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }

.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9cfdd; transition: transform .2s var(--ease), background .2s; }
.switch input:checked + i { background: #8f9dff55; border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); background: #fff; }
.switch input:disabled + i { opacity: .5; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--line-2); }
.check.on { border-color: #8f9dff60; background: #8f9dff0d; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check b { display: block; font-weight: 580; font-size: 13px; }
.check span { font-size: 12px; color: var(--text-3); }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.perm-group-title { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-top: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 560; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid #1a1f2b; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #ffffff05; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 580; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-soft); border-color: #3ddc9733; }
.tag.err { color: var(--err); background: var(--err-soft); border-color: #ff6b7a33; }
.tag.warn { color: var(--warn); background: var(--warn-soft); border-color: #f6c45333; }
.tag.accent { color: #c6cdff; background: var(--accent-soft); border-color: #8f9dff40; }
.empty { padding: 34px 20px; text-align: center; color: var(--text-3); }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 560; font-size: 13px; cursor: pointer; }
.tabs button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 #ffffff0d inset; }

/* ---------- Console ---------- */
.console-card { display: flex; flex-direction: column; height: calc(100vh - 60px - 52px - 20px); min-height: 420px; }
.console-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.console-toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 360px; }
.console-toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.console-toolbar .search .input { height: 32px; padding-left: 32px; }
.console-out {
  flex: 1; overflow: auto; padding: 10px 0;
  background: #06070b; font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  overscroll-behavior: contain;
}
.cl { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 0 14px; white-space: pre-wrap; word-break: break-word; }
.cl:hover { background: #ffffff06; }
.cl .ts { color: #4b5367; user-select: none; }
.cl.error { background: #ff6b7a0c; }
.cl.error .tx { color: #ff9aa5; }
.cl.warn .tx { color: #f9d27c; }
.cl.system .tx { color: #9fb0ff; }
.cl.input .tx { color: #9ff0c9; }
.cl.stderr .tx { color: #ff9aa5; }
.cl mark { background: #f6c45340; color: inherit; border-radius: 3px; }
.console-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }
.console-input .prompt { font-family: var(--mono); color: var(--accent); align-self: center; padding-left: 4px; }
.console-input .input { font-family: var(--mono); font-size: 13px; background: transparent; border-color: transparent; }
.console-input .input:focus { box-shadow: none; border-color: transparent; }
.jump { position: absolute; right: 22px; bottom: 74px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 560; cursor: pointer; }
.chip svg { width: 14px; height: 14px; }
.chip { white-space: nowrap; }
.chip.active { border-color: #8f9dff70; color: var(--text); background: var(--accent-soft); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--text-3); }
.chip.err-chip.active { border-color: #ff6b7a70; background: var(--err-soft); }
.chip.warn-chip.active { border-color: #f6c45370; background: var(--warn-soft); }

/* ---------- Schedule ---------- */
.times { display: flex; flex-direction: column; }
.time-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #1a1f2b; }
.time-row:last-child { border-bottom: 0; }
.time-row .t { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; width: 82px; }
.time-row.off .t { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.time-row .lbl { flex: 1; color: var(--text-2); min-width: 0; }
.countdown { font-size: 34px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: #04050acc; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px -20px #000; animation: fade-up .2s var(--ease); }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 640; }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.secret { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #06070b; border: 1px dashed #8f9dff70; font-family: var(--mono); font-size: 17px; letter-spacing: .04em; }
.secret span { flex: 1; word-break: break-all; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px #000; animation: fade-up .2s var(--ease); font-size: 13px; }
.toast .ic { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--accent); }
.toast.ok .ic { background: var(--ok); }
.toast.err .ic { background: var(--err); }
.toast.warn .ic { background: var(--warn); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(410px, 100%); padding: 30px 28px; animation: fade-up .3s var(--ease); }
.auth-card .brand { justify-content: center; flex-direction: column; text-align: center; gap: 12px; margin-bottom: 26px; }
.auth-card .brand-mark { width: 50px; height: 50px; }
.auth-card .brand-name { font-size: 21px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cfx-btn { background: #f40552; border-color: #f40552; color: #fff; }
.cfx-btn:hover { background: #ff1a63; border-color: #ff1a63; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--text-3); font-size: 12px; }

/* ================= Bans ================= */
.ban-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ban-stat { text-align: left; cursor: pointer; color: inherit; font: inherit; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.ban-stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ban-stat.active { border-color: #8f9dff80; background: linear-gradient(180deg, #8f9dff14, #0f121a); box-shadow: 0 0 0 1px #8f9dff30 inset, var(--shadow); }
.ban-stat .value { font-size: 28px; }
.ban-search { position: relative; max-width: 520px; }
.ban-search svg, .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.ban-search .input, .search .input { padding-left: 36px; }
.search { position: relative; }
.ban-table td, .ban-table th { padding-left: 12px; padding-right: 12px; }
.ban-table .ban-reason { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tr.clickable { cursor: pointer; }
.small { font-size: 11.5px; }
.inline-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-3); border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }
.id-list { display: flex; flex-wrap: wrap; gap: 6px; }
.id-chip { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); cursor: copy; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.id-chip:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 1400px) { .ban-table .col-date { display: none; } }
@media (max-width: 1100px) { .ban-table .col-admin { display: none; } }
@media (max-width: 900px) { .ban-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= CFG-Editor ================= */
.cfg-card { display: flex; flex-direction: column; overflow: hidden; }
select.input.cfg-select { width: auto; min-width: 220px; height: 32px; font-family: var(--mono); font-size: 13px; }
.cfg-editor { --lh: 21px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 60px - 260px); min-height: 380px;
  background: #06070b; overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: var(--lh); }
.cfg-gutter { position: relative; overflow: hidden; min-height: 0; text-align: right; color: #3e4559; user-select: none; min-width: 52px;
  border-right: 1px solid #ffffff0a; background: #08090f; }
.cfg-gutter-inner { padding: 12px 10px 12px 14px; will-change: transform; }
.cfg-gutter-inner div { height: var(--lh); }
.cfg-code { position: relative; overflow: hidden; min-height: 0; }
.cfg-hl, .cfg-ta { margin: 0; padding: 12px 16px; font: inherit; line-height: inherit; tab-size: 4; white-space: pre; letter-spacing: 0; word-spacing: 0; }
.cfg-hl { position: absolute; top: 0; left: 0; min-width: 100%; color: #cfd5e6; pointer-events: none; will-change: transform; }
.cfg-ta { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; border: 0; outline: none; overflow: auto;
  background: transparent; color: transparent; caret-color: #c3cbff; -webkit-text-fill-color: transparent; }
.cfg-ta::selection { background: #8f9dff44; -webkit-text-fill-color: transparent; }
.cfg-status { display: flex; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; background: var(--bg-2); }
.t-com { color: #5c6680; font-style: italic; }
.t-res { color: #8f9dff; font-weight: 600; }
.t-resname { color: #e8ebf3; }
.t-set { color: #c792ea; font-weight: 600; }
.t-var { color: #82aaff; }
.t-exec { color: #5eead4; font-weight: 600; }
.t-ace { color: #f6c453; font-weight: 600; }
.t-net { color: #6cb4ff; font-weight: 600; }
.t-cmd { color: #a4acbe; }
.t-str { color: #a5e3a0; }
.t-num { color: #f78c6c; }
.t-bool { color: #ff9cac; }
@media (max-width: 900px) { .cfg-editor { height: calc(100vh - 60px - 320px); } select.input.cfg-select { min-width: 0; flex: 1 1 100%; } }

/* ================= Anmeldeseite ================= */
.login-page { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #1a1640 0%, #0b0b1d 45%, #05060b 100%); }
.star { position: absolute; border-radius: 50%; background: #fff; opacity: .2; animation: twinkle 4s ease-in-out infinite; will-change: opacity; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.aurora { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; transform: translateZ(0); }
.aurora.a1 { width: 70vw; height: 70vw; left: -20vw; top: -30vw; background: radial-gradient(circle, rgba(91, 92, 255, .55) 0%, rgba(91, 92, 255, .18) 35%, transparent 68%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 60vw; height: 60vw; right: -15vw; top: 5vh; background: radial-gradient(circle, rgba(162, 75, 255, .45) 0%, rgba(162, 75, 255, .14) 35%, transparent 68%); opacity: .45; animation: drift2 26s ease-in-out infinite alternate; }
.aurora.a3 { width: 80vw; height: 50vw; left: 10vw; bottom: -30vw; background: radial-gradient(ellipse, rgba(43, 212, 197, .35) 0%, rgba(43, 212, 197, .1) 35%, transparent 68%); opacity: .3; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, 12vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-8vw, -6vh) scale(1.1); } }
.shooting { position: absolute; width: 160px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #ffffff, #b9c2ff80, transparent); transform: rotate(-24deg); }
.shooting.s1 { top: 14%; left: 70%; animation: shoot 11s ease-in 2.5s infinite; }
.shooting.s2 { top: 32%; left: 92%; animation: shoot 15s ease-in 8s infinite; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-24deg) translateX(0); }
  2% { opacity: 1; }
  8% { opacity: 0; transform: rotate(-24deg) translateX(-55vw); }
  100% { opacity: 0; transform: rotate(-24deg) translateX(-55vw); }
}

.login-grid { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 520px);
  align-items: center; gap: clamp(32px, 6vw, 110px); padding: 48px clamp(20px, 7vw, 120px); max-width: 1500px; margin: 0 auto; }

.login-hero { animation: rise .9s var(--ease) both; }
.hero-mark { position: relative; width: 112px; height: 112px; margin-bottom: 30px; }
.hero-logo { position: relative; z-index: 1; width: 112px; height: 112px; animation: float 6s ease-in-out infinite; will-change: transform; }
.hero-mark::after { content: ""; position: absolute; inset: 10px; border-radius: 30px; box-shadow: 0 14px 40px #6f5cff55; z-index: 0; }
.halo { position: absolute; inset: -18px; border-radius: 34px; border: 1px solid #8f9dff40; animation: halo 3.6s ease-out infinite; }
.halo.h2 { animation-delay: 1.8s; }
@keyframes halo { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-2deg); } }
.hero-title { margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1; font-weight: 750; letter-spacing: -.035em; }
.hero-title .grad { background: linear-gradient(100deg, #c3cbff 0%, #8f9dff 35%, #b48cff 65%, #8f9dff 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -220% center; } }
.hero-sub { margin-top: 14px; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .42em; text-transform: uppercase; color: #9aa3c4; }
.hero-features { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 640px; }
.hero-features li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: #ffffff08; border: 1px solid #ffffff10; animation: rise .7s var(--ease) both;
  transition: transform .25s var(--ease), border-color .25s, background .25s; }
.hero-features li:hover { transform: translateY(-3px); border-color: #8f9dff50; background: #8f9dff0d; }
.hero-features .fi { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #8f9dff30, #a98bff20); color: #c3cbff; border: 1px solid #8f9dff40; }
.hero-features .fi svg { width: 19px; height: 19px; }
.hero-features b { display: block; font-size: 15px; font-weight: 620; }
.hero-features span { font-size: 13px; color: var(--text-3); }
.hero-meta { margin-top: 34px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #3ddc9799; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #3ddc9799; } 70% { box-shadow: 0 0 0 10px #3ddc9700; } 100% { box-shadow: 0 0 0 0 #3ddc9700; } }

.login-card { position: relative; width: 100%; padding: 44px 42px 30px; border-radius: 24px;
  background: linear-gradient(180deg, #151a2bf2, #0d1020f7);
  border: 1px solid #ffffff14; box-shadow: 0 40px 120px -30px #000, 0 0 0 1px #8f9dff10 inset, 0 1px 0 #ffffff12 inset;
  animation: card-in .9s var(--ease) .15s both; }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, #8f9dff66, transparent 35%, transparent 65%, #b48cff55);
  animation: border-glow 6s ease-in-out infinite; will-change: opacity; }
@keyframes border-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.login-card { isolation: isolate; }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-card.leaving { animation: card-out .55s var(--ease) both; }
@keyframes card-out { to { opacity: 0; transform: translateY(-14px) scale(.96); } }
.login-card.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.login-head p { margin: 8px 0 4px; color: var(--text-2); font-size: 15px; }
.login-head { animation: rise .7s var(--ease) .3s both; }
.stagger { animation: rise .7s var(--ease) both; }
.login-form .stagger:nth-of-type(1) { animation-delay: .38s; }
.login-form .stagger:nth-of-type(2) { animation-delay: .46s; }
.login-form .stagger:nth-of-type(3) { animation-delay: .54s; }
.login-form .stagger:nth-of-type(4) { animation-delay: .62s; }
.login-form .stagger:nth-of-type(5) { animation-delay: .70s; }
.login-form label { font-size: 13.5px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); transition: color .2s; pointer-events: none; }
.login-form .input { height: 54px; font-size: 16px; padding-left: 48px; border-radius: 13px; background: #070912b3; border-color: #2a3147;
  transition: border-color .2s, box-shadow .25s, background .2s; }
.login-form .input:hover { border-color: #3a4462; }
.login-form .input:focus { border-color: #8f9dff; background: #0a0d1a; box-shadow: 0 0 0 4px #8f9dff26, 0 8px 30px -10px #8f9dff60; }
.input-icon:focus-within > svg { color: #b3beff; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.eye:hover { background: #ffffff0d; color: var(--text); }
.eye svg { width: 19px; height: 19px; }
.input-icon:has(.eye) .input { padding-right: 52px; }

.login-btn { height: 54px; font-size: 16px; border-radius: 13px; position: relative; overflow: hidden; gap: 10px;
  box-shadow: 0 12px 34px -12px #8f9dffaa; transition: transform .2s var(--ease), box-shadow .25s, background .3s; }
.login-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.login-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -12px #8f9dffcc; }
.login-btn:hover:not(:disabled) svg { transform: translateX(4px); }
.login-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff70, transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.login-btn:hover:not(:disabled)::after { left: 130%; }
.login-btn.loading svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.login-btn.success { background: linear-gradient(180deg, #4fe5a5, #2fbf83); border-color: #4fe5a5; color: #04130c; }
.login-btn:disabled { opacity: 1; cursor: progress; }
.login-cfx { height: 52px; font-size: 15px; border-radius: 13px; transition: transform .2s var(--ease), box-shadow .25s, background .2s; }
.login-cfx:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px #f40552aa; text-decoration: none; }
.login-cfx svg { width: 18px; height: 18px; }
.login-error { animation: rise .35s var(--ease) both; font-size: 14px; }
.login-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid #ffffff0f; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 12.5px; }
.login-foot svg { width: 14px; height: 14px; }
.setup-card { width: min(500px, 100%); }
.setup-card .brand { justify-content: center; flex-direction: column; text-align: center; gap: 12px; margin-bottom: 24px; }
.setup-card .brand-mark { width: 60px; height: 60px; }
.setup-card .brand-name { font-size: 22px; }
.setup-card .input { height: 46px; }

@media (max-width: 1000px) {
  .login-grid { grid-template-columns: 1fr; justify-items: center; padding: 40px 18px; gap: 34px; }
  .login-hero { text-align: center; }
  .hero-mark { margin: 0 auto 22px; width: 84px; height: 84px; }
  .hero-logo { width: 84px; height: 84px; }
  .hero-features { display: none; }
  .hero-meta { display: none; }
  .login-card { max-width: 500px; padding: 34px 24px 24px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 40px; }
  .hero-sub { letter-spacing: .3em; }
  .login-head h2 { font-size: 24px; }
}

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }

.player-list { max-height: 360px; overflow: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: 30px 0 60px -20px #000; }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: #0008; z-index: 25; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
  .hero .actions { margin-left: 0; width: 100%; }
  .hero .actions .btn { flex: 1; }
  .console-card { height: calc(100vh - 60px - 36px); }
  .cl { grid-template-columns: 1fr; gap: 0; padding: 2px 12px; }
  .cl .ts { font-size: 11px; }
}
@media (max-width: 520px) {
  .grid.stats { grid-template-columns: 1fr 1fr; }
  .stat .value { font-size: 21px; }
  .stat { padding: 14px; }
  .topbar .pill { display: none; }
  .table th, .table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.info-box > svg, .warn-box > svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 600px) { .ban-search { flex: 1 1 100%; max-width: none; } }

/* ================= Zwei-Faktor & Bestätigung ================= */
.code-input { font-family: var(--mono); font-size: 18px; letter-spacing: .18em; text-align: center; max-width: 220px; }
.login-form .code-input.big { max-width: none; height: 64px; font-size: 28px; letter-spacing: .35em; padding-left: 16px; text-align: center; }
.tfa-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, #8f9dff33, #a98bff22); border: 1px solid #8f9dff50; color: #c3cbff; animation: float 5s ease-in-out infinite; }
.tfa-badge svg { width: 26px; height: 26px; }
.code-hint { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.tfa-setup { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qr-wrap { padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px -12px #8f9dff80; }
.qr-wrap svg { display: block; width: 210px; height: 210px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.steps li.plain { list-style: none; margin-left: -20px; }
.secret-key { display: inline-block; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; padding: 8px 10px; border-radius: 8px;
  background: var(--bg-2); border: 1px dashed #8f9dff70; color: var(--text); user-select: all; word-break: break-all; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-grid code { font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-align: center; padding: 9px; border-radius: 8px;
  background: #06070b; border: 1px solid var(--line-2); user-select: all; }
.reauth-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: #c3cbff; border: 1px solid #8f9dff40; }
.reauth-icon svg { width: 20px; height: 20px; }
.wide-card { width: min(680px, 100%); }
@media (max-width: 640px) {
  .tfa-setup { grid-template-columns: 1fr; justify-items: center; }
  .qr-wrap svg { width: 190px; height: 190px; }
}

.id-badge { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--accent-soft); color: #c6cdff; border: 1px solid #8f9dff40; }
.player-note { padding: 10px 16px; font-size: 12px; color: var(--warn); border-top: 1px solid var(--line); }

.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.reason-chips .chip { height: 26px; font-size: 12px; }
.ban-btn { color: var(--text-3); }
.ban-btn:hover { color: var(--err); background: var(--err-soft); }

.bridge-diag ul { margin: 6px 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bridge-diag li { word-break: break-word; }

/* ---------------------------------------------------------------- Serverauswahl (Haupt-/Testserver) */
.server-switch { margin-top: 6px; }
.server-switch .nav-label { padding-top: 10px; }
.server-seg { display: grid; gap: 4px; padding: 4px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.server-seg .seg {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.server-seg .seg:hover { background: var(--surface-2); color: var(--text); }
.server-seg .seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.server-seg .seg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.server-seg .seg.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.server-seg .seg.active .seg-dot { background: var(--accent); box-shadow: 0 0 0 3px #8f9dff33; }
.server-seg .seg.alt.active { background: var(--warn-soft); box-shadow: inset 2px 0 0 var(--warn); }
.server-seg .seg.alt.active .seg-dot { background: var(--warn); box-shadow: 0 0 0 3px #f6c45333; }

/* Deutliche Kennzeichnung, solange ein Nebenserver (z. B. Testserver) ausgewählt ist */
.server-badge {
  margin-left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border: 1px solid #f6c45340;
  white-space: nowrap;
}
.shell.on-alt-server .topbar { box-shadow: inset 0 -2px 0 var(--warn); }

/* ---------------------------------------------------------------- Entwicklung */
.dev-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 28px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dev-drop svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.dev-drop b { font-size: 14.5px; }
.dev-drop span { max-width: 560px; }
.dev-drop:hover, .dev-drop:focus-visible, .dev-drop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dev-drop.disabled { opacity: .55; pointer-events: none; }
.dev-progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dev-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.dev-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-3); color: var(--accent); flex: none; }
.dev-ico svg { width: 17px; height: 17px; }
.dev-table td { vertical-align: middle; }

/* ---------------------------------------------------------------- Datenbank */
.db-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-info svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.db-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.db-side { position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
.db-side .card-head { padding: 12px; }
.db-tables { overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.db-tab {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.db-tab svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.db-tab:hover { background: var(--surface-2); color: var(--text); }
.db-tab.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.db-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-main { min-width: 0; }
.db-main .card-head h2 { display: flex; align-items: center; gap: 6px; }
.db-main .card-head h2 svg { width: 16px; height: 16px; color: var(--accent); }
.db-search { width: 260px; max-width: 100%; }
.db-grid { max-height: calc(100vh - 260px); overflow: auto; }
.db-table th, .db-table td { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.db-table th.sortable { cursor: pointer; user-select: none; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.db-table th.sortable:hover, .db-table th.active { color: var(--text); }
.db-key { margin-right: 4px; font-size: 11px; }
.db-null { color: var(--text-3); font-style: italic; font-size: 12px; }
.db-bin { color: var(--text-3); font-size: 12px; }
.db-more { color: var(--accent); }
.db-pager { padding: 10px 16px; border-top: 1px solid var(--line); }
.db-form { display: grid; gap: 12px; max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.db-field label:first-child { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.db-textarea { min-height: 70px; resize: vertical; font-size: 12.5px; }
.db-nullbox { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--text-3); cursor: pointer; }
.db-is-null { opacity: .45; }
@media (max-width: 900px) {
  .db-layout { grid-template-columns: 1fr; }
  .db-side { position: static; max-height: 260px; }
}

/* ---------------------------------------------------------------- Code-Editor */
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn.xs.icon { width: 26px; padding: 0; }
.btn.xs svg { width: 14px; height: 14px; }
.code-page { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 110px); min-height: 480px; }
.code-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.code-title svg { width: 18px; height: 18px; color: var(--accent); }
.code-title .dim { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.code-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg-2); }
.code-side-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); letter-spacing: .08em; }
.code-tree { flex: 1; overflow: auto; padding: 4px 0; font-size: 13px; }
.code-item { display: flex; align-items: center; gap: 6px; height: 28px; padding-right: 6px; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.code-item svg { width: 14px; height: 14px; flex: none; opacity: .75; }
.code-item.dir svg { color: var(--accent); opacity: .9; }
.code-item:hover { background: var(--surface-2); color: var(--text); }
.code-item.active { background: var(--accent-soft); color: var(--text); }
.code-item.locked { opacity: .5; }
.code-ico { width: 10px; flex: none; color: var(--text-3); font-size: 10px; }
.code-name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.code-dot { color: var(--warn); font-size: 10px; }
.code-actions { display: none; gap: 2px; }
.code-item:hover .code-actions { display: flex; }
.code-actions .btn { height: 22px; width: 22px; background: transparent; border-color: transparent; }
.code-actions .btn:hover { background: var(--surface-3); }
.code-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.code-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg-2); min-height: 36px; }
.code-tab { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; height: 36px; font-size: 12.5px; color: var(--text-3); border-right: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.code-tab.active { background: var(--surface); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.code-tab.dirty span { font-style: italic; }
.code-tab-x { border: 0; background: transparent; color: var(--text-3); width: 20px; height: 20px; border-radius: 4px; cursor: pointer; font-size: 13px; line-height: 1; }
.code-tab.dirty .code-tab-x { color: var(--warn); }
.code-tab-x:hover { background: var(--surface-3); color: var(--text); }
.code-host { flex: 1; min-height: 0; position: relative; }
.code-host > .empty { position: absolute; inset: 0; display: grid; place-items: center; }
.code-host .CodeMirror { height: 100%; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size: 13px; line-height: 1.55; }
.code-status { padding: 5px 12px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--line); background: var(--bg-2); font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 26px; }
@media (max-width: 900px) {
  .code-page { height: auto; }
  .code-body { grid-template-columns: 1fr; }
  .code-side { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .code-host { height: 60vh; }
  .code-actions { display: flex; }
}

/* CodeMirror-Farbschema passend zum Panel */
.cm-s-nbv.CodeMirror { background: var(--surface); color: #d7dbe8; }
.cm-s-nbv .CodeMirror-gutters { background: var(--bg-2); border-right: 1px solid var(--line); }
.cm-s-nbv .CodeMirror-linenumber { color: #4d5570; }
.cm-s-nbv .CodeMirror-cursor { border-left: 2px solid #9aa7ff; }
.cm-s-nbv div.CodeMirror-selected, .cm-s-nbv.CodeMirror-focused div.CodeMirror-selected { background: #3b46805e; }
.cm-s-nbv .CodeMirror-line::selection, .cm-s-nbv .CodeMirror-line > span::selection, .cm-s-nbv .CodeMirror-line > span > span::selection { background: #3b468080; }
.cm-s-nbv .CodeMirror-activeline-background { background: #ffffff07; }
.cm-s-nbv .CodeMirror-activeline-gutter { background: #ffffff07; }
.cm-s-nbv .CodeMirror-matchingbracket { color: #fff !important; outline: 1px solid #8f9dff88; }
.cm-s-nbv .cm-keyword { color: #c792ea; }
.cm-s-nbv .cm-atom, .cm-s-nbv .cm-number { color: #f78c6c; }
.cm-s-nbv .cm-def { color: #82aaff; }
.cm-s-nbv .cm-variable { color: #d7dbe8; }
.cm-s-nbv .cm-variable-2 { color: #8fc8ff; }
.cm-s-nbv .cm-variable-3, .cm-s-nbv .cm-type { color: #ffcb6b; }
.cm-s-nbv .cm-builtin { color: #82aaff; }
.cm-s-nbv .cm-property { color: #a6b5ff; }
.cm-s-nbv .cm-operator { color: #89ddff; }
.cm-s-nbv .cm-comment { color: #5f6a88; font-style: italic; }
.cm-s-nbv .cm-string, .cm-s-nbv .cm-string-2 { color: #c3e88d; }
.cm-s-nbv .cm-meta, .cm-s-nbv .cm-qualifier { color: #ffcb6b; }
.cm-s-nbv .cm-tag { color: #f07178; }
.cm-s-nbv .cm-attribute { color: #ffcb6b; }
.cm-s-nbv .cm-header { color: #82aaff; font-weight: 600; }
.cm-s-nbv .cm-bracket { color: #89ddff; }
.cm-s-nbv .cm-error { color: #ff5370; }
.CodeMirror-dialog { background: var(--surface-2); color: var(--text); border-color: var(--line) !important; padding: 8px 12px; font-size: 13px; }
.CodeMirror-dialog input { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; font: inherit; width: 18em; }
.CodeMirror-search-match { background: #ffcb6b40; }

/* ---------------------------------------------------------------- Inhalte: Fahrzeuge & Kleidung */
.ct-page { --ct-glow: #8f9dff; }
.ct-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(111, 92, 255, .18), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(43, 212, 197, .10), transparent 60%), var(--surface);
  animation: ct-rise .5s var(--ease) both;
}
.ct-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%);
  transform: translateX(-100%); animation: ct-sheen 6s ease-in-out 1s infinite;
}
.ct-hero-ico {
  flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(143, 157, 255, .28), rgba(180, 140, 255, .12)); border: 1px solid rgba(143, 157, 255, .35);
  color: #c9d0ff; box-shadow: 0 10px 30px rgba(111, 92, 255, .25); animation: ct-float 5s ease-in-out infinite;
}
.ct-hero-ico svg { width: 32px; height: 32px; }
.ct-hero-text { flex: 1 1 320px; min-width: 0; }
.ct-hero-text h2 { margin: 0 0 4px; font-size: 20px; }
.ct-hero-text p { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; max-width: 720px; }
.ct-hero-path { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace); font-size: 12px; color: var(--text-3); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ct-hero-path svg { width: 13px; height: 13px; }
.ct-hero-stats { display: flex; gap: 10px; }
.ct-stat { min-width: 96px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; }
.ct-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.ct-stat span { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }

.ct-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 30px 20px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--bg-2);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.ct-drop span { max-width: 620px; }
.ct-drop-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); margin-bottom: 4px; transition: transform .3s var(--ease); }
.ct-drop-ico svg { width: 24px; height: 24px; }
.ct-drop:hover, .ct-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.ct-drop:hover .ct-drop-ico { transform: translateY(-3px); }
.ct-drop.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.ct-drop.over .ct-drop-ico { animation: ct-bounce .8s ease-in-out infinite; }
.ct-drop.disabled { opacity: .55; pointer-events: none; }
.ct-progress { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ct-progress-bar { position: relative; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2, #b48cff)); transition: width .25s ease; overflow: hidden; }
.ct-progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: ct-shimmer 1.1s linear infinite; }
.ct-progress.done .ct-progress-bar { background: linear-gradient(90deg, #2bd4a0, #2bd4c5); }

.ct-toolbar { display: flex; align-items: center; gap: 10px; }
.ct-toolbar .search { max-width: 420px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ct-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.ct-card:hover { transform: translateY(-3px); border-color: rgba(143, 157, 255, .4); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px rgba(143, 157, 255, .08); }
.ct-card.enter { animation: ct-rise .45s var(--ease) both; }
.ct-card.fresh { animation: ct-pop .6s var(--ease) both; border-color: rgba(43, 212, 160, .6); box-shadow: 0 0 0 3px rgba(43, 212, 160, .15); }
.ct-card.leaving { animation: ct-leave .35s ease-in forwards; pointer-events: none; }
.ct-card.skeleton { height: 150px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: ct-skeleton 1.4s linear infinite; }
.ct-card-top { display: flex; align-items: center; gap: 12px; }
.ct-card-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); transition: background .3s, color .3s; }
.ct-card-ico svg { width: 22px; height: 22px; }
.ct-card-ico.on { background: rgba(43, 212, 160, .14); color: #4be0b0; box-shadow: 0 0 0 1px rgba(43, 212, 160, .25); }
.ct-card:hover .ct-card-ico svg { animation: ct-wiggle .5s ease; }
.ct-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-card-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ct-chip { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: rgba(143, 157, 255, .1); color: #b9c2ff; border: 1px solid rgba(143, 157, 255, .2); font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace); }
.ct-chip.more { background: transparent; color: var(--text-3); }
.ct-warn { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--warn); }
.ct-warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ct-note { font-size: 12px; color: var(--text-3); }
.ct-card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ct-actions { display: flex; gap: 6px; }
.ct-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; animation: ct-rise .4s var(--ease) both; }
.ct-empty-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); margin-bottom: 4px; animation: ct-float 4s ease-in-out infinite; }
.ct-empty-ico svg { width: 26px; height: 26px; }

@keyframes ct-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ct-pop { 0% { opacity: 0; transform: scale(.94); } 60% { opacity: 1; transform: scale(1.02); } 100% { transform: none; } }
@keyframes ct-leave { to { opacity: 0; transform: scale(.94) translateY(6px); } }
@keyframes ct-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ct-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ct-wiggle { 0%, 100% { transform: none; } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
@keyframes ct-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ct-sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ct-skeleton { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ct-page *, .ct-page *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 700px) {
  .ct-hero-stats { width: 100%; }
  .ct-stat { flex: 1; }
  .ct-grid { grid-template-columns: 1fr; }
}

/* ================================================================ App-Modus (iOS/Android) */
.nbv-app, .nbv-app body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
.nbv-app body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nbv-app input, .nbv-app textarea, .nbv-app select, .nbv-app .CodeMirror, .nbv-app .console-out, .nbv-app td, .nbv-app .mono, .nbv-app .secret { -webkit-user-select: text; user-select: text; }
.nbv-app .shell { grid-template-columns: 1fr; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.nbv-app .sidebar {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: auto; max-height: 82vh;
  padding: 10px 14px calc(76px + env(safe-area-inset-bottom)); overflow-y: auto;
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); border-right: 0;
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .9, .2, 1); box-shadow: 0 -20px 60px #000a;
}
.nbv-app .sidebar::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 2px auto 12px; }
.nbv-app .shell.nav-open .sidebar { transform: none; }
.nbv-app .shell::after { content: ""; position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 35; }
.nbv-app .shell.nav-open::after { opacity: .55; pointer-events: auto; }
.nbv-app .topbar { padding-top: calc(10px + env(safe-area-inset-top)); min-height: calc(56px + env(safe-area-inset-top)); background: #08090ef5; }
.nbv-app .topbar .menu-btn { display: none; }
.nbv-app .topbar h1 { font-size: 20px; letter-spacing: -.01em; }
.nbv-app .content { padding: 16px 14px 28px; }
.nbv-app .content.pg-fwd { animation: pg-in-r .34s cubic-bezier(.2, .9, .2, 1) both; }
.nbv-app .content.pg-back { animation: pg-in-l .34s cubic-bezier(.2, .9, .2, 1) both; }
.nbv-app .content.pg-fade { animation: pg-fade .45s var(--ease) both; }
@keyframes pg-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pg-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pg-fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Tab-Leiste unten */
.nbv-app .tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #0b0d14f7; border-top: 1px solid var(--line);
}
.nbv-app .tab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
  border: 0; background: none; color: var(--text-3); font: inherit; font-size: 10.5px; font-weight: 550; text-decoration: none; border-radius: 12px;
  transition: color .2s;
}
.nbv-app .tab .tab-ico { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 99px; transition: background .25s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.nbv-app .tab svg { width: 21px; height: 21px; }
.nbv-app .tab.active { color: var(--text); }
.nbv-app .tab.active .tab-ico { background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.nbv-app .tab:active .tab-ico { transform: scale(.88); }
.nbv-app .tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }

/* Größere Tippflächen, weiche Rückmeldung */
.nbv-app .btn { min-height: 40px; transition: transform .12s ease, background .2s, border-color .2s, opacity .2s; }
.nbv-app .btn.sm { min-height: 34px; }
.nbv-app .btn:active:not(:disabled) { transform: scale(.96); }
.nbv-app .card { border-radius: 16px; }
.nbv-app .nav a { min-height: 46px; }
.nbv-app .nav a:active { transform: scale(.98); }
.nbv-app input.input, .nbv-app select.input, .nbv-app textarea.input { font-size: 16px; } /* verhindert iOS-Zoom */

/* Dialoge als Bottom-Sheet */
@media (max-width: 700px) {
  .nbv-app .modal-bg { align-items: flex-end; padding: 0; }
  .nbv-app .modal { width: 100%; max-width: none; max-height: 90vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .38s cubic-bezier(.2, .9, .2, 1) both; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* Toasts über der Tab-Leiste */
.nbv-app #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }

/* Zum Aktualisieren ziehen */
.nbv-app .ptr {
  position: fixed; z-index: 60; left: 50%; top: calc(64px + env(safe-area-inset-top)); width: 36px; height: 36px; margin-left: -18px;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center;
  opacity: 0; transform: translateY(calc(-30px + var(--pull, 0) * 30px)) scale(calc(.6 + var(--pull, 0) * .4)); pointer-events: none; transition: opacity .2s;
}
.nbv-app .ptr.show { opacity: 1; }
.nbv-app .ptr-ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; transform: rotate(calc(var(--pull, 0) * 300deg)); }
.nbv-app .ptr.spin .ptr-ring { animation: spin .7s linear infinite; }
.brand-mark.lg { width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) { .nbv-app .content { animation: none !important; } }
.nbv-app .console-card, .nbv-app .code-page, .nbv-app .cfg-editor { height: calc(100dvh - 56px - env(safe-area-inset-top) - 70px - env(safe-area-inset-bottom) - 40px); }
.nbv-app .code-page { min-height: 0; }
.ico-inline { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* App: Tabellen als Karten */
.nbv-app .table-wrap:has(> table.cardify) { overflow: visible; }
.nbv-app table.cardify, .nbv-app table.cardify tbody { display: block; width: 100%; }
.nbv-app table.cardify thead { display: none; }
.nbv-app table.cardify tr { display: block; margin: 10px 12px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); animation: row-card-in .35s var(--ease) backwards; }
.nbv-app table.cardify tbody tr:nth-child(2) { animation-delay: .03s; } .nbv-app table.cardify tbody tr:nth-child(3) { animation-delay: .06s; }
.nbv-app table.cardify tbody tr:nth-child(4) { animation-delay: .09s; } .nbv-app table.cardify tbody tr:nth-child(n+5) { animation-delay: .12s; }
.nbv-app table.cardify td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; border: 0; text-align: right; min-height: 0; word-break: break-word; }
.nbv-app table.cardify td + td { border-top: 1px solid #1a1f2b; }
.nbv-app table.cardify td::before { content: attr(data-label); flex: none; max-width: 42%; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.nbv-app table.cardify td[data-label=""]::before, .nbv-app table.cardify td:not([data-label])::before { display: none; }
.nbv-app table.cardify td[data-label=""] { justify-content: flex-end; }
.nbv-app table.cardify td[colspan] { justify-content: center; text-align: center; }
.nbv-app table.cardify td > * { min-width: 0; }
.nbv-app table.cardify tr:hover td { background: transparent; }
@keyframes row-card-in { from { opacity: 0; transform: translateY(8px); } }
