:root {
  --bg: #111214;
  --bg-2: #17181b;
  --panel: #1c1e22;
  --panel-2: #22252b;
  --line: #2c3037;
  --line-soft: #24272d;
  --text: #eef1f5;
  --muted: #9ba3af;
  --brand: #ff6b6b;
  --brand-2: #d9363e;
  --green: #57f287;
  --yellow: #fee75c;
  --red: #ed4245;
  --radius: 14px;
  --sidebar: 264px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(88, 101, 242, .16), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(87, 242, 135, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .92em; color: #c9d3ff; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; letter-spacing: -.03em; }
h2 { font-size: 17px; letter-spacing: -.015em; }
h3 { font-size: 15px; }

/* Sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: rgba(17, 18, 20, .92);
  border-right: 1px solid var(--line-soft);
  padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 22px;
  backdrop-filter: blur(16px); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #e04a4a, #7b1515);
  color: white; font-weight: 800; font-size: 17px; letter-spacing: -.04em; box-shadow: 0 8px 24px rgba(217, 54, 62, .3);
}
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-caption { color: #6f7784; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #b8c0cc; font-weight: 500; }
.nav-link span { width: 18px; text-align: center; opacity: .8; }
.nav-link:hover { background: #1d2026; color: var(--text); }
.nav-link.active { background: #2b1d20; color: #ffd9d9; box-shadow: inset 0 0 0 1px #5a2a2e; }
.sidebar-guilds { overflow: auto; flex: 1; }
.guild-link { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: #aeb6c2; font-size: 13px; }
.guild-link:hover, .guild-link.active { background: #1e2127; color: var(--text); }
.guild-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #2a2e37; color: #dfe4ff; font-size: 10px; font-weight: 700; }
.guild-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { border-top: 1px solid var(--line-soft); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: #3a2225; color: #ffd9d9; font-weight: 700; }
.user-meta { min-width: 0; }
.user-meta strong, .user-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 12px; }
.user-meta small { color: var(--muted); font-size: 10px; }
.logout { color: var(--muted); font-size: 11px; }
.logout:hover { color: var(--red); }

/* Main */
.main { margin-left: var(--sidebar); padding: 34px 42px 64px; max-width: 1500px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: #7c8798; font-size: 10px; font-weight: 800; letter-spacing: .14em; margin-bottom: 5px; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--green); }
.danger-text { color: var(--red); }

/* Buttons / inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #22252c; color: var(--text); font-weight: 600; font-size: 12.5px; cursor: pointer;
  transition: .15s ease;
}
.btn:hover { border-color: #454c59; background: #292d36; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #e04a4a, #c92c32); border-color: #ef6262; box-shadow: 0 6px 18px rgba(217, 54, 62, .24); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: #b8c0cc; }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 11.5px; }
.btn.full { width: 100%; }
.btn.discord { min-height: 44px; background: #5865f2; border-color: #6d78ff; font-size: 13.5px; }
.discord-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); }
label { display: flex; flex-direction: column; gap: 6px; color: #c7ced9; font-size: 12px; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #14161a;
  color: var(--text); padding: 9px 11px; outline: none; transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: #5f6cf0; box-shadow: 0 0 0 3px rgba(88,101,242,.14); }
textarea { resize: vertical; min-height: 74px; }
input::placeholder, textarea::placeholder { color: #5f6877; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.compact { margin-top: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-input { min-width: 130px; padding: 6px 8px; font-size: 11.5px; }

/* Layout blocks */
.panel { background: linear-gradient(180deg, rgba(31,33,38,.92), rgba(26,28,32,.92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head p { margin-top: 3px; font-size: 12px; }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #252a33; color: #b9c2d0; border: 1px solid #333945; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split > .panel { margin-bottom: 0; }
.section-gap { height: 18px; }
.link { color: #ff9a9a; font-size: 12px; font-weight: 700; }
.link:hover { color: #c0c8ff; }

/* Stats */
.stat-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: linear-gradient(180deg, #1d2025, #191b1f); border: 1px solid var(--line); border-radius: 12px; padding: 16px 17px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.stat strong { font-size: 26px; letter-spacing: -.04em; margin: 2px 0; }
.stat small { color: #727c8b; font-size: 11px; }

/* Guild cards */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.guild-card { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #1a1c20; display: flex; flex-direction: column; gap: 4px; transition: .18s; }
.guild-card:hover { border-color: #4b5270; transform: translateY(-2px); background: #1e2127; }
.guild-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 7px; }
.guild-card strong { font-size: 14px; }
.guild-card small { color: var(--muted); font-size: 11px; }
.guild-icon { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #2a2e37; }
.guild-icon.fallback { display: grid; place-items: center; color: #dfe4ff; font-weight: 800; }
.guild-icon.large { width: 64px; height: 64px; border-radius: 17px; font-size: 24px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(87,242,135,.8); }
.card-arrow { margin-top: 9px; color: #9aa7ff; font-size: 11.5px; font-weight: 700; }

/* Banner */
.guild-banner { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: linear-gradient(120deg, #212443, #1a1c22 60%); border: 1px solid #30365b; border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.guild-banner-id { display: flex; gap: 15px; align-items: center; }
.guild-banner h2 { font-size: 21px; }
.banner-meta { display: flex; gap: 28px; }
.banner-meta div { display: flex; flex-direction: column; gap: 2px; }
.banner-meta span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.banner-meta strong { font-size: 13px; }

/* Charts */
.chart-wrap { position: relative; height: 290px; }
#activityChart { width: 100%; height: 280px; display: block; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; padding: 10px 12px; color: #8993a2; background: #17191d; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #1d2025; }
.row-disabled { opacity: .55; }
.cell-sub { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #2a2e37; color: #b8c0cc; }
.badge.ban, .badge.kick, .badge.failed, .badge.rejected { background: rgba(237,66,69,.12); color: #ff8f91; }
.badge.timeout, .badge.warn, .badge.pending, .badge.queued { background: rgba(254,231,92,.1); color: #f4dd72; }
.badge.open, .badge.sent, .badge.approved, .badge.running { background: rgba(87,242,135,.1); color: #7df0a1; }
.badge.closed, .badge.completed, .badge.interrupted, .badge.cancelled { background: #2a2e37; color: #aeb6c2; }
.badge.neutral { background: #242831; color: #aeb6c2; }

/* Toggles */
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toggle { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #181a1e; cursor: pointer; }
.toggle:hover { border-color: #3a404b; }
.toggle input { margin-top: 2px; flex: 0 0 auto; }
.toggle span { display: flex; flex-direction: column; gap: 2px; }
.toggle strong { font-size: 12px; color: var(--text); }
.toggle small { color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.switch { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 34px; height: 19px; border-radius: 99px; background: #343945; position: relative; transition: .16s; }
.switch span::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .16s; }
.switch input:checked + span { background: var(--brand-2); }
.switch input:checked + span::after { transform: translateX(15px); }
.switch b { font-size: 11px; color: var(--muted); }
.switch.mini span { width: 30px; height: 17px; }
.switch.mini span::after { width: 11px; height: 11px; }
.switch.mini input:checked + span::after { transform: translateX(13px); }

/* Callouts */
.callout { border: 1px solid #343a46; background: #191c21; border-radius: 10px; padding: 13px 15px; margin-top: 16px; }
.callout strong { display: block; font-size: 12px; margin-bottom: 3px; }
.callout p { color: var(--muted); font-size: 12px; }
.callout.warning { border-color: #4c4321; background: rgba(254,231,92,.035); }
.callout.warning strong { color: #f4dd72; }
.callout.danger { border-color: #4a2a2c; background: rgba(237,66,69,.035); }
.callout.danger strong { color: #ff8f91; }

/* Lists */
.rank-list { display: flex; flex-direction: column; gap: 9px; }
.rank-row { display: grid; grid-template-columns: 20px 1fr 120px 34px; gap: 10px; align-items: center; }
.rank-no { color: #697384; font-size: 11px; font-weight: 800; }
.rank-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row b { text-align: right; font-size: 11px; color: #c7ced9; }
.bar { height: 6px; border-radius: 99px; background: #292d36; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d9363e, #ff8a5c); }
.mini-bars { display: flex; flex-direction: column; gap: 12px; }
.mini-row { display: grid; grid-template-columns: 64px 1fr 50px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.mini-row b { text-align: right; color: var(--text); }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-grid div { background: #181a1e; border: 1px solid var(--line-soft); border-radius: 9px; padding: 11px 13px; display: flex; flex-direction: column; }
.summary-grid span { color: var(--muted); font-size: 10.5px; }
.summary-grid strong { font-size: 20px; letter-spacing: -.03em; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; }
.steps li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #292d48; color: #bdc5ff; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.steps strong { display: block; font-size: 12px; }
.steps p { color: var(--muted); font-size: 11px; }
.privacy-paths { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.privacy-paths > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; background: #181a1e; border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; }
.privacy-paths span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.privacy-paths code { overflow-wrap: anywhere; text-align: right; font-size: 11px; }
.check-list { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.accent-panel { background: linear-gradient(160deg, #1c1e2d, #191b20 60%); border-color: #2e3350; }
.empty { border: 1px dashed #353b46; border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.empty.small { padding: 15px; font-size: 12px; }
.empty.large { padding: 70px 22px; }
.empty.large strong { font-size: 20px; margin-bottom: 7px; }
.empty.large .btn { margin-top: 18px; }
.notice { border-radius: 10px; padding: 11px 14px; font-size: 12.5px; margin-bottom: 16px; border: 1px solid; }
.notice.success { background: rgba(87,242,135,.07); border-color: #28533a; color: #a7f5c0; }
.notice.danger { background: rgba(237,66,69,.07); border-color: #532c2e; color: #ffaaa9; }

/* Auth */
.auth-page { display: grid; place-items: center; min-height: 100vh; }
.auth-shell { width: min(980px, 92vw); display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding: 40px 0; }
.auth-card { background: linear-gradient(160deg, #1e2027, #17181c); border: 1px solid #2d323c; border-radius: 20px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth-brand { display: flex; align-items: center; gap: 10px; color: #aab4ff; font-weight: 800; font-size: 12px; letter-spacing: .16em; margin-bottom: 26px; }
.auth-card h2 { font-size: 30px; letter-spacing: -.04em; margin-bottom: 8px; }
.lede { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.fine-print { color: #6f7886; font-size: 10.5px; margin-top: 18px; line-height: 1.5; }
.divider { display: flex; align-items: center; gap: 10px; color: #6f7886; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: #2d323c; flex: 1; }
.auth-aside { display: flex; flex-direction: column; gap: 22px; }
.feature { display: flex; gap: 14px; }
.feature > span { color: #6d76ff; font-size: 11px; font-weight: 800; padding-top: 2px; }
.feature strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: 12px; }

/* Log records */
.log-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.log-tab { padding: 7px 11px; border-radius: 7px; color: var(--muted); font-size: 11.5px; font-weight: 700; border: 1px solid transparent; }
.log-tab:hover { color: var(--text); background: #202329; }
.log-tab.active { color: #ffd9d9; background: #2b1d20; border-color: #5a2a2e; }
.log-search { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; }
.log-search input { max-width: 360px; }
.log-user { display: flex; flex-direction: column; gap: 2px; }
.log-user span { color: var(--muted); font-size: 10.5px; }
.issue-list { margin: 0; padding-left: 20px; color: #ffd9d9; line-height: 1.9; font-size: 13px; }
/* MassDM role picker */
.role-picker {
  position: relative;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  background: #1e1f22;
  padding: 6px 8px;
  min-height: 46px;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.role-picker:focus-within { border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88, 101, 242, .18); }
.role-picker-control { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; width: 100%; min-height: 32px; cursor: text; }
.role-picker-selected { display: contents; }
.role-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 9px;
  border: 1px solid #3f4147;
  border-radius: 999px;
  background: #2b2d31;
  color: #f2f3f5;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
}
.role-chip > span:not(.role-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip-remove {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #4e5058;
  color: #dbdee1;
  cursor: pointer;
  line-height: 1;
  font-size: 12px;
}
.role-chip-remove:hover { background: #da373c; color: #fff; }
.role-picker-clear {
  margin-left: 2px;
  padding: 4px 7px;
  border: 1px solid #3f4147;
  border-radius: 999px;
  background: transparent;
  color: #949ba4;
  font-size: 10.5px;
  cursor: pointer;
}
.role-picker-clear:hover { border-color: #da373c; color: #ff9a9a; }
.role-picker-search {
  flex: 1 1 150px;
  width: auto;
  min-width: 120px;
  height: 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f2f3f5 !important;
  padding: 4px 3px !important;
  margin: 0;
  box-shadow: none !important;
  font-size: 12px !important;
}
.role-picker-search::placeholder { color: #949ba4; }
.role-picker-search:focus { border: 0 !important; box-shadow: none !important; }
.role-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  background: #1e1f22;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
}
.role-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dbdee1;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}
.role-option:hover { background: #35373c; color: #f2f3f5; }
.role-option.selected { background: #3c407a; color: #fff; }
.role-option-check { flex: 0 0 14px; color: #aab4ff; font-weight: 800; }
.role-option-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-picker-empty { padding: 12px 10px; color: #949ba4; font-size: 12px; text-align: center; }
.role-picker.open { border-color: #5865f2; }
.massdm-image-preview { display: block; max-height: 180px; max-width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; }
.word-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.word-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 11px; border: 1px solid #3b3340; border-radius: 999px; background: #241b1f; color: #ffd9d9; font-size: 12px; }
.word-chip form { display: inline-flex; margin: 0; }
.word-remove { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #3b2227; color: #ff9a9a; cursor: pointer; font-size: 14px; line-height: 1; }
.word-remove:hover { background: #642d35; color: #fff; }
.channel-list { display: grid; gap: 2px; }
.channel-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; }
.channel-row:hover { background: #202338; }
.channel-icon { width: 22px; text-align: center; color: var(--muted); font-size: 16px; }
.channel-info { min-width: 0; }
.channel-info strong { display: block; font-size: 13px; font-weight: 650; }
.channel-info small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-table td { vertical-align: top; }
.log-time { white-space: nowrap; color: var(--muted); font-size: 11px; }
.log-detail { min-width: 260px; max-width: 620px; white-space: pre-wrap; overflow-wrap: anywhere; color: #cfd6e0; font-size: 12px; }
.log-link, .log-jump { color: #9aa7ff; font-size: 11px; font-weight: 700; }
.log-jump { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.log-link:hover, .log-jump:hover { color: #c6cdff; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn.disabled { opacity: .35; pointer-events: none; }
@media (max-width: 700px) {
  .log-table th:nth-child(4), .log-table td:nth-child(4) { display: none; }
}

/* Public request / license */
.request-card { width: min(620px, 92vw); background: linear-gradient(160deg, #1e2027, #17181c); border: 1px solid #2d323c; border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.request-card h2 { font-size: 28px; letter-spacing: -.04em; margin-bottom: 8px; }
.request-card .lede { margin-bottom: 20px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inline-form { display: inline-block; margin: 0 4px 4px 0; }
[data-theme="dark"] .request-card { color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split > .panel { margin-bottom: 18px; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: auto; flex-direction: row; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .brand small, .sidebar-guilds, .nav-caption, .sidebar-footer .user-meta { display: none; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .nav-link { padding: 6px 8px; font-size: 11px; }
  .sidebar-footer { border: 0; padding: 0; margin-left: auto; }
  .main { margin-left: 0; padding: 22px 18px 48px; }
  .topbar { flex-direction: column; }
  .guild-banner { flex-direction: column; align-items: flex-start; }
  .auth-shell { grid-template-columns: 1fr; gap: 22px; }
  .auth-aside { display: none; }
  .toggle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-grid.four, .form-grid, .form-grid.compact { grid-template-columns: 1fr; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .auth-card { padding: 24px; }
  .auth-card h2 { font-size: 25px; }
  .rank-row { grid-template-columns: 20px 1fr 34px; }
  .rank-row .bar { display: none; }
}
