/* payouts.css — 25 Oct (Ali): the payout wall page keeps every part of the live site's page — the
   "Recent payouts" table with search and filters, the certificate strips, the CTA, the Trustpilot
   reviews, "How payouts work" — re-coloured for the revamp's light paper. The "Recent payouts"
   wall was deep navy (the one dark element on a light page, as on staging) until 29 Oct, when the
   block at the end of this file turned it into the same white card as the caps table; amounts stay green.
   The "How payouts work" cards and caps table follow the Rules page's light look (26 Oct, below). */

/* ---------- stats strip ---------- */
#page-payouts .pw__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}
#page-payouts .pw__stats[hidden] {
  display: none;
}
#page-payouts .pw__stats > div {
  background: #fff;
  border: 1px solid var(--line-d, #dcdff5);
  border-radius: 16px;
  padding: 16px 18px;
}
#page-payouts .pw__stats b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--s-ink, #0b0b14);
}
#page-payouts .pw__stats span {
  font-size: 14px;
  color: #5b5f76;
}

/* ---------- recent payouts table ---------- */
.pwall {
  margin-top: 28px;
  background: #0d1030;
  color: #e9ecff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(7, 10, 60, 0.5);
}
.pwall[hidden] {
  display: none;
}
.pwall__head {
  padding: 28px 28px 0;
}
#page-payouts .pwall h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pwall__head p {
  margin: 0;
  max-width: none;
  color: #b9c0e8;
  font-size: 15px;
}
.pwall__head p b {
  color: #fff;
  font-weight: 600;
}
.pwall__count {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #8a92c4;
}
.pwall__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 18px 28px 22px;
}
.pwall__search,
.pwall__filter {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 0 16px;
}
.pwall__search::placeholder {
  color: #8a92c4;
}
.pwall__filter {
  font-weight: 600;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7ccf5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pwall__filter option {
  color: #0b0b14;
}
.pwall__search:focus-visible,
.pwall__filter:focus-visible {
  outline: 2px solid #7688ff;
  outline-offset: 1px;
}
/* the list is fifteen rows tall; everything past that scrolls inside the panel */
.pwall__scroll {
  max-height: calc(44px + 15 * 62px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.pwall__scroll:focus-visible {
  outline: 2px solid #7688ff;
  outline-offset: -2px;
}
.pwall__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.pwall__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0d1030;
  text-align: left;
  padding: 14px 28px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a92c4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pwall__table td {
  padding: 13px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: #c7ccf5;
  vertical-align: middle;
  white-space: nowrap;
}
.pwall__table th.num,
.pwall__table td.num {
  text-align: right;
}
.pwall__table tr:last-child td {
  border-bottom: 0;
}
.pwall__table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.pwall__who {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pwall__who img {
  width: 28px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #1c2050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.pwall__who:hover,
.pwall__who:focus-visible {
  text-decoration: underline;
}
.pwall__amt {
  color: #39d98a;
  font-weight: 700;
}
.pwall__flag {
  margin-right: 6px;
}
.pwall__chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.pwall__none {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: #8a92c4;
}
.pwall__none[hidden] {
  display: none;
}

/* ---------- certificate strips ---------- */
.certs {
  margin-top: 64px;
  text-align: center;
}
.certs[hidden] {
  display: none;
}
#page-payouts .certs h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--s-ink, #0b0b14);
}
.certs__sub {
  margin: 8px auto 0 !important;
  color: #5b5f76;
  font-size: 16px;
}
.certs__row {
  margin-top: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.certs__row + .certs__row {
  margin-top: 16px;
}
.certs__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: certs-roll var(--certs-dur, 60s) linear infinite;
}
.certs__row--rev .certs__track {
  animation-direction: reverse;
}
.certs__row:hover .certs__track,
.certs__track[data-static] {
  animation-play-state: paused;
}
.certs__track[data-static] {
  animation: none;
  margin: 0 auto;
}
#page-payouts .pw__card {
  flex: none;
  width: 200px;
  display: block;
  text-decoration: none;
  color: #fff;
  background: #0d1030;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
#page-payouts .pw__card:hover,
#page-payouts .pw__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(7, 10, 60, 0.6);
}
#page-payouts .pw__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1c2050;
}
#page-payouts .pw__body {
  padding: 10px 12px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
#page-payouts .pw__body b {
  display: block;
  color: #39d98a;
  font-size: 15px;
}
#page-payouts .pw__body span {
  display: block;
  font-size: 14px;
  color: #b9c0e8;
}
@keyframes certs-roll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- CTA ---------- */
.pw__cta {
  margin-top: 56px;
  text-align: center;
}
.pw__cta p {
  margin: 12px auto 0 !important;
  color: #5b5f76;
  font-size: 15px;
}

