/* Yami Club audience dashboard. Same design system as the JD client
   dashboard (yami-tools/jd-client-dashboard/styles.css): warm off-white
   canvas, white panels, hairline borders, Inter, one saturated blue. Blocks
   that exist there are copied, not reinterpreted. */

:root {
  --canvas: #f1f1ee;
  --panel: #ffffff;
  --panel-tint: #f7f7f5;
  --line: #e6e6e1;
  --line-soft: #efefea;
  --line-strong: #d8d8d2;
  --ink: #191917;
  --ink-2: #6e6e68;
  --ink-3: #72726c;
  --blue: #2c5fe8;
  --blue-hover: #2452cc;
  --blue-deep: #2653c9;
  --blue-soft: #eaf0fd;
  --blue-line: #cbd8fa;
  --blue-wash: rgba(44, 95, 232, .10);
  --green-deep: #177a44;
  --green-soft: #e4f5eb;
  --map-land: #e4e4df;
  --map-stroke: #ffffff;
  --content: 1440px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(20, 20, 15, .04);
  --shadow-lift: 0 2px 8px rgba(20, 20, 15, .07);
  --shadow-pop: 0 16px 48px rgba(20, 20, 15, .16);
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
button { font: inherit; font-weight: 500; transition: background .12s, border-color .12s, box-shadow .12s; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2 { font-weight: 600; }
a { color: inherit; }

.reset { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 12px; font-weight: 500; }
.reset:hover { border-color: var(--line-strong); background: var(--panel-tint); color: var(--ink); }

/* ---------- main scaffolding ---------- */
main { max-width: var(--content); margin: 0 auto; padding: 30px 32px 72px; }
.load-state { display: grid; place-items: center; min-height: 40vh; }
.load-state[hidden] { display: none; }
.load-card { padding: 28px 32px; display: grid; gap: 16px; justify-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); color: var(--ink-2); font-size: 13px; }
.load-card p { margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.eyebrow { color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 10px 0 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.page-source { flex: 0 0 auto; padding-bottom: 3px; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; text-align: right; }
.page-source strong { display: block; color: var(--ink); font-weight: 600; }
.section-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }

/* ---------- platform strip ----------
   The only control on the page. One card per platform, click to switch, the
   combined total at the end: logo + name, the figure, its label, a hairline,
   then views and the period. */
.platform-section { margin: 0 0 20px; }
.platform-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.platform-head .section-title { margin: 0; }
.platform-hint { color: var(--ink-3); font-size: 12px; }
.platform-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptile, .ptile-total { min-width: 0; padding: 17px 18px 14px; display: flex; flex-direction: column; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); color: var(--ink); text-align: left; }
.ptile { cursor: pointer; }
.ptile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.ptile.active { border-color: var(--blue-line); background: var(--blue-soft); }
.ptile.active:hover { border-color: var(--blue); }
.ptile-total { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.ptile-head { display: flex; align-items: center; gap: 9px; min-height: 30px; }
.ptile-logo { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; }
.ptile-logo svg { width: 30px; height: 30px; display: block; }
.ptile-logo img { max-width: 30px; max-height: 30px; width: auto; height: auto; display: block; }
.ptile-total .ptile-logo { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-tint); }
.ptile-total .ptile-logo svg { width: 17px; height: 17px; }
.ptile-name { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.ptile-state { margin-left: auto; display: none; align-items: center; gap: 5px; color: var(--blue-deep); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ptile-state svg { width: 14px; height: 14px; flex: 0 0 auto; display: block; }
.ptile.active .ptile-state { display: inline-flex; }
.ptile-figure { display: flex; flex-direction: column; gap: 3px; }
.ptile-figure strong { font-size: 27px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: normal; }
.ptile-figure > span { color: var(--ink-2); font-size: 12.5px; }
.ptile-foot { margin-top: auto; padding-top: 11px; display: flex; align-items: center; gap: 10px; min-height: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: 11.5px; }
.ptile.active .ptile-foot { border-top-color: var(--blue-line); }
.ptile-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile-foot i { width: 1px; height: 11px; flex: 0 0 auto; background: var(--line-strong); }

/* a platform switch re-renders in place: hold the frame, fade, never a loading card */
#dashboard { transition: opacity .18s; }
#dashboard.is-refreshing { opacity: .45; pointer-events: none; }
.metric-delta[hidden] { display: none; }

.audience-section, .videos-section { margin-top: 34px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); }

/* ---------- overview panel ----------
   One panel: who and when in the head, three equal key stats (the same size
   as the platform tile figures, nothing on the page is a hero number), then
   the detail cells the platform reports. */
.overview-head { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.overview-who, .overview-when { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13px; }
.overview-who strong { color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.overview-when strong { color: var(--ink); font-weight: 500; white-space: nowrap; }
.overview-when span { white-space: nowrap; }
.overview-head i { width: 1px; height: 16px; flex: 0 0 auto; background: var(--line); }
.overview-logo { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; }
.overview-logo img { max-width: 24px; max-height: 24px; width: auto; height: auto; display: block; }
.overview-when svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); }
.key-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 20px 22px; border-bottom: 1px solid var(--line-soft); }
.kstat { min-width: 0; padding: 0 22px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 7px; }
.kstat:first-child { padding-left: 0; border-left: 0; }
.kstat:last-child { padding-right: 0; }
.kstat-label { color: var(--ink-2); font-size: 13px; }
/* Figures use proportional digits; tabular-nums is for columns only. */
.kstat-value { font-size: 27px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: normal; overflow-wrap: anywhere; }
.kstat-sub { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.detail-stats { display: grid; grid-template-columns: repeat(var(--cells, 6), minmax(0, 1fr)); padding: 16px 20px 18px; }
.detail-stats > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.detail-stats > div:first-child { padding-left: 0; border-left: 0; }
.detail-stats > div:last-child { padding-right: 0; }
.detail-stats span { color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.detail-stats strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: normal; }
.detail-stats:empty { display: none; }

/* Linear-style pointer glow, copied from the JD dashboard. */
.glow-card { position: relative; }
.glow-card::before, .glow-card::after { content: ""; position: absolute; border-radius: inherit; opacity: 0; transition: opacity .5s; pointer-events: none; }
.glow-card::before { inset: 0; background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 95, 232, .015), transparent 40%); }
.glow-card::after { inset: -1px; padding: 1px; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 95, 232, .55), transparent 40%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.glow-tint:hover::before { opacity: 1; }
.glow-card:not(.glow-tint)::before { display: none; }
main:hover .glow-card::after { opacity: var(--glow, 0); }
@media (hover: none) { .glow-card::before, .glow-card::after { display: none; } }

