:root {
  /* Fox blue palette (navy base + FOX red accent) */
  --bg: #001a33;
  --bg-elevated: #0a2744;
  --bg-tile: #0d2f52;
  --border: #1e4a73;
  --text: #ffffff;
  --muted: #9eb6d1;
  --accent: #e31c23;
  --fox-red: #e31c23;
  --fox-blue: #001a33;
  --fox-blue-mid: #0a3d6b;
  --pass: #22c55e;
  --pass-bg: rgba(34, 197, 94, 0.14);
  --fail: #ef4444;
  --fail-bg: rgba(239, 68, 68, 0.14);
  --skip: #94a3b8;
  --skip-bg: rgba(148, 163, 184, 0.12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --foxone: #e31c23;
  --foxsports: #16a34a;
  --foxweather: #0ea5e9;
  --radius: 12px;
  /* Fox Corp site font (Leadership nav = urw-din via Typekit mxz5gvr) */
  --font: "urw-din", "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-text: #f0f0f0;
  --page-gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --aside-width: 30%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 85% 55% at 50% -20%, rgba(30, 100, 180, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(227, 28, 35, 0.12), transparent 45%),
    linear-gradient(180deg, #002447 0%, #001a33 40%, #001428 100%);
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.35rem var(--page-gutter) 0.85rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

button.brand-home {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}

button.brand-home:focus-visible {
  outline: 2px solid rgba(227, 28, 35, 0.65);
  outline-offset: 4px;
  border-radius: 6px;
}

.home-btn {
  appearance: none;
  flex-shrink: 0;
  border: 1px solid rgba(227, 28, 35, 0.55);
  background: rgba(227, 28, 35, 0.14);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.home-btn:hover {
  background: rgba(227, 28, 35, 0.28);
  border-color: var(--fox-red);
}

.home-btn:focus-visible {
  outline: 2px solid rgba(227, 28, 35, 0.65);
  outline-offset: 3px;
}

.home-btn.is-home,
.home-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.home-btn-inline {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.65rem;
}

.nav-row .back {
  margin-bottom: 0;
}

.fox-logo {
  display: block;
  height: 40px;
  width: auto;
  animation: logo-glow 3.2s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); opacity: 1; }
  50% { filter: drop-shadow(0 0 10px rgba(227, 28, 35, 0.55)); opacity: 0.96; }
}

.brand h1 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-text);
  line-height: 1.2;
}

.subtitle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    100deg,
    var(--muted) 40%,
    #ffffff 50%,
    var(--muted) 60%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: meta-shimmer 1.6s ease-out 1;
}

@keyframes meta-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -50% 0; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.7rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav-text);
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}

.dot.pass { background: var(--pass); box-shadow: 0 0 8px rgba(34, 197, 94, 0.55); }
.dot.fail { background: var(--fail); box-shadow: 0 0 8px rgba(239, 68, 68, 0.45); }
.dot.skip { background: var(--skip); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }

/* Main-page entrance animations */
.anim-fade {
  animation: fade-up 0.55s ease both;
}

.tile.anim-in {
  animation: fade-up 0.55s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fox-logo,
  .anim-fade,
  .tile.anim-in,
  .tile.status-fail,
  .run-row.status-fail,
  .run-detail.status-fail,
  .tile.is-fresh,
  .fresh-badge .dot-live,
  .meta {
    animation: none !important;
  }
  .meta {
    background: none !important;
    -webkit-text-fill-color: unset;
    color: var(--muted) !important;
  }
  .bar > span {
    transition: none !important;
  }
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-gutter) 2.5rem;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
  grid-template-areas: "main aside";
  gap: clamp(0.85rem, 1.5vw, 1.35rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.home-main {
  grid-area: main;
  min-width: 0;
  width: 100%;
}

.home-aside {
  grid-area: aside;
  position: sticky;
  top: 0.75rem;
  align-self: start;
  width: 100%;
  min-width: 0;
}

.runners-panel {
  background: rgba(0, 20, 40, 0.28);
  border: 1px solid rgba(158, 182, 209, 0.12);
  border-radius: var(--radius);
  padding: 0.85rem 0.8rem 0.8rem;
  box-shadow: none;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  opacity: 0.92;
}

.runners-title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.runners-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.runners-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.runner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 182, 209, 0.22);
  background: rgba(0, 0, 0, 0.15);
}

