/* Reporting feature story — scoped to this page. Do not leak into other layouts. */

.fl--river .rp > section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.fl--river .rp-hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 80px) !important;
  padding-bottom: clamp(48px, 7vw, 72px) !important;
}

.rp-copy { min-width: 0; }
.rp-copy h2 { max-width: 16em; }
.rp-copy--center {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 40em;
}
.rp-copy--center h2 { max-width: none; }
.rp-copy--center .fl-lede,
.rp-copy--center .rp-line { margin-left: auto; margin-right: auto; }
.rp-line {
  margin: 16px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--bv-ink);
}
.rp-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--bv-faint);
}

.rp-hero__grid,
.rp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(260px, 1.04fr);
  gap: clamp(24px, 4.5vw, 56px);
  align-items: center;
}

.rp-hero__stage { position: relative; min-width: 0; }
.rp-hero__shot {
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f9;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.1);
}
.rp-hero__shot .fx-film.fx-vxy {
  transform-origin: top left;
}
.rp-pop {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}
.rp-hero__stage.is-in .rp-pop {
  opacity: 0.82;
  transform: none;
  transition: opacity 0.4s ease, transform 0.45s ease;
}
.rp-pop.is-on {
  opacity: 1 !important;
  z-index: 5;
  transform: scale(1.04);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--fl-a) 24%, transparent);
}
.rp-pop small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fl-a);
}
.rp-pop b { display: block; margin-top: 3px; font-size: 14px; letter-spacing: -0.03em; }
.rp-pop i { display: block; margin-top: 3px; font-style: normal; font-size: 11px; color: var(--bv-muted); }
.rp-pop--pay { top: 12px; left: -10px; }
.rp-pop--mix { top: 38%; right: -12px; }
.rp-pop--export { bottom: 16px; left: 18px; }

.rp-board,
.rp-sheet,
.rp-livecard,
.rp-gallery li,
.rp-steps li,
.rp-person {
  background: var(--bv-paper);
  border: 1px solid var(--bv-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.07);
}

/* ---------- HERO BOARD ---------- */
.rp-board { padding: 12px 12px 10px; }
.rp-board__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.rp-board__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d3c6;
}
.rp-board__chrome em {
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--bv-faint);
}
.rp-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fl-a) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--fl-a) 22%, var(--bv-line));
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
}
.rp-prompt i { color: var(--fl-a); }
.rp-board.is-in .rp-prompt {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-board__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rp-board__grid article,
.rp-gallery li {
  padding: 10px 12px;
}
.rp-board__grid small,
.rp-gallery small,
.rp-steps small,
.rp-canvas small,
.rp-action small,
.rp-sheet small,
.rp-livecard small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bv-faint);
}
.rp-board__grid b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.04em; }
.rp-board__grid .is-wide { grid-column: 1 / -1; }
.rp-board .rp-board__grid article {
  border-radius: 12px;
  background: var(--bv-cream);
  opacity: 0;
  transform: translateY(10px);
}
.rp-board.is-in .rp-board__grid article {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.5s ease;
}
.rp-board.is-in .rp-board__grid article:nth-child(2) { transition-delay: 0.1s; }
.rp-board.is-in .rp-board__grid article:nth-child(3) { transition-delay: 0.18s; }
.rp-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 8px;
}
.rp-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: var(--fl-g);
}
.rp-board table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
}
.rp-board th,
.rp-board td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--bv-line);
  text-align: left;
}
.rp-board > p {
  margin: 8px 2px 0;
  font-size: 11px;
  color: var(--bv-faint);
}

