/* /traders/ (pages/traders.jsx; round 4's N3, round 13's podium, round 20 in
 * the owner's mockup): "Top traders" as cards, the "How copying works."
 * strip, and every trader in a panel (page.css .pep-tpanel, with the hero,
 * the order pills and the medals). This sheet is the cards (their figures,
 * Copy trader and View profile), the strip, and the table's rows: the trader
 * with their clan and followers, realised PnL, volume, trades, last trade,
 * and Follow. The trader's name is the row's link and its ::after covers the
 * row, so the whole row opens the profile while the clan and the Follow
 * button stay links and buttons of their own (no button inside a link).
 * Built from shell.css's tokens; after social.css, whose traders and follow
 * buttons it places. */
/* The page is the rows' container: their layout follows the room the page
   has, not the window's width (the rail beside it takes 300 px or none). */
.pep-traders { display: grid; gap: 18px; min-width: 0; container: pep-traders / inline-size; }
.pep-traders > .pep-title { margin-bottom: -6px; }
.pep-trd-hint { margin: 0; }
.pep-trd-blank { padding: 14px 4px; }
.pep-trd-stop { margin: 0; text-align: center; }
/* The panel's head: the order pills after the count, the search on the right. */
.pep-traders .pep-tpanel-head .pep-pills { flex-wrap: wrap; }
/* The foot: what the table shows, then "Follows are public" (every Follow on the page points at it); Show more on the right. */
.pep-trd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pep-trd-foot .pep-tok-count { color: var(--pep-text-2); font-size: 13px; }
.pep-trd-public { color: var(--pep-text-3); font-size: 12px; }
/* One grid for the whole table, the head and every row its subgrid: a figure's
   column is as wide as its widest figure, so a long PnL never runs into the
   volume beside it; the trader's column takes what is left (the name
   ellipsed). */
.pep-trd-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto) 150px;
  column-gap: 14px;
  min-width: 0;
}
.pep-trd-head,
.pep-trd-list,
.pep-trd-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.pep-trd-head,
.pep-trd-row { padding: 10px 12px; }
.pep-trd-head { padding-top: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--pep-line); color: var(--pep-text-3); font-size: 12px; font-weight: 600; }
.pep-trd-head > span:nth-child(n+2) { text-align: right; }
.pep-trd-list { margin: 0; padding: 0; list-style: none; }
.pep-trd-row { position: relative; border-bottom: 1px solid var(--pep-line); font-size: 14px; }
.pep-trd-row:last-child { border-bottom: 0; }
.pep-trd-row:hover { background: var(--pep-panel-2); }
.pep-trd-row .pep-trader::after { content: ""; position: absolute; inset: 0; }
.pep-trd-row .pep-trader:focus-visible { outline: none; }
.pep-trd-row:focus-within:has(.pep-trader:focus-visible) { outline: 2px solid var(--pep-brand); outline-offset: -2px; }
/* The trader, then their clan and follower count on the same line (under the name when the row is narrow). */
.pep-trd-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-width: 0; }
.pep-trd-who .pep-trader { max-width: 100%; }
.pep-trd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; max-width: 100%; }
.pep-trd-clan {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 1px 9px 1px 3px;
  border: 1px solid var(--pep-line-strong);
  border-radius: var(--pep-radius-pill);
  background: var(--pep-panel-2);
  color: var(--pep-text-2);
  font-size: 12px;
  text-decoration: none;
}
.pep-trd-clan:hover { background: var(--pep-panel-hover); color: var(--pep-text); }
.pep-trd-clan:focus-visible { outline: 2px solid var(--pep-brand); outline-offset: 2px; }
.pep-trd-clan bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pep-trd-pnl,
.pep-trd-vol,
.pep-trd-trades,
.pep-trd-ago { text-align: right; white-space: nowrap; }
.pep-trd-pnl { font-weight: 700; }
.pep-trd-follow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.pep-trd-fans { font-size: 12px; white-space: nowrap; }
.pep-trd-row .pep-follow { justify-items: end; }
/* A list's Follow is the compact one: fifty of them must not outweigh the names. */
.pep-trd-row .pep-follow .pep-btn { min-width: 96px; min-height: 34px; padding: 0 16px; border-radius: var(--pep-radius-pill); font-size: 13px; }
.pep-trd-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
/* A middle width (a window of about 950 to 1170 px beside the rail): the trade
   count gives way (the profile says it), the other figures keep their columns. */
