/* Vercel-inspired segmented control; the report retains Norton branding. */
:root {
  color-scheme: light;
  --border: #d4d4d4;
  --control: #fff;
  --selected: #e9e9e9;
  --link: #870000;
  --focus: #870000;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ededed;
  --paper: #111;
  --grey: #0a0a0a;
  --soft: #1a1a1a;
  --muted: #aaa;
  --border: #333;
  --control: #171717;
  --selected: #333;
  --link: #ff9c9c;
  --focus: #ff9c9c;
}
a, .label { color: var(--link); }
button, input, select { background: var(--control); border-color: var(--border); }
button:hover { color: var(--link); border-color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline-color: var(--focus);
}
input::placeholder { color: var(--muted); opacity: 1; }
.slide, th, td, .toolbar, .table-wrap { border-color: var(--border); }
.toolbar, .table-wrap, .empty, .skip { background: var(--paper); }
thead { background: var(--grey); }
.status { background: var(--soft); }
:root[data-theme="dark"] .logo { filter: brightness(0) invert(1); }
.brand { left: 8vw; right: auto; }
.grid-head { padding-top: 80px; }
.theme-selector {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--control);
  box-shadow: 0 2px 6px rgb(0 0 0 / .06);
}
.theme-selector[hidden] { display: none; }
.theme-selector button {
  display: grid;
  place-items: center;
  min-height: 38px;
  width: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.theme-selector button:hover { background: var(--soft); color: var(--ink); }
.theme-selector button[aria-pressed="true"] {
  background: var(--selected);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}
.theme-selector svg { width: 18px; height: 18px; }
@media (max-width: 650px) {
  .theme-selector { top: 16px; right: 16px; }
  .brand { left: 6vw; right: auto; }
  .grid-head { padding-top: 78px; }
}
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --ink: #1d1c1a;
    --paper: #fff;
    --grey: #f3f3f3;
    --soft: #f9f9f9;
    --muted: #5b5b5b;
    --border: #d4d4d4;
    --control: #fff;
    --link: #870000;
  }
  .theme-selector { display: none; }
  .grid-head { padding-top: 10px; }
  :root[data-theme="dark"] .logo { filter: none; }
  .cover .logo, :root[data-theme="dark"] .cover .logo { filter: brightness(0) invert(1); }
  .brand { left: auto; right: 15mm; }
}
