/* /demo only. app.css, portal.css and client-report.css next to this file are the client
 * portal's own stylesheets, copied unchanged (fonts repointed to /static/demo/fonts/). This
 * sheet holds only what the demo adds: the Sample data chip and the closing call to action,
 * and the behaviors the portal runs from /vendor scripts, redone without script (popovers for
 * the pop-ups, drawers and the phone sheet; hover columns for the chart tips). */

/* ------------------------------------------------------------------ demo additions */
.ugc-report.client-portal .tag.dm-sample {
  flex: none;
  white-space: nowrap;
}
.ugc-report.client-portal .topbar-right {
  gap: var(--s3);
}
.ugc-report.client-portal .dm-cta .rd-next-b {
  max-width: 56ch;
}
.ugc-report.client-portal .dm-cta .btn-row {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .ugc-report.client-portal .topbar .wrap {
    gap: var(--s3);
  }
}

/* ------------------------------------------------------------------ pop-ups as popovers
 * kit-dialog.js swaps a pop-up into the page; here it is in the page from the start, as a
 * popover, and the top layer does what the portal's z-index scale did. */
.ugc-report.client-portal.dm-pop[popover],
.dm-sheet[popover],
.dm-drawer[popover] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}
.ugc-report.client-portal.dm-pop .modal-frame {
  pointer-events: none;
}
.ugc-report.client-portal.dm-pop .modal-scrim {
  border: 0;
  padding: 0;
  cursor: default;
}
@starting-style {
  .ugc-report.client-portal.dm-pop:popover-open .modal-scrim,
  .ugc-report.client-portal.dm-pop:popover-open .modal-frame {
    opacity: 0;
  }
  .ugc-report.client-portal.dm-pop:popover-open .modal {
    transform: translateY(8px);
  }
}
.ugc-report.client-portal .dm-sheet .scrim,
.ugc-report.client-portal .dm-drawer .scrim {
  border: 0;
  padding: 0;
  display: block;
  cursor: default;
}
@starting-style {
  .ugc-report.client-portal .dm-sheet:popover-open .scrim,
  .ugc-report.client-portal .dm-drawer:popover-open .scrim {
    opacity: 0;
  }
  .ugc-report.client-portal .dm-sheet:popover-open .drawer,
  .ugc-report.client-portal .dm-drawer:popover-open .drawer {
    transform: translateX(100%);
  }
}
html:has(:popover-open.dm-pop, :popover-open.dm-sheet, :popover-open.dm-drawer) {
  overflow: hidden;
}

/* ------------------------------------------------------------------ chart tips without script
 * chart-hover.js moves a cursor line and shows the hovered day's `.tip`. Here each day has a
 * column over the plot (chart.rs `hover`); hovering it draws the line and shows its tip. */
