:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #242833;
  --text: #e8eaf0;
  --muted: #8b91a0;
  --accent: #b14cff;
  --on: #36d399;
  --warn: #ffb454;
}

* { box-sizing: border-box; }

body {
  width: 320px;
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 22px; }
h1 { margin: 0; font-size: 16px; letter-spacing: 0.3px; }
.tag { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.counter {
  text-align: center;
  padding: 16px;
  background: linear-gradient(180deg, var(--panel), var(--bg));
}
#count {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.counter-label { color: var(--muted); font-size: 11px; }

.notice {
  margin: 0 16px 10px;
  padding: 9px 11px;
  background: rgba(255, 180, 84, 0.12);
  border: 1px solid rgba(255, 180, 84, 0.45);
  border-radius: 9px;
  font-size: 11.5px;
  color: #ffce8a;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.notice.hidden { display: none; }
/* brand-accent variant for the "new version available" banner — louder than the amber Twitch one */
.notice-strong {
  background: rgba(177, 76, 255, 0.14);
  border-color: rgba(177, 76, 255, 0.55);
  color: #d9a6ff;
}
.notice-strong .mini {
  background: rgba(177, 76, 255, 0.22);
  color: #eccaff;
  border-color: rgba(177, 76, 255, 0.6);
}
.notice-strong .mini:hover { background: rgba(177, 76, 255, 0.36); }
.mini {
  align-self: flex-start;
  background: rgba(255, 180, 84, 0.18);
  color: #ffce8a;
  border: 1px solid rgba(255, 180, 84, 0.5);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
}
.mini:hover { background: rgba(255, 180, 84, 0.3); }

.quick {
  display: flex; gap: 8px; padding: 0 16px 12px;
}
.qbtn {
  flex: 1; padding: 9px 6px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer;
}
.qbtn:hover { border-color: var(--accent); }
.qbtn.active { background: rgba(255,180,84,.14); border-color: var(--warn); color: var(--warn); }

.allowlist { padding: 4px 16px 12px; }
.wide {
  width: 100%;
  padding: 9px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
}
.wide:hover { border-color: var(--accent); }
.wide.active { background: rgba(177, 76, 255, 0.14); border-color: var(--accent); color: var(--accent); }

.status { padding: 10px 16px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); flex: 0 0 auto;
}
.dot.on { background: var(--on); box-shadow: 0 0 6px var(--on); }
.dot.warn { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

.toggles { padding: 8px 16px; border-top: 1px solid var(--line); }
.toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; cursor: pointer;
}
.toggle input { width: 34px; height: 18px; cursor: pointer; accent-color: var(--accent); }

.links {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.links a { color: var(--accent); text-decoration: none; font-size: 12px; }
.links a:hover { text-decoration: underline; }

footer {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
}