@container pep-traders (max-width: 819px) {
  .pep-trd-table { grid-template-columns: minmax(0, 1fr) repeat(3, auto) 150px; }
  .pep-trd-head > span:nth-child(4),
  .pep-trd-trades { display: none; }
}
/* The phone (and a narrow page): no column names; the trader and Follow on
   the first line, the figures under them. Nothing is wider than 320 px. */
@container pep-traders (max-width: 599px) {
  .pep-trd-head { display: none; }
  .pep-trd-table,
  .pep-trd-list { display: block; }
  .pep-trd-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "who who who follow" "meta meta meta meta" "pnl vol trades ago";
    gap: 6px 12px;
    padding: 12px 4px;
  }
  /* The trader's name beside Follow, their clan and followers across the row under it. */
  .pep-trd-who { display: contents; }
  .pep-trd-who > .pep-trader { grid-area: who; justify-self: start; }
  .pep-trd-meta { grid-area: meta; padding-left: 40px; }
  .pep-trd-follow { grid-area: follow; align-self: start; }
  .pep-trd-pnl { grid-area: pnl; text-align: left; font-size: 13px; }
  .pep-trd-vol { grid-area: vol; text-align: left; font-size: 13px; }
  .pep-trd-trades { display: block; grid-area: trades; overflow: hidden; text-align: left; text-overflow: ellipsis; font-size: 13px; }
  .pep-trd-ago { grid-area: ago; font-size: 13px; }
  .pep-trd-row .pep-follow { flex: none; justify-items: end; max-width: 160px; }
  .pep-trd-row .pep-follow .pep-btn { width: auto; }
  .pep-trd-row .pep-follow-note { text-align: right; }
}
/* The narrowest phones: the trade count gives way to the figures (the profile says it). */
@container pep-traders (max-width: 339px) {
  .pep-trd-row { grid-template-areas: "who who who follow" "meta meta meta meta" "pnl vol ago ago"; grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .pep-trd-trades { display: none; }
}

/* --------------------------------------------------------- top traders */

/* Round 20 (components/traders/Podium.jsx, PodiumStep.jsx), the owner's
   mockup: a card per trader, two to a row from 900 px of page (one under
   another below it). A card: the medal (page.css .pep-medal) and the face,
   the name with a small Follow and You, the address and the clan; the big
   PnL with its window; the four figures on one line under a hairline, the
   Details chevron at its end; and the actions on the right: Copy trader in
   lime over View profile (on one's own card, "That is you." with View
   profile, in a box of its own). The first is edged in gold (page.css
   .pep-podium-1). A narrow card (a phone) puts the PnL under the trader and
   the actions side by side at its foot. */
.pep-pod { display: grid; gap: 12px; min-width: 0; }
.pep-pod-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.pep-pod-head-text { display: grid; gap: 2px; min-width: 0; }
.pep-pod-title { margin: 0; color: var(--pep-text); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pep-pod-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--pep-text-2); font-size: 13px; }
.pep-pod-why { margin: 0; color: var(--pep-text-3); font-size: 12px; }
.pep-pod-head .pep-title-go { margin-bottom: 2px; }
.pep-pod-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* The step is the card's container: the card's own layout follows its width. */
.pep-pod-step { display: grid; min-width: 0; container: pep-pod-card / inline-size; }
.pep-pod-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px 48px minmax(0, 1fr);
  grid-template-areas: "medal face who" "big big big" "line line line" "acts acts acts";
  align-items: center;
  gap: 10px 12px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--pep-radius);
  background: var(--pep-panel);
  box-shadow: inset 0 0 0 1px var(--pep-line);
}
.pep-pod-medal { grid-area: medal; align-self: start; margin-top: 4px; }
.pep-pod-face { grid-area: face; align-self: start; display: inline-flex; }
.pep-pod-face .pep-face-lg { width: 48px; height: 48px; }
.pep-pod-who { grid-area: who; display: grid; justify-items: start; gap: 4px; min-width: 0; }
.pep-pod-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; max-width: 100%; }
.pep-pod-name { min-width: 0; max-width: 100%; color: var(--pep-text); font-size: 16px; line-height: 1.25; text-decoration: none; }
/* A long name goes on two lines, whole (at its hyphen or dot, else anywhere): a card never cuts a name. */
.pep-pod-name b { display: block; overflow-wrap: anywhere; }
.pep-pod-name:hover { color: var(--pep-text); text-decoration: underline; }
.pep-pod-name:focus-visible { outline: 2px solid var(--pep-brand); outline-offset: 2px; border-radius: 4px; }
/* Follow, small beside the name: a pill the size of a badge. */
.pep-pod-follow { display: inline-flex; min-width: 0; }
.pep-pod-id .pep-follow-compact { justify-content: flex-start; }
.pep-pod-id .pep-follow-compact .pep-btn { min-height: 26px; padding: 0 12px; font-size: 12px; }
.pep-pod-id .pep-follow-compact .pep-follow-note { font-size: 11px; text-align: left; }
.pep-pod-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; max-width: 100%; }
.pep-pod-addr { color: var(--pep-text-3); font-size: 13px; }
.pep-pod-sub .pep-trd-clan { min-width: 0; }
/* The figure the section ranks by, its window beside it. */
.pep-pod-big { grid-area: big; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.pep-pod-big b { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.pep-pod-big span { color: var(--pep-text-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
/* The four figures under a hairline, Details' chevron at the end. Open, Details takes the card's width under them. */
.pep-pod-line { grid-area: line; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--pep-line); }
.pep-pod-figs { display: grid; flex: 1 1 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; margin: 0; }
.pep-pod-fig { display: grid; align-content: start; gap: 2px; min-width: 0; }
.pep-pod-fig dt { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--pep-text-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pep-pod-fig dt .pep-hint { flex: none; }
/* No colour of its own: a return keeps its direction's (pepper.css .pep-dir-*). */
.pep-pod-fig dd { margin: 0; overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
/* The copiers gained this week, beside their count. */
.pep-pod-fresh { margin-left: 6px; padding: 0 6px; border-radius: var(--pep-radius-pill); background: var(--pep-brand-soft); color: var(--pep-brand); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.pep-pod-more { flex: none; min-width: 0; font-size: 12px; }
.pep-pod-more[open] { flex: 1 1 100%; }
.pep-pod-more summary {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--pep-line-strong);
  color: var(--pep-text-2);
  list-style: none;
  cursor: pointer;
}
.pep-pod-more summary::-webkit-details-marker { display: none; }
.pep-pod-more[open] summary svg { transform: rotate(180deg); }
.pep-pod-more summary:hover { background: var(--pep-panel-hover); color: var(--pep-text); }
.pep-pod-more summary:focus-visible { outline: 2px solid var(--pep-brand); outline-offset: 2px; }
.pep-pod-more-in { display: grid; gap: 4px; margin-top: 4px; padding: 8px 10px; border-radius: var(--pep-radius-sm); background: var(--pep-panel-2); color: var(--pep-text-2); text-align: left; }
.pep-pod-more-in p { margin: 0; }
.pep-pod-sum { font-weight: 600; }
.pep-pod-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.pep-pod-trades { min-width: 0; }
.pep-pod-note { color: var(--pep-text-3); font-size: 11px; line-height: 1.4; }
.pep-pod-cap { color: var(--pep-text-2); font-weight: 600; }
/* The actions: Copy trader (lime, the brand's arrow) and View profile (outlined), side by side on a narrow card. */
.pep-pod-acts { grid-area: acts; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: start; gap: 8px; min-width: 0; }
.pep-pod-copy { display: grid; gap: 4px; min-width: 0; }
.pep-pod-acts .pep-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 0 14px; border-radius: var(--pep-radius-pill); font-size: 14px; font-weight: 700; }
.pep-pod-copy .pep-cp-you { justify-self: center; font-size: 11px; font-weight: 600; line-height: 14px; color: var(--pep-text-2); }
.pep-pod-copy .pep-cp-note { font-size: 11px; line-height: 1.3; }
.pep-pod-you { margin: 0; color: var(--pep-text-2); font-size: 13px; line-height: 1.45; }
.pep-pod-card-mine .pep-pod-acts {
  grid-template-columns: minmax(0, 1fr);
  padding: 14px;
  border-radius: var(--pep-radius-sm);
  background: var(--pep-panel-2);
  box-shadow: inset 0 0 0 1px var(--pep-line);
}
/* A wide card: the actions in a column on the right, the trader, the PnL and the figures on the left. */
@container pep-pod-card (min-width: 500px) {
  .pep-pod-card {
    grid-template-columns: 30px 48px minmax(0, 1fr) minmax(150px, 180px);
    grid-template-areas: "medal face who acts" "medal face big acts" "line line line acts";
    gap: 8px 14px;
    padding: 18px 20px;
  }
  .pep-pod-acts { grid-template-columns: minmax(0, 1fr); align-self: center; }
  .pep-pod-big { align-self: start; }
}
/* Two to a row from 900 px of page (the third, when there is one, under the first). One card alone keeps a card's width. */
@container pep-traders (min-width: 900px) {
  .pep-pod-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pep-pod-n-1 { grid-template-columns: minmax(0, 1fr); width: min(100%, 680px); }
}

/* ------------------------------------------------ how copying works
   One strip: the icon in its tile, the title and copying in a line, and Learn more on the right (under the words on a
   phone). Learn more opens the terms folded at the foot of the page. */
.pep-trd-how { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; box-shadow: inset 0 0 0 1px var(--pep-line); }
.pep-trd-how-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--pep-radius-sm);
  background: var(--pep-brand-soft);
  color: var(--pep-brand);
}
.pep-trd-how-text { flex: 1 1 320px; min-width: 0; margin: 0; color: var(--pep-text-2); font-size: 13px; line-height: 1.5; }
.pep-trd-how-text b { margin-right: 2px; color: var(--pep-text); font-size: 16px; font-weight: 700; }
.pep-btn.pep-trd-how-go { flex: none; min-height: 40px; padding: 0 18px; font-size: 14px; }
.pep-trd-copy-more { margin-top: -4px; }
.pep-trd-terms { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 18px; }
@container pep-traders (max-width: 599px) {
  .pep-trd-how { align-items: flex-start; padding: 14px; }
  .pep-trd-how-text { flex-basis: calc(100% - 60px); }
  .pep-btn.pep-trd-how-go { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================ /copy/
   Round 22 (pages/copy.jsx): copy trading's own page, in the page kit (page.css: the hero over its banner, the
   title, the pills, the table panel). This sheet places what is its own: the hero's two actions, "Your copies" as
   a strip, "How it works" (three steps, an example, the questions folded), and "Traders to copy",
   a table on a wide page and a card per trader on a narrow one. The page is its parts' container: their layout
   follows the room the page has (the rail beside it takes 300 px or none), not the window. */
.pep-copy-page { display: grid; gap: 18px; min-width: 0; container: pep-copy / inline-size; }
.pep-copy-page > .pep-title { margin-bottom: -6px; }
/* Round 24: a shorter hero, so the traders to copy show on the first screen; on a phone the words keep page.css's
   room under the banner's band. */
.pep-copy-page .pep-ph-in { min-height: 0; }
.pep-copy-page .pep-ph-copy { gap: 10px; }
@container pep-ph (min-width: 560px) {
  .pep-copy-page .pep-ph-copy { padding-top: 26px; padding-bottom: 26px; }
}
.pep-copy-page .pep-ph-h { font-size: clamp(32px, 3.4vw, 46px); }
/* The hero's first action in lime beside the ghost pill (page.css .pep-ph-cta). */
.pep-btn.pep-cpy-cta { min-height: 42px; padding: 0 20px; font-size: 14px; font-weight: 700; }

/* ------------------------------------------------- your copies, a strip */
.pep-cpl-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; box-shadow: inset 0 0 0 1px var(--pep-line); }
.pep-cpl-mine-h { flex: none; margin: 0; font-size: 16px; font-weight: 700; }
.pep-cpl-mine-figs { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: 8px 26px; min-width: 0; margin: 0; }
.pep-cpl-mine-figs > div { display: grid; gap: 2px; min-width: 0; }
.pep-cpl-mine-figs dt { color: var(--pep-text-3); font-size: 12px; font-weight: 600; }
.pep-cpl-mine-figs dd { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.pep-cpl-mine-figs dd .pep-faint { font-size: 13px; font-weight: 500; }
.pep-btn.pep-cpl-mine-go { flex: none; min-height: 38px; padding: 0 18px; font-size: 14px; }

/* ------------------------------------------------------ how it works */
/* Round 24 (the owner: "something minimalist"): one strip. The title, the three steps in a row with the fee, Stop and
   the risk in a muted line under them, and Questions at the right; its fold opens under the whole strip. */
.pep-cpg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "title main more" "faq faq faq";
  align-items: center;
  gap: 0 22px;
  padding: 12px 18px;
}
.pep-cpg-title { grid-area: title; margin: 0; color: var(--pep-text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.pep-cpg-main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.pep-cpg-steps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.pep-cpg-step { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--pep-text); font-size: 13px; font-weight: 600; }
.pep-cpg-step + .pep-cpg-step::before { content: "\2192"; margin-right: 4px; color: var(--pep-text-3); font-weight: 500; }
.pep-cpg-n { color: var(--pep-brand); font-size: 11px; font-weight: 800; }
.pep-cpg-text { min-width: 0; overflow-wrap: anywhere; }
.pep-cpg-note { color: var(--pep-text-3); font-size: 12px; font-weight: 500; }
.pep-cpg-note::before { content: "\00b7"; margin-right: 6px; }
.pep-cpg-notes { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; color: var(--pep-text-3); font-size: 12px; }
.pep-cpg-notes > span + span::before { content: "\00b7"; margin: 0 7px; }
/* The fee and Stop a shade brighter; the risk the faintest, but there. */
.pep-cpg-fee, .pep-cpg-stop { color: var(--pep-text-2); }
.pep-cpg-risk { color: var(--pep-text-3); }
/* Questions: a quiet pill, its chevron turning when open. */
.pep-cpg-more {
  grid-area: more;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--pep-radius-sm);
  background: none;
  color: var(--pep-text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pep-cpg-more:hover { color: var(--pep-brand); }
.pep-cpg-more:focus-visible { outline: 2px solid var(--pep-brand); outline-offset: 2px; }
.pep-ico.pep-cpg-more-ico { width: 14px; height: 14px; }
.pep-cpg-more[aria-expanded="true"] .pep-cpg-more-ico { transform: rotate(90deg); }
/* The fold: the example in a sentence, the fee's split, then the six questions in two columns. */
.pep-cpg-faq { grid-area: faq; display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pep-line); }
.pep-cpg-faq[hidden] { display: none; }
.pep-cpg-ex, .pep-cpg-split { margin: 0; color: var(--pep-text-2); font-size: 13px; line-height: 1.45; }
.pep-cpg-split { color: var(--pep-text-3); font-size: 12px; }
.pep-cpg-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 4px 0 0; }
.pep-cpg-q { display: grid; gap: 2px; min-width: 0; }
.pep-cpg-q dt { color: var(--pep-text); font-size: 13px; font-weight: 600; }
.pep-cpg-q dd { margin: 0; color: var(--pep-text-2); font-size: 12px; line-height: 1.45; }
@container pep-copy (max-width: 759px) {
  /* The title and Questions on one row, then a step a line, the notes, the fold. */
  .pep-cpg { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "main main" "faq faq"; gap: 2px 12px; padding: 8px 12px 12px; }
  .pep-cpg-main { gap: 6px; }
  .pep-cpg-steps { display: grid; gap: 3px; }
  .pep-cpg-step + .pep-cpg-step::before { content: none; }
  .pep-cpg-qs { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------- traders to copy */
.pep-copy-page .pep-tpanel-head .pep-pills { flex-wrap: wrap; }
.pep-cpl-pickers { min-width: 0; }
.pep-cpl-anchor { height: 0; }
.pep-cpl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pep-cpl-foot .pep-tok-count { color: var(--pep-text-2); font-size: 13px; }
/* One grid for the whole table, the head and every row its subgrid (the directory's, traders.css .pep-trd-table):
   the trader's column takes what the figures leave. */
.pep-cpl-table {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(6, auto) auto;
  column-gap: 14px;
  min-width: 0;
}
.pep-cpl-head,
.pep-cpl-list,
.pep-cpl-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.pep-cpl-head,
.pep-cpl-row { padding: 10px 12px; }
.pep-cpl-head { padding-top: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--pep-line); color: var(--pep-text-3); font-size: 12px; font-weight: 600; }
.pep-cpl-head > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.pep-cpl-head > span:first-child { justify-content: flex-start; }
.pep-cpl-list { margin: 0; padding: 0; list-style: none; }
.pep-cpl-row { position: relative; border-bottom: 1px solid var(--pep-line); font-size: 14px; }
.pep-cpl-row:last-child { border-bottom: 0; }
.pep-cpl-row:hover { background: var(--pep-panel-2); }
.pep-cpl-who { display: grid; gap: 4px; min-width: 0; }
.pep-cpl-who .pep-trader { max-width: 100%; }
.pep-cpl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; padding-left: 40px; }
.pep-cpl-last { font-size: 12px; }
/* In the table the clan is its crest and tag (its name in the tooltip and for a screen reader): the figures keep the room. */
.pep-cpl-meta .pep-trd-clan bdi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A figure: the number, a line under it; its column's word only on a card (the head says it in the table). */
.pep-cpl-cell { display: grid; justify-items: end; gap: 1px; min-width: 0; text-align: right; }
.pep-cpl-cell > b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.pep-cpl-k {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pep-cpl-sub { color: var(--pep-text-3); font-size: 12px; white-space: nowrap; }
.pep-cpl-warn .pep-cpl-sub,
.pep-cpl-warn > b { color: var(--pep-warn); }
.pep-cpl-ret > b { font-size: 15px; }
.pep-cpl-copiers .pep-pod-fresh { margin-left: 5px; }
.pep-cpl-do { display: flex; justify-content: flex-end; min-width: 0; }
.pep-cpl-act { display: grid; justify-items: end; gap: 4px; min-width: 0; }
.pep-cpl-act .pep-btn { min-width: 96px; min-height: 34px; padding: 0 16px; border-radius: var(--pep-radius-pill); font-size: 13px; }
/* Copy in lime (the row's one primary); Manage copy outlined, the podium's pill (page.css .pep-pill-go). */
.pep-btn.pep-cpl-copy { font-weight: 700; }
.pep-btn.pep-cpl-manage { border: 1px solid var(--pep-line-strong); background: transparent; color: var(--pep-text); font-weight: 600; white-space: nowrap; }
.pep-btn.pep-cpl-manage:hover { border-color: var(--pep-text-2); background: var(--pep-panel-hover); }
.pep-cpl-act .pep-cp-note { max-width: 160px; font-size: 11px; line-height: 1.3; text-align: right; }
.pep-cpl-you { justify-self: end; }
/* A narrow page (a tablet, a phone, a window beside the rail under 860 px): a card per trader. The trader and the
   action on the first line, the six figures under them, three to a row, each with its word. */
@container pep-copy (max-width: 859px) {
  .pep-cpl-meta .pep-trd-clan bdi { position: static; width: auto; height: auto; overflow: hidden; clip-path: none; text-overflow: ellipsis; }
  .pep-cpl-head { display: none; }
  .pep-cpl-table,
  .pep-cpl-list { display: block; }
  .pep-cpl-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "who who do" "ret win dd" "risk copiers cpnl";
    gap: 12px 12px;
    padding: 14px 4px;
  }
  .pep-cpl-who { grid-area: who; }
  .pep-cpl-do { grid-area: do; align-self: start; }
  .pep-cpl-ret { grid-area: ret; }
  .pep-cpl-win { grid-area: win; }
  .pep-cpl-dd { grid-area: dd; }
  .pep-cpl-risk { grid-area: risk; }
  .pep-cpl-copiers { grid-area: copiers; }
  .pep-cpl-cpnl { grid-area: cpnl; }
  .pep-cpl-cell { justify-items: start; text-align: left; }
  .pep-cpl-k { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--pep-text-3); font-size: 11px; font-weight: 600; }
  .pep-cpl-sub { white-space: normal; }
}
/* The narrowest phones: two figures to a row. */
@container pep-copy (max-width: 359px) {
  .pep-cpl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "who do" "ret win" "dd risk" "copiers cpnl"; }
}