/* ---------- Trustpilot reviews ----------
   28 Oct: the six cards follow the homepage "What funded traders say" cards (home.css .review +
   fx.css figcaption): the same soft-paper tile, 20px radius, 26px padding, 14px rows, gold 16px
   stars, 17px ink quote, and an author row with the 44px initial circle. The Trustpilot title and
   the country flag are kept as content; the author row is pinned to the card bottom on desktop so
   the rows line up across the grid (a 4-star review keeps its grey fifth star). */
.paidrev {
  margin-top: 72px;
  text-align: center;
}
#page-payouts .paidrev h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--s-ink, #0b0b14);
}
.paidrev__sub {
  margin: 8px auto 0 !important;
  color: #5b5f76;
  font-size: 16px;
}
.paidrev__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}
.paidrev__card {
  margin: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  background: var(--s-paper-2, #f3f4f8);
  border: 1px solid rgba(12, 15, 44, 0.06);
  border-radius: 20px;
  padding: 26px;
  color: var(--s-ink, #0b0b14);
  transition: transform 0.25s, box-shadow 0.25s;
}
@media (hover: hover) {
  .paidrev__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -30px rgba(12, 15, 44, 0.35);
  }
}
.paidrev__stars {
  display: flex;
  gap: 3px;
  color: #e3a93c;
  margin-bottom: -4px;
}
.paidrev__stars svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}
.paidrev__stars svg.off {
  fill: #d7dae8;
}
.paidrev__card b {
  font-size: 16px;
  font-weight: 600;
  color: var(--s-ink, #0b0b14);
}
.paidrev__card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--s-ink, #0b0b14);
}
.paidrev__card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--s-ink, #0b0b14);
}
.paidrev__card figcaption > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.paidrev__card figcaption b {
  font-size: 15px;
}
.paidrev__av {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  background: var(--m-ink, #0a0a0c);
}
.paidrev__flag {
  font-size: 14px;
  line-height: 1;
}
@media (min-width: 901px) {
  .paidrev__card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
  }
}
@media (max-width: 768px) {
  .paidrev__grid {
    gap: 14px;
  }
  .paidrev__card {
    padding: 20px;
    gap: 12px;
  }
  .paidrev__card blockquote {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .paidrev__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  #page-payouts .pw__stats {
    grid-template-columns: 1fr 1fr;
  }
  .pwall__head,
  .pwall__tools {
    padding-left: 18px;
    padding-right: 18px;
  }
  .pwall__tools {
    grid-template-columns: 1fr 1fr;
  }
  .pwall__search {
    grid-column: 1 / -1;
  }
  .pwall__table th,
  .pwall__table td {
    padding-left: 18px;
    padding-right: 18px;
  }
  .paidrev__grid {
    grid-template-columns: 1fr;
  }
  #page-payouts .pw__card {
    width: 160px;
  }
}

/* ---------- "How payouts work": cards and caps table (26 Oct) ----------
   The three cards and the caps table used to keep the staging site's deep navy (styles.css and
   home.css paint them through .sub--dark). They now follow the Rules page's light design: white
   cards with a hairline border and soft shadow, the shared .section-eyebrow pill for Split / Cycle / Caps,
   and the site's .tbl look (white, hairline border, light blue header). The id outranks the
   .sub--dark rules; the "Recent payouts" wall above is untouched. */
