:root {
  --bg: #fbf7f0;
  --bg-soft: #fdfaf5;
  --bg-softer: #fffdf9;
  --surface: #ffffff;
  --text: #1d1c26;
  --text-2: #4c4c58;
  --text-3: #7a7a89;
  --muted: #8b8b97;
  --muted-2: #9d9da7;
  --border: #ece5d8;
  --border-2: #dfd6c4;
  --border-3: #d3c7b0;
  --accent: #6b5cff;
  --accent-hover: #4e40e0;
  --ok: oklch(0.55 0.14 150);
  --warn: oklch(0.55 0.13 62);
  --warn-bright: oklch(0.66 0.15 65);
  --fail: oklch(0.52 0.19 25);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Pushes .app-footer to the bottom of the viewport on short pages (login,
   settings, etc.) without pinning it over content on long ones. */
body > main { flex: 1 0 auto; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
button { font: inherit; }

/* ---------- Admin bar ---------- */
/* Staff-only strip above the header (partials/app-header). Dark by default so
   it never reads as part of the customer UI; amber while impersonating, where
   the loud colour is the point. */
.adminbar {
  background: #1d1c26;
  color: #efedf6;
  font-size: 12.5px;
}
.adminbar--impersonating {
  background: #ffe1c9;
  color: #6b3510;
  border-bottom: 1px solid #f2c9a0;
}
.adminbar__inner {
  max-width: 1492px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.adminbar form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Shared by the <a> to /admin and the "return to admin" submit button. */
.adminbar__home {
  display: inline-block;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 10px;
  cursor: pointer;
  opacity: 0.75;
}
.adminbar__home:hover { color: inherit; opacity: 1; }
.adminbar__who { opacity: 0.85; }
/* Out-specifies the `.adminbar form { margin: 0 }` reset above, which would
   otherwise win and leave the picker bunched up against the Admin pill. */
.adminbar .adminbar__package { margin-left: auto; }
.adminbar__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.adminbar__select {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
}
.adminbar--impersonating .adminbar__select { background: rgba(0, 0, 0, 0.06); }
/* The dropdown itself is drawn by the OS, so it needs its own colours —
   `color: inherit` would leave light-on-light options on the dark bar. */
.adminbar__select option { color: #1d1c26; background: #ffffff; }
.adminbar__flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--warn-bright);
  color: #2a1a00;
}
@media (max-width: 560px) {
  .adminbar .adminbar__package { margin-left: 0; }
}

/* ---------- Header bar ---------- */
.app-header {
  background: var(--surface);
  border-bottom: 4px solid var(--accent);
}
.app-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header__inner {
  max-width: 1492px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.app-header__brand-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.app-header__menu-row {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.app-header__menu-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
/* Below this width there isn't room for brand + both nav clusters on one
   line, so fall back to the original two-row layout (brand on top, a
   border under it, menu below) rather than letting things wrap raggedly
   mid-row. */
@media (max-width: 860px) {
  .app-header__inner { flex-direction: column; align-items: stretch; }
  .app-header__brand-row { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark {
  flex-shrink: 0;
  display: block;
}
.brand__name {
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; white-space: nowrap;
}
.brand__tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}

.app-nav { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.app-nav__user { color: var(--muted); }
.app-nav__user-link { color: var(--muted); text-decoration: none; font-weight: 600; }
.app-nav__user-link:hover { color: var(--accent); text-decoration: underline; }
.app-nav__link { color: var(--accent); font-weight: 600; text-decoration: none; }
.app-nav__link:hover { color: var(--accent-hover); text-decoration: underline; }
.app-nav__admin-icon { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; color: var(--muted); vertical-align: -2px; }
.app-nav__upgrade {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; font-size: 13.5px; font-weight: 700;
  background: var(--accent); color: white; border-radius: 8px;
  text-decoration: none; transition: background 120ms ease;
}
.app-nav__upgrade:hover { background: var(--accent-hover); color: white; }
.app-nav__upgrade-price { margin-left: 6px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,0.4); font-weight: 600; opacity: 0.9; }
.app-nav__admin-icon:hover { color: var(--accent); }

.app-nav__dropdown { position: relative; }
.app-nav__dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-nav__dropdown summary::-webkit-details-marker { display: none; }
.app-nav__dropdown summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}
.app-nav__dropdown[open] summary::after { transform: rotate(225deg); margin-top: 2px; }
.app-nav__dropdown--disabled { opacity: .45; pointer-events: none; }
.app-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(29, 28, 38, 0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.app-nav__dropdown-menu a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}
.app-nav__dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent); }

.app-nav__user { display: inline-flex; align-items: center; gap: 10px; }
.app-nav__notifications-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 2px;
}
.app-nav__notifications-toggle:hover { color: var(--accent); }
.app-nav__notifications summary::after { content: none; } /* no dropdown chevron on the bell icon */
.app-nav__notifications-dot {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--fail);
  border: 1.5px solid var(--surface);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-nav__notifications-menu { min-width: 260px; right: 0; left: auto; }

.app-nav__sites-menu { min-width: 220px; max-width: 320px; max-height: 80vh; overflow-y: auto; }
.app-nav__reports-menu { min-width: 220px; }
.app-nav__report-row.is-active { background: var(--bg-soft); color: var(--accent); }
.app-nav__report-row small { display: block; }
.app-nav__sites-score {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 6px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.app-nav__notifications-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 10px 4px;
}
.app-nav__notifications-menu a { white-space: normal; line-height: 1.4; font-size: 13px; }
.app-nav__notifications-empty { padding: 8px 10px; color: var(--muted); font-size: 13px; }
.app-nav__notifications-item { display: flex; align-items: flex-start; gap: 8px; }
.app-nav__notifications-item-dot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--fail);
}