/* ---------- PROBLEM / LIVE ---------- */
.rp-trap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rp-trap li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f1ea;
  border: 1px dashed var(--bv-line);
}
.rp-trap small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bv-faint);
}
.rp-trap b {
  display: block;
  margin: 2px 0 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.rp-trap span { font-size: 12px; color: var(--bv-muted); }
.rp-problem.is-in .rp-trap li {
  opacity: 0.55;
  filter: grayscale(0.6);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.rp-swap { display: grid; gap: 10px; }
.rp-sheet, .rp-livecard { padding: 14px 16px; }
.rp-sheet b, .rp-livecard b { display: block; margin: 4px 0; }
.rp-livecard b { font-size: 28px; letter-spacing: -0.04em; color: var(--fl-a); }
.rp-sheet { opacity: 1; }
.rp-live.is-in .rp-sheet {
  opacity: 0.38;
  filter: grayscale(1);
  transition: opacity 0.55s ease, filter 0.55s ease;
}
.rp-livecard { transform: translateY(12px); opacity: 0.4; }
.rp-live.is-in .rp-livecard {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease 0.12s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

/* ---------- THREE WAYS ---------- */
.rp-modes { background: color-mix(in srgb, var(--fl-a) 6%, var(--bv-cream)); }
.rp-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rp-modes__grid button {
  appearance: none;
  text-align: left;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--bv-line);
  background: var(--bv-paper);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.rp-modes__grid small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fl-a);
}
.rp-modes__grid b { display: block; font-size: 18px; letter-spacing: -0.03em; }
.rp-modes__grid p { margin: 10px 0 0; font-size: 14px; color: var(--bv-muted); line-height: 1.45; }
.rp-modes__grid figure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 16px 0 0;
  min-height: 56px;
}
.rp-modes__grid figure span,
.rp-modes__grid figure em,
.rp-modes__grid figure i,
.rp-modes__grid figure b {
  display: block;
  border-radius: 8px;
  background: var(--bv-cream);
  min-height: 22px;
}
.rp-modes__grid figure i { grid-column: 1 / -1; min-height: 18px; background: color-mix(in srgb, var(--fl-a) 18%, var(--bv-cream)); }
.rp-modes__grid button.is-on {
  border-color: color-mix(in srgb, var(--fl-a) 45%, var(--bv-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fl-a) 16%, transparent);
}
.rp-modes__ai {
  margin: 18px auto 0;
  max-width: 36em;
  text-align: center;
  font-size: 14px;
  color: var(--bv-muted);
}