/* ---------- panels ---------- */
.chart-body[hidden], .panel[hidden] { display: none; }
.panel { min-width: 0; position: relative; display: flex; flex-direction: column; }
.panel-head { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; padding: 15px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line-soft); background: var(--panel-tint); }
.panel-head h2 { margin: 0; font-size: 13.5px; letter-spacing: -.01em; }
.panel-head span { color: var(--ink-3); font-size: 12px; }
.panel-tools { display: flex; align-items: center; gap: 12px; }
.table-toggle { height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 11.5px; font-weight: 500; }
.table-toggle:hover { border-color: var(--line-strong); background: var(--panel-tint); color: var(--ink); }
.table-toggle[aria-pressed="true"] { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue-deep); }
.chart-body { padding: 16px 18px 14px; flex: 1; }
.chart { position: relative; width: 100%; min-height: 240px; outline: none; }
.chart:focus-visible { box-shadow: 0 0 0 2px var(--blue); border-radius: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-columns { min-height: 168px; }
.chart-table[hidden] { display: none; }
.chart-table table { min-width: 0; }

/* chart marks */
.grid-line { stroke: var(--line-soft); stroke-width: 1; shape-rendering: crispEdges; }
.axis-line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.axis-text { fill: var(--ink-3); font-size: 11px; font-weight: 500; }
.series-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.series-area { fill: var(--blue); opacity: .10; }
.series-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.series-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.crosshair { pointer-events: none; }
.crosshair line { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.crosshair circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.crosshair[hidden] { display: none; }
.chart-hit { fill: transparent; cursor: crosshair; }
.bar { fill: var(--blue); }
.bar.is-dim { fill: var(--blue-line); }
.bar-hit { fill: transparent; }

/* tooltip */
.tip { position: fixed; z-index: 50; pointer-events: none; min-width: 120px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow-pop); font-size: 12px; line-height: 1.4; }
.tip[hidden] { display: none; }
.tip-title { margin-bottom: 4px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.tip-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tip-row i { width: 10px; height: 2px; border-radius: 1px; background: var(--blue); }
.tip-row strong { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.tip-row span { color: var(--ink-2); }

/* ---------- audience ---------- */
.audience-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; }
.audience-lists { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-width: 0; }
.audience-lists.single { grid-template-rows: 1fr; }
.audience-grid-2 { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 20px; margin-top: 20px; align-items: stretch; }
.map-body { padding: 10px 14px 6px; flex: 1; display: grid; align-items: center; }
.map { width: 100%; }
.map svg { display: block; width: 100%; height: auto; }
.land { fill: var(--map-land); stroke: var(--map-stroke); stroke-width: .6; stroke-linejoin: round; }
.land.top { cursor: default; transition: filter .15s; }
.land.top:hover { filter: brightness(.92); }
.city { fill: var(--blue); stroke: #fff; stroke-width: 2; cursor: default; }
.city-hit { fill: transparent; }
.city-label { fill: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: -.01em; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 12px; }
.map-legend { display: flex; align-items: center; gap: 8px; }
.map-legend .ramp { width: 96px; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--blue-line), var(--blue)); }
.map-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); margin-left: 6px; }

