/* NovaPay web UI. Fictional company for The Cloud Bootcamp's AI Agents Bootcamp. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --ink: #0e1020;
  --ink-2: #474c63;
  --ink-3: #6b7088;
  --line: #e3e5ee;
  --line-2: #eef0f5;
  --brand: #5434e6;
  --brand-ink: #4326c9;
  --brand-soft: #f0ecff;
  --brand-line: #d9d0ff;
  --green: #0b7a46; --green-bg: #e5f5ec; --green-dot: #16a35f;
  --amber: #9a5200; --amber-bg: #fff2df; --amber-dot: #e68a00;
  --red: #b4202b; --red-bg: #fdeaea; --red-dot: #e0343f;
  --grey: #555b70; --grey-bg: #eef0f4; --grey-dot: #9aa0b3;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 16, 32, .04), 0 4px 14px rgba(14, 16, 32, .05);
  --shadow-lg: 0 10px 30px rgba(14, 16, 32, .10);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.5; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.num, .money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; display: block; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.topbar .env { margin-left: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-dot); display: inline-block; flex: none; }
.dot.ok { background: var(--green-dot); box-shadow: 0 0 0 3px var(--green-bg); }
.dot.bad { background: var(--red-dot); box-shadow: 0 0 0 3px var(--red-bg); }
@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .topbar .env { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 32px); margin: 6px -16px 0; padding: 0 12px 8px; }
}

main { flex: 1; padding: 28px 0 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.updated { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }

.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 28px; font-size: 13px; color: var(--ink-3); }
.footer .wrap { display: flex; gap: 8px 20px; justify-content: space-between; flex-wrap: wrap; }

.ribbon { background: #1b1440; color: #fff; font-size: 13px; text-align: center; padding: 7px 16px; }
.ribbon strong { color: #c9bcff; font-weight: 600; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head p { color: var(--ink-3); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 13px; color: var(--ink-3); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; }
.kpi .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.kpi.accent { background: linear-gradient(160deg, #5434e6 0%, #3b20b8 100%); border-color: transparent; color: #fff; }
.kpi.accent .label, .kpi.accent .sub { color: rgba(255, 255, 255, .78); }
@media (max-width: 420px) { .kpi .value { font-size: 23px; } .kpi { padding: 14px 16px; } }

/* ---------- buttons, inputs ---------- */
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: #cfd2de; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #f3c3c6; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 12px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; min-height: 48px; font-variant-numeric: tabular-nums; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--red-dot); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- pills & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 10px 4px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.amber { color: var(--amber); background: var(--amber-bg); }
.pill.red { color: var(--red); background: var(--red-bg); }
.pill.grey { color: var(--grey); background: var(--grey-bg); }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.badge.customer { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand-line); }
.badge.robot { color: #0b5f73; background: #e3f5f9; border-color: #c4e8f0; }
.badge.seed { color: var(--grey); background: var(--grey-bg); border-color: #e0e3ea; }
.badge.succeeded { color: var(--green); background: var(--green-bg); }
.badge.refunded { color: var(--amber); background: var(--amber-bg); }

/* ---------- tables (collapse to cards on phones) ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 20px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fbfbfe; }
.t .r { text-align: right; }
.t .amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .items { color: var(--ink-2); max-width: 360px; }
.t a.rowlink { color: inherit; }
.new-row td { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: var(--brand-soft); } to { background: transparent; } }
@media (max-width: 720px) {
  table.t, .t tbody, .t tr, .t td { display: block; width: 100%; }
  .t thead { display: none; }
  .t tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .t tr:last-child { border-bottom: 0; }
  .t td { padding: 0; border: 0; }
  .t td[data-label]::before { content: attr(data-label) " "; color: var(--ink-3); font-size: 12px; }
  .t td.r { text-align: right; }
  .t td.span { grid-column: 1 / -1; }
  .t .items { max-width: none; font-size: 13.5px; }
  .t tbody tr:hover td { background: transparent; }
}

/* ---------- states ---------- */
.state { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.state h3 { margin-bottom: 6px; color: var(--ink); }
.state p { max-width: 460px; margin: 0 auto 14px; font-size: 14px; }
.state .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--line-2); font-size: 20px; }
.state.error .icon { background: var(--red-bg); color: var(--red); }
.state code { font-family: var(--mono); font-size: 12.5px; background: var(--line-2); padding: 2px 6px; border-radius: 5px; }
.skel { background: linear-gradient(90deg, var(--line-2) 25%, #f7f8fb 50%, var(--line-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 8px; height: 14px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: var(--red-bg); color: var(--red); }
.alert.info { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.hero-main { padding: 36px; position: relative; overflow: hidden; }
.hero-main h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.035em; max-width: 520px; }
.hero-main h1 em { font-style: normal; color: var(--brand); }
.hero-main .lead { font-size: 17px; color: var(--ink-2); margin-top: 14px; max-width: 520px; }
.hero-main .motto { margin-top: 22px; color: var(--ink-2); font-style: italic; }
.hero-main .actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-main::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(84, 52, 230, .13), transparent 70%); pointer-events: none; }
.qr-card { padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: 100%; max-width: 260px; aspect-ratio: 1; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-card .url { font-family: var(--mono); font-size: 13px; color: var(--ink-2); word-break: break-all; }
.links { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.link-card { padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.link-card:hover { text-decoration: none; color: var(--ink); border-color: var(--brand-line); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.link-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.link-card p { color: var(--ink-2); font-size: 14px; }
.link-card .path { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .links { grid-template-columns: 1fr; } .hero-main { padding: 24px; } .hero-main h1 { font-size: 31px; } }

/* ---------- checkout ---------- */
.merchant-bar { background: #2b1d14; color: #f7efe6; }
.merchant-bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.merchant-logo { width: 46px; height: 46px; border-radius: 12px; background: #f3e3cf; color: #2b1d14; display: grid; place-items: center; font-size: 24px; flex: none; }
.merchant-bar h1 { font-size: 20px; color: #fff; }
.merchant-bar .by { font-size: 13px; color: #d9c8b6; display: flex; align-items: center; gap: 6px; }
.merchant-bar .by img { width: 16px; height: 16px; }
.co { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.co-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.fav { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--brand-line); background: linear-gradient(120deg, #f4f0ff, #fff 70%); border-radius: var(--radius); margin-bottom: 20px; }
.fav .emojis { font-size: 26px; letter-spacing: -2px; flex: none; }
.fav .txt { flex: 1; min-width: 0; }
.fav .tag { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.fav h3 { font-size: 16px; margin-top: 2px; }
.fav p { font-size: 13.5px; color: var(--ink-2); }
.menu { grid-template-columns: repeat(2, 1fr); }
.item { display: flex; gap: 14px; padding: 16px; align-items: center; }
.item .em { width: 52px; height: 52px; border-radius: 12px; background: #faf5ef; display: grid; place-items: center; font-size: 26px; flex: none; }
.item .info { flex: 1; min-width: 0; }
.item .info h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item .info p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.item .price { font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; font-size: 14px; }
.popular { font-size: 10.5px; font-weight: 700; color: var(--amber); background: var(--amber-bg); padding: 1px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.qty button { appearance: none; border: 0; background: var(--surface); width: 40px; height: 40px; font-size: 20px; color: var(--brand); cursor: pointer; font-weight: 600; }
.qty button:hover { background: var(--brand-soft); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.add { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); font-size: 22px; font-weight: 600; cursor: pointer; flex: none; }
.add:hover { background: var(--brand); color: #fff; }
.cart-lines { padding: 6px 20px; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line-2); font-weight: 700; font-size: 18px; }
.test-hint { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.test-hint strong { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.pay-form { display: flex; flex-direction: column; gap: 12px; }
.secure { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; justify-content: center; }
.sticky-pay { display: none; }
@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .menu { grid-template-columns: 1fr; }
  .sticky-pay { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(14, 16, 32, .06); }
  .sticky-pay .tot { flex: none; line-height: 1.2; }
  .sticky-pay .tot small { display: block; color: var(--ink-3); font-size: 12px; }
  .sticky-pay .tot strong { font-size: 18px; font-variant-numeric: tabular-nums; }
  .sticky-pay .btn { flex: 1; }
  body.has-sticky main { padding-bottom: 110px; }
  #pay-btn { display: none; }
}

/* ---------- receipt ---------- */
.receipt { max-width: 480px; margin: 0 auto; overflow: hidden; }
.receipt-top { text-align: center; padding: 30px 24px 22px; background: linear-gradient(180deg, var(--green-bg), #fff); }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--green-dot); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 8px rgba(22, 163, 95, .14); }
.receipt-top .amt { font-size: 40px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.receipt-body { padding: 8px 24px 24px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv span:first-child { color: var(--ink-3); }
.kv span:last-child { text-align: right; font-weight: 500; }
.receipt .perf { height: 14px; background: radial-gradient(circle at 7px 0, var(--bg) 6px, transparent 6.5px) repeat-x; background-size: 14px 14px; }

/* ---------- dashboard chart ---------- */
.dash-grid { grid-template-columns: 1.6fr 1fr; margin-top: 16px; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.chart { padding: 8px 16px 16px; }
.chart svg { width: 100%; height: 230px; display: block; overflow: visible; }
.chart .bar { fill: #d6cdff; transition: fill .15s; }
.chart .bar.today { fill: var(--brand); }
.chart g:hover .bar { fill: var(--brand-ink); }
.chart text { font-family: var(--font); font-size: 11.5px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .val { fill: var(--ink-2); font-weight: 600; }
.chart .grid-line { stroke: var(--line-2); }
.payout-card .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- payouts ---------- */
.evening { margin-bottom: 16px; }
.evening .card-head h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count-badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--grey-bg); color: var(--grey); }
.count-badge.many { background: var(--amber-bg); color: var(--amber); }
.evening .total { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.cron { font-family: var(--mono); font-size: 12.5px; background: var(--line-2); padding: 2px 7px; border-radius: 6px; color: var(--ink); white-space: nowrap; }

/* ---------- status ---------- */
.banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid; margin-bottom: 20px; }
.banner .big-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.banner h2 { font-size: 20px; }
.banner p { font-size: 14px; margin-top: 2px; }
.banner.red { background: var(--red-bg); border-color: #f5c9cc; color: var(--red); } .banner.red .big-dot { background: var(--red-dot); box-shadow: 0 0 0 6px rgba(224, 52, 63, .15); }
.banner.amber { background: var(--amber-bg); border-color: #f7dcb5; color: var(--amber); } .banner.amber .big-dot { background: var(--amber-dot); box-shadow: 0 0 0 6px rgba(230, 138, 0, .15); }
.banner.green { background: var(--green-bg); border-color: #bfe6cf; color: var(--green); } .banner.green .big-dot { background: var(--green-dot); box-shadow: 0 0 0 6px rgba(22, 163, 95, .15); }
.banner.grey { background: var(--grey-bg); border-color: #dfe2ea; color: var(--grey); } .banner.grey .big-dot { background: var(--grey-dot); }
.banner .counts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.srow { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.srow:last-child { border-bottom: 0; }
.srow.red { background: #fffafa; }
.srow .area { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.srow .area h3 { font-size: 16px; }
.srow .summary { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.srow ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.srow li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.srow li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.srow .tracks { font-size: 12px; color: var(--ink-3); }
@media (max-width: 720px) { .srow { grid-template-columns: 1fr; gap: 10px; padding: 16px; } .srow .area { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .banner { flex-wrap: wrap; } .banner .counts { margin-left: 34px; justify-content: flex-start; } }

/* duplicated amount cell: one placed for the phone card layout, one for the desktop column */
.t td[data-m] { display: none; }
@media (max-width: 720px) {
  .t td[data-m] { display: block; font-size: 16px; }
  .t td[data-d] { display: none; }
  .t td.muted[data-label] { grid-column: 1 / -1; font-size: 12.5px; }
}
.toast { pointer-events: none; }
@media (max-width: 900px) { body.has-sticky .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (max-width: 560px) {
  .fav { flex-wrap: wrap; gap: 10px 14px; padding: 16px; }
  .fav .txt { flex: 1 1 calc(100% - 80px); }
  .fav .btn { width: 100%; min-height: 48px; }
  .ribbon { font-size: 12px; }
}
@media (max-width: 720px) { .banner .counts { margin-left: 0; width: 100%; } }
@media (max-width: 420px) { .nav a { padding: 8px 9px; font-size: 13.5px; } }