.runner-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  display: inline-block;
}

.runner-pill.online i { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.runner-pill.busy i { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.55); }
.runner-pill.offline i { background: #64748b; }

.runners-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.runners-group-label {
  margin: 0.55rem 0 0.15rem;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.runner-card {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(158, 182, 209, 0.18);
  border-left: 3px solid #64748b;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
}

.runner-card.status-online { border-left-color: #22c55e; }
.runner-card.status-busy { border-left-color: #f59e0b; }
.runner-card.status-offline { border-left-color: #64748b; opacity: 0.82; }

.runner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.runner-card-top .platform-logo {
  height: 1.15rem;
  max-width: 5.5rem;
}

.runner-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.runner-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #64748b;
}

.runner-card.status-online .runner-status i {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.65);
  animation: runner-pulse 2.2s ease-in-out infinite;
}

.runner-card.status-busy .runner-status i {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.65);
  animation: runner-pulse 1.2s ease-in-out infinite;
}

@keyframes runner-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.runner-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.runner-owner {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c7d7eb;
  letter-spacing: 0.02em;
}

.runner-owner.is-empty {
  color: var(--muted);
  font-weight: 400;
}

.runner-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.runner-seen {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Give graphs full width sooner so 9 platform columns don't crush */
@media (max-width: 1280px) {
  .home-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside";
  }
  .home-aside {
    position: static;
  }
  .runners-panel {
    max-height: none;
  }
  .runners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 1200px) {
  .tiles-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .home-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside";
  }
  .home-main {
    order: unset;
  }
  .home-aside {
    position: static;
    order: unset;
  }
  .runners-panel {
    max-height: none;
    margin-top: 0.75rem;
  }
  .runners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 860px) {
  .tiles-products { grid-template-columns: 1fr; }
  .legend {
    border-radius: 12px;
    width: 100%;
  }
  .legend-note { margin-left: 0; width: 100%; }
  .header-top {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .brand h1 {
    font-size: 1.15rem;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 0.65rem;
  }
  .runners-list {
    grid-template-columns: 1fr;
  }
  .fox-logo {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .runner-card.status-online .runner-status i,
  .runner-card.status-busy .runner-status i {
    animation: none !important;
  }
}

.hidden { display: none !important; }

.view-title {
  margin: 0.35rem 0 1.15rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-text);
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 0 1.25rem;
}

.page-heading h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-text);
}

.page-heading .sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fox-red);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.back:hover { text-decoration: underline; }

.group-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.group-block {
  background: rgba(18, 26, 43, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-text);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.tiles-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  width: 100%;
}

#charts-by-client.chart-grid {
  grid-template-columns: 1fr;
}

.home-charts {
  margin-top: 2.25rem;
}

.chart-section-title {
  margin-top: 1.75rem;
}

.chart-card {
  background: rgba(0, 20, 40, 0.28);
  border: 1px solid rgba(158, 182, 209, 0.12);
  border-left: 3px solid rgba(158, 182, 209, 0.28);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem 0.8rem;
  box-shadow: none;
}

.chart-card-wide {
  border-left-color: rgba(158, 182, 209, 0.28);
}

.chart-section-title {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.chart-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  min-height: 3.25rem;
  flex-wrap: nowrap;
}

/* Equal brand mark box for FOX One / Sports / Weather in every graph */
.chart-card-head .chart-brand {
  flex: 0 1 auto;
  width: clamp(7.5rem, 22vw, 10.5rem);
  height: clamp(2.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.chart-card-title {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-text);
}

/* Logo already carries the product name — hide duplicate text on client graphs */
.chart-card-wide .chart-card-head .chart-card-title {
  display: none;
}

.chart-card-meta {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack-chart {
  width: 100%;
  max-width: none;
  margin: 0;
}

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stack-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #94a3b8;
}

.stack-legend-item i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  display: inline-block;
}

