:root {
  --bg-darkest: #08080a;
  --bg-dark: #0c0c0f;
  --bg-card: #131318;
  --bg-elevated: rgba(23, 23, 29, 0.85);
  --bg-topbar: rgba(12, 12, 15, 0.72);
  --bg-input: #0e0e12;

  --accent: #ff4757;
  --accent-hover: #ff6b78;
  --accent-dim: rgba(255, 71, 87, 0.3);
  --accent-glow: rgba(255, 71, 87, 0.22);
  --accent-grad-1: #ff5b6a;
  --accent-grad-2: #d4293c;

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);

  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.12);
  --red: #ff4757;
  --red-bg: rgba(255, 71, 87, 0.12);
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.12);

  --text: #cdd2da;
  --text-bright: #ffffff;
  --text-dim: #6b7078;
  --text-muted: #8b8b94;

  --border: #1e1e24;
  --border-strong: #2c2c34;
  --border-glow: rgba(255, 71, 87, 0.28);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow-card: 0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 26px rgba(255, 71, 87, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 71, 87, 0.10), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(34, 211, 238, 0.06), transparent 55%),
    var(--bg-darkest);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Outfit', 'Inter', sans-serif; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-topbar);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  font-size: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar h1 .brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(255,71,87,0.35);
}

#userbox {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
#userbox a {
  color: var(--text-muted); text-decoration: none; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-pill); transition: all 0.15s ease;
  background: rgba(255,255,255,0.02);
}
#userbox a:hover { color: var(--text-bright); border-color: var(--border-glow); box-shadow: 0 0 0 3px var(--accent-glow); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.card {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.9), rgba(14, 14, 18, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.45s cubic-bezier(.2,.8,.2,1) both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }

.card h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; color: var(--text-bright); }
.form-title { font-size: 16px; font-weight: 700; color: var(--text-bright); text-transform: none; letter-spacing: 0; font-family: 'Outfit', sans-serif; margin: 0 0 16px; }
.card h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin: 18px 0 10px; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.15s ease;
  background: linear-gradient(135deg, var(--accent-grad-1), var(--accent-grad-2));
  color: #180404;
  box-shadow: 0 4px 14px rgba(255, 71, 87, 0.25);
}
.btn:hover { box-shadow: 0 6px 22px rgba(255, 71, 87, 0.4); }
.btn:active { transform: scale(0.97); }
.btn.secondary {
  background: rgba(28, 28, 35, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-bright);
  box-shadow: none;
}
.btn.secondary:hover { border-color: var(--border-glow); color: var(--accent-hover); box-shadow: 0 0 0 3px var(--accent-glow); }
.btn.danger {
  background: transparent; border: 1px solid rgba(255,71,87,0.35); color: var(--accent);
  box-shadow: none;
}
.btn.danger:hover { background: var(--red-bg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.guild-list { display: flex; flex-direction: column; gap: 8px; }
.guild-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.4s cubic-bezier(.2,.8,.2,1) both;
}
.guild-list .guild-item:nth-child(1) { animation-delay: 0.03s; }
.guild-list .guild-item:nth-child(2) { animation-delay: 0.09s; }
.guild-list .guild-item:nth-child(3) { animation-delay: 0.15s; }
.guild-list .guild-item:nth-child(4) { animation-delay: 0.21s; }
.guild-item:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.guild-item span:first-child { font-weight: 600; font-size: 14px; color: var(--text-bright); }
.guild-item span:last-child { color: var(--accent); }

.feed-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
}
.feed-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.feed-item-header strong { font-size: 14px; color: var(--accent-hover); }

.badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--border);
  color: var(--text-muted);
}
.badge.on { background: var(--green-bg); color: var(--green); }
.badge.off { background: var(--red-bg); color: var(--red); }
.badge.new { background: var(--green-bg); color: var(--green); box-shadow: 0 0 12px rgba(52,211,153,0.25); }

label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin: 12px 0 6px; font-weight: 600; }
input[type=text], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-bright); font-size: 14px; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type=text]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
input[type=color] { width: 48px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 180px; }

.embed-preview {
  position: relative;
  background: var(--bg-card);
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.embed-preview::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-grad-1), var(--accent-grad-2));
}
.embed-preview .t { font-weight: 700; font-size: 14px; margin-bottom: 4px; font-family: 'Outfit', sans-serif; }
.embed-preview .d { font-size: 13px; color: var(--text-muted); white-space: pre-wrap; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.module-card {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.9), rgba(14, 14, 18, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
  animation: fadeUp 0.45s cubic-bezier(.2,.8,.2,1) both;
}
.module-grid .module-card:nth-child(1) { animation-delay: 0.03s; }
.module-grid .module-card:nth-child(2) { animation-delay: 0.08s; }
.module-grid .module-card:nth-child(3) { animation-delay: 0.13s; }
.module-grid .module-card:nth-child(4) { animation-delay: 0.18s; }
.module-grid .module-card:nth-child(5) { animation-delay: 0.23s; }
.module-grid .module-card:nth-child(6) { animation-delay: 0.28s; }
.module-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-card), var(--shadow-glow); transform: translateY(-2px); }
.module-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module-card-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; color: var(--text-bright); font-family: 'Outfit', sans-serif; }
.module-card-desc { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin: 10px 0 14px; flex: 1; overflow-wrap: break-word; word-break: break-word; }
.settings-btn { align-self: flex-start; font-size: 12.5px; padding: 8px 14px; }

