:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --panel: rgba(14, 14, 17, .62);
  --panel-solid: #111114;
  --panel-2: rgba(44, 44, 50, .45);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 42, 58, .55);
  --text: #f2f2f3;
  --muted: #9a9aa2;
  --silver: linear-gradient(180deg, #ffffff 0%, #d9d9de 42%, #8c8c94 100%);
  --primary: #ff2a3a;
  --primary-2: #ff5c68;
  --glow: 0 0 17px rgba(255, 42, 58, .19);
  --danger: #ff4d73;
  --warn: #f5b042;
  --ok: #3ee0a0;
  --font: 'Outfit', system-ui, sans-serif;
  --display: 'Chakra Petch', 'Outfit', sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14.5px;
  letter-spacing: .01em;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(200, 20, 40, .13), transparent 58%),
    radial-gradient(720px 420px at -10% 110%, rgba(120, 10, 20, .16), transparent 55%),
    linear-gradient(180deg, #0a0a0b 0%, #030303 100%);
  -webkit-font-smoothing: antialiased;
}

.app-page { position: relative; }
.app-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url('assets/sentinel-eye.png') 85% 20% / min(760px, 55vw) no-repeat;
  opacity: .05;
}
.sidebar, main { z-index: 1; }
main { position: relative; }
.modal, #toast, .ban-alert { z-index: 50; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #ffd0d4; }

h1, h2, h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
}
h1, h2 {
  color: #f0f0f2;
}
h2 {
  font-size: 28px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h3 { font-size: 16px; color: var(--text); letter-spacing: .06em; text-transform: uppercase; }

.kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #acacb4;
}

code, pre { font-family: 'Cascadia Code', Consolas, 'Courier New', monospace; font-size: 12px; }
pre {
  background: rgba(3, 3, 4, .55);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
  color: #d4d4d8;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--danger); min-height: 18px; }

/* ---------- Cartes ---------- */

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 28%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
a.card {
  display: block;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
}
a.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow), 0 18px 50px rgba(0, 0, 0, .5);
  transform: translateY(-4px);
}
a.card h3 { margin-bottom: 12px; }
.card.narrow { width: 100%; max-width: 430px; }

/* ---------- Formulaires ---------- */