.ugc-report .chart .dm-hov {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ugc-report .chart[data-sized] > .dm-hov {
  display: none;
}
.ugc-report .chart[data-sized] > .dm-hov[data-size="compact"] {
  display: block;
}
@container ugc-chart (min-width: 560px) {
  .ugc-report .chart[data-sized] > .dm-hov[data-size="compact"] {
    display: none;
  }
  .ugc-report .chart[data-sized] > .dm-hov[data-size="medium"] {
    display: block;
  }
}
@container ugc-chart (min-width: 940px) {
  .ugc-report .chart[data-sized] > .dm-hov[data-size="medium"] {
    display: none;
  }
  .ugc-report .chart[data-sized] > .dm-hov[data-size="wide"] {
    display: block;
  }
}
.ugc-report .chart .dm-hov > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--dm-x0) + var(--dm-i) * var(--dm-bw));
  width: var(--dm-bw);
}
.ugc-report .chart .dm-hov > i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--dm-y0);
  bottom: var(--dm-y1);
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  visibility: hidden;
}
.ugc-report .chart .dm-hov > i:hover::before {
  visibility: visible;
}
@media (hover: none) {
  .ugc-report .chart .dm-hov > i {
    cursor: pointer;
  }
}
.ugc-report .chart [data-chart-tip] .tip {
  display: none;
  opacity: 1;
  transform: none;
  top: 8%;
  left: calc(var(--dm-x) + 16px);
  width: max-content;
}
.ugc-report .chart [data-chart-tip] .tip[data-flip] {
  left: auto;
  right: calc(100% - var(--dm-x) + 16px);
}
@container ugc-chart (max-width: 559px) {
  .ugc-report .chart [data-chart-tip] .tip,
  .ugc-report .chart [data-chart-tip] .tip[data-flip] {
    left: 50%;
    right: auto;
    translate: -50% 0;
  }
}
/* one rule per day: the nth column places itself and shows the nth tip (100 days covers every demo chart) */
.ugc-report .chart .dm-hov > i:nth-child(1) { --dm-i: 0; }
.ugc-report .chart .dm-hov > i:nth-child(2) { --dm-i: 1; }
.ugc-report .chart .dm-hov > i:nth-child(3) { --dm-i: 2; }
.ugc-report .chart .dm-hov > i:nth-child(4) { --dm-i: 3; }
.ugc-report .chart .dm-hov > i:nth-child(5) { --dm-i: 4; }
.ugc-report .chart .dm-hov > i:nth-child(6) { --dm-i: 5; }
.ugc-report .chart .dm-hov > i:nth-child(7) { --dm-i: 6; }
.ugc-report .chart .dm-hov > i:nth-child(8) { --dm-i: 7; }
.ugc-report .chart .dm-hov > i:nth-child(9) { --dm-i: 8; }
.ugc-report .chart .dm-hov > i:nth-child(10) { --dm-i: 9; }
.ugc-report .chart .dm-hov > i:nth-child(11) { --dm-i: 10; }
.ugc-report .chart .dm-hov > i:nth-child(12) { --dm-i: 11; }
.ugc-report .chart .dm-hov > i:nth-child(13) { --dm-i: 12; }
.ugc-report .chart .dm-hov > i:nth-child(14) { --dm-i: 13; }
.ugc-report .chart .dm-hov > i:nth-child(15) { --dm-i: 14; }
.ugc-report .chart .dm-hov > i:nth-child(16) { --dm-i: 15; }
.ugc-report .chart .dm-hov > i:nth-child(17) { --dm-i: 16; }
.ugc-report .chart .dm-hov > i:nth-child(18) { --dm-i: 17; }
.ugc-report .chart .dm-hov > i:nth-child(19) { --dm-i: 18; }
.ugc-report .chart .dm-hov > i:nth-child(20) { --dm-i: 19; }
.ugc-report .chart .dm-hov > i:nth-child(21) { --dm-i: 20; }
.ugc-report .chart .dm-hov > i:nth-child(22) { --dm-i: 21; }
.ugc-report .chart .dm-hov > i:nth-child(23) { --dm-i: 22; }
.ugc-report .chart .dm-hov > i:nth-child(24) { --dm-i: 23; }
.ugc-report .chart .dm-hov > i:nth-child(25) { --dm-i: 24; }
.ugc-report .chart .dm-hov > i:nth-child(26) { --dm-i: 25; }
.ugc-report .chart .dm-hov > i:nth-child(27) { --dm-i: 26; }
.ugc-report .chart .dm-hov > i:nth-child(28) { --dm-i: 27; }
.ugc-report .chart .dm-hov > i:nth-child(29) { --dm-i: 28; }
.ugc-report .chart .dm-hov > i:nth-child(30) { --dm-i: 29; }
.ugc-report .chart .dm-hov > i:nth-child(31) { --dm-i: 30; }
.ugc-report .chart .dm-hov > i:nth-child(32) { --dm-i: 31; }
.ugc-report .chart .dm-hov > i:nth-child(33) { --dm-i: 32; }
.ugc-report .chart .dm-hov > i:nth-child(34) { --dm-i: 33; }
.ugc-report .chart .dm-hov > i:nth-child(35) { --dm-i: 34; }
.ugc-report .chart .dm-hov > i:nth-child(36) { --dm-i: 35; }
.ugc-report .chart .dm-hov > i:nth-child(37) { --dm-i: 36; }
.ugc-report .chart .dm-hov > i:nth-child(38) { --dm-i: 37; }
.ugc-report .chart .dm-hov > i:nth-child(39) { --dm-i: 38; }
.ugc-report .chart .dm-hov > i:nth-child(40) { --dm-i: 39; }
.ugc-report .chart .dm-hov > i:nth-child(41) { --dm-i: 40; }
.ugc-report .chart .dm-hov > i:nth-child(42) { --dm-i: 41; }
.ugc-report .chart .dm-hov > i:nth-child(43) { --dm-i: 42; }
.ugc-report .chart .dm-hov > i:nth-child(44) { --dm-i: 43; }
.ugc-report .chart .dm-hov > i:nth-child(45) { --dm-i: 44; }
.ugc-report .chart .dm-hov > i:nth-child(46) { --dm-i: 45; }
.ugc-report .chart .dm-hov > i:nth-child(47) { --dm-i: 46; }
.ugc-report .chart .dm-hov > i:nth-child(48) { --dm-i: 47; }
.ugc-report .chart .dm-hov > i:nth-child(49) { --dm-i: 48; }
.ugc-report .chart .dm-hov > i:nth-child(50) { --dm-i: 49; }
.ugc-report .chart .dm-hov > i:nth-child(51) { --dm-i: 50; }
.ugc-report .chart .dm-hov > i:nth-child(52) { --dm-i: 51; }
.ugc-report .chart .dm-hov > i:nth-child(53) { --dm-i: 52; }
.ugc-report .chart .dm-hov > i:nth-child(54) { --dm-i: 53; }
.ugc-report .chart .dm-hov > i:nth-child(55) { --dm-i: 54; }
.ugc-report .chart .dm-hov > i:nth-child(56) { --dm-i: 55; }
.ugc-report .chart .dm-hov > i:nth-child(57) { --dm-i: 56; }
.ugc-report .chart .dm-hov > i:nth-child(58) { --dm-i: 57; }
.ugc-report .chart .dm-hov > i:nth-child(59) { --dm-i: 58; }
.ugc-report .chart .dm-hov > i:nth-child(60) { --dm-i: 59; }
.ugc-report .chart .dm-hov > i:nth-child(61) { --dm-i: 60; }
.ugc-report .chart .dm-hov > i:nth-child(62) { --dm-i: 61; }
.ugc-report .chart .dm-hov > i:nth-child(63) { --dm-i: 62; }
.ugc-report .chart .dm-hov > i:nth-child(64) { --dm-i: 63; }
.ugc-report .chart .dm-hov > i:nth-child(65) { --dm-i: 64; }
.ugc-report .chart .dm-hov > i:nth-child(66) { --dm-i: 65; }
.ugc-report .chart .dm-hov > i:nth-child(67) { --dm-i: 66; }
.ugc-report .chart .dm-hov > i:nth-child(68) { --dm-i: 67; }
.ugc-report .chart .dm-hov > i:nth-child(69) { --dm-i: 68; }
.ugc-report .chart .dm-hov > i:nth-child(70) { --dm-i: 69; }
.ugc-report .chart .dm-hov > i:nth-child(71) { --dm-i: 70; }
.ugc-report .chart .dm-hov > i:nth-child(72) { --dm-i: 71; }
.ugc-report .chart .dm-hov > i:nth-child(73) { --dm-i: 72; }
.ugc-report .chart .dm-hov > i:nth-child(74) { --dm-i: 73; }
.ugc-report .chart .dm-hov > i:nth-child(75) { --dm-i: 74; }
.ugc-report .chart .dm-hov > i:nth-child(76) { --dm-i: 75; }
.ugc-report .chart .dm-hov > i:nth-child(77) { --dm-i: 76; }
.ugc-report .chart .dm-hov > i:nth-child(78) { --dm-i: 77; }
.ugc-report .chart .dm-hov > i:nth-child(79) { --dm-i: 78; }
.ugc-report .chart .dm-hov > i:nth-child(80) { --dm-i: 79; }
.ugc-report .chart .dm-hov > i:nth-child(81) { --dm-i: 80; }
.ugc-report .chart .dm-hov > i:nth-child(82) { --dm-i: 81; }
.ugc-report .chart .dm-hov > i:nth-child(83) { --dm-i: 82; }
.ugc-report .chart .dm-hov > i:nth-child(84) { --dm-i: 83; }
.ugc-report .chart .dm-hov > i:nth-child(85) { --dm-i: 84; }
.ugc-report .chart .dm-hov > i:nth-child(86) { --dm-i: 85; }
.ugc-report .chart .dm-hov > i:nth-child(87) { --dm-i: 86; }
.ugc-report .chart .dm-hov > i:nth-child(88) { --dm-i: 87; }
.ugc-report .chart .dm-hov > i:nth-child(89) { --dm-i: 88; }
.ugc-report .chart .dm-hov > i:nth-child(90) { --dm-i: 89; }
.ugc-report .chart .dm-hov > i:nth-child(91) { --dm-i: 90; }
.ugc-report .chart .dm-hov > i:nth-child(92) { --dm-i: 91; }
.ugc-report .chart .dm-hov > i:nth-child(93) { --dm-i: 92; }
.ugc-report .chart .dm-hov > i:nth-child(94) { --dm-i: 93; }
.ugc-report .chart .dm-hov > i:nth-child(95) { --dm-i: 94; }
.ugc-report .chart .dm-hov > i:nth-child(96) { --dm-i: 95; }
.ugc-report .chart .dm-hov > i:nth-child(97) { --dm-i: 96; }
.ugc-report .chart .dm-hov > i:nth-child(98) { --dm-i: 97; }
.ugc-report .chart .dm-hov > i:nth-child(99) { --dm-i: 98; }
.ugc-report .chart .dm-hov > i:nth-child(100) { --dm-i: 99; }
.ugc-report .chart:has(.dm-hov > i:nth-child(1):hover) [data-chart-tip] > .tip:nth-child(1),
.ugc-report .chart:has(.dm-hov > i:nth-child(2):hover) [data-chart-tip] > .tip:nth-child(2),
.ugc-report .chart:has(.dm-hov > i:nth-child(3):hover) [data-chart-tip] > .tip:nth-child(3),
.ugc-report .chart:has(.dm-hov > i:nth-child(4):hover) [data-chart-tip] > .tip:nth-child(4),
.ugc-report .chart:has(.dm-hov > i:nth-child(5):hover) [data-chart-tip] > .tip:nth-child(5),
.ugc-report .chart:has(.dm-hov > i:nth-child(6):hover) [data-chart-tip] > .tip:nth-child(6),
.ugc-report .chart:has(.dm-hov > i:nth-child(7):hover) [data-chart-tip] > .tip:nth-child(7),
.ugc-report .chart:has(.dm-hov > i:nth-child(8):hover) [data-chart-tip] > .tip:nth-child(8),
.ugc-report .chart:has(.dm-hov > i:nth-child(9):hover) [data-chart-tip] > .tip:nth-child(9),
.ugc-report .chart:has(.dm-hov > i:nth-child(10):hover) [data-chart-tip] > .tip:nth-child(10),
.ugc-report .chart:has(.dm-hov > i:nth-child(11):hover) [data-chart-tip] > .tip:nth-child(11),
.ugc-report .chart:has(.dm-hov > i:nth-child(12):hover) [data-chart-tip] > .tip:nth-child(12),
.ugc-report .chart:has(.dm-hov > i:nth-child(13):hover) [data-chart-tip] > .tip:nth-child(13),
.ugc-report .chart:has(.dm-hov > i:nth-child(14):hover) [data-chart-tip] > .tip:nth-child(14),
.ugc-report .chart:has(.dm-hov > i:nth-child(15):hover) [data-chart-tip] > .tip:nth-child(15),
.ugc-report .chart:has(.dm-hov > i:nth-child(16):hover) [data-chart-tip] > .tip:nth-child(16),
.ugc-report .chart:has(.dm-hov > i:nth-child(17):hover) [data-chart-tip] > .tip:nth-child(17),
.ugc-report .chart:has(.dm-hov > i:nth-child(18):hover) [data-chart-tip] > .tip:nth-child(18),
.ugc-report .chart:has(.dm-hov > i:nth-child(19):hover) [data-chart-tip] > .tip:nth-child(19),
.ugc-report .chart:has(.dm-hov > i:nth-child(20):hover) [data-chart-tip] > .tip:nth-child(20),
.ugc-report .chart:has(.dm-hov > i:nth-child(21):hover) [data-chart-tip] > .tip:nth-child(21),
.ugc-report .chart:has(.dm-hov > i:nth-child(22):hover) [data-chart-tip] > .tip:nth-child(22),
.ugc-report .chart:has(.dm-hov > i:nth-child(23):hover) [data-chart-tip] > .tip:nth-child(23),
.ugc-report .chart:has(.dm-hov > i:nth-child(24):hover) [data-chart-tip] > .tip:nth-child(24),
.ugc-report .chart:has(.dm-hov > i:nth-child(25):hover) [data-chart-tip] > .tip:nth-child(25),
.ugc-report .chart:has(.dm-hov > i:nth-child(26):hover) [data-chart-tip] > .tip:nth-child(26),
.ugc-report .chart:has(.dm-hov > i:nth-child(27):hover) [data-chart-tip] > .tip:nth-child(27),
.ugc-report .chart:has(.dm-hov > i:nth-child(28):hover) [data-chart-tip] > .tip:nth-child(28),
.ugc-report .chart:has(.dm-hov > i:nth-child(29):hover) [data-chart-tip] > .tip:nth-child(29),
.ugc-report .chart:has(.dm-hov > i:nth-child(30):hover) [data-chart-tip] > .tip:nth-child(30),
.ugc-report .chart:has(.dm-hov > i:nth-child(31):hover) [data-chart-tip] > .tip:nth-child(31),
.ugc-report .chart:has(.dm-hov > i:nth-child(32):hover) [data-chart-tip] > .tip:nth-child(32),
.ugc-report .chart:has(.dm-hov > i:nth-child(33):hover) [data-chart-tip] > .tip:nth-child(33),
.ugc-report .chart:has(.dm-hov > i:nth-child(34):hover) [data-chart-tip] > .tip:nth-child(34),
.ugc-report .chart:has(.dm-hov > i:nth-child(35):hover) [data-chart-tip] > .tip:nth-child(35),
.ugc-report .chart:has(.dm-hov > i:nth-child(36):hover) [data-chart-tip] > .tip:nth-child(36),
.ugc-report .chart:has(.dm-hov > i:nth-child(37):hover) [data-chart-tip] > .tip:nth-child(37),
.ugc-report .chart:has(.dm-hov > i:nth-child(38):hover) [data-chart-tip] > .tip:nth-child(38),
.ugc-report .chart:has(.dm-hov > i:nth-child(39):hover) [data-chart-tip] > .tip:nth-child(39),
.ugc-report .chart:has(.dm-hov > i:nth-child(40):hover) [data-chart-tip] > .tip:nth-child(40),
.ugc-report .chart:has(.dm-hov > i:nth-child(41):hover) [data-chart-tip] > .tip:nth-child(41),
.ugc-report .chart:has(.dm-hov > i:nth-child(42):hover) [data-chart-tip] > .tip:nth-child(42),
.ugc-report .chart:has(.dm-hov > i:nth-child(43):hover) [data-chart-tip] > .tip:nth-child(43),
.ugc-report .chart:has(.dm-hov > i:nth-child(44):hover) [data-chart-tip] > .tip:nth-child(44),
.ugc-report .chart:has(.dm-hov > i:nth-child(45):hover) [data-chart-tip] > .tip:nth-child(45),
.ugc-report .chart:has(.dm-hov > i:nth-child(46):hover) [data-chart-tip] > .tip:nth-child(46),
.ugc-report .chart:has(.dm-hov > i:nth-child(47):hover) [data-chart-tip] > .tip:nth-child(47),
.ugc-report .chart:has(.dm-hov > i:nth-child(48):hover) [data-chart-tip] > .tip:nth-child(48),
.ugc-report .chart:has(.dm-hov > i:nth-child(49):hover) [data-chart-tip] > .tip:nth-child(49),
.ugc-report .chart:has(.dm-hov > i:nth-child(50):hover) [data-chart-tip] > .tip:nth-child(50),
.ugc-report .chart:has(.dm-hov > i:nth-child(51):hover) [data-chart-tip] > .tip:nth-child(51),
.ugc-report .chart:has(.dm-hov > i:nth-child(52):hover) [data-chart-tip] > .tip:nth-child(52),
.ugc-report .chart:has(.dm-hov > i:nth-child(53):hover) [data-chart-tip] > .tip:nth-child(53),
.ugc-report .chart:has(.dm-hov > i:nth-child(54):hover) [data-chart-tip] > .tip:nth-child(54),
.ugc-report .chart:has(.dm-hov > i:nth-child(55):hover) [data-chart-tip] > .tip:nth-child(55),
.ugc-report .chart:has(.dm-hov > i:nth-child(56):hover) [data-chart-tip] > .tip:nth-child(56),
.ugc-report .chart:has(.dm-hov > i:nth-child(57):hover) [data-chart-tip] > .tip:nth-child(57),
.ugc-report .chart:has(.dm-hov > i:nth-child(58):hover) [data-chart-tip] > .tip:nth-child(58),
.ugc-report .chart:has(.dm-hov > i:nth-child(59):hover) [data-chart-tip] > .tip:nth-child(59),
.ugc-report .chart:has(.dm-hov > i:nth-child(60):hover) [data-chart-tip] > .tip:nth-child(60),
.ugc-report .chart:has(.dm-hov > i:nth-child(61):hover) [data-chart-tip] > .tip:nth-child(61),
.ugc-report .chart:has(.dm-hov > i:nth-child(62):hover) [data-chart-tip] > .tip:nth-child(62),
.ugc-report .chart:has(.dm-hov > i:nth-child(63):hover) [data-chart-tip] > .tip:nth-child(63),
.ugc-report .chart:has(.dm-hov > i:nth-child(64):hover) [data-chart-tip] > .tip:nth-child(64),
.ugc-report .chart:has(.dm-hov > i:nth-child(65):hover) [data-chart-tip] > .tip:nth-child(65),
.ugc-report .chart:has(.dm-hov > i:nth-child(66):hover) [data-chart-tip] > .tip:nth-child(66),
.ugc-report .chart:has(.dm-hov > i:nth-child(67):hover) [data-chart-tip] > .tip:nth-child(67),
.ugc-report .chart:has(.dm-hov > i:nth-child(68):hover) [data-chart-tip] > .tip:nth-child(68),
.ugc-report .chart:has(.dm-hov > i:nth-child(69):hover) [data-chart-tip] > .tip:nth-child(69),
.ugc-report .chart:has(.dm-hov > i:nth-child(70):hover) [data-chart-tip] > .tip:nth-child(70),
.ugc-report .chart:has(.dm-hov > i:nth-child(71):hover) [data-chart-tip] > .tip:nth-child(71),
.ugc-report .chart:has(.dm-hov > i:nth-child(72):hover) [data-chart-tip] > .tip:nth-child(72),
.ugc-report .chart:has(.dm-hov > i:nth-child(73):hover) [data-chart-tip] > .tip:nth-child(73),
.ugc-report .chart:has(.dm-hov > i:nth-child(74):hover) [data-chart-tip] > .tip:nth-child(74),
.ugc-report .chart:has(.dm-hov > i:nth-child(75):hover) [data-chart-tip] > .tip:nth-child(75),
.ugc-report .chart:has(.dm-hov > i:nth-child(76):hover) [data-chart-tip] > .tip:nth-child(76),
.ugc-report .chart:has(.dm-hov > i:nth-child(77):hover) [data-chart-tip] > .tip:nth-child(77),
.ugc-report .chart:has(.dm-hov > i:nth-child(78):hover) [data-chart-tip] > .tip:nth-child(78),
.ugc-report .chart:has(.dm-hov > i:nth-child(79):hover) [data-chart-tip] > .tip:nth-child(79),
.ugc-report .chart:has(.dm-hov > i:nth-child(80):hover) [data-chart-tip] > .tip:nth-child(80),
.ugc-report .chart:has(.dm-hov > i:nth-child(81):hover) [data-chart-tip] > .tip:nth-child(81),
.ugc-report .chart:has(.dm-hov > i:nth-child(82):hover) [data-chart-tip] > .tip:nth-child(82),
.ugc-report .chart:has(.dm-hov > i:nth-child(83):hover) [data-chart-tip] > .tip:nth-child(83),
.ugc-report .chart:has(.dm-hov > i:nth-child(84):hover) [data-chart-tip] > .tip:nth-child(84),
.ugc-report .chart:has(.dm-hov > i:nth-child(85):hover) [data-chart-tip] > .tip:nth-child(85),
.ugc-report .chart:has(.dm-hov > i:nth-child(86):hover) [data-chart-tip] > .tip:nth-child(86),
.ugc-report .chart:has(.dm-hov > i:nth-child(87):hover) [data-chart-tip] > .tip:nth-child(87),
.ugc-report .chart:has(.dm-hov > i:nth-child(88):hover) [data-chart-tip] > .tip:nth-child(88),
.ugc-report .chart:has(.dm-hov > i:nth-child(89):hover) [data-chart-tip] > .tip:nth-child(89),
.ugc-report .chart:has(.dm-hov > i:nth-child(90):hover) [data-chart-tip] > .tip:nth-child(90),
.ugc-report .chart:has(.dm-hov > i:nth-child(91):hover) [data-chart-tip] > .tip:nth-child(91),
.ugc-report .chart:has(.dm-hov > i:nth-child(92):hover) [data-chart-tip] > .tip:nth-child(92),
.ugc-report .chart:has(.dm-hov > i:nth-child(93):hover) [data-chart-tip] > .tip:nth-child(93),
.ugc-report .chart:has(.dm-hov > i:nth-child(94):hover) [data-chart-tip] > .tip:nth-child(94),
.ugc-report .chart:has(.dm-hov > i:nth-child(95):hover) [data-chart-tip] > .tip:nth-child(95),
.ugc-report .chart:has(.dm-hov > i:nth-child(96):hover) [data-chart-tip] > .tip:nth-child(96),
.ugc-report .chart:has(.dm-hov > i:nth-child(97):hover) [data-chart-tip] > .tip:nth-child(97),
.ugc-report .chart:has(.dm-hov > i:nth-child(98):hover) [data-chart-tip] > .tip:nth-child(98),
.ugc-report .chart:has(.dm-hov > i:nth-child(99):hover) [data-chart-tip] > .tip:nth-child(99),
.ugc-report .chart:has(.dm-hov > i:nth-child(100):hover) [data-chart-tip] > .tip:nth-child(100) {
  display: block;
}