/* ---------- "Try it" deep-link highlight + speech bubble ---------- */
.feature-highlight {
  border-radius: 14px;
  animation: featureHighlightPulse 1.5s ease-in-out 2;
}
@keyframes featureHighlightPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 92, 255, 0); }
  50% { box-shadow: 0 0 0 6px rgba(107, 92, 255, 0.28); }
}
.feature-bubble {
  position: absolute;
  z-index: 60;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(29, 28, 38, 0.2);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  white-space: nowrap;
}
.feature-bubble::after {
  content: '';
  position: absolute;
  left: 20px; bottom: -5px;
  width: 11px; height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}
.feature-bubble.is-visible {
  opacity: 1;
  animation: featureBubbleBob 1.4s ease-in-out infinite;
}
@keyframes featureBubbleBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1); }
}

/* ---------- "Try it" CTA on news articles ---------- */
.try-it-cta {
  margin: 40px 0;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 14px;
}
.try-it-cta__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 6px;
}
.try-it-cta__text {
  margin: 0 0 14px;
  font-size: 16px; line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
}
.try-it-cta__form { display: flex; gap: 8px; margin: 0 0 10px; max-width: 460px; }
.try-it-cta__form .input { flex: 1; }
@media (max-width: 480px) { .try-it-cta__form { flex-direction: column; } }
.try-it-cta__note { font-size: 12.5px; color: var(--muted); }
.logout-form { margin: 0; display: inline; }
.logout-btn {
  all: unset; cursor: pointer;
  color: var(--accent); font-weight: 600;
}
.logout-btn:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- Footer ---------- */
.app-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.app-footer__inner {
  max-width: 1492px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.app-footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.app-footer__links a { color: var(--muted); text-decoration: none; }
.app-footer__links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  max-width: 1492px;
  margin: 0 auto;
  padding: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 336px);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.admin-full { max-width: 1492px; margin: 0 auto; width: 100%; padding: 20px 24px; box-sizing: border-box; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; width: 100%; }