#page-payouts .grid3 .pcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  color: var(--ink, #0c0f2c);
  border: 1px solid var(--line-d, #dcdff5);
  border-radius: 20px;
  padding: 26px 28px 28px;
  box-shadow: 0 10px 40px rgba(20, 20, 120, 0.06);
}
/* the Split / Cycle / Caps label is the shared styles.css .section-eyebrow pill; only its gap is set here */
#page-payouts .grid3 .pcard .section-eyebrow {
  margin-bottom: 16px;
}
#page-payouts .grid3 .pcard h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink, #0c0f2c);
}
#page-payouts .grid3 .pcard p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #55598a);
}
#page-payouts .tbl {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line-d, #dcdff5);
  border-radius: 14px;
  box-shadow: none;
}
#page-payouts .tbl th,
#page-payouts .tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-d, #dcdff5);
  color: var(--ink, #0c0f2c);
  vertical-align: top;
}
#page-payouts .tbl th {
  font-size: 13px;
  font-weight: 600;
  background: var(--lav, #eef0ff);
}
#page-payouts .tbl td:first-child {
  font-weight: 500;
  color: var(--ink-2, #55598a);
}
#page-payouts .tbl tr:last-child td {
  border-bottom: 0;
}
#page-payouts .tbl tbody tr:hover td {
  background: #fff;
}
#page-payouts .tbl:focus-visible {
  outline: 2px solid var(--blue, #2b2bf5);
  outline-offset: 2px;
}
/* phones: the table scrolls inside its box with the label column pinned, as on the Rules page */
@media (max-width: 768px) {
  #page-payouts .grid3 {
    gap: 14px;
  }
  #page-payouts .grid3 .pcard {
    padding: 22px 22px 24px;
  }
  /* M-00: nothing under 14px on phones (the Rules page lifts its pills the same way) */
  #page-payouts .pcard__tag,
  #page-payouts .tbl th {
    font-size: 14px;
  }
  #page-payouts .tbl th:first-child,
  #page-payouts .tbl td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: inset -1px 0 0 var(--line-d, #dcdff5);
  }
  #page-payouts .tbl th:first-child {
    background: var(--lav, #eef0ff);
  }
}

/* ---------- Mobile pass, Phase 3.2 (27 Oct): the wall on phones ----------
   A five-column table at 390px scrolled sideways with the date column filling the first screen.
   Under 640px each row becomes a card: trader (thumbnail + name) on the left, the amount on the
   right, and date · country · plan as one quiet line beneath. Same markup, same renderer, same
   15-row scroll box; the header row and the horizontal scroll go away. */