/* ------------------------------------------------------------------ chart chips without script
   The portal's chips are links the server answers with that chart; here each chip is a radio
   (`.dm-r`) inside its label, every chart is in the page, and these rules show the one whose
   lens, timeline, metric and platform are all checked. The pressed look is the portal's own
   `[aria-pressed="true"]` rule, keyed to the checked radio. */
.ugc-report .dm-r { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ugc-report .dm-perf label.chip { position: relative; cursor: pointer; }
.ugc-report.client-portal .dm-perf .chip:has(> .dm-r:checked) { color: var(--ink-1); border-color: var(--hairline-2); background: color-mix(in oklab, var(--ink-1) 10%, transparent); }
.ugc-report.client-portal .dm-perf .chip.metric:has(> .dm-r:checked) .sw { opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--chip-c) 22%, transparent); }
.ugc-report .dm-perf .chip:has(> .dm-r:focus-visible) { outline: 2px solid color-mix(in oklab, var(--ink-1) 55%, transparent); outline-offset: 2px; }
.ugc-report .dm-perf:has([name="perf-lens"][value="posting"]:checked) .dm-metrics { display: none; }
.ugc-report .dm-perf:has([name="perf-lens"][value="views"]:checked) .dm-variant:not([data-lens="views"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-lens"][value="posting"]:checked) .dm-variant:not([data-lens="posting"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-lens"][value="both"]:checked) .dm-variant:not([data-lens="both"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-mode"][value="daily"]:checked) .dm-variant:not([data-mode="daily"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-mode"][value="total"]:checked) .dm-variant:not([data-mode="total"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-metric"][value="views"]:checked) .dm-variant:not([data-metric="views"]):not([data-metric="any"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-metric"][value="likes"]:checked) .dm-variant:not([data-metric="likes"]):not([data-metric="any"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-metric"][value="comments"]:checked) .dm-variant:not([data-metric="comments"]):not([data-metric="any"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-metric"][value="shares"]:checked) .dm-variant:not([data-metric="shares"]):not([data-metric="any"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-metric"][value="creates"]:checked) .dm-variant:not([data-metric="creates"]):not([data-metric="any"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-plat"][value="all"]:checked) .dm-variant:not([data-plat="all"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-plat"][value="instagram"]:checked) .dm-variant:not([data-plat="instagram"]) { display: none; }
.ugc-report .dm-perf:has([name="perf-plat"][value="tiktok"]:checked) .dm-variant:not([data-plat="tiktok"]) { display: none; }

/* ------------------------------------------------------------------ Spotify streams without script
   Daily / Cumulative are radios in the `.seg` (styled as its buttons), each metric chip is a
   checkbox, and an unchecked metric's line and tip row are hidden in the daily drawing. */
.ugc-report .seg label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--ctl-h-sm);
  padding-inline: calc(var(--s3) - 1px);
  border: 1px solid #0000;
  border-radius: 9px;
  font-size: var(--t-label);
  font-weight: 550;
  color: var(--ink-3);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ugc-report .seg label:hover { color: var(--ink-2); }
.ugc-report.client-portal .seg label:has(> .dm-r:checked) { background: color-mix(in oklab, var(--ink-1) 12%, transparent); box-shadow: inset 0 0 0 1px var(--hairline-2); color: var(--ink-1); }
.ugc-report .seg label:has(> .dm-r:focus-visible),
.ugc-report .dm-sp .chip:has(> .dm-r:focus-visible) { outline: 2px solid color-mix(in oklab, var(--ink-1) 55%, transparent); outline-offset: 2px; }
.ugc-report .dm-sp label.chip { position: relative; cursor: pointer; }
.ugc-report.client-portal .dm-sp .chip.metric:has(> .dm-r:checked) { color: var(--ink-1); border-color: var(--hairline-2); background: color-mix(in oklab, var(--ink-1) 10%, transparent); }
.ugc-report.client-portal .dm-sp .chip.metric:has(> .dm-r:checked) .sw { opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--chip-c) 22%, transparent); }
.ugc-report .dm-sp:has([name="sp-mode"][value="daily"]:checked) .dm-sp-total,
.ugc-report .dm-sp:has([name="sp-mode"][value="total"]:checked) .dm-sp-daily { display: none; }
.ugc-report .dm-sp:has([name="sp-on"][value="streams"]:not(:checked)) .dm-sp-daily :is(g[data-series="streams"], .tip-r[data-k="streams"]) { display: none; }
.ugc-report .dm-sp:has([name="sp-on"][value="ours"]:not(:checked)) .dm-sp-daily :is(g[data-series="ours"], .tip-r[data-k="ours"]) { display: none; }
.ugc-report .dm-sp:has([name="sp-on"][value="saves"]:not(:checked)) .dm-sp-daily :is(g[data-series="saves"], .tip-r[data-k="saves"]) { display: none; }
.ugc-report .dm-sp:has([name="sp-on"][value="playlist_adds"]:not(:checked)) .dm-sp-daily :is(g[data-series="playlist_adds"], .tip-r[data-k="playlist_adds"]) { display: none; }
.ugc-report .dm-sp:has([name="sp-on"][value="popularity"]:not(:checked)) .dm-sp-daily :is(g[data-series="popularity"], .tip-r[data-k="popularity"]) { display: none; }
.ugc-report.client-portal .tbl th .dm-th { display: inline-flex; align-items: center; gap: 4px; }
.ugc-report.client-portal .tbl th[aria-sort] .dm-th { color: var(--ink-1); }

