/* Live dashboard (homepage "engine room"). Everything is scoped to .sr-dash: nothing here reaches the
   rest of the site, and the resets below keep the site's element and class rules out of the cards.
   Fonts are the site's own @font-face (DM Sans, Fragment Mono in settlerock.css). Sample data only. */

.sr-dash {
  --stone-0: #ffffff; --stone-50: #f4f4f4; --stone-100: #eaeaea; --stone-300: #b8b8b8; --stone-600: #4f4c4c; --stone-950: #151313;
  --bg: var(--stone-50);
  --card: var(--stone-0);
  --ink: var(--stone-950);
  --ink-2: var(--stone-600);
  --hairline: rgba(32, 29, 29, 0.10);
  --hairline-2: rgba(32, 29, 29, 0.18);
  --purple: #6840ff; /* logo mark and the selected nav item only */
  --tint: var(--stone-50);
  --tint-2: var(--stone-100);
  --lime: #a1ff62;
  --lime-soft: #e3ffd0;
  --ok: #157a41;
  --ok-tint: #e7f2ea;
  --bad: #b3251a;
  --bad-tint: #fbeae8;
  --dark: var(--stone-950);
  --on-dark: var(--stone-50);
  --on-dark-2: rgba(244, 244, 244, 0.64);
  --chart: var(--lime);
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-card: 28px; --r-tile: 20px; --r-action: 16px; --r-control: 12px; --r-nested: 8px; --r-xs: 4px; --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 200ms; --dur-2: 300ms; --dur-3: 500ms; --dur-4: 1200ms;
  --row-h: 64px;

  container: sr-dash / inline-size;
  position: relative;
  width: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* resets, scoped */
.sr-dash *, .sr-dash *::before, .sr-dash *::after { box-sizing: border-box; }
.sr-dash :where(p, dl, dd, dt) { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.sr-dash :where(a) { color: inherit; text-decoration: none; background: none; }
.sr-dash :where(b) { font-weight: 600; }
.sr-dash svg { display: block; max-width: none; }
.sr-dash :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-dash .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* numbers: sans with tabular figures; mono only for ids, refs and currency codes */
.sr-dash .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.sr-dash .code { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: -0.01em; font-feature-settings: "tnum" 1; }
.sr-dash .sample { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12px; line-height: 16px; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline); white-space: nowrap; }
.sr-dash .link { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; line-height: 18px; color: var(--ink-2); border-radius: var(--r-xs); transition: color var(--dur-1) var(--ease); }
.sr-dash .link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* shared surfaces */
.sr-dash .card { background: var(--card); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--hairline); }
.sr-dash .tile { background: var(--card); border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--hairline); padding: 20px; transition: transform var(--dur-2) var(--ease); }
.sr-dash .tile:hover { transform: translateY(-2px); }
.sr-dash .label { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sr-dash .mark { width: 24px; height: 24px; flex: none; }
.sr-dash .mark .top { fill: var(--ink); }
.sr-dash .mark .base { fill: var(--purple); }
.sr-dash .icon { width: 20px; height: 20px; flex: none; }

/* balance */
.sr-dash .big { display: flex; align-items: baseline; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.sr-dash .big .cents { color: var(--ink-2); letter-spacing: -0.02em; }
/* smaller cents and units sit on the figure's baseline without growing the line box */
.sr-dash .big .cents, .sr-dash .big .unit { line-height: 1; }
.sr-dash .balance__amt { font-size: 54px; line-height: 54px; margin-top: 8px; }
.sr-dash .balance__amt .cents { font-size: 26px; }
.sr-dash .balance__note { font-size: 12px; line-height: 16px; color: var(--ink-2); margin-top: 8px; }
.sr-dash .delta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.sr-dash .hl { display: inline-block; padding: 1px 4px; border-radius: var(--r-xs); background: var(--lime); color: var(--ink); font-weight: 500; }
.sr-dash .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sr-dash .cpill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-control); background: var(--bg); font-size: 13px; line-height: 18px; }
.sr-dash .cpill .code { color: var(--ink-2); }