.switch { position: relative; display: inline-block; width: 42px; height: 23px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill); transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.switch .slider::before {
  content: ""; position: absolute; height: 17px; width: 17px; left: 2px; top: 2px;
  background: var(--text-dim); border-radius: 50%; transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .slider { background: var(--green-bg); border-color: var(--green); box-shadow: 0 0 12px rgba(52,211,153,0.25); }
.switch input:checked + .slider::before { transform: translateX(19px); background: var(--green); }

.muted { color: var(--text-muted); font-size: 13px; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.hidden { display: none !important; }
a { color: var(--cyan); }

/* Message Embedder */
.embedder-layout { display: flex; gap: 20px; align-items: flex-start; }
.embedder-sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.embedder-main { flex: 1; min-width: 0; }

.embed-list { display: flex; flex-direction: column; gap: 6px; }
.embed-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
  transition: border-color 0.15s ease;
}
.embed-list-item:hover { border-color: var(--border-glow); }
.embed-list-item.active { border-color: var(--accent); background: var(--accent-glow); }
.embed-list-item .name { font-weight: 600; color: var(--text-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-list-item .del { color: var(--text-dim); flex-shrink: 0; }
.embed-list-item .del:hover { color: var(--accent); }
.embed-list-empty { color: var(--text-dim); font-size: 12.5px; padding: 8px 2px; }

details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 12px 10px; margin: 12px 0; background: rgba(255,255,255,0.015); }
details summary {
  cursor: pointer; padding: 10px 0; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim);
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '▸ '; color: var(--accent); }
details[open] summary::before { content: '▾ '; }

.field-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.field-row input[type=text] { flex: 1; }
.field-row label.inline-check { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); white-space: nowrap; margin: 0; text-transform: none; }
.field-row .del-field { color: var(--accent); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }

.discord-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
  display: flex;
  gap: 12px;
}
.discord-preview .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-grad-1), var(--accent-grad-2));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 14px;
}
.discord-preview .msg-name { font-weight: 600; color: var(--text-bright); font-size: 14px; }
.discord-preview .msg-name .bot-tag { background: var(--accent); color: #180404; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.discord-preview .msg-time { color: var(--text-dim); font-size: 11px; margin-left: 6px; }
.discord-preview .embed-box {
  margin-top: 6px; border-left: 4px solid var(--accent); background: rgba(255,255,255,0.02);
  border-radius: 4px; padding: 10px 12px; max-width: 480px;
}
.discord-preview .embed-author { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.discord-preview .embed-author img { width: 20px; height: 20px; border-radius: 50%; }
.discord-preview .embed-title { font-weight: 700; font-size: 14.5px; color: var(--cyan); margin-bottom: 4px; font-family: 'Outfit', sans-serif; }
.discord-preview .embed-desc { font-size: 13.5px; color: var(--text); white-space: pre-wrap; line-height: 1.5; }
.discord-preview .embed-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.discord-preview .embed-fields .f-name { font-size: 12.5px; font-weight: 700; color: var(--text-bright); }
.discord-preview .embed-fields .f-value { font-size: 12.5px; color: var(--text-muted); }
.discord-preview .embed-thumb { float: right; width: 64px; height: 64px; border-radius: 6px; object-fit: cover; margin-left: 10px; }
.discord-preview .embed-image { width: 100%; max-width: 400px; border-radius: 6px; margin-top: 8px; display: block; }
.discord-preview .embed-footer { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-top: 8px; }
.discord-preview .embed-footer img { width: 16px; height: 16px; border-radius: 50%; }
.discord-preview .embed-empty { color: var(--text-dim); font-size: 13px; font-style: italic; }

/* Access management */
.mod-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; flex-wrap: wrap;
}
.mod-item .who { display: flex; align-items: center; gap: 10px; }
.mod-item .who img { width: 32px; height: 32px; border-radius: 50%; }
.mod-item .who .n { font-weight: 600; color: var(--text-bright); font-size: 14px; }
.mod-item .mod-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-item .mod-edit { flex-basis: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.module-check-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.module-check-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px;
}
.module-check-row input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Tabs (Streamtools) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--text-bright); }
.tab.active { color: var(--text-bright); border-bottom-color: var(--accent); }
.tab svg { flex-shrink: 0; }

