/* Design system mirrored from my.easysendglobal.com (probe 2026-06-09):
   Golos Text font, light theme, pink accent, pill-shaped controls. */

:root {
  --bg: #ececf0;
  --panel: #ffffff;
  --content-bg: #f5f6fa;
  --border: #e2e8f0;
  --text: #2d2c33;
  --text-soft: rgba(18, 18, 18, 0.64);
  --muted: #86858c;
  --faint: rgba(18, 18, 18, 0.48);
  --subtle: rgba(18, 18, 18, 0.04);
  --subtle-2: rgba(18, 18, 18, 0.08);
  --accent: #e7428b;
  --accent-soft: rgba(231, 66, 139, 0.1);
  --green: #008a53;
  --green-bg: rgba(0, 173, 104, 0.08);
  --red: #d33;
  --red-bg: rgba(221, 51, 51, 0.08);
  --amber: #946300;
  --amber-bg: rgba(255, 184, 0, 0.12);
  --radius: 12px;
  --radius-pill: 32px;
  --shadow-card: 0 1px 2px rgba(18, 18, 18, 0.04);
  --shadow-auth: 0 4px 24px rgba(18, 18, 18, 0.06);
  /* Native controls (date picker, scrollbars, calendar icon) follow the theme. */
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14161c;
  --panel: #1c1f27;
  --content-bg: #181b22;
  --border: #2a2e3a;
  --text: #e6e8ee;
  --text-soft: rgba(230, 232, 238, 0.72);
  --muted: #8b90a0;
  --faint: rgba(230, 232, 238, 0.48);
  --subtle: rgba(255, 255, 255, 0.06);
  --subtle-2: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(231, 66, 139, 0.18);
  --green: #2ecf8e;
  --green-bg: rgba(0, 173, 104, 0.16);
  --red: #ff6b6b;
  --red-bg: rgba(221, 51, 51, 0.16);
  --amber: #ffc14d;
  --amber-bg: rgba(255, 184, 0, 0.14);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-auth: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 "Golos Text", system-ui, -apple-system, "Segoe UI",
        Roboto, sans-serif;
}

/* Simplified-Chinese typography: keep Golos Text for Latin/digits, then a
   region-appropriate CJK stack so Chinese never falls back to Japanese or
   Korean glyph shapes. Slightly looser line-height for denser Han text. */