/* Paid ads: the report chart's day readout. The portal's client-report.js writes the hovered
 * day into .cr-chart-tip; here every day's readout is drawn ahead of time inside a column that
 * covers the stretch of the chart nearest that day, and hovering the column shows it. */
.cr-chart-frame .dm-crh { position: absolute; inset: 0; display: flex; }
.dm-crh i { flex: 1 1 0; position: relative; font-style: normal; }
.dm-crh i:first-child, .dm-crh i:last-child { flex-grow: 0.5; }
.dm-crh .cr-chart-tip { display: none; left: 50%; }
.dm-crh i:first-child .cr-chart-tip { left: 0; }
.dm-crh i:last-child .cr-chart-tip { left: 100%; }
.dm-crh i:hover .cr-chart-tip { display: block; }

/* ------------------------------------------------------------------ tool pop-ups
 * A tool's result sits in the kit dialog inside its `.tool-page` wrapper. The page's bottom
 * padding and the first section's rule (under the tool's form on the portal page) would only add
 * a gap under the dialog head here. */
.ugc-report.client-portal .dm-tool-body { padding-bottom: 0; }
.ugc-report.client-portal .dm-tool-body > .act:first-child,
.ugc-report.client-portal .dm-tool-body > :first-child > .act:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* tools: clip-finder
 * The 15 / 30 control is a radio pair: the picked label takes the portal's aria-current look,
 * and only that length's message, waveform and cards show. */
