@font-face { font-family: "Source Sans 3"; src: url(/assets/fonts/source-sans-3-latin.woff2) format("woff2"); font-weight: 200 900; }
:root {
  color-scheme: light;
  --red: #990000; --red-tint: #f7e9e9; --ink: #1f2430; --muted: #5b6470; --faint: #8a929e;
  --line: #e1e4e8; --bg: #f4f5f7; --card: #fff;
  --booked: #8a929e;
  --series: #2462a8; --series-light: #8fb2dd;
  --c1: #eb6834; --c2: #1baf7a; --c3: #4a3aa7;
  --good: #1f7a3a; --good-bg: #e7f4ea; --warn: #9a5b00; --warn-bg: #fdf1dc;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.topbar img { width: 30px; height: 30px; border-radius: 4px; }
.topbar .prod { font-weight: 700; }
h1 { font-size: 26px; margin: 22px 0 2px; }
h2 { font-size: 16px; margin: 0; }
.sub { color: var(--muted); margin: 0; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.control { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 7px 12px; color: var(--ink); }
.btn { font: inherit; font-size: 14px; font-weight: 700; border: 2px solid var(--red); background: var(--red); color: #fff; border-radius: 999px; padding: 6px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.chips b { color: var(--ink); }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.btn-tag { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

.grid { display: grid; gap: 16px; margin-top: 16px; }
.g-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-2b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card .note { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tile .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .value { font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 16px; font-weight: 600; color: var(--muted); }
.tile .note { margin-top: 6px; }

.creatives-box { margin-top: 16px; }
.creatives-box h2 { margin-bottom: 8px; }
.creatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.creative { display: flex; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--cc); border-radius: 12px; padding: 10px; }
.creative .cnum { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; text-align: center; line-height: 1.1; padding: 4px; }
.creative .name { font-weight: 700; }
.creative .meta { color: var(--muted); font-size: 13px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 3px solid var(--sw); vertical-align: middle; margin-right: 6px; }
.legend .dash::before { border-top-style: dashed; }
.legend .thin::before { border-top-width: 1.5px; }
.heat-legend { align-items: center; }
.heat-legend .ramp { width: 120px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgb(234,241,250), rgb(111,160,220), rgb(23,63,120)); }
.heat-legend .ramp::before, .heat-legend .scale::before { display: none; }
.legend .box::before { height: 10px; width: 10px; border: 0; background: var(--sw); border-radius: 2px; }

svg { display: block; width: 100%; height: auto; overflow: visible; }
svg text { font-family: var(--font); fill: var(--muted); font-size: 12px; }
.gridline { stroke: var(--line); stroke-width: 1; }
.hit { fill: transparent; cursor: default; }

.cbars { display: grid; gap: 12px; }
.cbar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 100px 70px 110px; gap: 12px; align-items: center; font-size: 14px; }
.cbar-head { color: var(--muted); font-size: 13px; font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.cbar-track { height: 14px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.cbar-fill { height: 100%; border-radius: 0 4px 4px 0; }
.cbar-row .num { text-align: right; font-variant-numeric: tabular-nums; }


table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
th:first-child, td:first-child { text-align: left; }
td.status { text-align: left; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); flex: none; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
.stack { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stack div { display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hbars { display: grid; gap: 8px; }
.donut-wrap { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.donut-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
.donut-legend small { color: var(--muted); }
.donut-legend .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 14px; }
.hbar .track { height: 12px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--series); border-radius: 0 4px 4px 0; }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; }
.source { margin-top: 14px !important; }
.partner { margin-top: 28px; padding: 18px; border: 2px dashed var(--series-light); border-radius: 14px; background: #eef2f8; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--series); }
.partner-head { display: flex; align-items: center; gap: 12px; }
.src-tag { font-size: 12px; font-weight: 700; color: var(--series); background: var(--card); border: 1px solid var(--series-light); border-radius: 999px; padding: 2px 10px; }
.needs { margin: 0 0 4px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.partner > .note { color: var(--muted); font-size: 13px; margin: 4px 0 0; max-width: 60em; }
.table-scroll { overflow-x: auto; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.pager .control { padding: 4px 8px; margin-left: 6px; }
.pages { display: flex; gap: 4px; margin-left: auto; }
.pages button { font: inherit; font-size: 14px; min-width: 34px; height: 32px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; }
.pages button[aria-current="page"] { background: var(--series); border-color: var(--series); color: #fff; font-weight: 700; }
.pages button:disabled { color: var(--faint); cursor: default; }

.tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; transition: opacity .08s; z-index: 10; max-width: 260px; }
.tip b { font-weight: 700; }
footer { color: var(--muted); font-size: 13px; margin-top: 20px; }

@media (max-width: 980px) {
  .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2, .g-2b, .creatives, .demo { grid-template-columns: minmax(0, 1fr); }
}

.sw-series { --sw: var(--series); }

.sw-series-light { --sw: var(--series-light); }

.sw-booked { --sw: var(--booked); }

.sw-ink { --sw: var(--ink); }

.heat-legend-spacing { margin-top:8px; }
svg .chart-bold { fill: var(--ink); font-weight: 700; }
svg .donut-total { fill: var(--ink); font-size: 20px; font-weight: 700; }
svg .chart-small { font-size: 11px; }
svg .donut-average { fill: var(--ink); font-size: 14px; font-weight: 700; }
svg .chart-value { fill: var(--ink); font-weight: 600; }
svg .map-caption { font-size: 11px; letter-spacing: .08em; }
svg .map-location { cursor: default; }
svg .map-count { fill: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }

svg .donut-label { fill: var(--ink); font-size: 11px; font-weight: 700; pointer-events: none; }
svg .donut-label-light { fill: #fff; }
.gender-female { background: var(--series); }
.stack .gender-male { background: var(--series-light); color: var(--ink); }
.example-bar { background: var(--card); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.example-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.example-bar a { color: var(--muted); }
.example-bar .example-cta { color: #086371; font-weight: 700; }
.chart-scroll { min-width: 0; }

@media (max-width: 600px) {
  .head-row > div, .controls, .control { min-width: 0; max-width: 100%; }
  .card-head, .partner-head { flex-wrap: wrap; }
  .seg { max-width: 100%; }
  .seg button { min-width: 0; padding-inline: 8px; }
  .donut-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .donut-wrap svg { max-width: 220px; margin-inline: auto; }
  .chart-scroll, .cbars { overflow-x: auto; }
  .chart-scroll svg { min-width: 520px; }
  .cbar-row { min-width: 650px; }
  .hbar { grid-template-columns: 100px minmax(0, 1fr) 40px; gap: 8px; }
  .partner .g-tiles { grid-template-columns: minmax(0, 1fr); }
  .pages { flex-wrap: wrap; }
}