/* action tiles */
.sr-dash .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.sr-dash .action { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 84px; padding: 12px; border-radius: var(--r-action); background: var(--tint); color: var(--ink); transition: transform var(--dur-2) var(--ease), background-color var(--dur-1) var(--ease); }
.sr-dash .action:hover { transform: translateY(-2px); background: var(--tint-2); }
.sr-dash .action span { font-size: 13px; line-height: 16px; font-weight: 500; }

/* the one dark card: volume */
.sr-dash .volume { background: var(--dark); color: var(--on-dark); border-radius: var(--r-tile); padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.sr-dash .volume__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; color: var(--on-dark-2); }
.sr-dash .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--on-dark-2); }
.sr-dash .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: sr-dash-pulse 2s var(--ease) infinite; }
@keyframes sr-dash-pulse { 0% { box-shadow: 0 0 0 0 rgba(161, 255, 98, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(161, 255, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(161, 255, 98, 0); } }
.sr-dash .volume__amt { font-size: 30px; line-height: 32px; margin-top: 8px; }
.sr-dash .volume__amt .cents { font-size: 16px; color: var(--on-dark-2); }
.sr-dash .chart { position: relative; height: 92px; margin: 12px -20px 0; border-radius: var(--r-xs); }
.sr-dash .chart:focus-visible { outline-color: var(--lime); outline-offset: -2px; }
.sr-dash .chart svg { width: 100%; height: 100%; overflow: visible; }
.sr-dash .chart__line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sr-dash .chart stop { stop-color: var(--chart); }
.sr-dash .chart stop:first-child { stop-opacity: 0.3; }
.sr-dash .chart stop:last-child { stop-opacity: 0.02; }
.sr-dash .chart__area { opacity: 0; transition: opacity var(--dur-3) var(--ease) var(--dur-2); }
.sr-dash .chart.is-drawn .chart__area { opacity: 1; }
.sr-dash .chart__cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(244, 244, 244, 0.22); opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease); }
.sr-dash .chart__dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(161, 255, 98, 0.4); opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease); }
.sr-dash .chart__tip { position: absolute; left: 0; top: 0; padding: 8px 12px; border-radius: var(--r-nested); background: var(--card); color: var(--ink); font-size: 12px; line-height: 16px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--dur-1) var(--ease); z-index: 2; }
.sr-dash .chart__tip b { display: block; font-weight: 500; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.sr-dash .chart.is-hover .chart__cursor, .sr-dash .chart.is-hover .chart__dot, .sr-dash .chart.is-hover .chart__tip { opacity: 1; }
.sr-dash .chart__end { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--chart); pointer-events: none; opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.sr-dash .chart.is-drawn .chart__end { opacity: 1; }
.sr-dash .volume__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; position: relative; }
.sr-dash .volume__foot dt { font-size: 12px; line-height: 16px; color: var(--on-dark-2); }
.sr-dash .volume__foot dd { font-size: 16px; line-height: 20px; font-weight: 500; margin-top: 4px; }
.sr-dash .volume__foot div:first-child dd { color: var(--lime); }