.hbars { padding: 12px 18px 16px; display: grid; gap: 9px; align-content: start; flex: 1; }
.hbar-row { display: grid; grid-template-columns: 132px 1fr 52px; align-items: center; gap: 10px; }
.hbar-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-label .row-code { width: 24px; flex: 0 0 auto; color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.hbar-track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); }
.hbar-value { text-align: right; font-size: 12.5px; font-weight: 600; }
.hbars-big { gap: 14px; }
.hbars-big .hbar-track { height: 12px; border-radius: 6px; }
.hbars-big .hbar-track i { border-radius: 0 6px 6px 0; }
.hbars-big .hbar-value { font-size: 14px; }
.best-times { padding: 4px 18px 16px; display: grid; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.best-times div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.best-times div span:first-child { color: var(--ink-2); font-weight: 500; }
.best-times div strong { font-weight: 600; }

/* ---------- tables (JD) ---------- */
.table-wrap { position: relative; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.panel .table-wrap:last-child, .video-panel .table-wrap:last-child { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); overflow-y: hidden; }
.video-panel .table-wrap { border-radius: calc(var(--radius) - 1px); }
.table-wrap.is-scrollable { background:
  linear-gradient(to right, var(--panel) 45%, rgba(255,255,255,0)) left / 44px 100% no-repeat local,
  linear-gradient(to left, var(--panel) 45%, rgba(255,255,255,0)) right / 44px 100% no-repeat local,
  linear-gradient(to right, rgba(20,20,15,.10), rgba(20,20,15,0)) left / 16px 100% no-repeat scroll,
  linear-gradient(to left, rgba(20,20,15,.10), rgba(20,20,15,0)) right / 16px 100% no-repeat scroll; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0; color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
th.num { text-align: right; }
th.plain { padding: 10px 12px; }
th.plain.num { text-align: right; }
.sort-button { width: 100%; border: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; background: transparent; color: inherit; cursor: pointer; font-size: inherit; font-weight: inherit; white-space: nowrap; }
.sort-button.left { justify-content: flex-start; }
.sort-button:not(.left) .sort-arrow { order: -1; }
.sort-button:focus-visible { outline-offset: -2px; }
.sort-button:hover { color: var(--ink); background: rgba(20, 20, 15, .035); }
.sort-button.active { color: var(--blue-deep); }
.sort-arrow { width: 8px; color: var(--ink-3); font-size: 9px; }
.sort-button.active .sort-arrow { color: var(--blue-deep); }
td { padding: 11px 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; text-align: left; white-space: nowrap; }
td.num { text-align: right; }
tbody tr:first-child td { border-top: 0; }
th:first-child .sort-button, th.plain:first-child, td:first-child { padding-left: 18px; }
th:last-child .sort-button, th.plain:last-child, td:last-child { padding-right: 18px; }
.value-strong { font-weight: 600; }
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.table-wrap.is-scrollable th:first-child, .table-wrap.is-scrollable td:first-child { box-shadow: 6px 0 8px -6px rgba(20, 20, 15, .12); }

/* ---------- videos ---------- */
.videos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.videos-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.videos-head span { color: var(--ink-2); font-size: 12px; }
.video-panel { width: 100%; min-width: 0; position: relative; }
.video-table { min-width: 1080px; table-layout: fixed; }
.video-table .col-title { width: 340px; }
.video-table .col-date { width: 110px; }
.video-table .col-metric { width: auto; min-width: 84px; }
.video-table td { overflow: hidden; text-overflow: ellipsis; }
.video-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb { width: 40px; height: 56px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; background: var(--panel-tint); border: 1px solid var(--line-soft); }
.video-title { font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: normal; }
.video-title a { color: inherit; text-decoration: none; }
.video-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.video-title a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.link-mark { margin-left: 4px; color: var(--ink-3); font-size: 10px; }
.video-meta { margin-top: 3px; color: var(--ink-3); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.videos-note { margin: 12px 2px 0; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.empty { padding: 34px 18px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
footer { margin-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2); font-size: 10.5px; line-height: 1.45; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .audience-grid-2 { grid-template-columns: 1fr 1fr; }
  .audience-grid-2 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .platform-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-lists { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  main { padding: 26px 20px 56px; }
  .detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .detail-stats > div { padding: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .reset { height: 44px; }
  main { padding: 24px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .page-source { padding: 0; text-align: left; }
  h1 { margin-top: 8px; font-size: 20px; }
  .section-title { font-size: 16px; }
  .overview-head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .key-stats { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .kstat { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .kstat:first-child { padding-top: 0; border-top: 0; }
  .kstat-value { font-size: 21px; }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 16px 16px; }
  .detail-stats.odd > div:last-child { grid-column: 1 / -1; }
  .platform-section { margin-bottom: 24px; }
  .platform-hint { display: none; }
  .platform-strip { gap: 10px; }
  .ptile, .ptile-total { padding: 13px 14px 11px; gap: 9px; }
  .ptile-head { min-height: 26px; gap: 8px; }
  .ptile-logo, .ptile-logo svg { width: 26px; height: 26px; }
  .ptile-logo img { max-width: 26px; max-height: 26px; }
  .ptile-name { font-size: 13px; }
  .ptile-state span { display: none; }
  .ptile-total .ptile-logo { display: none; }
  .ptile-figure strong { font-size: 21px; }
  .ptile-figure > span { font-size: 11.5px; }
  .ptile-foot { padding-top: 9px; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 11px; }
  .ptile-foot i { display: none; }
  .audience-grid, .audience-grid-2, .audience-lists { gap: 16px; }
  .audience-lists { grid-template-columns: 1fr; }
  .audience-grid-2 { grid-template-columns: 1fr; margin-top: 16px; }
  .audience-section, .videos-section { margin-top: 28px; }
  .hbar-row { grid-template-columns: 1fr auto; row-gap: 5px; }
  .hbar-track { grid-column: 1 / -1; }
  .panel-head { flex-wrap: wrap; row-gap: 4px; }
  .panel-head > span, .panel-tools { flex: 1 0 100%; }
  .panel-tools { justify-content: space-between; }
  .chart { min-height: 200px; }
  .map-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  footer { flex-direction: column; gap: 6px; }
}
@media print {
  body { background: #fff; }
  .table-toggle, .platform-hint { display: none !important; }
  .ptile:not(.active) { opacity: .55; }
  main { padding: 16px 0; max-width: none; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; background: none; }
  .video-table { min-width: 0; width: 100%; table-layout: auto; }
  .video-table .col-title { width: auto; }
  td { white-space: normal; }
  .table-wrap th:first-child, .table-wrap td:first-child { position: static; box-shadow: none; }
  a { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button { transition: none; }
  .glow-card::before, .glow-card::after { transition: none; }
}
