/* Traffic monitor only. Reuses the admin shell's Sora and semantic palette. */
.traffic-dashboard { max-width: 1320px; margin: 0 auto; padding: 20px 24px 48px; color: var(--admin-ink, #edf7ff); font-size: 14px; line-height: 1.5; }
.traffic-dashboard * { box-sizing: border-box; }
.traffic-dashboard h1 { font-size: 28px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; margin: 0; }
.traffic-dashboard h2 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.traffic-dashboard h3 { font-size: 13px; font-weight: 500; margin: 20px 0 12px; color: var(--admin-muted, #b6c8d7); }
.traffic-dashboard p { margin: 8px 0 14px; overflow-wrap: anywhere; }
.traffic-heading, .traffic-source-heading, .traffic-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.traffic-heading > div > p { margin: 6px 0 0; color: var(--admin-muted, #b6c8d7); }
.traffic-update-controls { display: flex; gap: 8px; }
.traffic-dashboard button, .traffic-dashboard select, .traffic-dashboard input[type=submit] { min-height: 44px; border: 1px solid #395064; border-radius: 5px; background: #0e1722; color: #edf7ff; font: inherit; padding: 8px 12px; cursor: pointer; }
.traffic-dashboard button:hover, .traffic-dashboard input[type=submit]:hover { background: #1c2d3d; }
.traffic-dashboard button:disabled, .traffic-dashboard input:disabled { opacity: .65; cursor: not-allowed; }
.traffic-dashboard .traffic-apply { background: #b6c8d7; color: #05080d; font-weight: 600; }
.traffic-dashboard .traffic-apply:hover { background: #edf7ff; }
.traffic-filters { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(200px, 1fr) auto; align-items: end; gap: 16px; padding: 20px 0 14px; }
.traffic-mobile-filters { display: none; }
.traffic-field { min-width: 0; }
.traffic-field label { display: block; font-size: 12px; color: #b6c8d7; margin-bottom: 6px; }
.traffic-field select { width: 100%; max-width: 100%; }
.traffic-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; cursor: pointer; }
.traffic-checkbox input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #35d5ff; }
.traffic-subnav { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #395064; }
.traffic-subnav nav { display: flex; gap: 24px; }
.traffic-dashboard a { color: #9de8ff; text-underline-offset: 4px; }
.traffic-dashboard a:hover { text-decoration: underline; }
.traffic-subnav nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.traffic-subnav p { font-size: 12px; color: #b6c8d7; margin: 8px 0; }
.traffic-dashboard :focus-visible { outline: 3px solid #ffb454; outline-offset: 3px; }
.traffic-window { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #b6c8d7; font-size: 12px; padding: 12px 0; }
.traffic-window details { max-width: 100%; }
.traffic-window p { max-width: 65ch; }
.traffic-sources { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #1c2d3d; border-bottom: 1px solid #395064; background: #0a1018; }
.traffic-dashboard section { min-width: 0; padding: 24px 0; border-bottom: 1px solid #1c2d3d; }
.traffic-sources > section { padding: 24px; border: 0; }
.traffic-sources > section + section { border-left: 1px solid #395064; }
.traffic-source-heading { align-items: baseline; margin-bottom: 20px; }
.traffic-source-heading > span, .traffic-section-heading > span { color: #b6c8d7; font-size: 12px; }
.traffic-primary-metric { display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.traffic-primary-metric > span { font-size: 12px; color: #b6c8d7; }
.traffic-primary-metric strong { font-size: clamp(24px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.traffic-primary-metric b { font-weight: 500; color: #edf7ff; }
.traffic-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 16px 0; font-variant-numeric: tabular-nums; font-size: 12px; }
.traffic-metrics > div { min-width: 0; }
.traffic-sources > section[aria-label="Audience"] .traffic-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.traffic-sources > section[aria-label="Audience"] .traffic-metrics > div:nth-last-child(-n+2) { grid-column: span 2; padding-top: 10px; border-top: 1px solid #1c2d3d; }
.traffic-metrics > div:not(.traffic-primary-metric) > strong { font-size: 20px; font-weight: 500; }
.traffic-metrics small { font-size: 11px; color: #b6c8d7; line-height: 1.5; }
.traffic-muted { color: #b6c8d7; font-size: 12px; }
.traffic-coverage-line { font-size: 12px; color: #b6c8d7; border-block: 1px solid #1c2d3d; padding: 12px 0; }
.traffic-chart { display: flex; height: 100px; align-items: end; gap: 3px; border-bottom: 1px solid #617689; background: repeating-linear-gradient(to top, transparent 0, transparent 24px, #1c2d3d 24px, #1c2d3d 25px); }
.traffic-chart span { flex: 1; background: #9de8ff; min-width: 0; border-radius: 2px 2px 0 0; }
.traffic-sources > section + section .traffic-chart span { background: #b6c8d7; }
.traffic-chart-axis { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #b6c8d7; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.traffic-dashboard summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 12px; color: #b6c8d7; }
.traffic-dashboard details[open] { padding-bottom: 12px; }
.traffic-dashboard details p, .traffic-dashboard details li { color: #b6c8d7; font-size: 12px; }
.traffic-chart-data ol { columns: 2; padding-left: 20px; }
.traffic-empty { padding: 16px 0; color: #b6c8d7; font-size: 13px; }
.traffic-dashboard [role=alert] { color: #ffcf93; }
.traffic-dashboard section[aria-label="Needs attention"] { padding: 18px 0; }
.traffic-dashboard section[aria-label="Needs attention"] h2 { font-size: 15px; }
.traffic-dashboard section[aria-label="Needs attention"] p { margin: 8px 0 0; font-size: 13px; }
.traffic-scroll { overflow-x: auto; max-width: 100%; margin-top: 16px; }
.traffic-dashboard table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.traffic-dashboard th, .traffic-dashboard td { text-align: right; padding: 14px 12px; border-bottom: 1px solid #1c2d3d; white-space: nowrap; }
.traffic-dashboard th:first-child, .traffic-dashboard td:first-child { text-align: left; padding-left: 0; }
.traffic-dashboard th { font-size: 12px; font-weight: 500; color: #b6c8d7; }
.traffic-dashboard th button { background: transparent; padding: 8px 0; border: 0; font-size: 12px; }
.traffic-dashboard th[aria-sort=ascending] button::after { content: ' ↑'; }
.traffic-dashboard th[aria-sort=descending] button::after { content: ' ↓'; }
.traffic-dashboard tbody tr:hover { background: #0e1722; }
.traffic-dashboard td a { display: inline-flex; align-items: center; min-height: 44px; }
.traffic-dashboard h2[id] { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
  .traffic-filters { grid-template-columns: 1fr 1fr; }
  .traffic-subnav { display: block; }
  .traffic-sources { grid-template-columns: 1fr; }
  .traffic-sources > section + section { border-left: 0; border-top: 1px solid #395064; }
}
@media (max-width: 900px) {
  .traffic-dashboard { padding: 12px 16px 96px; }
  .traffic-heading { display: block; }
  .traffic-dashboard h1 { font-size: 22px; }
  .traffic-update-controls { margin-top: 10px; }
  .traffic-header > .traffic-filters { display: none; }
  .traffic-mobile-filters { display: block; margin: 8px 0 4px; }
  .traffic-mobile-filters summary { color: var(--admin-muted, #b6c8d7); min-height: 44px; }
  .traffic-mobile-filters .traffic-filters { display: grid; grid-template-columns: 1fr; padding: 8px 0 4px; }
  .traffic-subnav { display: block; }
  .traffic-subnav nav { gap: 16px; }
  .traffic-field { grid-column: 1 / -1; }
  .traffic-dashboard h2[id] { scroll-margin-top: 60px; }
  .traffic-chart-data ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .traffic-dashboard, .traffic-dashboard * { animation: none !important; transition: none !important; }
}
