/* Merchant and agent cabinets only. The design system (tokens, shell, components) is /ui/ui.css. */
.hero { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: var(--s4); margin-bottom: var(--s4); }
.hero .totals { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .hero .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hero .totals { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* the balance card: the one place the brand colour fills a surface */
.due-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s6) var(--s5) var(--s5); display: grid; gap: 4px; align-content: start;
  color: #fff; background: linear-gradient(150deg, #FF7A3D 0%, #F94603 45%, #C43A00 100%);
  box-shadow: 0 12px 32px rgba(217, 63, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.due-card::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); pointer-events: none; }
.due-card .muted { color: rgba(255, 255, 255, .82); }
.due-card b { font: 700 36px/1.1 var(--font-rounded); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.due-card .acts-bar { margin-top: var(--s3); position: relative; z-index: 1; }
.due-card .primary { background: #fff; color: #C43A00; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.due-card .ghost, .due-card a.btn { background: rgba(255, 255, 255, .2); color: #fff; }
.due-card .ghost:hover, .due-card a.btn:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 720px) { .due-card b { font-size: 30px; } }

.methods { display: grid; gap: var(--s4); }
.method .mrow { display: flex; justify-content: space-between; gap: var(--s3); font-size: 14px; }
.meter .w1 { width: 5%; } .meter .w2 { width: 10%; } .meter .w3 { width: 15%; } .meter .w4 { width: 20%; }
.meter .w5 { width: 25%; } .meter .w6 { width: 30%; } .meter .w7 { width: 35%; } .meter .w8 { width: 40%; }
.meter .w9 { width: 45%; } .meter .w10 { width: 50%; } .meter .w11 { width: 55%; } .meter .w12 { width: 60%; }
.meter .w13 { width: 65%; } .meter .w14 { width: 70%; } .meter .w15 { width: 75%; } .meter .w16 { width: 80%; }
.meter .w17 { width: 85%; } .meter .w18 { width: 90%; } .meter .w19 { width: 95%; } .meter .w20 { width: 100%; }

/* payment sheet */
.tx-row { cursor: pointer; }
.tx-row:focus-visible td { background: var(--tint-soft); }
.tx-hero { display: grid; gap: 6px; justify-items: start; }
.tx-hero b { font: 700 38px/1.1 var(--font-rounded); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--separator); }
.tl:last-child::before { display: none; }
.tl > div { display: grid; gap: 2px; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--fill-3); display: grid; place-items: center; }
.tl.done .tl-dot { background: var(--green); }
.tl.bad .tl-dot { background: var(--red); }
.tl.wait .tl-dot { background: var(--orange); }
.tl-dot::after { content: ""; width: 12px; height: 12px; background: #fff; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.tl.bad .tl-dot::after { -webkit-mask-image: var(--i-x); mask-image: var(--i-x); }
.tl.wait .tl-dot::after { -webkit-mask-image: var(--i-clock); mask-image: var(--i-clock); }
.copyline { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.copyline code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }

/* launch checklist (until the first payment) */
.meter .w0 { width: 0; }
.launch-list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; }
.launch-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 10px 0; border-bottom: .5px solid var(--separator); }
.launch-list li:last-child { border-bottom: 0; }
.launch-list li > div { display: grid; gap: 2px; }
.launch-list li.done .tl-dot { background: var(--green); }
.launch-list li:not(.done) .tl-dot::after { -webkit-mask: none; mask: none; width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); }
.launch-list li.done b { color: var(--label-2); font-weight: 500; }

/* agent cabinet: its two lists side by side get equal room */
#overview .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { #overview .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* a link's QR code */
.qr-block { display: flex; gap: var(--s4); align-items: center; padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.qr-block img { flex: none; width: 168px; height: 168px; border-radius: 12px; background: #fff; }
.qr-block > div { display: grid; gap: 6px; }
.qr-block .acts-bar { margin-top: 4px; }
@media (max-width: 520px) { .qr-block { flex-direction: column; align-items: flex-start; } }

/* long one-line snippets (a pay button for a site) wrap inside sheets */
.dlg pre.code { white-space: pre-wrap; word-break: break-all; }