@media (max-width: 720px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-side { position: sticky; top: 20px; }
.admin-side__group { margin-bottom: 16px; }
.admin-side__group:last-child { margin-bottom: 0; }
.admin-side__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 6px; padding: 0 10px; }
.admin-side__nav { display: flex; flex-direction: column; gap: 2px; margin-left: 10px; padding-left: 8px; border-left: 1px solid var(--border); }
.admin-side__link { padding: 4px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.admin-side__link:hover { background: var(--border-2); color: var(--text); }
.admin-side__link.is-active { background: var(--border-2); color: var(--accent); font-weight: 700; }
.admin-main { min-width: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.card--tight { padding: 18px; }
.card__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card__title--lg { font-size: 25px; letter-spacing: -0.02em; }
.card__title--sm { font-size: 18px; }
.card__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.card__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px 28px;
}
.auth-card__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.auth-card__title {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-card__lead {
  font-size: 14.5px;
  color: var(--text-3);
  margin: 0 0 22px;
  max-width: 42ch;
}
.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-2);
  font-size: 13.5px;
  color: var(--text-3);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

/* ---------- Auth split (register: pitch left, form right — Facebook-style) ---------- */
.auth-wrap--split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: 1040px;
  margin: 0 auto;
}
.auth-pitch { flex: 1 1 460px; max-width: 480px; }
.auth-pitch__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.auth-pitch__title {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.auth-pitch__lead {
  font-size: 16px;
  color: var(--text-3);
  margin: 0 0 30px;
  max-width: 46ch;
}
.auth-pitch__list { display: flex; flex-direction: column; gap: 18px; }
.auth-pitch__item { display: flex; align-items: flex-start; gap: 14px; }
.auth-pitch__item-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-softer);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.auth-pitch__item-title { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.auth-pitch__item-desc { font-size: 13.5px; color: var(--muted); margin: 0; }
.auth-wrap--split .auth-card { flex: 0 0 440px; }
@media (max-width: 860px) {
  .auth-wrap--split { flex-direction: column; gap: 40px; }
  .auth-pitch { text-align: center; max-width: 560px; }
  .auth-pitch__lead { margin-left: auto; margin-right: auto; }
  .auth-pitch__item { text-align: left; }
  .auth-wrap--split .auth-card { flex: 0 0 auto; width: 100%; }
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__hint {
  font-size: 12.5px;
  color: var(--muted);
}
.field__error {
  font-size: 13px;
  color: var(--fail);
  font-weight: 500;
}
.input {
  font: inherit;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.input--mono { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; }
.input--message { min-height: 500px; resize: vertical; }

.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-3);
  user-select: none;
}
.check input { accent-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-sizing: border-box;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--block { display: flex; width: 100%; box-sizing: border-box; }
.btn--block + .btn--block { margin-top: 10px; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-softer); color: var(--text); border-color: var(--accent); }
.btn--danger { background: var(--fail); border-color: var(--fail); }
.btn--danger:hover { background: oklch(0.42 0.19 25); border-color: oklch(0.42 0.19 25); }
.btn--google {
  background: white;
  border-color: var(--border);
  color: #3c4043;
}
.btn--google:hover { background: var(--bg-softer); border-color: var(--border); }
.btn--google svg { flex: none; }

/* ---------- Toggle group ---------- */
.toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.toggle a, .toggle button {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
}
.toggle a:last-child, .toggle button:last-child { border-right: 0; }
.toggle a.is-active, .toggle button.is-active {
  background: var(--accent);
  color: white;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-softer);
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert--error { border-left: 3px solid var(--fail); background: oklch(0.98 0.02 25); color: var(--text); }
.alert--ok    { border-left: 3px solid var(--ok); }
.alert__icon {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted-2);
  flex: 0 0 auto;
}

.errors { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.errors li { color: var(--fail); font-size: 13px; }

/* ---------- Score bar (report) ---------- */
/* The tile is just the coloured grade panel: the colour and the number carry
   the score, so there is no separate meter strip under it any more. */
.score-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
}
.score-bar__grade {
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
/* Inside a tile only (it's also used standalone as a rank pill on
   /competitors and /world-rank, which must stay content-sized): grow to fill
   the tile so neighbouring tiles stay the same height when one's label wraps
   onto a second line. */
.score-bar > .score-bar__grade { flex: 1 1 auto; }
.score-bar__grade small {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  /* Kept whole, so a label too long for its tile breaks after the title
     ("Checklist" / "0/221 done · view →") rather than mid-phrase. */
  white-space: nowrap;
}

/* score-bar acting as a clickable report-switcher button */
.score-btn { transition: transform 0.08s ease, box-shadow 0.08s ease; }
a.score-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.score-btn.is-active { box-shadow: 0 0 0 2px var(--accent) inset; }
.score-btn__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 15px;
  font-weight: 800;
}