@media (max-width: 640px) {
  .pwall__scroll {
    overflow-x: hidden;
    max-height: calc(15 * 92px);
  }
  .pwall__table {
    min-width: 0;
    display: block;
  }
  .pwall__table thead {
    display: none;
  }
  .pwall__table tbody {
    display: block;
  }
  .pwall__table tbody tr {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      'who who who amt'
      'date country plan plan';
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .pwall__table tbody tr:last-child {
    border-bottom: 0;
  }
  .pwall__table tbody td {
    display: block;
    padding: 0;
    border: 0;
    white-space: nowrap;
    font-size: 14px;
    color: #8a92c4;
  }
  .pwall__table tbody td:nth-child(1) {
    grid-area: date;
  }
  .pwall__table tbody td:nth-child(2) {
    grid-area: who;
    min-width: 0;
    color: #fff;
  }
  .pwall__table tbody td:nth-child(3) {
    grid-area: amt;
    text-align: right;
  }
  .pwall__table tbody td:nth-child(4) {
    grid-area: country;
  }
  .pwall__table tbody td:nth-child(5) {
    grid-area: plan;
    justify-self: start;
  }
  /* separators between date · country · plan */
  .pwall__table tbody td:nth-child(4)::before,
  .pwall__table tbody td:nth-child(5)::before {
    content: '·';
    margin-right: 10px;
    color: rgba(138, 146, 196, 0.6);
  }
  .pwall__table tbody tr:hover td {
    background: transparent;
  }
  .pwall__who {
    font-size: 16px;
    min-height: 44px;
  }
  .pwall__who img {
    width: 32px;
    height: 42px;
  }
  .pwall__amt {
    font-size: 17px;
  }
  .pwall__chip {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #c7ccf5;
    vertical-align: 1px;
  }
  .pwall__none {
    padding: 22px 18px;
  }
}

/* ---------- 29 Oct (Sanjana, then Alfi): the wall and the certificate cards in the light theme ----------
   The dark navy panel above was the live site's; the revamp keeps one palette across pages, so
   the "Recent payouts" panel is the caps table's look: a white card with a hairline border and a
   soft shadow, a very light grey header row, white rows with thin grey separators and a faint
   hover tint, navy text, green amounts (as on the live wall, darkened for white paper) and pale
   blue plan chips with navy text; the search and filters are white with hairline borders. The
   certificate strip cards are white with blue accents. Same markup, same renderer; these rules
   only recolour, and sit last so they beat everything above (and the phone block). */
.pwall {
  background: #fff;
  color: var(--ink, #0c0f2c);
  border: 1px solid var(--line-d, #dcdff5);
  box-shadow: 0 20px 60px -40px rgba(12, 15, 44, 0.25);
}
#page-payouts .pwall h2,
.pwall__head p b,
.pwall__who {
  color: var(--ink, #0c0f2c);
}
.pwall__head p,
.pwall__count,
.pwall__none {
  color: var(--ink-2, #55598a);
}
.pwall__search,
.pwall__filter {
  background-color: #fff; /* not the shorthand: it reset the selects' chevron to a tiled pattern */
  border-color: var(--line-d, #dcdff5);
  color: var(--ink, #0c0f2c);
}
.pwall__search::placeholder {
  color: #8a8ea3;
}
.pwall__filter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355598a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pwall__search:focus-visible,
.pwall__filter:focus-visible,
.pwall__scroll:focus-visible {
  outline-color: var(--blue, #2b2bf5);
}
.pwall__scroll {
  border-top-color: var(--line-d, #dcdff5);
  scrollbar-color: rgba(12, 15, 44, 0.25) transparent;
}
.pwall__table th {
  background: #f6f7fb;
  color: var(--ink-2, #55598a);
  border-bottom-color: var(--line-d, #dcdff5);
}
.pwall__table td {
  color: var(--ink, #0c0f2c);
  border-bottom-color: #e8eaf2;
}
.pwall__table tbody tr:hover td {
  background: #f7f8ff;
}
.pwall__who img {
  background: var(--lav, #eef0ff);
  box-shadow: 0 2px 8px rgba(12, 15, 44, 0.15);
}
.pwall__amt {
  color: #15803d; /* --green (#63e6a0) is the dark panels' mint; on white it needs this depth (5.7:1) */
}
.pwall__chip {
  background: var(--lav, #eef0ff);
  border-color: #d6d9ff;
  color: var(--ink, #0c0f2c);
}
@media (max-width: 640px) {
  .pwall__table tbody tr {
    border-bottom-color: #e8eaf2;
    /* 29 Oct (Alfi): the 27 Oct card was a fixed two-line grid, and "Oct 28, 11:27pm · United States ·
       Express $100K" ran out of it (the cards clip sideways). Now a wrapping row: trader and amount
       on the first line, date · country next, and the plan chip after them or, when there is no
       room, on a line of its own. Same cells, same renderer. */
    display: flex;
    flex-wrap: wrap;
    row-gap: 0; /* the break below would double the 6px line gap; the second-line cells carry it instead */
  }
  .pwall__table tbody tr::after {
    content: '';
    order: 2;
    flex-basis: 100%;
    height: 0;
  }
  .pwall__table tbody td:nth-child(2) {
    order: 0;
    flex: 1 1 0;
    min-width: 0;
  }
  .pwall__table tbody td:nth-child(3) {
    order: 1;
  }
  .pwall__table tbody td:nth-child(1) {
    order: 3;
    margin-top: 6px;
  }
  .pwall__table tbody td:nth-child(4) {
    order: 4;
    margin-top: 6px;
  }
  .pwall__table tbody td:nth-child(5) {
    order: 5;
    margin-top: 6px;
  }
  .pwall__table tbody td:nth-child(5)::before {
    content: none; /* the pill separates itself; a dot would lead the line when the chip wraps */
  }
  /* the card is one block: tint the row, not its cells (a tap leaves :hover on until the next) */
  .pwall__table tbody tr:hover {
    background: #f7f8ff;
  }
  .pwall__table tbody tr:hover td {
    background: transparent;
  }
  .pwall__table tbody td {
    color: var(--ink-2, #55598a);
  }
  .pwall__table tbody td:nth-child(2) {
    color: var(--ink, #0c0f2c);
  }
  .pwall__table tbody td:nth-child(4)::before,
  .pwall__table tbody td:nth-child(5)::before {
    color: #b4b7cc;
  }
  .pwall__chip {
    color: var(--ink, #0c0f2c);
  }
}
#page-payouts .pw__card {
  color: var(--ink, #0c0f2c);
  background: #fff;
  border-color: var(--line-d, #dcdff5);
}
#page-payouts .pw__card:hover,
#page-payouts .pw__card:focus-visible {
  box-shadow: 0 18px 40px -16px rgba(12, 15, 44, 0.25);
}
#page-payouts .pw__img {
  background: var(--lav, #eef0ff);
}
#page-payouts .pw__body b {
  color: var(--blue, #2b2bf5);
}
#page-payouts .pw__body span {
  color: var(--ink-2, #55598a);
}

/* ---------- 29 Oct (Sanjana): stat tiles get an icon, the wall shows ten rows ----------
   Each of the four stat tiles opens with a lavender icon tile (receipt, dollar, trophy, globe), drawn
   from a CSS mask so api.js's markup is unchanged. The scroll box is ten rows tall instead of fifteen;
   everything past the tenth row still scrolls inside it (desktop 62px rows, phone 92px cards). */
#page-payouts .pw__stats > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
}
#page-payouts .pw__stats > div::before {
  content: '';
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lav, #eef0ff);
}
#page-payouts .pw__stats > div::after {
  content: '';
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  width: 22px;
  height: 22px;
  justify-self: center;
  background: var(--blue, #2b2bf5);
  -webkit-mask: var(--pw-ico) center / contain no-repeat;
  mask: var(--pw-ico) center / contain no-repeat;
}
#page-payouts .pw__stats > div:nth-child(1) { --pw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3h16v18l-3-2-3 2-3-2-3 2-4-2z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
#page-payouts .pw__stats > div:nth-child(2) { --pw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.5c-.5-1-1.5-1.5-3-1.5-1.7 0-3 .9-3 2s1.3 1.7 3 2 3 .9 3 2-1.3 2-3 2c-1.5 0-2.5-.5-3-1.5M12 6v2M12 16v2'/%3E%3C/svg%3E"); }
#page-payouts .pw__stats > div:nth-child(3) { --pw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4v2a3 3 0 0 0 3 3M17 6h3v2a3 3 0 0 1-3 3'/%3E%3C/svg%3E"); }
#page-payouts .pw__stats > div:nth-child(4) { --pw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
#page-payouts .pw__stats b {
  grid-area: 1 / 2 / 2 / 3;
  align-self: end;
}
#page-payouts .pw__stats span {
  grid-area: 2 / 2 / 3 / 3;
  align-self: start;
}
.pwall__scroll {
  max-height: calc(44px + 10 * 62px);
}
@media (max-width: 640px) {
  .pwall__scroll {
    max-height: calc(10 * 92px);
  }
  #page-payouts .pw__stats > div::before {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  #page-payouts .pw__stats > div::after {
    width: 18px;
    height: 18px;
  }
  #page-payouts .pw__stats > div {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    padding: 14px;
  }
  #page-payouts .pw__stats span {
    font-size: 13px;
    line-height: 1.25;
  }
}

/* ---------- states (4 Nov, Task 4) ----------
   The status line while the wall or the reviews load, the amber notice when a request fails (the
   Rules page's alert colours) with its retry, the wall's footer ("Show more", the full-history note,
   a warning when a page could not be loaded) and the reviews' empty / failed note. */
#page-payouts .pw__status,
#page-payouts .paidrev__status {
  margin: 28px 0 0;
  font-size: 15px;
  color: #5b5f76;
}
#page-payouts .paidrev__status {
  margin-top: 20px;
}
#page-payouts .pw__status[hidden],
#page-payouts .paidrev__status[hidden] {
  display: none;
}
#page-payouts .pw__fail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 0;
  padding: 14px 18px;
  background: #fff8e6;
  border: 1px solid #e3c98a;
  border-radius: 14px;
  text-align: left;
}
#page-payouts .pw__fail svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #9a6b00;
}
#page-payouts .pw__fail p {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--s-ink, #0b0b14);
}
#page-payouts .pw__fail[hidden] {
  display: none;
}
#page-payouts .pw__retry {
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue, #2b2bf5);
  background: #fff;
  border: 1px solid #cfd3f7;
  border-radius: 999px;
  cursor: pointer;
}
#page-payouts .pw__retry:hover,
#page-payouts .pw__retry:focus-visible {
  border-color: var(--blue, #2b2bf5);
}
#page-payouts .pw__retry:focus-visible {
  outline: 2px solid var(--blue, #2b2bf5);
  outline-offset: 2px;
}
#page-payouts .pw__retry[disabled] {
  opacity: 0.6;
  cursor: default;
}
#page-payouts .pw__retry[hidden] {
  display: none;
}
#page-payouts .empty[hidden] {
  display: none;
}
#page-payouts .pwall__foot {
  padding: 16px 24px 20px;
  text-align: center;
  border-top: 1px solid var(--line-d, #dcdff5);
}
#page-payouts .pwall__foot[hidden] {
  display: none;
}
/* sits between the list and the pager, so it reads under the rows whether or not "Show more" is showing */
#page-payouts .pwall__note {
  margin: 0;
  padding: 12px 24px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2, #55598a);
}
#page-payouts .pwall__more {
  min-height: 40px;
  padding: 8px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--blue, #2b2bf5);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
