/* HQ analytics: the "Stop counting my visits" page (/_hq/optout on every tracked site). A separate file because
   several sites' Content-Security-Policy (utilhub.co.uk, millwards.shop, tradestop.online) forbid inline styles. */
:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #55554f;
  --line: #d8d5cc;
  --button: #1d4f8c;
  --button-text: #ffffff;
  --on: #1e7a3c;
  --off: #b0461a;
  --focus: #1c1c1a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --card: #1f1f1d;
    --text: #f0eee8;
    --muted: #b5b2a8;
    --line: #3b3a36;
    --button: #9cc3f5;
    --button-text: #0d1a2b;
    --on: #7fd39a;
    --off: #f2a27b;
    --focus: #f0eee8;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.box { max-width: 34rem; margin: 0 auto; padding: 40px 16px 56px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.site { color: var(--muted); overflow-wrap: anywhere; }
.site strong { color: var(--text); }
.state {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.state::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-1px);
}
.state[data-on="1"]::before { background: var(--on); }
.state[data-on="0"]::before { background: var(--off); }
.note { font-weight: 400; }
.toggle {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.toggle:hover { filter: brightness(1.08); }
.toggle:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 3px; }
.back { margin-top: 24px; }
@media (min-width: 560px) {
  .box { padding-top: 64px; }
  .toggle { width: auto; }
}