/* ---------- Bullet list (summary) ---------- */
.bullets {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.bullet { display: flex; align-items: flex-start; gap: 10px; }
.dot {
  flex: 0 0 auto;
  width: 19px; height: 19px; border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.dot--sm { width: 18px; height: 18px; font-size: 11px; }
.dot--md { width: 24px; height: 24px; font-size: 14px; margin-top: 0; }
.dot--empty { background: var(--surface); border: 1px solid oklch(0.75 0.01 80); }

.favicon { flex: 0 0 auto; border-radius: 4px; vertical-align: -3px; background: var(--surface); }

/* status colors */
.is-ok    { background: var(--ok); }
.is-warn  { background: var(--warn-bright); }
.is-fail  { background: var(--fail); }
.is-skip  { background: var(--surface); border: 1px solid oklch(0.75 0.01 80); color: var(--muted); }

.text-ok   { color: var(--ok); }
.text-warn { color: oklch(0.5 0.13 65); }
.text-fail { color: var(--fail); }
.text-muted { color: var(--muted); }

.bg-ok   { background: var(--ok); }
.bg-warn { background: var(--warn-bright); }
.bg-fail { background: var(--fail); }
.bg-skip { background: var(--surface); border: 1px solid oklch(0.75 0.01 80); }

.grade-A { background: oklch(0.55 0.14 150); }
.grade-B { background: oklch(0.58 0.13 140); }
.grade-C { background: oklch(0.55 0.13 62); }
.grade-D { background: oklch(0.52 0.19 25); }
.grade-F { background: oklch(0.52 0.19 25); }

/* ---------- Fix list ---------- */
.fix-item {
  border-top: 1px solid var(--border-2);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
}
.fix-item__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted-2);
  padding-top: 2px;
}
.fix-item__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fix-item__head {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline;
}
.fix-item__title {
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
}
.sev-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: white;
  padding: 3px 7px;
  white-space: nowrap;
  border-radius: 999px;
}
.sev-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 5px;
}
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--muted-2);
  color: var(--muted-2);
  font-size: 10px; font-weight: 700; font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
}
.fix-item__effort { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fix-item__desc {
  font-size: 15px; line-height: 1.6; color: var(--text-2);
  max-width: 70ch;
}
.fix-box {
  background: var(--bg-softer);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.fix-box__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.fix-box__pre {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.fix-box--why { border-left-color: var(--warn); }
.fix-box--why .fix-box__pre { font-family: inherit; font-size: 13.5px; white-space: normal; }

.img-thumb-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.img-thumb {
  width: 18px; height: 18px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border-2);
  background: var(--bg-softer);
  cursor: zoom-in;
}
.img-thumb__preview {
  display: none;
  position: absolute; z-index: 20;
  left: 24px; top: 50%; transform: translateY(-50%);
  max-width: 260px; max-height: 260px;
  object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.img-thumb-wrap:hover .img-thumb__preview { display: block; }

/* ---------- Category rows ---------- */
.cat-header { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.cat-header h2 {
  margin: 0;
  font-size: 21px; font-weight: 700; letter-spacing: -0.015em;
}
.cat-header__meta {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.cat-desc {
  margin: 12px 0 0;
  font-size: 16px; line-height: 1.62;
  color: var(--text-2);
  max-width: 72ch;
}
.cat-rows {
  margin-top: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}

/* ---------- Performance score-over-time snapshots ---------- */
.perf-snapshots {
  margin-top: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
}
.perf-snapshots__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.perf-snapshots__row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.perf-snapshot {
  flex: 1 1 90px;
  min-width: 90px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.perf-snapshot--current {
  border-color: var(--accent);
  background: var(--bg-softer);
}
.perf-snapshot__score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px; font-weight: 700;
  color: var(--text);
}
.perf-snapshot__score--empty { color: var(--muted-2); }
.perf-snapshot__when {
  margin-top: 3px;
  font-size: 11.5px; color: var(--muted);
}
.perf-snapshot__delta {
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 600;
}
.cat-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cat-row__head {
  all: unset;
  cursor: pointer;
  display: flex; align-items: center; gap: 11px;
  width: 100%; box-sizing: border-box;
  padding: 11px 13px;
}
.cat-row__head:hover { background: var(--bg-softer); }
.cat-row__name {
  font-size: 15px; font-weight: 500;
  text-align: left; min-width: 0; flex: 1;
}
.cat-row__verdict {
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.cat-row__caret {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--muted-2);
  width: 12px; text-align: center;
}
.cat-row__body {
  border-top: 1px solid var(--border-2);
  padding: 13px;
  display: flex; flex-direction: column; gap: 12px;
}
.cat-row__section > label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.cat-row__section p, .cat-row__section div.body {
  margin: 0;
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-2);
  max-width: 74ch;
}
.cat-row pre.raw {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px; line-height: 1.55;
  color: var(--text-2);
  background: var(--bg-softer);
  border: 1px solid var(--border-2);
  padding: 11px;
  overflow-x: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- Plain-mode: security headers checklist ---------- */
.header-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.header-list__row {
  display: flex; gap: 12px;
  padding: 11px 13px;
  border-top: 1px solid var(--border-2);
}
.header-list__row:first-child { border-top: none; }
.header-list__row--ok   { background: oklch(0.985 0.02 150 / 0.55); }
.header-list__row--fail { background: oklch(0.985 0.03 25 / 0.5); }
.header-list__glyph {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  border-radius: 50%;
  margin-top: 1px;
}
.header-list__glyph.is-ok   { background: var(--ok); }
.header-list__glyph.is-fail { background: var(--fail); }
.header-list__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.header-list__name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600;
}
.header-list__tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  color: #fff;
}
.header-list__tag--ok   { background: var(--ok); }
.header-list__tag--fail { background: var(--fail); }
.header-list__purpose {
  font-size: 13.5px; line-height: 1.55; color: var(--text-2);
  max-width: 74ch;
}
.header-list__value {
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Plain-mode: broken links list ---------- */
.link-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.link-list__row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-top: 1px solid var(--border-2);
  min-width: 0;
}
.link-list__row:first-child { border-top: none; }
.link-list__row:hover { background: var(--bg-softer); }
.link-list__url {
  flex: 1; min-width: 0;
  font-size: 12.5px; line-height: 1.4;
  color: var(--accent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Sidebar: domains ---------- */
.domain-btn {
  all: unset;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  text-decoration: none; color: inherit;
}
.domain-btn:hover { border-color: var(--accent); }
.domain-btn.is-active {
  border-color: var(--accent);
  background: var(--bg-softer);
}
.domain-btn__host {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
}
.domain-btn__host .h {
  font-size: 14.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.domain-btn__host .s {
  font-size: 12.5px; color: var(--muted);
}
.domain-btn__grade {
  width: 26px; height: 24px;
  color: white; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  border-radius: 6px;
}

/* ---------- Sidebar: progress bars ---------- */
.hist-row {
  display: flex; align-items: center; gap: 10px;
}
.hist-row__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--muted);
  flex: 0 0 66px;
  display: flex; flex-direction: column; gap: 1px; line-height: 1.3;
}
.hist-row__bar {
  flex: 1; height: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
  display: block; min-width: 0;
}
.hist-row__fill {
  display: block; height: 10px;
  border-radius: 999px;
}
.hist-row__score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px; font-weight: 500;
  flex: 0 0 26px; text-align: right;
}

/* ---------- Legend ---------- */
.legend { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.legend > div { display: flex; gap: 9px; align-items: flex-start; }

/* ---------- Utility ---------- */
.foot-lines {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13.5px;
  color: var(--text-3);
}
.foot-lines > div { display: flex; gap: 8px; align-items: baseline; }
.foot-lines .k {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted-2);
}
.mono { font-family: 'IBM Plex Mono', monospace; }
.hr { border: 0; border-top: 1px solid var(--border-2); margin: 12px 0; }

@media print {
  [data-noprint] { display: none !important; }
  body { background: white; }
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
  border-radius: 999px;
}
.pill::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}
.pill--up   { background: var(--ok); }
.pill--down { background: var(--fail); }
.pill--warn { background: var(--warn-bright); color: white; }
.pill--muted { background: oklch(0.6 0.01 80); }

.pill--up.pill--live::before   { animation: pill-live 1.6s ease-in-out infinite; }
@keyframes pill-live {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 25%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 15%, transparent); }
}

