:root {
  --bg-0: #070a0f;
  --bg-1: #0b0f16;
  --bg-2: #10151f;
  --panel: #131a26;
  --panel-2: #161e2c;
  --border: #1f2937;
  --border-soft: #18202d;

  --text: #e7edf5;
  --text-dim: #9aa7b8;
  --text-faint: #5d6b7e;

  --accent: #2dd4bf;      /* teal — pozitif/aktif */
  --accent-2: #38bdf8;    /* mavi — etkileşim */
  --gold: #f5b945;        /* hediye/jeton */
  --green: #34d399;       /* kazanç */
  --red: #f87171;         /* durdur/uyarı */
  --purple: #a78bfa;      /* balina */

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 9px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(45, 212, 191, 0.06), transparent 60%),
    radial-gradient(1000px 600px at -10% 10%, rgba(56, 189, 248, 0.05), transparent 55%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
input, button, select { font-family: inherit; }

/* ---------------- Layout ---------------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19, 26, 38, 0.9), rgba(11, 15, 22, 0.7));
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-weight: 800; color: #04121a;
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.35);
}
.brand-name { font-weight: 700; letter-spacing: 0.4px; font-size: 16px; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--text-faint); letter-spacing: 1.5px; text-transform: uppercase; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 11px; border: 1px solid var(--border-soft); flex: 1; justify-content: center; flex-wrap: wrap; }
.tab {
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600;
  color: var(--text-dim); font-size: 13px; border: none; background: transparent; transition: 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

.content { padding: 22px 26px 60px; max-width: 1680px; width: 100%; margin: 0 auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 650; font-size: 13px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: 0.15s; white-space: nowrap;
}
.btn:hover { border-color: #2c3a4e; background: #1a2230; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #16a394); border: none; color: #04121a; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ---------------- Inputs ---------------- */
.input {
  width: 100%; padding: 10px 13px; border-radius: var(--radius-sm);
  background: var(--bg-1); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; outline: none; transition: 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12); }
.input::placeholder { color: var(--text-faint); }

/* ---------------- Cards / panels ---------------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-pad { padding: 18px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.section-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------------- Login ---------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 34px; }
.login-logo { width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #04121a; margin: 0 auto 18px; box-shadow: 0 0 34px rgba(45, 212, 191, 0.4); }
.login-title { text-align: center; font-size: 22px; font-weight: 750; margin: 0 0 4px; }
.login-title span { color: var(--accent); }
.login-sub { text-align: center; color: var(--text-faint); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label, .field > span:first-child { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.login-error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); color: var(--red); padding: 10px 13px; border-radius: 9px; font-size: 12.5px; margin-bottom: 14px; }

/* ---------------- KPI cards ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  position: relative; overflow: hidden; padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.kpi::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: 0.8; }
.kpi.gold::after { background: var(--gold); }
.kpi.green::after { background: var(--green); }
.kpi.blue::after { background: var(--accent-2); }
.kpi-label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 650; }
.kpi-value { font-size: 28px; font-weight: 780; margin-top: 8px; font-family: var(--mono); letter-spacing: -0.5px; }
.kpi-unit { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-left: 5px; }
.kpi-foot { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }

/* ---------------- Slot grid ---------------- */
.slot-grid { display: grid; gap: 16px; }
.slot-grid.slot-grid-live {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.slot-grid-live > .slot { min-width: 0; }
.slot {
  display: flex; flex-direction: column; min-height: 330px;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: 0.2s;
}
.slot.live { border-color: rgba(45, 212, 191, 0.5); box-shadow: 0 0 0 1px rgba(45,212,191,0.2), var(--shadow); }
.slot.error { border-color: rgba(248, 113, 113, 0.4); }
.slot-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.slot-id { font-size: 11px; color: var(--text-faint); font-family: var(--mono); letter-spacing: 1px; }
.slot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 20px; }
.status-idle { color: var(--text-faint); background: rgba(93,107,126,0.12); }
.status-connecting { color: var(--gold); background: rgba(245,185,69,0.12); }
.status-live { color: var(--accent); background: rgba(45,212,191,0.14); }
.status-error { color: var(--red); background: rgba(248,113,113,0.12); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.3s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: 0.5; } }