html[lang="zh"] body {
  font-family: "Golos Text", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
        system-ui, sans-serif;
  line-height: 1.6;
}

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}
.brand { padding: 4px 8px 20px; }
.brand .name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.brand .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { background: var(--subtle); }
.nav a.active { background: var(--accent); color: #fff; font-weight: 500; }
.nav a .ico { width: 18px; text-align: center; color: var(--faint); }
.nav a.active .ico { color: #fff; }

.sidebar .foot { margin-top: auto; padding-top: 16px; }
.sidebar .foot button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  padding: 0 12px;
}
.sidebar .foot button:hover { background: var(--subtle); color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.topbar .stat {
  background: var(--content-bg);
  border-radius: var(--radius);
  padding: 8px 18px;
  text-align: center;
}
.topbar .stat .label { font-size: 11px; color: var(--muted); }
.topbar .stat .value { font-size: 15px; font-weight: 600; }
.topbar .who { font-size: 14px; color: var(--text-soft); }
.topbar-balance { display: flex; gap: 12px; margin-right: auto; }
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar-balance { gap: 8px; }
  .topbar .stat { padding: 6px 12px; }
  .topbar .stat .value { font-size: 14px; }
}

.vid-tag { color: var(--muted); font-size: 12px; text-decoration: none;
  white-space: nowrap; }
.vid-tag svg { vertical-align: -1px; margin-left: 1px; opacity: .8; }
.vid-tag:hover { color: var(--accent); }

.content { padding: 24px 28px; }
.content h1 { font-size: 26px; font-weight: 700; margin: 0 0 20px; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

/* ---------- Pills / tabs ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--subtle);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.pill:hover { background: var(--subtle-2); }
.pill.active { background: var(--accent); color: #fff; }

/* ---------- Tables ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
table.list td {
  font-size: 15px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
table.list tr:last-child td { border-bottom: 0; }
table.list tr:hover td { background: var(--content-bg); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.err { background: var(--red-bg); color: var(--red); }
.badge.neutral { background: var(--subtle-2); color: var(--text); }

/* ---------- Forms ---------- */
label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
input, select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--subtle);
  color: var(--text-soft);
}
.btn:hover { background: var(--subtle-2); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #d63a7f; }
.btn.block { width: 100%; }

.err-msg { color: var(--red); margin-top: 14px; font-size: 14px; }

/* ---------- Section pages (toolbars, filters, pagination) ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar h1 { margin: 0; }
.toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.filters input, .filters select { width: auto; padding: 9px 12px; }
.filters input[type="date"] { min-width: 150px; }
.filters .grow { flex: 1; min-width: 180px; }

.pill .count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 12px;
}
.pill:not(.active) .count { background: var(--subtle-2); }

.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cell-main { font-weight: 600; }
td .mono { font-family: ui-monospace, monospace; font-size: 13px; }
table.list a { color: inherit; text-decoration: none; }
table.list a:hover { color: var(--accent); }

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}
.pager a, .pager span.dis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--subtle);
  color: var(--text-soft);
  text-decoration: none;
}
.pager a:hover { background: var(--subtle-2); }
.pager span.dis { opacity: 0.4; }

.flash-ok, .flash-err {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash-ok { background: var(--green-bg); color: var(--green); }
.flash-err { background: var(--red-bg); color: var(--red); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-grid .stat {
  background: var(--content-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-grid .label { font-size: 12px; color: var(--muted); }
.stat-grid .value { font-size: 20px; font-weight: 700; margin-top: 2px; }

.dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 700px) {
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dt { margin-top: 10px; }
}

.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: 160px; }
.shift-controls { display: flex; flex-direction: column; gap: 16px; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); }
/* Order actions: each is a vertical card — amount input on top, full-width
   button underneath (not all six elements crammed into one row). */
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.order-action { display: flex; flex-direction: column; gap: 8px;
  flex: 1 1 160px; min-width: 150px; }
.order-action input { width: 100%; }
.card + .card, .card + h2, h2 + .card { margin-top: 20px; }
.content h2 { font-size: 19px; font-weight: 700; margin: 24px 0 14px; }

/* ---------- Auth pages (login / setup) ---------- */
body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.auth-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 32px;
  width: 380px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-auth);
}
.auth-card h1 { font-size: 32px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.3px; }
.auth-card p.lead { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.auth-card .btn { margin-top: 22px; }

/* easysend-style label-less inputs on auth cards */
.auth-card input, .auth-card select {
  height: 56px;
  padding: 16px;
  margin-top: 12px;
  background: var(--subtle);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.06);
  font-size: 15px;
}
.auth-card input::placeholder { color: var(--faint); }
.auth-card input:focus, .auth-card select:focus {
  box-shadow: inset 0 0 0 2px rgba(231, 66, 139, 0.92);
}
html[data-theme="dark"] .auth-card input,
html[data-theme="dark"] .auth-card select {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .auth-card input:focus,
html[data-theme="dark"] .auth-card select:focus {
  box-shadow: inset 0 0 0 2px rgba(231, 66, 139, 0.92);
}
.auth-card label { margin: 14px 0 0; }
.auth-card label + input, .auth-card label + select { margin-top: 6px; }

/* 2FA screen */
.auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.auth-head h1 { margin: 0; font-size: 24px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--subtle);
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}
.btn-back:hover { background: var(--subtle-2); }
.otp-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.otp-box {
  width: 46px;
  height: 56px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 0;
  background: var(--subtle);
  box-shadow: inset 0 0 0 1px var(--border);
}
.auth-card .otp-box { margin-top: 0; height: 56px; width: 46px; padding: 0; }
.otp-box:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(231, 66, 139, 0.92);
}
.auth-card code {
  display: block;
  background: var(--content-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 6px;
  word-break: break-all;
  font-size: 13px;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  width: 38px;
  height: 38px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--subtle); }
.theme-toggle .moon { display: inline; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: inline; }
body.auth .theme-toggle { position: fixed; top: 16px; right: 16px; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-toggle:hover { background: var(--subtle); }
body.auth .lang-toggle { position: fixed; top: 16px; right: 62px; }

/* ---------- Tables on small screens ---------- */
/* Tables stay multi-column on phones and scroll sideways inside their card
   instead of crushing cells into unreadable wraps. The min-width makes the
   horizontal scroll intentional rather than accidental clipping. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .table-wrap > table.list { min-width: 560px; }
}

/* ---------- Mobile ---------- */
.burger {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.scrim { display: none; }

@media (max-width: 900px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: none;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
  .shell.nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
  }

  .topbar {
    justify-content: space-between;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .content { padding: 16px; }
  .content h1 { font-size: 22px; margin-bottom: 14px; }
  .card { padding: 16px; border-radius: var(--radius); }
  table.list th { padding: 10px 12px; }
  table.list td { padding: 12px; font-size: 14px; }
  .auth-card { padding: 24px 20px; }
}

@media (max-width: 560px) {
  /* Stack the page title above its action buttons; let the buttons share the
     row and the date filters grow to fill the width instead of overflowing. */
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .actions { width: 100%; }
  .toolbar .actions .btn { flex: 1; min-width: 0; padding: 10px 14px; }
  .filters .grow { flex-basis: 100%; }
  .filters input[type="date"] { flex: 1; min-width: 0; }
}

/* ---------- Live (parity with chinaqr Mini App, admin tokens) ---------- */
.live-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}
.live-title-row h1 { margin: 0; }
/* Sound toggle: easysend-style sliding switch (track + knob). The knob
   position and track colour make ON/OFF unambiguous at a glance. */
.sound-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
}
.sound-switch .ss-label { font-size: 13px; line-height: 1; }
.sound-switch .ss-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--subtle-2);
  transition: background 0.18s ease;
  flex: 0 0 auto;
}
.sound-switch .ss-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}
.sound-switch.on .ss-track { background: var(--accent); }
.sound-switch.on .ss-knob { transform: translateX(16px); }
.sound-switch:focus-visible { outline: none; }
.sound-switch:focus-visible .ss-track {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.live-cards { max-width: 480px; margin-bottom: 4px; }

.live-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.live-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.live-countdown {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.live-countdown.overdue { color: var(--red); }

.live-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.live-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text-soft);
}
.copy-chip {
  background: var(--subtle-2);
  color: var(--text);
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.copy-chip:hover { background: var(--subtle); }
.copy-chip:active { opacity: 0.6; }

.live-qr {
  display: block;
  max-width: 200px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 10px auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.live-link { font-size: 12px; word-break: break-all; margin-bottom: 10px; }
.live-link a { color: var(--accent); }

.live-ss { margin-bottom: 8px; }
.live-ss .btn { width: 100%; }
.live-ss .btn.ok { background: var(--green-bg); color: var(--green); }
.live-ss .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: live-spin 0.7s linear infinite;
}
.live-error { color: var(--red); font-size: 12px; margin: 0 0 8px; }

.action-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.action-group .btn { width: 100%; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.danger:hover { background: var(--red-bg); filter: brightness(0.96); }
.btn:disabled { opacity: 0.6; cursor: default; }

.live-await {
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.live-await.confirming {
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.live-await .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: live-spin 0.7s linear infinite;
}
@keyframes live-spin { to { transform: rotate(360deg); } }

/* Paid resolved: success flash symmetric to the confirming spinner. Shown
   briefly when a deal leaves sending/confirming for an approved verdict,
   before it rolls down into Recent. */
.live-success {
  background: var(--green-bg);
  color: var(--green);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: live-success-pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.live-success .check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}
@keyframes live-success-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Collapsed pending deals: thin clickable strips (п3.2) */
.live-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.live-strip:hover { background: var(--content-bg); }
.live-strip .ls-amount { font-weight: 700; }
.live-strip .ls-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--amber);
}
.live-strip .ls-time.overdue { color: var(--red); }
.live-strip .ls-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--faint);
}