.stat-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-3);
}
.stat-line .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  min-width: 90px;
}
.stat-line .v { color: var(--text-2); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }

.mx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mx-table th, .mx-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-2);
  text-align: left;
}
.mx-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mx-table td.mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.mx-table tr:last-child td { border-bottom: 0; }

/* ---------- Scan loader (Shazam-style) ---------- */
.scan-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.scan-loader.is-open {
  display: flex;
  opacity: 1;
}

.scan-pulse {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-pulse__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0;
  transform: scale(0.25);
  animation: scan-ripple 2.6s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}
.scan-pulse__ring:nth-child(2) { animation-delay: 0.5s; }
.scan-pulse__ring:nth-child(3) { animation-delay: 1.0s; }
.scan-pulse__ring:nth-child(4) { animation-delay: 1.5s; }

@keyframes scan-ripple {
  0%   { opacity: 0.9; transform: scale(0.18); border-width: 5px; }
  50%  { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1); border-width: 1px; }
}

.scan-pulse__mark {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 10px solid var(--accent);
  background: var(--surface);
  animation: scan-breathe 1.4s ease-in-out infinite;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

@keyframes scan-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.scan-loader__text {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scan-loader__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.scan-loader__host {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  word-break: break-all;
}
.scan-loader__status {
  font-size: 14.5px;
  color: var(--text-3);
  min-height: 1.4em;
  transition: opacity 200ms ease;
}
.scan-loader__hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.scan-dots::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: scan-dots 1.4s steps(4, end) infinite;
}
@keyframes scan-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-pulse__ring, .scan-pulse__mark { animation: none; }
  .scan-pulse__ring { opacity: 0.35; transform: scale(1); }
  .scan-dots::after { animation: none; content: '…'; }
}