label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  background: rgba(6, 6, 7, .78);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-2);
  background: rgba(14, 14, 16, .9);
  box-shadow: 0 0 0 4px rgba(255, 42, 58, .14), var(--glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .15s, filter .15s, box-shadow .2s, border-color .2s;
}
.btn:hover { filter: brightness(1.14); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, #c4101f 0%, #ff3d4c 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}
.btn.danger { background: linear-gradient(135deg, #c51f48, var(--danger)); border-color: transparent; color: #fff; }
.btn.warn { background: linear-gradient(135deg, #d8890a, var(--warn)); border-color: transparent; color: #1a1204; }
.btn.ok { background: linear-gradient(135deg, #14a56c, var(--ok)); border-color: transparent; color: #04140d; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 11px; font-size: 12px; border-radius: 10px; }
.btn.full { width: 100%; padding: 12px 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Page de connexion ---------- */

.center-page { align-items: center; justify-content: center; padding: 24px; }

.login-page {
  position: relative;
  flex-direction: column;
  background:
    radial-gradient(800px 480px at 50% 0%, rgba(255, 42, 58, .08), transparent 65%),
    linear-gradient(180deg, #0a0a0b 0%, #030303 100%);
}
.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-logo {
  display: block;
  width: min(380px, 86vw);
  margin-bottom: 6px;
  filter: drop-shadow(0 0 17px rgba(255, 42, 58, .14));
  animation: login-in .8s ease-out both;
}
.login-wrap .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  color: var(--muted);
}
.login-wrap .kicker::before, .login-wrap .kicker::after { content: ''; width: 28px; height: 1px; background: var(--primary); box-shadow: 0 0 5px var(--primary); }
.login-card {
  position: relative;
  width: 100%;
  padding: 28px 30px 24px;
  background: rgba(12, 12, 14, .82);
  box-shadow: 0 0 36px rgba(255, 42, 58, .06), 0 30px 80px rgba(0, 0, 0, .6);
  text-align: center;
}
.login-card::before, .login-card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--primary);
}
.login-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: var(--radius); }
.login-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: var(--radius); }
.login-card form { text-align: left; margin-top: 18px; }
.login-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-style: italic;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-credit { margin: 18px 0 0; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: #55555c; }

@keyframes login-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Œil du logo, version carrée */
.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: url('assets/sentinel-eye.png') center / contain no-repeat;
}
.brand-logo.large { width: 56px; height: 56px; }

/* ---------- Menu latéral ---------- */

.sidebar {
  width: 248px;
  background: linear-gradient(180deg, rgba(12, 12, 14, .88), rgba(6, 6, 8, .9));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(22px);
  box-shadow: 12px 0 40px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 24px 20px 18px; }
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text span { display: block; font-size: 10px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.sidebar nav { display: flex; flex-direction: column; padding: 8px 12px; gap: 4px; }
.sidebar nav a {
  color: var(--muted);
  padding: 11px 14px 11px 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  transition: all .2s;
}
.sidebar nav a::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  opacity: .7;
  font-size: 13px;
}
.sidebar nav a[data-nav="servers"]::before { content: '◉'; }
.sidebar nav a[data-nav="lookup"]::before { content: '⌕'; font-size: 16px; }
.sidebar nav a[data-nav="guilds"]::before { content: '⚠'; }
.sidebar nav a[data-nav="account"]::before { content: '✦'; }
.sidebar nav a:hover { color: var(--text); background: var(--panel-2); }
.sidebar nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 42, 58, .28), rgba(255, 42, 58, .05));
  border-color: var(--border-strong);
  box-shadow: inset 3px 0 0 var(--primary-2);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}

main {
  flex: 1;
  padding: 34px 36px 48px;
  max-width: 1380px;
  overflow-x: auto;
}

/* ---------- Mise en page ---------- */

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.spacer { flex: 1; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs a {
  padding: 9px 14px;
  color: var(--muted);
  border-radius: 10px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 70, 85, .32), rgba(255, 42, 58, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.actions { text-align: right; white-space: nowrap; width: 1%; }
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(255,255,255,.02);
}
tbody tr { transition: background .15s; }
tbody tr:hover td { background: rgba(255, 42, 58, .07); }
tbody tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .03em;
}
.badge.ok { color: var(--ok); border-color: rgba(62, 224, 160, .4); background: rgba(62, 224, 160, .1); }
.badge.ok::before, .badge.danger::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 5px currentColor; }
.badge.danger { color: var(--danger); border-color: rgba(255, 77, 115, .45); background: rgba(255, 77, 115, .1); }
.badge.warn { color: var(--warn); border-color: rgba(245, 176, 66, .45); background: rgba(245, 176, 66, .1); }
.badge.info { color: var(--primary-2); border-color: var(--border-strong); background: rgba(255, 42, 58, .12); }

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  margin: 0;
  cursor: pointer;
}
.toggle:last-of-type { border-bottom: 0; }
.toggle input { width: auto; margin-top: 4px; accent-color: var(--primary); transform: scale(1.15); }
.toggle span small { display: block; color: var(--muted); margin-top: 3px; font-weight: 400; }