/* Recent list (п2) — clickable rows expand inline (accordion), like the
   Mini App: the row stays put and a read-only requisites detail grows below. */
.live-recent-title {
  font-size: 13px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-soft);
}
.live-recent {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 14px;
  box-shadow: var(--shadow-card);
  max-width: 480px;
}
.live-recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.live-recent-row:last-child { border-bottom: 0; }
.live-recent-row.expanded { border-bottom: 0; }
.live-recent-row:hover { background: var(--subtle); }
.live-recent .lr-amount { font-weight: 700; }
.live-recent .lr-time {
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
}
.live-recent .lr-id {
  margin-left: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--faint);
  font-size: 12px;
}
/* Inline read-only requisites under an expanded Recent row (accordion). */
.live-recent-detail { padding: 2px 0 14px; border-bottom: 1px solid var(--border); }
.live-recent-detail:last-child { border-bottom: 0; }
/* Amount echoed big under the QR + link so two stacked cards can't be
   misread (п4). Shared by Live cards and the Recent detail. */
.live-amount-big {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 6px 0 12px;
}
.live-recent .info-row, .live-cards .info-row {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}

/* ---------- Deal slide-over drawer (chinaqr) ---------- */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(18, 18, 18, 0.35);
  z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 94vw);
  background: var(--content-bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-auth);
  z-index: 41;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.18s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-head strong { font-size: 17px; }
.drawer-close {
  border: none; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted);
  padding: 0 4px;
}
.drawer-close:hover { color: var(--text); }
.drawer-body { padding: 20px; overflow-y: auto; }
.drawer-body h2 { font-size: 17px; font-weight: 700; margin: 20px 0 12px; }
.deal-row:hover { background: var(--subtle); }
.recipient-shot {
  max-width: 100%; max-height: 320px;
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 14px;
}

/* On phones the slide-over takes the full viewport width (no peek of the list
   behind it) and its body padding tightens so content is not cramped. */
@media (max-width: 560px) {
  .drawer { width: 100vw; border-left: 0; }
  .drawer-head { padding: 14px 16px; }
  .drawer-body { padding: 16px; }
}

/* easysend-style global Online switch (partner header + admin Shifts tab).
   Mirrors the trader header pill on my.easysendglobal.com: label + green
   track. State is driven by JS (base.html) against /p/online-global. */
.es-online { display: inline-flex; align-items: center; gap: 8px; margin: 0;
  cursor: pointer; user-select: none; font-size: 13px; font-weight: 600; }
.es-online .es-online-text { color: var(--muted); transition: color .15s; }
.es-online.on .es-online-text { color: var(--green); }
.es-online input { position: absolute; width: 1px; height: 1px; opacity: 0;
  margin: 0; pointer-events: none; }
.es-online .es-online-track { position: relative; flex: none; width: 40px;
  height: 22px; border-radius: 999px; background: var(--border);
  transition: background .15s; }
.es-online.on .es-online-track { background: var(--green); }
.es-online .es-online-thumb { position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
.es-online.on .es-online-thumb { left: 20px; }
.es-online input:disabled ~ .es-online-track { opacity: .55; cursor: default; }