.stack-legend-note {
  margin-left: auto;
  opacity: 0.65;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.65rem;
}

.stack-plot {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 0.45rem 0.35rem 0.3rem;
  background: rgba(0, 20, 40, 0.22);
  border: 1px solid rgba(158, 182, 209, 0.12);
  border-radius: 10px;
}

.stack-yaxis-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 40px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 26, 51, 0.98) 70%, transparent);
  padding-right: 0.15rem;
}

.stack-yaxis {
  flex: 0 0 auto;
  display: block;
  background: transparent;
  width: 40px;
}

.stack-cols {
  /* Keep a readable column floor — scroll horizontally instead of crushing logos */
  display: grid;
  grid-template-columns: repeat(var(--plat-count, 3), minmax(76px, 1fr));
  flex: 1 1 auto;
  width: max(100%, calc(var(--plat-count, 3) * 84px));
  min-width: calc(var(--plat-count, 3) * 84px);
  align-items: end;
  column-gap: 0.4rem;
  padding-bottom: 0.15rem;
}

.stack-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  max-width: 110px;
  margin: 0 auto;
}

.stack-col-svg {
  display: block;
  width: 100%;
  max-width: 88px;
  height: clamp(180px, 28vw, 240px);
  overflow: hidden;
  margin: 0 auto;
}

.stack-seg {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.stack-seg:hover,
.stack-seg:focus {
  opacity: 0.82;
  outline: none;
}

.stack-logo-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-logo-btn:hover .platform-logo,
.stack-logo-btn:focus-visible .platform-logo {
  filter: brightness(1.08);
  transform: scale(1.03);
}

.stack-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(2.4rem, 4.5vw, 3.5rem);
  padding: 0.4rem 0.05rem 0.2rem;
  box-sizing: border-box;
}

.stack-logo-spacer {
  min-height: clamp(2.4rem, 4.5vw, 3.5rem);
  width: 100%;
}

.stack-logo-cell .platform-logo,
.stack-logo-cell .stack-plat-logo,
.stack-col[data-platform] .stack-plat-logo,
.stack-col[data-platform] .platform-logo {
  height: clamp(1.85rem, 3.8vw, 3.1rem);
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none;
  opacity: 1;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.release-graph {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0.15rem 0 0.35rem;
  background: rgba(0, 20, 40, 0.35);
  border: 1px solid rgba(158, 182, 209, 0.16);
  border-radius: 10px;
}

.release-graph-stack {
  display: none;
}

.cluster-legend {
  display: none;
}

.cluster-legend-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.rel-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.rel-chip {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 182, 209, 0.28);
  color: #e2e8f0;
  background: rgba(0, 20, 40, 0.45);
}