/* latest payments: one markup, laid out by the width of its container */
.sr-dash .tx-wrap { container: sr-dash-tx / inline-size; }
.sr-dash .tx__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.sr-dash .tx__title { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -0.02em; }
.sr-dash .tx-list { position: relative; height: calc(var(--row-h) * 4); overflow: hidden; }
.sr-dash .tx { position: absolute; left: 0; right: 0; top: 0; height: var(--row-h); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--hairline); transform: translateY(calc(var(--i) * var(--row-h))); transition: transform var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease); }
.sr-dash .tx.is-last { border-bottom-color: transparent; }
.sr-dash .tx.is-entering { opacity: 0; transform: translateY(calc(var(--row-h) * -0.5)); }
.sr-dash .tx.is-leaving { opacity: 0; }
.sr-dash .tx::before { content: ""; position: absolute; inset: 0 -20px; background: linear-gradient(90deg, rgba(161, 255, 98, 0.22), rgba(161, 255, 98, 0) 75%); opacity: 0; transition: opacity var(--dur-4) var(--ease); pointer-events: none; }
.sr-dash .tx.is-new::before { opacity: 1; transition-duration: var(--dur-2); }
.sr-dash .avatar { width: 32px; height: 32px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--bg); color: var(--ink-2); flex: none; }
.sr-dash .avatar .icon { width: 18px; height: 18px; }
.sr-dash .tx__who { min-width: 0; }
.sr-dash .tx__name { display: block; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-dash .tx__sub { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-2) var(--ease); }
.sr-dash .tx__sub.is-bad { color: var(--bad); }
.sr-dash .tx__sub.is-good { color: var(--ok); }
.sr-dash .tx__amt { text-align: right; font-size: 14px; line-height: 20px; font-weight: 500; }
.sr-dash .tx__amt small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-2); }
.sr-dash .tx__amt .amt-status { display: none; margin-top: 4px; }
.sr-dash .status { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.sr-dash .status--completed { background: var(--ok-tint); color: var(--ok); }
.sr-dash .status--processing { background: var(--stone-100); color: var(--ink-2); }
.sr-dash .status--processing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: sr-dash-spin 1s linear infinite; }
.sr-dash .status--rescued { background: var(--lime-soft); color: var(--ink); }
.sr-dash .status--declined { background: var(--bad-tint); color: var(--bad); }
@keyframes sr-dash-spin { to { transform: rotate(360deg); } }
@container sr-dash-tx (max-width: 420px) {
  .sr-dash .tx { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; }
  .sr-dash .tx > .status { display: none; }
  .sr-dash .tx__amt { display: flex; flex-direction: column; align-items: flex-end; }
  .sr-dash .tx__amt small { display: none; }
  .sr-dash .tx__amt .amt-status { display: inline-flex; }
}

.sr-dash .payouts { display: flex; justify-content: space-between; align-items: last baseline; gap: 12px; }
.sr-dash .payouts .big { font-size: 26px; line-height: 32px; margin-top: 8px; }
.sr-dash .payouts .big .cents { font-size: 14px; }

/* ================= A · compact card ================= */
.sr-dash .compact { max-width: 560px; margin: 0 auto; padding: 24px; gap: 16px; }
.sr-dash .compact__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sr-dash .compact__brand { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); min-width: 0; }
.sr-dash .compact__brand b { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; white-space: nowrap; }
.sr-dash .compact .tx-tile { padding: 20px 20px 8px; }
@container sr-dash (max-width: 480px) {
  .sr-dash .compact { padding: 16px; border-radius: 24px; gap: 12px; }
  .sr-dash .compact .tile, .sr-dash .compact .volume { padding: 16px; }
  .sr-dash .compact .tx-tile { padding: 16px 16px 4px; }
  .sr-dash .compact .chart { margin-left: -16px; margin-right: -16px; }
  .sr-dash .compact .balance__amt { font-size: 40px; line-height: 40px; }
  .sr-dash .compact .balance__amt .cents { font-size: 20px; }
  .sr-dash .compact .action { min-height: 76px; padding: 12px; }
  .sr-dash .compact .action span { font-size: 12px; }
}