/* ---------- Checklist ---------- */
.checklist-tabs {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}
.checklist-tabs button {
  all: unset;
  cursor: pointer;
  padding: 8px 16px;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex: none;
}
.checklist-tabs button:last-child { border-right: 0; }
.checklist-tabs button.is-active { background: var(--accent); color: white; }

.checklist-category {
  font-size: 15px;
  font-weight: 700;
  margin: 28px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.checklist-category small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

.checklist-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--surface);
}
.checklist-item__title { font-weight: 600; font-size: 14.5px; }
.checklist-item__why { font-size: 13px; color: var(--text-3); margin-top: 3px; max-width: 70ch; }
.checklist-item__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: flex-start;
}

.checklist-status { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.checklist-status__btn {
  all: unset;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.checklist-status__btn:last-child { border-right: 0; }
.checklist-status__btn.is-active[data-value="not_started"] { background: var(--border-3); color: var(--text); }
.checklist-status__btn.is-active[data-value="in_progress"] { background: var(--warn-bright); color: white; }
.checklist-status__btn.is-active[data-value="done"]        { background: var(--ok); color: white; }
.checklist-status__btn.is-active[data-value="na"]          { background: var(--muted-2); color: white; }

.checklist-item__fields .input { padding: 6px 10px; font-size: 12.5px; flex: 1 1 150px; min-width: 0; }
.checklist-item__fields textarea.input { flex: 1 1 100%; resize: vertical; min-height: 34px; }
.checklist-item__save-hint { font-size: 11px; color: var(--muted); opacity: 0; transition: opacity 150ms ease; align-self: center; }
.checklist-item__save-hint.is-visible { opacity: 1; }

/* ---------- App sidebar (dashboard + every site report + billing + settings) + at-a-glance (free-tier window shopping) ---------- */
.dash-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1492px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.dash-content { min-width: 0; }
/* Every page yielded into .dash-content still opens its own `.container`
   (max-width/margin/padding, for when it renders standalone elsewhere) —
   neutralize that here so it doesn't double up with .dash-layout's own gutter. */
.dash-content > .container { max-width: none; margin: 0; padding: 0; }

.dash-hamburger { display: none; }
.dash-side { position: sticky; top: 20px; }

@media (max-width: 1040px) {
  .dash-layout { grid-template-columns: 1fr; padding: 16px; }

  .dash-hamburger {
    display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
    width: 38px; height: 34px; margin-bottom: 14px; padding: 0;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer;
  }
  .dash-hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

  .dash-side {
    position: fixed; top: 0; left: 0; z-index: 900; width: 260px; max-width: 82vw; height: 100vh;
    overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border);
    padding: 18px 14px; box-sizing: border-box; box-shadow: 12px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%); transition: transform 200ms ease;
  }
  .dash-side.is-open { transform: translateX(0); }

  .dash-backdrop { position: fixed; inset: 0; z-index: 890; background: rgba(0, 0, 0, 0.4); }
  .dash-backdrop[hidden] { display: none; }
}

.dash-side__group { margin-bottom: 16px; }
.dash-side__group:last-child { margin-bottom: 0; }
.dash-side__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 6px; padding: 0 10px; }
.dash-side__nav { display: flex; flex-direction: column; gap: 1px; }
.dash-side__link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--text-2, var(--text)); font-size: 13.5px; font-weight: 500; line-height: 1.25; text-decoration: none; }
.dash-side__link:hover { background: var(--border-2); color: var(--text); }
.dash-side__link.is-active { background: var(--accent, #6c5ce7); color: #fff; }
.dash-side__link--accent { color: var(--accent, #6c5ce7); font-weight: 600; }
.dash-side__ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; font-size: 11px; font-weight: 700; border-radius: 6px; background: var(--border-2); color: var(--muted); }
.dash-side__link.is-active .dash-side__ico { background: rgba(255, 255, 255, 0.22); color: #fff; }
.dash-side__count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--border-2); border-radius: 20px; padding: 1px 8px; }

.glance-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.glance-tile { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; text-decoration: none; color: inherit; }
.glance-tile:hover { border-color: var(--accent, #6c5ce7); }
.glance-tile__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); line-height: 1.3; }
.glance-tile__val { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