.rel-chip.r1 { border-color: rgba(56, 189, 248, 0.55); color: #7dd3fc; }
.rel-chip.r2 { border-color: rgba(167, 139, 250, 0.55); color: #c4b5fd; }
.rel-chip.r3 { border-color: rgba(52, 211, 153, 0.55); color: #6ee7b7; }
.rel-chip.empty { opacity: 0.45; }

.tile-logo-only {
  min-height: 9.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.15rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.tile-logo-only .tile-brand-solo {
  margin: 0;
  min-height: 0;
  width: 100%;
  justify-content: center;
}

.tile-logo-only .product-logo-lg,
.tile-logo-only img.product-logo[data-brand],
.tile-logo-only img.product-logo[src*="fox-one-logo"],
.tile-logo-only img.product-logo[src*="fox-sports-logo"],
.tile-logo-only img.product-logo[src*="fox-weather-logo"] {
  height: 4.25rem;
  width: auto;
  max-width: 11.5rem;
  max-height: 4.25rem;
  object-fit: contain;
}

.tile-product.product-foxone { --prod: var(--foxone); }
.tile-product.product-foxsports { --prod: var(--foxsports); }
.tile-product.product-foxweather { --prod: var(--foxweather); }
.tile-product {
  /* Brand accent (subtle) — health signal is the left border via status-* */
  border-top: 2px solid var(--prod, var(--accent));
  border-left-width: 5px;
}

.chart-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(158, 182, 209, 0.16);
}

.graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.graph-legend-idx {
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.graph-legend-item .platform-logo,
.graph-legend-item .product-logo {
  height: 0.95rem;
  max-width: 4.2rem;
}

.vbar-date {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chart-card-head .platform-logo {
  height: 1.35rem;
  max-width: 5.5rem;
}

.chart-card-head .product-logo-sm,
.chart-card-head .chart-brand .product-logo,
.chart-card-head .chart-brand .product-logo-sm,
.chart-card-head img.product-logo[data-brand],
.chart-card-head img.product-logo[src*="fox-one-logo"],
.chart-card-head img.product-logo[src*="fox-sports-logo"],
.chart-card-head img.product-logo[src*="fox-weather-logo"] {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

.chart-card,
.chart-card-wide {
  max-width: 100%;
  overflow: hidden;
}

.home-charts,
.home-main,
#charts-by-client {
  max-width: 100%;
  min-width: 0;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .tiles-products { grid-template-columns: 1fr; }
  .legend { border-radius: 12px; }
  .legend-note { margin-left: 0; width: 100%; }
}

.tile {
  appearance: none;
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  background: linear-gradient(165deg, #123a63 0%, var(--bg-tile) 100%);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  font: inherit;
  position: relative;
  overflow: hidden;
}

.tile:hover {
  border-color: #3d6f9e;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 20, 40, 0.35);
}

.tile:focus-visible {
  outline: 2px solid var(--fox-red);
  outline-offset: 2px;
}

.tile.status-pass { border-left-color: var(--pass); }
.tile.status-fail { border-left-color: var(--fail); }
.tile.status-warn { border-left-color: var(--warn); }
.tile.status-none { border-left-color: var(--muted); }

/* Fail heartbeat — slow, low-amplitude glow on the left border of failing tiles/rows.
   Ambient signal for exec scanning, not an alarm. */
.tile.status-fail,
.run-row.status-fail,
.run-detail.status-fail {
  animation: fail-heartbeat 3.6s ease-in-out infinite;
}

@keyframes fail-heartbeat {
  0%, 100% { box-shadow: -4px 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: -4px 0 10px 0 rgba(239, 68, 68, 0.45); }
}

/* Freshness pulse — plays twice then stops (iteration-count: 2), signalling
   "this just updated" without looping forever and becoming ambient noise. */
.tile.is-fresh {
  animation: fresh-pulse 0.9s ease-out 2;
}

@keyframes fresh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.fresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  margin-left: 0.5rem;
}

.fresh-badge .dot-live {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 6px rgba(147, 197, 253, 0.8);
  animation: fresh-dot-blink 1.4s ease-in-out infinite;
}

@keyframes fresh-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tile-brand {
  margin-bottom: 0.95rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.page-brand {
  display: flex;
  align-items: center;
}

/* Unified product logo sizes — FOX One / Sports / Weather match everywhere */
.product-logo,
img.product-logo[data-brand],
img.product-logo[src*="fox-one-logo"],
img.product-logo[src*="fox-sports-logo"],
img.product-logo[src*="fox-weather-logo"] {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 9.5rem;
  max-height: 2.75rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
}

.product-logo-lg,
img.product-logo-lg[data-brand],
img.product-logo-lg[src*="fox-one-logo"],
img.product-logo-lg[src*="fox-sports-logo"],
img.product-logo-lg[src*="fox-weather-logo"] {
  height: 4.25rem;
  max-width: 11.5rem;
  max-height: 4.25rem;
}

.product-logo-sm,
img.product-logo-sm[data-brand],
img.product-logo-sm[src*="fox-one-logo"],
img.product-logo-sm[src*="fox-sports-logo"],
img.product-logo-sm[src*="fox-weather-logo"] {
  height: 2rem;
  max-width: 7.5rem;
  max-height: 2rem;
}

.page-heading .product-logo,
.page-heading .product-logo-lg,
.page-brand .product-logo,
.page-brand .product-logo-lg {
  height: 3.25rem;
  max-width: 10rem;
  max-height: 3.25rem;
}

.detail-hero .product-logo,
.detail-hero .product-logo-sm {
  height: 2rem;
  max-width: 7.5rem;
  max-height: 2rem;
}

.platform-logo {
  display: block;
  height: 1.55rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
}

.tile-top .platform-logo {
  height: 1.7rem;
  max-width: 8rem;
}

.page-heading .platform-logo {
  height: 2rem;
  max-width: 9rem;
}

.run-row .platform-logo {
  height: 1.45rem;
  max-width: 6.5rem;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  min-height: 1.85rem;
}

.platform-logo {
  display: block;
  height: 1.55rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
}

.tile-top .platform-logo {
  height: 1.7rem;
  max-width: 8rem;
}

.page-heading .platform-logo {
  height: 2rem;
  max-width: 9rem;
}

.run-row .platform-logo {
  height: 1.45rem;
  max-width: 6.5rem;
}

.logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.logo svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.logo-foxone { background: linear-gradient(145deg, #e31c23, #9f1218); }
.logo-foxsports { background: linear-gradient(145deg, #16a34a, #15803d); }
.logo-foxweather { background: linear-gradient(145deg, #0ea5e9, #0284c7); }
.logo-roku { background: linear-gradient(145deg, #6d28d9, #4c1d95); }
.logo-firetv { background: linear-gradient(145deg, #f97316, #c2410c); }
.logo-appletv { background: linear-gradient(145deg, #64748b, #334155); }
.logo-samsung { background: linear-gradient(145deg, #1428a0, #0b1a6b); }
.logo-lg { background: linear-gradient(145deg, #a50034, #7a0026); }
.logo-vizio { background: linear-gradient(145deg, #f59e0b, #b45309); color: #111; }
.logo-iphone { background: linear-gradient(145deg, #94a3b8, #475569); }
.logo-android { background: linear-gradient(145deg, #84cc16, #4d7c0f); }
.logo-lr { background: #334155; }
.logo-tvapps { background: #1e3a5f; }
.logo-mobile { background: #3f3f46; }

.tile-name {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nav-text);
}

.tile-product .tile-name { font-size: 1.2rem; }

.rate-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
}

.tile-rate {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tile-rate.tone-pass { color: var(--pass); }
.tile-rate.tone-fail { color: var(--fail); }
.tile-rate.tone-warn { color: var(--warn); }
.tile-rate.tone-none { color: var(--muted); }

.rate-frac {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 550;
}

.bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #1a3f66;
  overflow: hidden;
  margin: 0 0 0.7rem;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pass), #4ade80);
  width: 0%;
  transition: width 0.75s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Set by JS one frame after insertion, so the width transition actually fires */
.bar > span.filled {
  width: var(--target-width, 0%);
}

.bar.fail > span {
  background: linear-gradient(90deg, var(--fail), #fb7185);
}

.bar.warn > span {
  background: linear-gradient(90deg, var(--warn), #fbbf24);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid transparent;
}

.chip-pass { background: var(--pass-bg); color: #4ade80; border-color: rgba(34, 197, 94, 0.28); }
.chip-fail { background: var(--fail-bg); color: #f87171; border-color: rgba(239, 68, 68, 0.28); }
.chip-skip { background: var(--skip-bg); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }
.chip-env { background: rgba(227, 28, 35, 0.16); color: #ff6b70; border-color: rgba(227, 28, 35, 0.35); }
.chip-neutral { background: rgba(148, 163, 184, 0.1); color: var(--muted); border-color: rgba(148, 163, 184, 0.2); }

.tile-when {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tile-when .platform-logo {
  height: 1rem;
  max-width: 4.5rem;
}

.tile-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Run list */
.run-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.run-row {
  appearance: none;
  width: 100%;
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
}

.run-row:hover { border-color: #45608a; }
.run-row.status-pass { border-left-color: var(--pass); }
.run-row.status-fail { border-left-color: var(--fail); }
.run-row.status-warn { border-left-color: var(--warn); }

.run-row-main strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.run-row-main .source {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.run-row-stats {
  text-align: right;
  min-width: 8.5rem;
}

.run-row-stats .rate {
  font-size: 1.35rem;
  font-weight: 800;
}

.run-row-stats .rate.tone-pass { color: var(--pass); }
.run-row-stats .rate.tone-fail { color: var(--fail); }
.run-row-stats .rate.tone-warn { color: var(--warn); }

.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.15rem;
}

.report-links-compact {
  margin-top: 0.55rem;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 182, 209, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.report-link:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(125, 211, 252, 0.55);
  color: #fff;
}

.report-link.report-html {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.report-link.report-html:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(134, 239, 172, 0.55);
  color: #fff;
}

.report-link.report-actions {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.report-link.report-actions:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
}

.report-link::before {
  content: "↗";
  font-size: 0.85em;
  opacity: 0.85;
}

.empty {
  color: var(--muted);
  padding: 1.5rem 0;
}

/* Detail */
.run-detail {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0f3558, var(--bg-elevated));
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.55rem;
  border-left: 5px solid var(--muted);
}

.run-detail.status-pass { border-left-color: var(--pass); }
.run-detail.status-fail { border-left-color: var(--fail); }
.run-detail.status-warn { border-left-color: var(--warn); }

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.detail-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.detail-hero .hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 800px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .run-row { grid-template-columns: auto 1fr; }
  .run-row-stats { grid-column: 2; text-align: left; }
}

.stat-card {
  background: rgba(0, 26, 51, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.stat-card label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.stat-card .val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-card .val.pass { color: var(--pass); }
.stat-card .val.fail { color: var(--fail); }
.stat-card .val.skip { color: var(--skip); }
.stat-card .val.warn { color: var(--warn); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-field label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.detail-field p {
  margin: 0;
  font-size: 0.92rem;
}

.detail-field code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text);
}

.section-label {
  margin: 1.1rem 0 0.65rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-text);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 26, 51, 0.35);
}

.feature-row.ok { border-color: rgba(34, 197, 94, 0.35); background: var(--pass-bg); }
.feature-row.bad { border-color: rgba(239, 68, 68, 0.35); background: var(--fail-bg); }
.feature-row.skip { border-color: rgba(148, 163, 184, 0.3); background: var(--skip-bg); }

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-row.ok .feature-icon { background: var(--pass); color: #052e16; }
.feature-row.bad .feature-icon { background: var(--fail); color: #fff; }
.feature-row.skip .feature-icon { background: var(--skip); color: #0f172a; }

.feature-text {
  flex: 1;
  font-size: 0.9rem;
}

.failure-list {
  margin: 0;
  padding-left: 1.15rem;
}

.failure-list li {
  margin: 0.35rem 0;
  color: #fca5a5;
}

.error {
  color: #ffb4a2;
  background: #2a1510;
  border: 1px solid #5c2a1e;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.site-footer {
  display: none;
}

/* ── Product Ops / iframe embed (html.embed or body.embed) ── */
html.embed,
html.embed body,
body.embed {
  min-height: 100%;
  background: var(--bg);
}

html.embed body,
body.embed {
  /* Fill Product Ops content pane without double page chrome */
  background:
    radial-gradient(ellipse 85% 55% at 50% -20%, rgba(30, 100, 180, 0.35), transparent 55%),
    linear-gradient(180deg, #002447 0%, #001a33 45%, #001428 100%);
}

html.embed .site-header,
body.embed .site-header {
  padding-top: 0.85rem;
  padding-bottom: 0.55rem;
}

html.embed .site-header .fox-logo,
body.embed .site-header .fox-logo {
  width: 88px;
  height: auto;
}

html.embed .site-header h1,
body.embed .site-header h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

html.embed .subtitle,
body.embed .subtitle {
  font-size: 0.78rem;
}

html.embed .meta,
body.embed .meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}