/* ================= B · full dashboard ================= */
.sr-dash .frame { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 224px minmax(0, 1fr); overflow: hidden; }
.sr-dash .side { padding: 24px 16px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.sr-dash .side__nav { display: flex; flex-direction: column; gap: 4px; }
.sr-dash .side__logo { display: flex; align-items: center; gap: 8px; padding: 0 12px 20px; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.03em; }
.sr-dash .side__group { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); padding: 16px 12px 8px; }
.sr-dash .nav-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r-control); font-size: 14px; line-height: 20px; color: var(--ink); transition: background-color var(--dur-1) var(--ease); }
.sr-dash .nav-item .icon { color: var(--ink-2); }
.sr-dash .nav-item:hover { background: var(--bg); }
.sr-dash .nav-item.is-active { background: var(--bg); font-weight: 500; }
.sr-dash .nav-item.is-active .icon { color: var(--purple); }
.sr-dash .nav-item .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: var(--stone-100); color: var(--ink-2); font-size: 12px; line-height: 16px; font-weight: 600; display: grid; place-items: center; }
.sr-dash .side__bottom { margin-top: auto; padding-top: 16px; display: grid; gap: 4px; }

.sr-dash .frame__main { min-width: 0; background: var(--bg); }
.sr-dash .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--hairline); background: var(--card); }
.sr-dash .merchant { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sr-dash .merchant .avatar { background: var(--stone-100); color: var(--ink); }
.sr-dash .merchant__name { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.sr-dash .merchant__id { display: block; color: var(--ink-2); }
.sr-dash .topbar__right { display: flex; align-items: center; gap: 12px; }
.sr-dash .mode { display: inline-flex; padding: 4px; border-radius: var(--r-control); background: var(--bg); }
.sr-dash .mode span { height: 28px; padding: 0 12px; border-radius: var(--r-nested); font-size: 13px; line-height: 18px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.sr-dash .mode .is-on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline); }
.sr-dash .mode .is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0a500; }
.sr-dash .user { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.sr-dash .user .icon { width: 18px; height: 18px; }

.sr-dash .content { padding: 24px; display: grid; gap: 16px; }
.sr-dash .content__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sr-dash .content__title { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.sr-dash .content__sub { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-top: 4px; text-wrap: pretty; }
.sr-dash .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.sr-dash .btn--lime { background: var(--lime); color: var(--ink); }
.sr-dash .btn--line { background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.sr-dash .btn--dark { background: var(--ink); color: #fff; }
.sr-dash .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-dash .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sr-dash .kpi .label, .sr-dash .kpi__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-dash .kpi .big { font-size: 30px; line-height: 32px; margin-top: 8px; }
.sr-dash .kpi .big .unit, .sr-dash .kpi .big .cents { font-size: 16px; color: var(--ink-2); letter-spacing: 0; }
.sr-dash .kpi .big .unit { margin-left: 2px; }
.sr-dash .kpi__sub { font-size: 12px; line-height: 16px; color: var(--ink-2); margin-top: 8px; }
.sr-dash .kpi__sub .hl { padding: 0 4px; }
.sr-dash .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.sr-dash .row2__volume { display: flex; flex-direction: column; }
.sr-dash .row3 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sr-dash .stack { display: grid; gap: 16px; }
.sr-dash .frame .volume { flex: 1; }
.sr-dash .frame .volume .chart { height: auto; flex: 1; min-height: 120px; }
.sr-dash .frame .balance-tile .balance__amt { font-size: 46px; line-height: 46px; }
.sr-dash .frame .balance-tile .balance__amt .cents { font-size: 20px; }
.sr-dash .frame .tx-tile { padding: 20px 20px 8px; }

.sr-dash .alert { display: grid; gap: 12px; }
.sr-dash .alert__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-dash .alert__title { font-weight: 500; font-size: 16px; line-height: 24px; letter-spacing: -0.02em; }
.sr-dash .alert__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sr-dash .alert__stats div { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; background: var(--bg); border-radius: var(--r-control); padding: 12px; min-width: 0; }
.sr-dash .alert__stats dt { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.sr-dash .alert__stats dd { font-size: 20px; line-height: 24px; font-weight: 500; letter-spacing: -0.02em; }
.sr-dash .alert__stats dd.down { color: var(--bad); }
.sr-dash .alert__fix { font-size: 13px; line-height: 18px; color: var(--ink-2); text-wrap: pretty; }
.sr-dash .alert__fix b { color: var(--ink); font-weight: 500; }
.sr-dash .alert__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-dash .alert__actions .btn { min-height: 36px; font-size: 13px; line-height: 18px; padding: 0 16px; }

/* card B narrows with its slot, not the window */
@container sr-dash (max-width: 1040px) {
  .sr-dash .frame { grid-template-columns: 72px minmax(0, 1fr); }
  .sr-dash .side { padding: 24px 12px; align-items: center; }
  .sr-dash .side__logo span, .sr-dash .nav-item .txt, .sr-dash .side__group, .sr-dash .nav-item .badge { display: none; }
  .sr-dash .side__logo { padding: 0 0 20px; }
  .sr-dash .nav-item { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .sr-dash .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container sr-dash (max-width: 840px) { .sr-dash .row2, .sr-dash .row3 { grid-template-columns: minmax(0, 1fr); } }
@container sr-dash (max-width: 600px) {
  .sr-dash .frame { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .sr-dash .side { display: none; }
  .sr-dash .topbar { padding: 12px 16px; }
  .sr-dash .merchant__id { display: none; }
  .sr-dash .content { padding: 16px; gap: 12px; }
  .sr-dash .kpis { gap: 12px; }
  .sr-dash .kpi { padding: 16px; }
  .sr-dash .kpi .label, .sr-dash .kpi__sub { white-space: normal; overflow: visible; }
  .sr-dash .kpi .label { min-height: 36px; }
  .sr-dash .kpi__sub { min-height: 32px; }
  .sr-dash .kpi .big { font-size: 26px; }
  .sr-dash .frame .balance-tile { padding: 16px; }
  .sr-dash .frame .balance-tile .balance__amt { font-size: 40px; line-height: 40px; }
  .sr-dash .alert__stats dd { font-size: 16px; line-height: 20px; }
}

/* one card per width: B (full) from 768px, A (compact) below. Last, so it wins over the layout rules above */
.sr-dash .compact { display: none; }
@media (max-width: 767px) {
  .sr-dash .frame { display: none; }
  .sr-dash .compact { display: grid; }
}

/* entrance: hidden only once the script has armed it, so without JS (or with reduced motion) the cards just show */
.sr-dash.is-armed .rise { opacity: 0; transform: translateY(12px); }
.sr-dash.is-armed.is-ready .rise { animation: sr-dash-rise var(--dur-3) var(--ease) forwards; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes sr-dash-rise { to { opacity: 1; transform: none; } }

/* off-screen or hidden tab: loops stop */
.sr-dash.is-paused .live i, .sr-dash.is-paused .status--processing::before { animation-play-state: paused; }

/* reduced motion (or the site's ?static switch): final state, no movement */
@media (prefers-reduced-motion: reduce) {
  .sr-dash .tile, .sr-dash .action, .sr-dash .tx, .sr-dash .tx::before, .sr-dash .tx__sub, .sr-dash .status, .sr-dash .chart__area, .sr-dash .chart__end, .sr-dash .btn, .sr-dash .link, .sr-dash .nav-item { transition: none; }
  .sr-dash .tile:hover, .sr-dash .action:hover { transform: none; }
  .sr-dash .live i, .sr-dash .status--processing::before { animation: none; }
}
.sr-static .sr-dash .tile, .sr-static .sr-dash .action, .sr-static .sr-dash .tx, .sr-static .sr-dash .tx::before, .sr-static .sr-dash .tx__sub, .sr-static .sr-dash .status, .sr-static .sr-dash .chart__area, .sr-static .sr-dash .chart__end, .sr-static .sr-dash .nav-item { transition: none; }
.sr-static .sr-dash .tile:hover, .sr-static .sr-dash .action:hover { transform: none; }
.sr-static .sr-dash .live i, .sr-static .sr-dash .status--processing::before { animation: none; }