.ugc-report.client-portal .seg.cf-len label.cf-len-b { cursor: pointer; background: none; box-shadow: none; }
.ugc-report.client-portal .seg.cf-len label.cf-len-b:has(> .dm-r:checked) { color: var(--ink-1); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.ugc-report .cf-result:has([name="cf-len"][value="15"]:checked) .dm-cf[data-len="30"],
.ugc-report .cf-result:has([name="cf-len"][value="30"]:checked) .dm-cf[data-len="15"] { display: none; }
/* end tools: clip-finder */

/* tools: bot-check */
/* The result follows the link box on the tool page (a --s5 gap); in the pop-up it leads. */
.ugc-report.client-portal .dm-tool-body .bc2-result { margin-top: 0; }
/* end tools: bot-check */

/* tools: whos-using-my-sound */
/* The portal lays the six top posts in 3 columns on any screen under 1100px; the 820px pop-up
 * is that width, so it gets the same 3 columns (phones keep the portal's 2). */
@media (min-width: 601px) {
  .ugc-report.client-portal .dm-tool-body .ws-posts.ws-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* end tools: whos-using-my-sound */

/* tools: dj-heat */
/* The Touring chip's tip: the portal's script opens it on a tap (aria-expanded); here a tap
 * focuses the chip and focus opens it. The boost packages are prices here, not links, so they
 * drop the link hover. */
.ugc-report.client-portal .dm-tool-body .dh-tag-tour:focus .dh-tip { display: grid; }
.ugc-report.client-portal .dm-tool-body span.dh-boost-pkg:hover { background: none; }
/* The pop-up is 820px wide, so on a wide screen it takes the portal's own narrow head (the
 * stats strip under the title) and two touring columns, as the portal does under 1080px. */
@media (min-width: 1081px) {
  .ugc-report.client-portal .dm-tool-body .dh-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art id" "art act" "stats stats"; }
  .ugc-report.client-portal .dm-tool-body .dh-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ugc-report.client-portal .dm-tool-body .dh-tour-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* end tools: dj-heat */

/* tools: pre-flight */
/* The portal opens one example per address; here the example rows are radio inputs and only the
 * checked example's result shows. A row reads as picked with the portal's own row hover and a
 * check in place of its arrow. */
.ugc-report.client-portal .dm-tool-body .pf-demo > .pf-result-sec { display: none; }
.ugc-report.client-portal .dm-tool-body .pf-demo:has(input[value="glass-hearts-teaser"]:checked) > [data-pf-example="glass-hearts-teaser"],
.ugc-report.client-portal .dm-tool-body .pf-demo:has(input[value="slow-burn-lyric-edit"]:checked) > [data-pf-example="slow-burn-lyric-edit"],
.ugc-report.client-portal .dm-tool-body .pf-demo:has(input[value="run-it-back-studio"]:checked) > [data-pf-example="run-it-back-studio"] { display: block; }
.ugc-report.client-portal .dm-tool-body .pf-example { position: relative; cursor: pointer; }
.ugc-report.client-portal .dm-tool-body .pf-example:has(input:checked) { background: var(--hover); box-shadow: -10px 0 0 var(--hover), 10px 0 0 var(--hover); }
@media (hover: hover) {
  .ugc-report.client-portal .dm-tool-body .pf-example:hover { background: var(--hover); box-shadow: -10px 0 0 var(--hover), 10px 0 0 var(--hover); }
}
.ugc-report.client-portal .dm-tool-body .pf-example:has(input:focus-visible) { outline: 2px solid var(--ink-3); outline-offset: 2px; }
.ugc-report.client-portal .dm-tool-body .pf-example-go .lucide-check,
.ugc-report.client-portal .dm-tool-body .pf-example:has(input:checked) .pf-example-go .lucide-arrow-right { display: none; }
.ugc-report.client-portal .dm-tool-body .pf-example:has(input:checked) .pf-example-go .lucide-check { display: block; color: var(--ink-1); }
/* Show and Hide safe zones: a checkbox in place of the script's button, hiding the same layers. */
.ugc-report.client-portal .dm-tool-body .pf-zones-btn { position: relative; cursor: pointer; }
.ugc-report.client-portal .dm-tool-body .pf-zones-btn:has(input:focus-visible) { outline: 2px solid var(--ink-3); outline-offset: 2px; }
.ugc-report.client-portal .dm-tool-body .pf-zones-off,
.ugc-report.client-portal .dm-tool-body .pf-result-sec:has(.pf-zones-btn input:not(:checked)) .pf-zones-on { display: none; }
.ugc-report.client-portal .dm-tool-body .pf-result-sec:has(.pf-zones-btn input:not(:checked)) .pf-zones-off { display: inline; }
.ugc-report.client-portal .dm-tool-body .pf-result-sec:has(.pf-zones-btn input:not(:checked)) :is(.pf-zones, .pf-boxes) { opacity: 0; }
/* end tools: pre-flight */

/* tools: social-audit */
/* The sample report's posts have no cover (its addresses are made up), so the real page would
   print an empty 9:16 frame for each. In "Study these" and "What is working" the frame goes; in
   the plan's slots it takes the report's own empty-frame look (`.sa-empty-frame`). */
.ugc-report.client-portal [data-tool-page="social-audit"] .sa-posts .sa-thumb:empty { display: none; }
.ugc-report.client-portal [data-tool-page="social-audit"] .sa-slot-ref .sa-thumb:empty {
  border: 1px dashed var(--hairline-2);
  background: transparent;
}
/* end tools: social-audit */

/* tools: breakout-alert */
/* The real page hides the song's head under 1080px because the songs list above names it; the
   pop-up leaves that list out, so the head (and its "Sample song" label) stays. */
@media (max-width: 1079px) {
  .ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-detail .ba-head { display: flex; }
  .ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-detail .ba-verdict { margin-top: var(--s4); }
}
/* Chips: the script's toggle buttons become spans; `data-on` / `data-ok` carry the looks of
   `aria-pressed` / `aria-disabled`. */
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip { cursor: default; }
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip[data-on="true"] {
  border-color: transparent;
  background: var(--hover);
  color: var(--ink-1);
}
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip[data-on="false"] :is(.ba-key, .ba-pk) { opacity: 0.35; }
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip[data-ok="false"] { opacity: 0.45; }
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip:hover { color: inherit; }
.ugc-report.client-portal [data-tool-page="breakout-alert"] span.ba-chip[data-on="true"]:hover { color: var(--ink-1); }
/* Lanes: a tap on a phone shows that lane's sentence under the strip (the script's
   `aria-expanded` and its one filled `p.ba-lane-say`), through a radio in each tile. */
.ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-lane-say[data-say] { display: none; }
@media (max-width: 640px) {
  .ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-lane:has(> input:checked) { background: var(--hover); }
  .ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-lane:has(> input:focus-visible) { outline: 2px solid var(--ink-3); outline-offset: -2px; }
  .ugc-report.client-portal [data-tool-page="breakout-alert"]:has(.ba-lane > input[value="streaming"]:checked) .ba-lane-say[data-say="streaming"],
  .ugc-report.client-portal [data-tool-page="breakout-alert"]:has(.ba-lane > input[value="editorial"]:checked) .ba-lane-say[data-say="editorial"],
  .ugc-report.client-portal [data-tool-page="breakout-alert"]:has(.ba-lane > input[value="creates"]:checked) .ba-lane-say[data-say="creates"] {
    display: block;
    margin-top: var(--s2);
    font-size: var(--t-meta);
    line-height: 1.5;
    color: var(--ink-2);
  }
}
/* The pop-up's .modal sets overflow-wrap: anywhere, which splits "Details" on a phone; the real
   page sits outside a modal, so its summaries wrap normally and the meta line ellipsizes. */
.ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-details > summary { overflow-wrap: normal; }
/* Details body: its one auto grid column grows to the weeks table's width (729px) on a phone,
   pushing the lines and source links off the side. Capping the column keeps the table scrolling
   inside its own wrap. (The real page has the same grid, so it likely needs this too.) */
.ugc-report.client-portal [data-tool-page="breakout-alert"] .ba-details-body { grid-template-columns: minmax(0, 1fr); }
/* end tools: breakout-alert */