.rp-dash {
  display: none;
  margin: 16px auto 0;
  padding: 16px 16px 12px;
  border-radius: 8px;
  background: #f5f5f9;
  border: 1px solid #e6e6e8;
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
  max-width: 1040px;
  font-family: "Public Sans", Inter, system-ui, sans-serif;
  color: #384551;
}
.rp-dash.is-on { display: block; }
.rp-vxy { color: #384551; }
.rp-vxy__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.rp-vxy__bar ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #6d788d;
}
.rp-vxy__bar li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a1acb8;
}
.rp-vxy__bar li:last-child { color: #384551; font-weight: 600; }
.rp-vxy__bar em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(102, 108, 255, 0.12);
  color: #666cff;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.rp-vxy__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.rp-vxy__kpis article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e6e6e8;
  border-radius: 8px;
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.08);
}
.rp-vxy__ava {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 40px;
}
.rp-vxy__ava--primary { background: rgba(102, 108, 255, 0.12); color: #666cff; }
.rp-vxy__ava--info { background: rgba(3, 195, 236, 0.12); color: #03c3ec; }
.rp-vxy__ava--success { background: rgba(40, 199, 111, 0.12); color: #28c76f; }
.rp-vxy__ava--warning { background: rgba(255, 159, 67, 0.12); color: #ff9f43; }
.rp-vxy__kpis b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.rp-vxy__kpis em { display: block; font-style: normal; font-size: 12px; color: #6d788d; }
.rp-vxy__kpis small { display: block; margin-top: 2px; font-size: 10px; color: #6d788d; }
.rp-vxy__kpis small.is-up { color: #28c76f; font-weight: 600; }
.rp-vxy__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 10px;
  margin-bottom: 10px;
}
.rp-vxy__grid--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.rp-vxy__card {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e6e6e8;
  border-radius: 8px;
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
}
.rp-vxy__card.is-wide { min-width: 0; }
.rp-vxy__card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.rp-vxy__card header h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: #384551; }
.rp-vxy__card header p { margin: 0; font-size: 12px; color: #6d788d; }
.rp-vxy__card header .ri-more-2-line { color: #a1acb8; font-size: 18px; }
.rp-vxy__big { display: block; margin: 4px 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.rp-vxy__big span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(40, 199, 111, 0.12);
  color: #28c76f;
  font-size: 11px;
  vertical-align: middle;
}
.rp-vxy__card > p { margin: 0 0 8px; font-size: 12px; color: #6d788d; }
.rp-vxy__note { margin: 0; font-size: 13px; line-height: 1.5; color: #6d788d; }
.rp-vxy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rp-vxy table td {
  padding: 8px 0;
  border-top: 1px solid #e7e7e8;
  color: #384551;
}
.rp-vxy table td:nth-child(2),
.rp-vxy table td:nth-child(3) { text-align: right; font-weight: 600; }
.rp-vxy__table thead th {
  text-align: left;
  padding: 8px 6px;
  background: #f6f7fb;
  color: #6d788d;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #d9dee3;
}
.rp-vxy__table td { padding: 8px 6px; }
.rp-vxy__table td:nth-child(2),
.rp-vxy__table td:nth-child(3) { text-align: left; }
.rp-vxy__streams {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.rp-vxy__streams li { display: flex; align-items: center; gap: 10px; }
.rp-vxy__streams i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(102, 108, 255, 0.12);
  color: #666cff;
  font-size: 18px;
}
.rp-vxy__streams li:nth-child(2) i { background: rgba(40, 199, 111, 0.12); color: #28c76f; }
.rp-vxy__streams li:nth-child(3) i { background: rgba(3, 195, 236, 0.12); color: #03c3ec; }
.rp-vxy__streams li:nth-child(4) i { background: rgba(255, 159, 67, 0.12); color: #ff9f43; }
.rp-vxy__streams b { display: block; font-size: 13px; color: #384551; }
.rp-vxy__streams span { display: block; font-size: 12px; color: #6d788d; }
.rp-vxy__streams em {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #666cff;
  font-style: normal;
}
.rp-vxy__streams li:nth-child(2) em { background: #28c76f; }
.rp-vxy__streams li:nth-child(3) em { background: #03c3ec; }
.rp-vxy__streams li:nth-child(4) em { background: #ff9f43; }
.rp-vxy__streams div { flex: 1; min-width: 0; }
.rp-vxy__split {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.rp-vxy__donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(#666cff 0 52%, #03c3ec 52% 83%, #28c76f 83% 100%);
  mask: radial-gradient(circle closest-side, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 52%, #000 53%);
}
.rp-vxy__split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: #6d788d; }
.rp-vxy__split li { display: flex; justify-content: space-between; gap: 8px; }
.rp-vxy__split i { width: 8px; height: 8px; border-radius: 50%; background: #666cff; display: inline-block; margin-right: 6px; }
.rp-vxy__split li:nth-child(2) i { background: #03c3ec; }
.rp-vxy__split li:nth-child(3) i { background: #28c76f; }
.rp-vxy__split b { color: #384551; }
.rp-dash > p,
.rp-canvas > p {
  margin: 10px 2px 0;
  font-size: 12px;
  color: #a1acb8;
  text-align: center;
}
.rp-ai__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-ai__tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: #99f6e4;
  font-size: 11px;
  font-weight: 700;
}
.rp-ai__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rp-vbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  margin-top: 12px;
}
.rp-vbars i {
  flex: 1;
  height: 0;
  border-radius: 4px 4px 1px 1px;
  background: var(--fl-g);
}
.rp-dash.is-ready .rp-vbars i,
.rp-dashbuild.is-in .rp-vbars i,
.rp-ai [data-rp-ai-card].is-in .rp-vbars i {
  height: var(--h);
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-dash.is-ready .rp-vbars i:nth-child(1),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(1) { transition-delay: 0.02s; }
.rp-dash.is-ready .rp-vbars i:nth-child(2),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(2) { transition-delay: 0.08s; }
.rp-dash.is-ready .rp-vbars i:nth-child(3),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(3) { transition-delay: 0.14s; }
.rp-dash.is-ready .rp-vbars i:nth-child(4),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(4) { transition-delay: 0.2s; }
.rp-dash.is-ready .rp-vbars i:nth-child(5),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(5) { transition-delay: 0.26s; }
.rp-dash.is-ready .rp-vbars i:nth-child(6),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(6) { transition-delay: 0.32s; }
.rp-dash.is-ready .rp-vbars i:nth-child(7),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(7) { transition-delay: 0.38s; }
.rp-dash.is-ready .rp-vbars i:nth-child(8),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(8) { transition-delay: 0.44s; }
.rp-dash.is-ready .rp-vbars i:nth-child(9),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(9) { transition-delay: 0.5s; }
.rp-dash.is-ready .rp-vbars i:nth-child(10),
.rp-ai [data-rp-ai-card].is-in .rp-vbars i:nth-child(10) { transition-delay: 0.56s; }
.rp-axis {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--bv-faint);
}
.rp-hbars {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rp-hbars li {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.rp-hbars i {
  display: block;
  height: 8px;
  width: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fl-a) 55%, #d8d3c6);
}
.rp-dash.is-ready .rp-hbars i,
.rp-ai [data-rp-ai-card].is-in .rp-hbars i {
  width: var(--w);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-dash.is-ready .rp-hbars li:nth-child(1) i,
.rp-ai [data-rp-ai-card].is-in .rp-hbars li:nth-child(1) i { transition-delay: 0.08s; }
.rp-dash.is-ready .rp-hbars li:nth-child(2) i,
.rp-ai [data-rp-ai-card].is-in .rp-hbars li:nth-child(2) i { transition-delay: 0.16s; }
.rp-dash.is-ready .rp-hbars li:nth-child(3) i,
.rp-ai [data-rp-ai-card].is-in .rp-hbars li:nth-child(3) i { transition-delay: 0.24s; }
.rp-dash.is-ready .rp-hbars li:nth-child(4) i,
.rp-ai [data-rp-ai-card].is-in .rp-hbars li:nth-child(4) i { transition-delay: 0.32s; }
.rp-hbars b { font-size: 12px; }
.rp-build { display: grid; gap: 10px; }
.rp-out {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bv-paper);
  border: 1px solid var(--bv-line);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.35;
}
.rp-builder.is-table .rp-out { opacity: 1; transition: opacity 0.4s ease; }
.rp-out th, .rp-out td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bv-line);
  text-align: left;
}

.rp-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.rp-gallery li {
  padding: 16px 14px;
  cursor: pointer;
}
.rp-gallery li.is-on {
  border-color: color-mix(in srgb, var(--fl-a) 40%, var(--bv-line));
  background: color-mix(in srgb, var(--fl-a) 8%, #fff);
}
.rp-gallery b { display: block; margin-top: 6px; font-size: 15px; letter-spacing: -0.03em; }

.rp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rp-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  padding: 10px 12px;
  opacity: 0.4;
}
.rp-steps small {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bv-cream);
  color: var(--bv-ink);
  font-size: 12px;
}
.rp-steps b { font-size: 14px; }
.rp-steps span { font-size: 12px; color: var(--bv-muted); }
.rp-steps li.is-on {
  opacity: 1;
  border-color: color-mix(in srgb, var(--fl-a) 35%, var(--bv-line));
}
.rp-steps li.is-on small { background: var(--fl-g); color: #fff; }

.rp-canvas {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  border-radius: 8px;
  background: #f5f5f9;
  border: 1px solid #e6e6e8;
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
  font-family: "Public Sans", Inter, system-ui, sans-serif;
}
.rp-canvas article {
  transform: translateY(16px);
  opacity: 0;
}
.rp-dashbuild.is-in .rp-canvas article {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-dashbuild.is-in .rp-vxy__kpis article:nth-child(2) { transition-delay: 0.06s; }
.rp-dashbuild.is-in .rp-vxy__kpis article:nth-child(3) { transition-delay: 0.12s; }
.rp-dashbuild.is-in .rp-vxy__kpis article:nth-child(4) { transition-delay: 0.18s; }
.rp-dashbuild.is-in .rp-vxy__grid article:nth-child(2) { transition-delay: 0.1s; }

/* ---------- AI DARK CARDS ---------- */
.rp-ai {
  background: #111827;
  color: #e5e7eb;
  position: relative;
}
.rp-ai__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 18% 20%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 38% at 88% 70%, rgba(96, 165, 250, 0.14), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px);
}
.rp-copy--night h2,
.rp-copy--night .fl-lede { color: #f3f4f6; }
.rp-copy--night .fl-lede { color: #cbd5e1; }
.rp-ai__kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(153, 246, 228, 0.28);
}
.rp-ai [data-rp-ai-card] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}
.rp-ai [data-rp-ai-card].is-gen,
.rp-ai [data-rp-ai-card].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.rp-ai article[data-rp-ai-card] {
  position: relative;
  overflow: hidden;
}
.rp-ai article[data-rp-ai-card].is-gen > :not(.rp-ai__cast):not(.rp-ai__mark) {
  opacity: 0.18;
  filter: blur(4px);
}
.rp-ai article[data-rp-ai-card].is-in > :not(.rp-ai__cast):not(.rp-ai__mark) {
  opacity: 1;
  filter: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.rp-ai article[data-rp-ai-card].is-gen::before {
  content: "";
  position: absolute;
  inset: -10% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(153, 246, 228, 0.22) 50%, transparent 68%);
  animation: rp-ai-scan 0.7s ease-out;
}
.rp-ai__cast {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.42);
  color: #99f6e4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.rp-ai article.is-gen .rp-ai__cast { opacity: 1; }
.rp-ai article.is-in .rp-ai__cast { opacity: 0; }
.rp-ai__cast i {
  font-size: 20px;
  animation: rp-ai-twinkle 0.7s ease-in-out infinite;
}
.rp-ai__cast em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rp-ai__mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(153, 246, 228, 0.35);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.rp-ai article.is-in .rp-ai__mark {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease 0.15s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.rp-ai article.is-in .rp-ai__mark i { animation: rp-ai-twinkle 1.8s ease-in-out 2; }
@keyframes rp-ai-scan {
  from { transform: translateX(-55%); }
  to { transform: translateX(55%); }
}
@keyframes rp-ai-twinkle {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
.rp-ai__prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 42em;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.05rem;
  font-weight: 650;
}
.rp-ai__prompt i { color: #99f6e4; }
.rp-ai__chrome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rp-ai__chrome small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
}
.rp-ai__chrome b { display: block; margin-top: 4px; font-size: 18px; color: #f8fafc; }
.rp-ai__chrome em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #99f6e4;
  font-size: 11px;
  font-weight: 700;
}
.rp-ai__kpis { max-width: 1040px; margin: 0 auto 10px; }
.rp-ai__kpis small,
.rp-ai__row small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rp-ai__kpis b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.04em; }
.rp-ai__kpis em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
}
.rp-ai__kpis article,
.rp-ai__row article {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rp-ai__kpis small,
.rp-ai__row small { color: #94a3b8; }
.rp-ai__kpis b,
.rp-ai__row > article > b { color: #f8fafc; }
.rp-ai__kpis em { color: #94a3b8; }
.rp-ai__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto 10px;
}
.rp-ai__row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-vbars--night i { background: linear-gradient(180deg, #2dd4bf, #60a5fa); }
.rp-hbars--night i { background: linear-gradient(90deg, #2dd4bf, #60a5fa); }
.rp-ai .rp-axis,
.rp-ai .rp-hbars li { color: #94a3b8; }
.rp-ai table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
}
.rp-ai th,
.rp-ai td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #e2e8f0;
}
.rp-ai .is-alert td { color: #fca5a5; }
.rp-ai__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
}
.rp-ai__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rp-ai__list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.rp-ai__list b { display: block; color: #f8fafc; font-size: 13px; }
.rp-ai__list span { font-size: 12px; color: #94a3b8; }
.rp-ai__end {
  margin: 18px auto 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 650;
  color: #99f6e4;
}
.rp-note--night { color: #94a3b8; }

.rp-person { padding: 20px 18px; text-align: center; }
.rp-person__who {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bv-faint);
}
.rp-person > b { display: block; margin: 6px 0 14px; font-size: 18px; }
.rp-person ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.rp-person li {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fl-a) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--fl-a) 22%, var(--bv-line));
  font-size: 12px;
  font-weight: 650;
  opacity: 0.35;
}
.rp-link.is-in .rp-person li {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.rp-link.is-in .rp-person li:nth-child(2) { transition-delay: 0.06s; }
.rp-link.is-in .rp-person li:nth-child(3) { transition-delay: 0.12s; }
.rp-link.is-in .rp-person li:nth-child(4) { transition-delay: 0.18s; }
.rp-link.is-in .rp-person li:nth-child(5) { transition-delay: 0.24s; }
.rp-link.is-in .rp-person li:nth-child(6) { transition-delay: 0.3s; }

.rp-aaa {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.rp-aaa li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.4;
}
.rp-close.is-in .rp-aaa li {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.rp-close.is-in .rp-aaa li:nth-child(2) { transition-delay: 0.12s; }
.rp-close.is-in .rp-aaa li:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 980px) {
  .rp-pop--pay { left: 8px; }
  .rp-pop--mix { right: 8px; }
  .rp-pop--export { left: 8px; }
  .rp-hero__grid,
  .rp-split,
  .rp-modes__grid,
  .rp-gallery,
  .rp-vxy__kpis,
  .rp-vxy__grid,
  .rp-vxy__grid--wide,
  .rp-ai__kpis,
  .rp-ai__row,
  .rp-ai__row--three {
    grid-template-columns: 1fr;
  }
  .rp-gallery { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-pop,
  .rp-prompt,
  .rp-board__grid article,
  .rp-trap li,
  .rp-sheet,
  .rp-livecard,
  .rp-canvas article,
  .rp-ai [data-rp-ai-card],
  .rp-ai__mark,
  .rp-vbars i,
  .rp-hbars i,
  .rp-person li,
  .rp-aaa li,
  .rp-out {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .rp-vbars i { height: var(--h) !important; }
  .rp-hbars i { width: var(--w) !important; }
  .rp-ai__cast,
  .rp-ai article[data-rp-ai-card]::before { display: none !important; }
  .rp-ai__cast i,
  .rp-ai article.is-in .rp-ai__mark i { animation: none !important; }
}