/* Platform icon badges */
.platform-icons { display: flex; gap: 8px; margin: 4px 0 14px; }
.platform-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; background: var(--bg-input); border: 1px solid var(--border);
}
.platform-icon.on { color: var(--accent); border-color: var(--border-glow); }
.platform-icon.soon { color: var(--text-dim); opacity: 0.55; }

/* Feed item icon inline with username */
.feed-item-header strong { display: inline-flex; align-items: center; gap: 6px; }

/* Stats table */
.stats-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.stats-table th {
  text-align: left; padding: 8px 10px; color: var(--text-dim); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border);
}
.stats-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td:first-child { width: 24px; color: var(--accent); }

/* Streamer platform cards */
.platform-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.015);
  padding: 14px 16px;
  margin: 16px 0;
}
.platform-card.platform-tiktok { border-left-color: #fe2c55; }
.platform-card.platform-twitch { border-left-color: #9146ff; }
.platform-card-head { display: flex; align-items: center; justify-content: space-between; }
.platform-card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--text-bright); font-family: 'Outfit', sans-serif; }
.platform-card-title svg { flex-shrink: 0; }
.platform-tiktok .platform-card-title svg { color: #fe2c55; }
.platform-twitch .platform-card-title svg { color: #9146ff; }
#sm_tt_fields, #sm_tw_fields { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }

.advanced-details { margin-top: 14px; background: var(--bg-panel); }
.advanced-details summary { font-size: 11.5px; }

/* Streamer list platform pills */
.streamer-platforms { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.streamer-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
}
.streamer-pill.tiktok { background: rgba(254,44,85,0.14); color: #ff6b86; }
.streamer-pill.twitch { background: rgba(145,70,255,0.14); color: #b794ff; }

/* Logos */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px;
  background: rgba(255,255,255,0.02); text-align: center;
}
.logo-item img {
  width: 100%; height: 90px; object-fit: contain; border-radius: 6px; background: var(--bg-input);
  margin-bottom: 8px;
}
.logo-item-name { font-size: 12.5px; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; word-break: break-word; }
.logo-item .actions { flex-direction: column; gap: 6px; margin-top: 0; }
.logo-item .btn { width: 100%; justify-content: center; font-size: 11.5px; padding: 7px 10px; }

/* Tickets */
.ticket-layout { display: flex; gap: 20px; align-items: flex-start; }
.ticket-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.ticket-main { flex: 1; min-width: 0; }
.ticket-row {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
  background: rgba(255,255,255,0.02); cursor: pointer; transition: border-color .15s;
}
.ticket-row:hover { border-color: var(--border-strong); }
.ticket-row.active { border-color: var(--accent); background: var(--accent-glow); }
.ticket-row-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ticket-row-subject { font-weight: 600; color: var(--text-bright); font-size: 13.5px; }
.ticket-row-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.ticket-empty { color: var(--text-dim); padding: 20px; text-align: center; }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.tmsg { border-left: 3px solid var(--border-strong); background: rgba(255,255,255,0.02); border-radius: 8px; padding: 8px 12px; }
.tmsg.user { border-left-color: var(--cyan); }
.tmsg.staff { border-left-color: var(--green); }
.tmsg.ai { border-left-color: #b794ff; }
.tmsg.system { opacity: .8; }
.tmsg-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.tmsg-body { font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; }
.badge.open { background: var(--yellow-bg); color: var(--yellow); }
.badge.closed { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.category-row {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; background: rgba(255,255,255,0.02); margin-bottom: 8px;
}
.category-row .icon { font-size: 18px; }
.category-row .info { flex: 1; min-width: 0; }
.category-row .info .name { font-weight: 600; color: var(--text-bright); font-size: 13.5px; }
.category-row .info .sub { font-size: 11.5px; color: var(--text-dim); }
.question-editor { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; background: rgba(255,255,255,0.02); }
.question-editor .row { margin-bottom: 6px; }

/* Statistics (shared across Tickets, TempVoice, Streamtools, Message Embedder) */
.stats-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.stats-toolbar select { width: auto; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  background: rgba(255,255,255,0.02);
}
.stat-card .v { font-size: 22px; font-weight: 700; color: var(--text-bright); font-family: 'Outfit', sans-serif; line-height: 1.2; }
.stat-card .l { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.stats-chart-wrap { position: relative; height: 260px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: rgba(255,255,255,0.02); }
.stats-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stats-list-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(255,255,255,0.02); }
.stats-list-card h4 { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.stats-list-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.stats-list-row:last-child { border-bottom: none; }
.stats-list-row .n { color: var(--text-bright); font-weight: 600; }
.stats-empty { color: var(--text-dim); font-size: 12.5px; padding: 4px 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