.logs { min-height: 320px; overflow-y: auto; box-sizing: border-box; font-family: Consolas, monospace; font-size: 12.5px; }
.logs div { padding: 7px 2px; border-bottom: 1px solid var(--border); }
.logs .lvl-ban, .logs .lvl-error { color: var(--danger); }
.logs .lvl-kick, .logs .lvl-detection, .logs .lvl-warn { color: var(--warn); }
.logs .lvl-unban, .logs .lvl-join { color: var(--ok); }
.logs .lvl-leave { color: var(--muted); }
.logs .lvl-death { color: #ff8f6b; }
.logs .lvl-chat { color: #b9c3d6; }

.score { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; text-shadow: 0 0 24px currentColor; }
.score-bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; margin: 14px 0 18px; }
.score-bar div { height: 100%; box-shadow: 0 0 8px currentColor; }

/* ---------- Bans ---------- */

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.link-btn:hover { color: #fff; text-shadow: 0 0 7px rgba(255, 255, 255, .35); }

.ban-thumb {
  display: block;
  width: 168px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ban-thumb::after {
  content: 'Agrandir';
  position: absolute;
  inset: auto 8px 8px auto;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 3px 7px;
  border-radius: 7px;
  opacity: 0;
  transition: opacity .2s;
}
.ban-thumb:hover { border-color: var(--primary-2); box-shadow: var(--glow); transform: scale(1.04); }
.ban-thumb:hover::after { opacity: 1; }
.ban-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ban-thumb.has-clip::before {
  content: '▶';
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}
.thumb-play { color: #fff; font-size: 22px; }
.ban-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; cursor: default; background: rgba(255,255,255,.03); }
.ban-thumb.empty:hover { transform: none; box-shadow: none; border-color: var(--border); }
.ban-thumb.empty::after { display: none; }

.ban-reason {
  background: linear-gradient(90deg, rgba(255, 77, 115, .14), rgba(255, 77, 115, .04));
  border: 1px solid rgba(255, 77, 115, .4);
  border-left: 4px solid var(--danger);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.ban-reason .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.ban-reason .text { font-family: var(--display); font-size: 20px; font-weight: 700; margin-top: 4px; }
.ban-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); margin-bottom: 14px; }
.ban-meta b { color: var(--text); font-weight: 500; }
.ban-shot {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 48px rgba(255, 42, 58, .04);
}
.ban-shot img { max-width: 100%; max-height: 65vh; display: block; }

.ban-alert {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 112px;
  z-index: 90;
  background: rgba(14, 14, 16, .96);
  border: 1px solid rgba(255, 77, 115, .5);
  border-radius: 16px;
  overflow: visible;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 13px rgba(255, 77, 115, .11), 0 8px 18px rgba(0, 0, 0, .5);
  cursor: pointer;
  animation: bubble-in .35s cubic-bezier(.2, .8, .2, 1);
}
.ban-alert::after {
  content: '';
  position: absolute;
  top: 12px;
  right: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  border: 1px solid rgba(255, 77, 115, .5);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  border-radius: 2px;
}
.ban-alert img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: 16px 16px 0 0;
}
.ban-alert .body { padding: 6px 8px 8px; }
.ban-alert .title { display: none; }
.ban-alert .name {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ban-alert .muted {
  font-size: 10px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translate(16px, -8px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---------- Fenêtres ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 4, .72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fade-in .2s ease;
}
.modal[hidden] { display: none; }
.modal-box {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 24%),
    var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 20px;
  width: 90vw;
  max-width: 500px;
  box-shadow: 0 0 48px rgba(255, 42, 58, .09), 0 30px 80px rgba(0,0,0,.5);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-box.wide { max-width: 1280px; }
.modal-box.compact { max-width: 380px; padding: 14px; }
#banModal .ban-reason { padding: 10px 12px; margin-bottom: 10px; }
#banModal .ban-reason .text { font-size: 15px; }
#banModal .ban-meta { gap: 10px; font-size: 12px; margin-bottom: 10px; }
#banModal .modal-box.compact { max-width: 760px; }
#banModal .ban-shot { min-height: 0; margin-bottom: 10px; flex-direction: column; align-items: stretch; }
#banModal .ban-shot video,
#banModal .ban-shot canvas { width: 100%; max-height: 405px; background: #000; display: block; object-fit: contain; }
#banModal .ban-shot img { max-height: 405px; width: 100%; object-fit: contain; }
.clip-note { margin: 0; padding: 6px 10px 8px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.clip-controls { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #0a0a0b; }
.clip-controls input[type="range"] { flex: 1; accent-color: var(--primary-2); }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; flex: 1; }
.stream-wrap {
  background: #000;
  border-radius: 14px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stream-wrap canvas { max-width: 100%; max-height: 75vh; display: block; }
.stream-wrap canvas[hidden] { display: none; }

#toast { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
#toast div {
  background: rgba(16, 16, 18, .92);
  border: 1px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 380px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
  animation: slide-in .3s ease;
}
#toast div.err { border-color: var(--danger); box-shadow: 0 0 13px rgba(255, 77, 115, .14); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .4); }

@media (max-width: 860px) {
  body.app-page { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sidebar nav { flex-direction: row; overflow-x: auto; flex: 1; }
  .sidebar-footer { margin: 0; border: 0; flex-direction: row; align-items: center; }
  .app-glow { mask-image: none; -webkit-mask-image: none; opacity: .1; }
  main { padding: 20px 16px 40px; }
  .ban-thumb { width: 120px; height: 70px; }
}

/* --- Sentinel-Scanner --- */

.scan-pin {
  margin: 12px 0 14px;
  padding: 12px 18px;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 7px;
  text-align: center;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  user-select: all;
}

.scan-bar {
  position: relative;
  height: 6px;
  margin: 7px 0 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border-radius: 99px;
}
.scan-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: var(--glow);
  transition: width .4s ease;
}

.sx-scan-modal { width: min(1000px, 94vw); max-width: 1000px; }
.scan-modal-body { max-height: 66vh; overflow-y: auto; padding: 4px 2px; }
.scan-modal-body > p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.scan-modal-body table { width: 100%; margin-bottom: 14px; }
.scan-modal-body code.small { font-size: 12px; word-break: break-all; }
