:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --green: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .06);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--border);
  background: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #2585e8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.brand-icon img {
  display: block;
  width: 28px;
  height: 28px;
}

.brand-name {
  display: block;
  transform: translateY(-1px);
  letter-spacing: 0;
}

.mobile-nav-header {
  display: block;
}

.menu-toggle {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.registration-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: var(--panel-soft);
  color: var(--text);
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(248, 250, 252, .86);
  backdrop-filter: blur(16px);
}

.topbar strong {
  display: block;
  font-size: 16px;
}

.topbar-label,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-shell {
  padding: 28px;
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-link {
  max-width: 220px;
  overflow: hidden;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.primary-button:hover,
.primary-button:focus {
  background: var(--accent-strong);
}

.primary-button:disabled,
.primary-button.is-loading {
  cursor: wait;
  opacity: .82;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin .75s linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: inline-block;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button.small {
  min-height: 34px;
  padding: 7px 12px;
}

.ghost-button.small,
.danger-button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.ghost-button {
  background: #fff;
  color: #334155;
  border-color: var(--border);
}

.danger-button {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.danger-button:hover,
.danger-button:focus {
  border-color: #fb7185;
  background: #ffe4e6;
}

.dashboard-header,
.install-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-header h1,
.install-header h1,
.privacy-panel h1 {
  max-width: 760px;
  margin: 4px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-subtitle,
.install-header p,
.privacy-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-picker {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.analytics-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-filters label {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.analytics-filters span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-picker label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-picker select,
.site-picker input,
.analytics-filters select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card span {
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 30px;
  line-height: 1;
}

.metric-card .metric-text {
  overflow: hidden;
  font-size: 22px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(460px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.analytics-grid .detail-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
}

.panel-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.bot-score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.bot-score-pill.likely {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.visitors-list {
  display: grid;
}

.visitor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  scroll-margin-top: 96px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.visitor-row:hover,
.visitor-row.active {
  background: #f8fbff;
}

.visitor-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.visitor-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.visitor-main strong,
.visitor-main small {
  display: block;
}

.visitor-main small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.source-google {
  background: var(--green);
}

.source-chatgpt,
.source-claude,
.source-perplexity,
.source-gemini,
.source-copilot {
  background: var(--accent);
}

.source-social {
  background: var(--rose);
}

.source-direct {
  background: var(--amber);
}

.visitor-meta {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 18px;
}

.detail-list div {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.detail-list div:nth-child(odd) {
  padding-right: 14px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.detail-list dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.detail-list a,
.timeline a {
  color: var(--accent);
  text-decoration: none;
}

.detail-list a:hover,
.timeline a:hover {
  text-decoration: underline;
}

.timeline-section {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 15px;
}

.section-title span,
.muted-line {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.timeline time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.timeline strong,
.timeline a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline strong {
  font-size: 13px;
}

.timeline a {
  margin-top: 2px;
  font-size: 13px;
}

.inline-outbound-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.inline-outbound {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.inline-outbound span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.inline-outbound strong {
  color: #1e3a8a;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.admin-create-form,
.admin-edit-form {
  display: grid;
  gap: 12px;
}

.admin-create-form {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.admin-list {
  display: grid;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.admin-row strong,
.admin-row small {
  display: block;
}

.admin-row small {
  margin-top: 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-row details {
  min-width: 180px;
}

.admin-row summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  text-align: right;
}

.admin-row details[open] {
  grid-column: 1 / -1;
}

.admin-row details[open] summary {
  margin-bottom: 12px;
  text-align: left;
}

.admin-row details form + form {
  margin-top: 10px;
}

.admin-log-search {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.admin-log-search input {
  min-width: min(420px, 100%);
}

.admin-log-table {
  min-width: 1040px;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.report-table th,
.report-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-table td {
  font-size: 14px;
}

.report-table td strong,
.report-table td a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-table td a {
  margin-top: 3px;
  color: var(--accent);
  text-decoration: none;
}

.report-table td a:hover {
  text-decoration: underline;
}

.panel-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.panel-link:hover {
  text-decoration: underline;
}

.page-visitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
}

.page-visitor-summary > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--border);
}

.page-visitor-summary > div:last-child {
  border-right: 0;
}

.page-visitor-summary span,
.page-visitor-summary a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-visitor-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-visitor-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.page-visitor-summary a {
  margin-top: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.page-visitor-list {
  display: grid;
}

.page-visitor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.page-visitor-card:last-child {
  border-bottom: 0;
}

.page-visitor-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.page-visitor-card header strong,
.page-visitor-card header span {
  display: block;
}

.page-visitor-card header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.page-visitor-card header a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.page-visitor-card a:hover {
  text-decoration: underline;
}

.page-visitor-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.page-visitor-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.page-visitor-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-visitor-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
}

.page-path {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-path li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.page-path li.is-selected {
  border-color: #14b8a6;
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 #14b8a6;
}

.page-path time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.page-path strong,
.page-path a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-path strong {
  font-size: 13px;
}

.page-path a {
  margin-top: 2px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.trend-summary-grid article {
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 36px rgba(15, 23, 42, .07);
}

.trend-summary-grid span,
.trend-summary-grid small {
  display: block;
  color: var(--muted);
}

.trend-summary-grid span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-summary-grid strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 32px;
  line-height: 1;
}

.trend-chart-panel {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 20px 42px rgba(15, 23, 42, .08);
}

.trend-movers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.trend-movers-panel {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 20px 42px rgba(15, 23, 42, .08);
}

.trend-movers-panel.rising .trend-kicker {
  color: #047857;
}

.trend-movers-panel.falling .trend-kicker {
  color: #b91c1c;
}

.trend-movers-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-movers-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.trend-movers-list li:last-child {
  border-bottom: 0;
}

.trend-movers-list a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.trend-movers-list a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.trend-movers-list strong,
.trend-movers-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-movers-list small {
  color: var(--muted);
  font-size: 12px;
}

.trend-movers-list li > small {
  grid-column: 1 / -1;
}

.trend-change {
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.trend-change.positive {
  color: #047857;
  background: #d1fae5;
}

.trend-change.negative {
  color: #b91c1c;
  background: #fee2e2;
}

.trend-chart-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.trend-chart-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.trend-chart-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-chart-scroll {
  overflow-x: auto;
}

.trend-chart {
  --bar-width: 42px;
  display: grid;
  grid-template-columns: repeat(var(--bar-count), var(--bar-width));
  align-items: end;
  gap: 8px;
  min-width: max-content;
  padding: 22px 20px 18px;
}

.day-chart {
  --bar-width: 34px;
}

.trend-bar-item {
  display: grid;
  grid-template-rows: 20px 180px auto auto;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.trend-value {
  overflow: hidden;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-bar-track {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 180px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    to top,
    #f8fafc 0,
    #f8fafc 35px,
    #e2e8f0 36px
  );
}

.trend-bar {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px rgba(37, 99, 235, .18);
}

.trend-bar[style*="height: 0%"] {
  box-shadow: none;
}

.day-bar {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 10px 18px rgba(5, 150, 105, .16);
}

.trend-label,
.trend-group {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-label {
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.trend-group {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  gap: 8px;
  margin: 18px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.empty-state.compact {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state code,
.code-block {
  overflow-x: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
}

.empty-state code {
  padding: 12px;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
}

.difference-band {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  margin-bottom: 18px;
  padding: 24px;
}

.difference-band h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.difference-grid article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.difference-grid strong {
  display: block;
  margin-bottom: 6px;
}

.difference-grid p {
  margin: 0;
  color: var(--muted);
}

.pricing-section {
  margin-bottom: 18px;
  padding: 24px;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pricing-header h2 {
  max-width: 720px;
  margin: 4px 0 8px;
  font-size: 26px;
  line-height: 1.18;
}

.pricing-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.pricing-card-highlight {
  border-color: #93c5fd;
  box-shadow: 0 16px 36px rgba(37, 99, 235, .12);
}

.pricing-card h3 {
  margin: 0;
  font-size: 20px;
}

.pricing-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.pricing-badge {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pricing-amount strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-amount span,
.pricing-yearly small {
  color: var(--muted);
  font-size: 13px;
}

.pricing-yearly {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.pricing-yearly span {
  color: #334155;
  font-weight: 800;
}

.pricing-limit {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 20px;
  color: #334155;
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.code-block {
  margin: 18px;
  padding: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 18px 22px;
  list-style: none;
}

.feature-list li {
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 800;
}

.privacy-panel {
  max-width: 840px;
  padding: 24px;
}

.contact-panel {
  max-width: 840px;
  padding: 24px;
}

.contact-panel h1 {
  margin: 4px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.contact-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.contact-form {
  max-width: 720px;
  margin-top: 22px;
  padding: 0;
}

.contact-form .primary-button {
  justify-self: start;
}

.contact-notice {
  margin: 20px 0 0;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-card {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--accent);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 128px);
  place-items: center;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(360px, 1.12fr);
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-panel.register-panel {
  width: min(1080px, 100%);
}

.auth-panel.auth-panel-narrow {
  width: min(860px, 100%);
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  padding: 42px;
  background: #0f172a;
  color: #fff;
}

.auth-copy h1 {
  margin: 6px 0 12px;
  font-size: 32px;
  line-height: 1.1;
}

.auth-copy p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
}

.auth-form,
.website-form {
  display: grid;
  gap: 16px;
}

.auth-form {
  align-content: center;
  padding: 42px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span:first-child {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-error,
.validation-summary {
  color: var(--rose);
  font-size: 13px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 18px 14px;
  padding: 13px 14px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgb(37 99 235 / 10%);
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.notice::before {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  content: "i";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.auth-notice {
  margin: 0;
}

.auth-notice a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.auth-notice a:hover {
  text-decoration: underline;
}

.install-success {
  display: grid;
  gap: 16px;
  margin: 0 18px 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #172554;
}

.install-success-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.install-success-header h3 {
  margin: 2px 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.install-success-header p:not(.eyebrow) {
  margin: 0;
  color: #1e3a8a;
}

.install-success-code {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
}

.install-success-code > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.install-success-code strong {
  font-size: 13px;
}

.install-success-code code {
  display: block;
  max-height: 150px;
  overflow: auto;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.install-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #1e3a8a;
  font-size: 13px;
}

.install-steps code {
  color: #172554;
  font-weight: 750;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 650;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.wide {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-weight: 650;
}

.auth-links a {
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.form-section-title {
  padding-top: 6px;
}

.form-section-title h2 {
  margin: 0;
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snippet-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.snippet-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.snippet-preview code {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 13px;
}

.websites-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
}

.website-list {
  display: grid;
}

.website-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.website-row-main {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.website-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.website-row strong,
.website-row small,
.website-row a {
  display: block;
}

.website-row small {
  margin-top: 2px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill.warning {
  background: #fffbeb;
  color: #b45309;
}

.status-pill.danger {
  background: #fff1f2;
  color: #be123c;
}

.status-pill.success {
  background: #ecfdf5;
  color: #047857;
}

.website-row a {
  text-decoration: none;
}

.website-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.website-meta-grid span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: #334155;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snippet-box {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.snippet-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snippet-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.snippet-box code {
  display: block;
  max-height: 96px;
  overflow: auto;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.website-edit {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.website-edit summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.website-edit-form {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.website-edit-form.compact {
  padding: 0;
}

.access-list {
  display: grid;
  gap: 8px;
}

.access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
}

.access-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.website-actions form,
.website-actions a,
.website-actions button {
  width: 100%;
}

.website-form {
  padding: 18px;
}

.inline-test-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.inline-test-form input {
  min-width: min(260px, 100%);
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .analytics-grid,
  .admin-grid,
  .install-grid,
  .difference-band,
  .pricing-grid,
  .report-grid,
  .websites-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-movers-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid .detail-panel {
    position: static;
    max-height: none;
    overflow: hidden;
  }

  .analytics-grid .detail-panel.is-inline-visit-detail {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: #f8fbff;
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    margin-bottom: 0;
  }

  .menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span:not(.visually-hidden) {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
  }

  .sidebar-nav {
    display: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    overflow: visible;
  }

  .sidebar.nav-open .sidebar-nav {
    display: grid;
  }

  .sidebar-nav a {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .topbar,
  .dashboard-header,
  .install-header {
    align-items: stretch;
    flex-direction: column;
  }

  .content-shell {
    padding: 18px;
  }

  .topbar {
    display: none;
    position: static;
    min-height: auto;
    padding: 14px 18px;
  }

  .topbar .account-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-picker,
  .analytics-filters,
  .analytics-filters label {
    width: 100%;
    min-width: 0;
  }

  .analytics-filters {
    align-items: stretch;
  }

  .visitor-row {
    grid-template-columns: 1fr;
  }

  .visitor-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    white-space: normal;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list div:nth-child(odd) {
    padding-right: 0;
  }

  .website-row {
    grid-template-columns: 1fr;
  }

  .website-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .website-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row details,
  .admin-row summary {
    min-width: 0;
    text-align: left;
  }

  .install-page,
  .websites-page,
  .report-page {
    min-width: 0;
  }

  .install-header {
    margin-bottom: 14px;
  }

  .install-header h1 {
    max-width: none;
  }

  .install-header .primary-button {
    width: 100%;
  }

  .overview-actions,
  .overview-actions .ghost-button {
    width: 100%;
  }

  .difference-band {
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
  }

  .pricing-section {
    margin-bottom: 14px;
    padding: 16px;
  }

  .pricing-header h2 {
    font-size: 22px;
  }

  .difference-band h2 {
    font-size: 20px;
  }

  .difference-grid article {
    padding: 12px;
  }

  .install-grid {
    gap: 14px;
  }

  .code-block {
    margin: 14px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .metrics-grid,
  .admin-summary-grid,
  .trend-summary-grid,
  .detail-list,
  .difference-grid,
  .field-grid,
  .snippet-grid,
  .website-meta-grid,
  .website-row,
  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: auto;
    padding: 28px;
  }

  .auth-form {
    padding: 28px;
  }

  .content-shell {
    padding: 12px;
  }

  .sidebar {
    padding: 12px;
  }

  .brand {
    gap: 9px;
    font-size: 16px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-icon img {
    width: 26px;
    height: 26px;
  }

  .sidebar-nav {
    margin-top: 10px;
  }

  .topbar {
    padding: 12px;
  }

  .panel-heading,
  .section-title,
  .website-title-line,
  .install-success-header,
  .install-success-code > div,
  .snippet-box > div {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card strong {
    font-size: 26px;
  }

  .panel-heading {
    padding: 14px;
  }

  .page-visitor-summary,
  .page-visitor-meta {
    grid-template-columns: 1fr;
  }

  .page-visitor-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .page-visitor-summary > div:last-child {
    border-bottom: 0;
  }

  .page-visitor-card {
    padding: 14px;
  }

  .page-visitor-card header {
    flex-direction: column;
  }

  .page-path li {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .visitor-row,
  .website-row {
    padding: 14px;
  }

  .website-actions {
    grid-template-columns: 1fr;
  }

  .snippet-box code {
    max-height: 120px;
  }

  .report-table-wrap {
    margin-inline: -12px;
  }

  .dashboard-header h1,
  .install-header h1,
  .privacy-panel h1 {
    font-size: 22px;
    line-height: 1.18;
  }

  .dashboard-subtitle,
  .install-header p,
  .privacy-panel p,
  .difference-grid p,
  .feature-list {
    font-size: 14px;
  }

  .difference-band {
    padding: 12px;
  }

  .pricing-section {
    padding: 12px;
  }

  .pricing-card {
    padding: 16px;
  }

  .pricing-amount strong {
    font-size: 30px;
  }

  .difference-band h2 {
    font-size: 18px;
  }

  .feature-list {
    padding: 14px;
  }

  .account-nav {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .trend-chart-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .trend-chart {
    --bar-width: 36px;
    padding: 18px 14px 14px;
  }

  .day-chart {
    --bar-width: 30px;
  }

  .trend-bar-item {
    grid-template-rows: 20px 140px auto auto;
  }

  .trend-bar-track {
    height: 140px;
  }
}

.campaigns-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.campaign-usage-hint {
  padding: 14px 18px 0;
}

.campaign-list {
  display: grid;
}

.campaign-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.campaign-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-metrics span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.campaign-actions,
.campaign-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.campaign-links {
  display: grid;
  gap: 8px;
}

.campaign-link-row {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.campaign-link-row code {
  flex: 1 1 320px;
  overflow-wrap: anywhere;
}

.campaign-api-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.campaign-api-key-list {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.campaign-api-key-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
}

.campaign-api-key-row div:first-child {
  display: grid;
  gap: 4px;
}

.campaign-api-key-row small {
  color: var(--muted);
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-toc {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 18px;
  padding: 16px;
}

.help-toc a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus {
  color: var(--accent);
}

.help-content {
  display: grid;
  gap: 18px;
}

.help-section {
  padding: 22px;
  scroll-margin-top: 18px;
}

.help-section h2,
.help-section h3,
.help-section p {
  margin-top: 0;
}

.help-section h3 {
  margin-top: 22px;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-card-grid article,
.help-callout,
.help-example {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.help-card-grid p,
.help-callout p,
.help-example p {
  margin: 6px 0 0;
  color: var(--muted);
}

.help-steps {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.help-steps li span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.help-definitions {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.help-definitions div {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.help-definitions dt {
  font-weight: 700;
}

.help-definitions dd {
  margin: 0;
  color: var(--muted);
}

.help-table-wrap {
  overflow-x: auto;
}

.help-table {
  min-width: 640px;
}

@media (max-width: 1080px) {
  .campaigns-grid {
    grid-template-columns: 1fr;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  body {
    font-size: 14px;
  }

  .primary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .visitor-meta {
    grid-template-columns: 1fr;
  }
}