#page-payouts .pwall__more:hover,
#page-payouts .pwall__more:focus-visible {
  filter: brightness(1.1);
}
#page-payouts .pwall__more:focus-visible {
  outline: 2px solid var(--blue, #2b2bf5);
  outline-offset: 2px;
}
#page-payouts .pwall__more[disabled] {
  opacity: 0.6;
  cursor: default;
}
#page-payouts .pwall__more[hidden] {
  display: none;
}
#page-payouts .pwall__warn,
#page-payouts .pwall__loading {
  margin: 0 0 10px;
  font-size: 14px;
  color: #7a5500;
}
#page-payouts .pwall__loading {
  color: #5b5f76;
}
#page-payouts .pwall__warn[hidden],
#page-payouts .pwall__loading[hidden] {
  display: none;
}
#page-payouts .paidrev__grid[hidden] {
  display: none;
}
#page-payouts .paidrev__note {
  margin: 24px auto 0;
  max-width: 560px;
  padding: 18px 20px;
  background: var(--s-paper-2, #f3f4f8);
  border: 1px solid rgba(12, 15, 44, 0.06);
  border-radius: 16px;
}
#page-payouts .paidrev__note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5b5f76;
}
#page-payouts .paidrev__note a {
  color: var(--blue, #2b2bf5);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#page-payouts .paidrev__note[hidden],
#page-payouts .paidrev__note p[hidden] {
  display: none;
}
@media (max-width: 640px) {
  #page-payouts .pw__fail {
    padding: 12px 14px;
  }
  #page-payouts .pwall__foot {
    padding: 14px 18px 18px;
  }
  #page-payouts .pwall__note {
    padding: 10px 18px 12px;
  }
}
