/* WeEdit — key-number tiles (Turnover, Collected…), same design on phone and computer:
   iOS-style colour icon + coloured label on one row, big number, one-line note, soft glow in the tile's
   own colour. --acc ("r,g,b") is set per tile by phoneui.js. Loaded last. */
html body .cards > .card {
  --acc: 200,169,107;
  display: grid !important; grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-areas: "ico top" "num num" "note note" !important; grid-template-rows: auto auto auto !important;
  align-content: start !important; align-items: center !important; column-gap: 11px !important; row-gap: 0 !important;
  position: relative; overflow: hidden; isolation: isolate; min-height: 0 !important;
  padding: 18px 18px 17px !important; border-radius: 18px !important;
  border: 1px solid rgba(var(--acc), .22) !important; border-left-width: 1px !important;
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--acc), .16) 0%, rgba(var(--acc), .05) 45%, transparent 75%), #fff !important;
  box-shadow: 0 1px 2px #0000000a;
}
html body.dark .cards > .card {
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--acc), .17) 0%, rgba(var(--acc), .05) 45%, transparent 75%), #111723 !important;
  border-color: rgba(var(--acc), .20) !important; box-shadow: inset 0 1px 0 #ffffff08;
}
html body .cards > .card > .kicon {
  grid-area: ico !important; position: relative !important; inset: auto !important; align-self: center !important; justify-self: start !important;
  display: grid !important; place-items: center; width: 30px !important; height: 30px !important; margin: 0 !important; border-radius: 9px !important;
  border: 0 !important; color: #fff !important; box-shadow: 0 2px 6px rgba(var(--acc), .35) !important;
  background: linear-gradient(160deg, rgba(var(--acc), .85), rgb(var(--acc))) !important;
}
html body.dark .cards > .card > .kicon { background: linear-gradient(160deg, rgba(var(--acc), .85), rgb(var(--acc))) !important; color: #fff !important; }
html body .cards > .card > .kicon::before { display: none !important; }
html body .cards > .card > .kicon svg { width: 17px !important; height: 17px !important; stroke-width: 2.3; }
html body .cards > .card > .cardtop {
  grid-area: top !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important;
  font: 600 13.5px/1.2 'DM Sans', sans-serif !important; color: rgb(var(--acc)) !important;
  display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body.dark .cards > .card > .cardtop { color: color-mix(in srgb, rgb(var(--acc)) 78%, white) !important; }
html body .cards > .card > .cardtop .cardicon { display: none !important; }
html body .cards > .card > .metric {
  grid-area: num !important; align-self: end !important; margin: 16px 0 0 !important; text-align: start !important; white-space: nowrap;
  font: 800 29px/1.05 Manrope, sans-serif !important; letter-spacing: -.5px; overflow: hidden; text-overflow: clip;
}
html body .cards > .card > .metric small { color: inherit !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0; opacity: .9; margin-inline-start: 3px; }
html body .cards > .card > .trend {
  grid-area: note !important; margin: 7px 0 0 !important; font: 400 12.5px/1.3 'DM Sans', sans-serif !important;
  white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; color: #8b93a1;
}
html body.dark .cards > .card > .trend { color: #9aa3b2; }
html body .cards > :not(.card) { width: auto; }

/* ---------- PHONE: symmetric 2 × 2 grid, compact sizes ---------- */
@media (max-width: 760px) {
  html body .cards { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: stretch !important; }
  html body .cards > :not(.card) { grid-column: 1 / -1 !important; }
  html body .cards > .card:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  html body .cards > .card { grid-template-columns: 23px minmax(0, 1fr) !important; column-gap: 8px !important; padding: 10px 10px 10px 11px !important; border-radius: 14px !important; }
  html body .cards > .card > .kicon { width: 23px !important; height: 23px !important; border-radius: 7px !important; }
  html body .cards > .card > .kicon svg { width: 13px !important; height: 13px !important; }
  html body .cards > .card > .cardtop { font-size: 10.5px !important; }
  html body .cards > .card > .metric { margin: 9px 0 0 !important; font-size: 20.5px !important; letter-spacing: -.4px; }
  html body .cards > .card > .metric small { font-size: 10px !important; }
  html body .cards > .card > .trend { margin: 4px 0 0 !important; font-size: 9.5px !important; }
}

/* Overview first row: Turnover, Estimated revenue, Collected, Outstanding, Net profit */
@media (min-width: 761px) { html body #Overview .cards:has(> .kpi-estimate) { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); } }

/* payment split preview */
.pay-split{display:grid;gap:6px;margin-top:6px}.pay-split>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:9px 12px;border:1px solid #c8a96b44;border-radius:10px;background:#c8a96b0f}.pay-split b{font-weight:700}.pay-split span{font-weight:800;color:#a8873f}.pay-split small{grid-column:1/-1;color:#8b948e;font-size:12px}

/* collected revenue: editors' share, small under the % */
html body .cards > .card .trend .edshare{display:block;margin-top:3px;font-size:11.5px;font-weight:700;color:#b98a35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html body .cards > .card .trend .edshare span{font-weight:500;color:inherit;opacity:.85}
@media (max-width:760px){html body .cards > .card .trend .edshare{font-size:9.5px;margin-top:2px}}
html body .cards > .card .trend .edshare.me{color:#7b5cd6;white-space:normal}