.slot-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.slot-controls { display: flex; gap: 8px; }
.slot-controls .input { flex: 1; }
.slot-viewers {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding: 8px 10px; border-radius: 8px;
  background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.22);
}
.slot-viewers-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.6px; }
.slot-viewers-count { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent); }

.slot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { background: var(--bg-1); border: 1px solid var(--border-soft); border-radius: 9px; padding: 8px 10px; }
.mini-stat .label { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-stat .value { font-size: 16px; font-weight: 750; font-family: var(--mono); margin-top: 2px; }
.mini-stat.tokens .value { color: var(--gold); }
.mini-stat.net .value { color: var(--green); }

/* Terminal */
.terminal {
  flex: 1; min-height: 110px; max-height: 180px; overflow-y: auto;
  overflow-anchor: none;
  background: #05080d; border: 1px solid var(--border-soft); border-radius: 9px;
  padding: 8px 10px; font-family: var(--mono); font-size: 12px; line-height: 1.55;
}
.terminal::-webkit-scrollbar { width: 7px; }
.terminal::-webkit-scrollbar-thumb { background: #22303f; border-radius: 6px; }
.term-line { color: var(--text-dim); word-break: break-word; }
.term-time { color: var(--text-faint); font-size: 10px; opacity: 0.7; }
.term-user { color: var(--accent-2); font-weight: 700; }
.term-gift { color: var(--gold); }
.term-gift .term-user { color: var(--gold); }
.term-empty { color: var(--text-faint); font-style: italic; }

/* ---------------- Tables / leaderboard ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-weight: 650; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.rank { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-family: var(--mono); background: var(--bg-2); color: var(--text-dim); }
.rank.r1 { background: rgba(245,185,69,0.18); color: var(--gold); }
.rank.r2 { background: rgba(167,139,250,0.16); color: var(--purple); }
.rank.r3 { background: rgba(56,189,248,0.16); color: var(--accent-2); }
.mono { font-family: var(--mono); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-blue { color: #38bdf8; }
.text-pink { color: #ec4899; }
/* Bot hesap durum rozetleri */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); }
.badge-idle { color: var(--text-dim); background: var(--bg-2); }
.badge-active { color: var(--green); background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); }
.badge-banned { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.4); }
.check-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.check-inline input { accent-color: var(--accent); }
.text-dim { color: var(--text-dim); }

/* ---------------- Word hunter ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--border-soft); font-size: 12.5px; }
.chip .count { font-family: var(--mono); font-weight: 750; color: var(--accent); }
.chip.kw { border-color: rgba(245,185,69,0.35); background: rgba(245,185,69,0.08); }
.chip.kw .count { color: var(--gold); }

/* ---------------- Toast / notifications ---------------- */
.toast-stack { position: fixed; top: 78px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  background: linear-gradient(135deg, var(--panel-2), var(--bg-1));
  border: 1px solid rgba(45,212,191,0.5); border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow); animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-title { font-weight: 750; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.toast-title .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1s infinite; }
.toast-msg { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }

/* ---------------- Misc ---------------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.spacer { flex: 1; }
.muted { color: var(--text-faint); font-size: 12.5px; }
.switch { position: relative; width: 38px; height: 21px; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; transition: 0.2s; cursor: pointer; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--text-faint); transition: 0.2s; }
.switch input:checked + .track { background: rgba(45,212,191,0.25); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(17px); background: var(--accent); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--red); }
.live-pill.dim { color: var(--gold); opacity: 0.85; }
.empty-state { text-align: center; padding: 30px; color: var(--text-faint); font-size: 13px; }

/* ---------------- Research / profiles ---------------- */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #04121a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px rgba(45,212,191,0.3); }
.profile-avatar.purple { background: linear-gradient(135deg, var(--purple), var(--accent-2)); box-shadow: 0 0 24px rgba(167,139,250,0.3); }
.profile-name { font-size: 20px; font-weight: 750; display: flex; align-items: center; }
.link { cursor: pointer; color: var(--accent-2); transition: 0.15s; }
.link:hover { color: var(--accent); text-decoration: underline; }
.feed-list { display: flex; flex-direction: column; gap: 7px; max-height: 460px; overflow-y: auto; }
.feed-list::-webkit-scrollbar { width: 7px; }
.feed-list::-webkit-scrollbar-thumb { background: #22303f; border-radius: 6px; }
.feed-row { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; padding: 6px 8px; border-radius: 7px; background: var(--bg-1); border: 1px solid var(--border-soft); flex-wrap: wrap; }
.feed-text { color: var(--text-dim); word-break: break-word; }

.clock { font-family: var(--mono); font-size: 13px; color: var(--text-dim); letter-spacing: 0.5px; }
.clock b { color: var(--accent); font-weight: 700; }

.input-mini { padding: 5px 8px; font-size: 12px; width: auto; min-width: 86px; }

/* Tıklanabilir / hover'da bilgi balonu açan izleyici etiketi */
.viewer-tag { cursor: pointer; user-select: none; }
.viewer-tag:hover { text-decoration: underline; }
.viewer-tag, .streamer-tag { cursor: pointer; user-select: none; }
.streamer-tag { color: var(--accent); }
.input-static { display: flex; align-items: center; cursor: default; overflow: hidden; white-space: nowrap; }
.comment-stream { max-height: 460px; overflow-y: auto; padding-right: 6px; }

.stat-leaderboard {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}
.stat-leaderboard::-webkit-scrollbar { width: 7px; }
.stat-leaderboard::-webkit-scrollbar-thumb { background: #22303f; border-radius: 6px; }

/* Platform anahtarı */
.viewer-pop {
  position: fixed; z-index: 300;
  background: linear-gradient(135deg, var(--panel-2), var(--bg-1));
  border: 1px solid var(--accent); border-radius: 11px; padding: 9px 12px;
  flex-direction: column; gap: 3px; font-size: 11.5px;
  box-shadow: var(--shadow); white-space: nowrap; pointer-events: none;
  font-family: var(--sans); color: var(--text-dim);
  display: none;
}
.viewer-pop.is-open { display: flex; }
.viewer-pop b { color: var(--text); font-size: 12.5px; margin-bottom: 3px; }
.viewer-pop-hint { color: var(--text-faint); font-size: 10px; margin-top: 3px; font-style: italic; }

.slot-options { display: flex; gap: 12px; flex-wrap: wrap; }
.slot-option { width: 88px; padding: 16px 0; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border); cursor: pointer; transition: 0.15s; text-align: center; color: var(--text); }
.slot-option:hover { border-color: #2c3a4e; }
.slot-option.active { border-color: var(--accent); background: rgba(45,212,191,0.1); box-shadow: 0 0 0 3px rgba(45,212,191,0.12); }
.slot-option-num { font-size: 26px; font-weight: 800; font-family: var(--mono); }
.slot-option.active .slot-option-num { color: var(--accent); }
.slot-option-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }

.archive-add-row { align-items: flex-start; overflow: visible; }
.archive-add-wrap { position: relative; flex: 1; min-width: 0; overflow: visible; }
.archive-suggest {
  position: absolute; z-index: 120; left: 0; right: 0; top: calc(100% + 6px);
  background: linear-gradient(180deg, var(--panel-2), var(--bg-1));
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 240px; overflow-y: auto;
}
.archive-suggest-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 9px 12px;
  border: none; background: transparent; color: var(--text); cursor: pointer;
  font-size: 13px; border-bottom: 1px solid var(--border-soft);
}
.archive-suggest-item:last-child { border-bottom: none; }
.archive-suggest-item:hover:not(:disabled) { background: rgba(45, 212, 191, 0.1); color: var(--accent); }
.archive-suggest-item.taken { opacity: 0.55; cursor: not-allowed; }
.archive-suggest-tag { font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }

.user-list-head { gap: 10px 16px; align-items: flex-start; margin-bottom: 4px; }
.user-search-bar { gap: 6px; align-items: center; }
.user-search-input { min-width: 200px; max-width: 280px; }
.user-search-count { font-size: 11px; white-space: nowrap; }
.user-admin-panel { padding: 14px 16px !important; }
.user-admin-panel + .user-admin-panel { margin-top: 12px; }
.user-section-title { margin-bottom: 6px !important; font-size: 14px; }
.user-hint { font-size: 11px; margin: 0 0 10px; line-height: 1.35; }
.user-flash { font-size: 11px; margin-bottom: 8px; padding: 6px 10px; border-radius: var(--radius-sm); }
.user-flash-ok { color: var(--green); background: rgba(45, 212, 191, 0.08); }
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
  margin-bottom: 14px;
}
.user-form-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 0;
  align-items: end;
}
.user-form-compact .field { margin-bottom: 0; }
.user-form-compact .field > span { font-size: 10px; margin-bottom: 3px; letter-spacing: 0.3px; }
.user-form-compact .input-mini { width: 100%; min-width: 0; }
.user-form-action { display: flex; flex-direction: column; justify-content: flex-end; }
.user-table-wrap { overflow-x: auto; margin-top: 4px; }
.user-edit-table { font-size: 12px; }
.user-edit-table th { padding: 6px 8px; font-size: 10px; white-space: nowrap; }
.user-edit-table td { padding: 5px 8px; vertical-align: middle; }
.user-edit-table .input-mini { width: 100%; min-width: 72px; padding: 4px 8px; font-size: 12px; }
.user-edit-table .user-col-slot { min-width: 58px; max-width: 72px; }
.user-edit-table .user-col-name { min-width: 120px; max-width: 160px; }
.user-edit-table .user-col-check { width: 44px; text-align: center; }
.user-edit-table .user-col-check input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.user-edit-table .user-col-action { width: 72px; white-space: nowrap; }
.user-cell-name { font-size: 12px; font-weight: 650; line-height: 1.25; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-cell-meta { font-size: 10px; color: var(--text-faint); margin-top: 2px; line-height: 1.2; }
.user-badge { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.user-badge-frozen { background: rgba(255, 100, 80, 0.15); color: #ff8a7a; border: 1px solid rgba(255, 100, 80, 0.35); }
.user-row-frozen td { background: rgba(255, 100, 80, 0.04); }
.user-col-action { display: flex; align-items: center; gap: 4px; }
.user-row-flash { font-size: 11px; font-weight: 800; line-height: 1; cursor: help; }
.user-row-flash-ok { color: var(--green); }
.user-row-flash-err { color: #ff8a7a; }
@media (max-width: 1100px) {
  .user-form-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .user-form-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.session-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 60vh; text-align: center; color: var(--text-dim);
}
.session-loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: session-spin 0.8s linear infinite;
}
@keyframes session-spin { to { transform: rotate(360deg); } }
.ui-stale-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; margin: 0 0 14px; border-radius: var(--radius);
  border: 1px solid rgba(255, 180, 60, 0.45); background: rgba(255, 180, 60, 0.12);
  color: var(--text); font-size: 13px;
}
.hunter-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, var(--panel), var(--bg-1)); }
.hunter-led { width: 11px; height: 11px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.hunter-led.on { background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.5s infinite; }
.hunter-meta { min-width: 0; flex: 1; }
.hunter-meta .muted { display: block; min-height: 1.25em; }
.hunter-progress {
  display: inline-block;
  min-width: 6.5rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.archive-table { table-layout: fixed; width: 100%; }
.archive-table .col-num { width: 48px; }
.archive-table .col-status { width: 132px; }
.archive-table .col-auto { width: 88px; }
.archive-table .col-actions { width: 72px; }
.archive-status {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
  white-space: nowrap;
}

.chart-wrap { height: 280px; margin-bottom: 20px; }

@media (max-width: 1100px) {
  .slot-grid.slot-grid-live { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-eq { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .slot-grid.slot-grid-live { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
  .slot-grid.slot-grid-live, .kpi-grid { grid-template-columns: 1fr !important; }
  .tabs { display: none; }
}
