/* Ro LP Terminal — Uni-like Inter + N layout */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-2: #eff1ec;
  --surface-3: #e6e9e2;
  --card: var(--surface);
  --card2: var(--surface-2);
  --text: #101410;
  --muted: #667065;
  --ink-2: #50584f;
  --line: #e3e6df;
  --line-strong: #c8cdc2;
  --green: #027a05;
  --amber: #8a6100;
  --red: #cf4747;
  --primary: #00c805;
  --primary2: #00b304;
  --chip: var(--surface-2);
  --accent: #00c805;
  --accent-text: #027a05;
  --accent-tint: #e4f8e2;
  --accent-wash: #f0faee;
  --on-accent: #06130a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(16 20 16 / 0.04), 0 2px 8px rgb(16 20 16 / 0.04);
  /* Uni Basel ≈ Inter public stand-in */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 450;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.app { max-width: 1180px; margin: 0 auto; padding: 12px 16px 48px; }

/* Header / topbar */
.header {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  flex-wrap: wrap; padding: 12px 0 14px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
}
.header .btn { box-shadow: none; }
.header .btn:not(.primary) { background: var(--surface); }
h1 {
  margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.03em;
}
h1 .dot { color: var(--accent); }
h2 {
  margin: 0 0 10px; font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 600; letter-spacing: -0.02em;
}
.sub, .hint, .footer, .live, .field {
  color: var(--muted); font-size: 0.92rem;
}
.header-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.live {
  font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 0.85rem;
}

/* Tabs — pill segmented */
.tabs {
  display: flex; gap: 4px; margin: 14px 0 16px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px;
  width: fit-content; max-width: 100%;
}
.tab {
  border: 0; background: transparent; color: var(--ink-2);
  border-radius: var(--radius-pill); padding: 9px 16px; cursor: pointer;
  font-weight: 600; font-family: var(--font-body); font-size: 0.95rem;
}
.tab.on {
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* Buttons */
.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius-pill); padding: 10px 16px; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 82%, #fff) 0%,
    var(--accent) 52%,
    var(--primary2) 100%
  );
  border: none; color: var(--on-accent); font-weight: 700;
  box-shadow: inset 0 1px #ffffff4d, 0 1px 2px rgb(16 20 16 / 0.1),
    0 3px 10px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn.primary:hover { filter: brightness(1.03); }
.btn.wide { width: 100%; margin-top: 10px; padding: 13px; }
.btn.sm { padding: 7px 12px; font-size: 0.88rem; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }

/* KPI cards — lighter, less “dashboard clutter” */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; box-shadow: none;
}
.card-label {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em;
  text-transform: none; font-weight: 500;
}
.card-value {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin-top: 4px; letter-spacing: -0.02em;
}
.card-hint { font-size: 0.75rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* Filters — compact toolbar (Uni-like), not giant pills */
.filters {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center;
}
.filters .input,
.filters .select,
.filters .btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius-pill); padding: 6px 11px;
  font-size: 0.8rem; /* 筛选字小一号 */
  font-family: var(--font-body); font-weight: 500;
  box-shadow: none; height: 32px; line-height: 1.2;
}
.filters .input { min-width: 140px; flex: 1 1 160px; max-width: 220px; }
.filters .select { padding-right: 24px; max-width: 140px; }
.filters .btn { height: 32px; padding: 0 12px; }
.filters .btn.primary { height: 32px; font-size: 0.8rem; }
.input, .select {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: var(--radius-md); padding: 10px 12px; font-size: 15px;
  font-family: var(--font-body); font-weight: 500;
}
.input:focus, .select:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.check {
  display: flex; gap: 5px; align-items: center; font-size: 0.78rem; color: var(--muted);
  font-weight: 500; white-space: nowrap;
}
.hint { font-size: 0.8rem; margin: 0 0 12px; line-height: 1.4; color: var(--muted); }

/* Table — closer to Uni pool list */
.table-wrap {
  overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: none;
}
table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 920px;
}
th, td {
  padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left;
  white-space: nowrap; vertical-align: middle;
}
th {
  color: var(--muted); font-weight: 500; position: sticky; top: 0;
  background: #f4f5f2; font-size: 0.75rem; text-transform: none;
  letter-spacing: 0; border-bottom: 1px solid var(--line);
}
th.num { font-weight: 500; }
td { color: var(--text); font-weight: 500; }
.num {
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
}
.num.mono { font-family: var(--font-mono); font-size: 0.85rem; }
.pair { min-width: 140px; }
.pair strong {
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  font-family: var(--font-body);
}
.pair .pair-sub {
  display: block; margin-top: 2px; font-size: 0.75rem; color: var(--muted);
  font-weight: 500;
}
.tag {
  font-size: 0.72rem; padding: 2px 7px; border-radius: 6px;
  background: transparent; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); text-transform: lowercase;
}
.tag.v2, .tag.v3, .tag.v4 { color: var(--ink-2); }
.badge-new {
  margin-left: 6px; font-size: 0.7rem; color: var(--accent-text);
  font-weight: 600; background: var(--accent-tint); padding: 1px 6px;
  border-radius: 4px;
}
.risk { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.risk.high { color: var(--red); }
.risk.med { color: var(--amber); }
.risk.ok { color: var(--muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbf8; }
/* row actions — quiet, Uni-like */
.row-actions {
  display: flex; gap: 6px; align-items: center; justify-content: flex-end;
}
.row-actions .btn.sm {
  padding: 5px 10px; font-size: 0.78rem; font-weight: 600;
  box-shadow: none; border-radius: 8px; height: auto;
}
.row-actions .btn.sm.primary {
  padding: 5px 12px;
}
.row-actions .btn-ghost {
  border: none; background: transparent; color: var(--muted);
  box-shadow: none; padding: 5px 8px;
}
.row-actions .btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.col-actions { width: 1%; }

/* Banner */
.banner {
  border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 12px;
  font-size: 0.95rem; font-weight: 500;
}
.banner.err { background: #fceeee; color: #9a2e2e; border: 1px solid #f0c8c8; }
.banner.info { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.banner.ok { background: var(--accent-tint); color: var(--accent-text); border: 1px solid #c5e9c2; }
.hidden { display: none !important; }
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 32px 14px;
  text-align: center; color: var(--muted); background: var(--surface); margin-top: 12px;
}

/* Positions — Uni-like list cards */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pos-list { display: flex; flex-direction: column; gap: 10px; }
.pos-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: none;
}
.pos-card.stop-hit { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.pos-top { margin-bottom: 12px; }
.pos-title {
  font-size: 1.05rem; font-weight: 600; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px;
}
.pos-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.pos-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin-bottom: 12px;
}
.ps {
  background: var(--surface-2); border-radius: 10px; padding: 10px 12px;
}
.ps-l { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.ps-v {
  font-size: 1.15rem; font-weight: 600; margin-top: 2px; letter-spacing: -0.02em;
}
.ps-s { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.pos-bar {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.pos-bar .links {
  margin: 0; gap: 12px; font-size: 0.85rem;
}
/* 操作必须横排，禁止竖条占右侧 */
.pos-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.pos-actions .btn.sm {
  box-shadow: none; font-size: 0.8rem; padding: 7px 12px; border-radius: 999px;
  flex: 0 0 auto;
}
.hero-val.green, .num.green, .green, .ps-v.green, .ps-s.green { color: var(--green); }
.hero-val.red, .num.red, .red, .ps-v.red, .ps-s.red { color: var(--red); }
@media (max-width: 900px) {
  .pos-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pos-stats { grid-template-columns: 1fr; }
}
.badge {
  font-size: 0.8rem; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); font-weight: 600; color: var(--ink-2);
}
.badge.proto { color: #5b4a9e; }
.badge.fee { color: #3b6ea5; }
.badge.active {
  color: var(--accent-text); background: var(--accent-tint);
}
.chip {
  display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 4px 12px;
  border-radius: var(--radius-pill); margin-bottom: 0;
}
.chip.in { background: var(--accent-tint); color: var(--accent-text); }
.chip.out { background: #faf3e0; color: var(--amber); }
.line {
  font-size: 0.92rem; color: var(--muted); line-height: 1.45; margin: 0 0 8px;
  word-break: break-word;
}
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 12px;
}
.m-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.m-val {
  font-family: var(--font-display); font-weight: 600; margin-top: 4px; font-size: 1.1rem;
}

/* Mint / panels */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; max-width: 560px; box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pool-info {
  background: var(--surface-2); border-radius: var(--radius-md); padding: 12px;
  font-size: 0.95rem; margin: 10px 0; line-height: 1.5; border: 1px solid var(--line);
}
.log {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all;
  color: var(--ink-2); min-height: 40px; font-family: var(--font-mono);
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 20, 16, 0.4);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 12px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface); width: min(480px, 100%); border-radius: var(--radius-lg);
  padding: 18px; border: 1px solid var(--line); max-height: 90vh; overflow: auto;
  box-shadow: 0 8px 40px rgb(16 20 16 / 0.12);
}
.modal-h { display: flex; justify-content: space-between; align-items: center; }
.icon-btn {
  border: none; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer;
}
.footer { text-align: center; margin-top: 28px; line-height: 1.5; font-size: 0.88rem; }
.chain-pill {
  font-size: 0.82rem; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--accent-tint); color: var(--accent-text); font-weight: 700;
  font-family: var(--font-mono);
}
.cards.compact { margin-bottom: 10px; }
.panel.wide { max-width: 640px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.inline { display: flex; gap: 6px; align-items: center; }
.inline .input { flex: 1; }
.bal { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.badge.rwa { color: #8a6100; background: #faf3e0; }
.pos-sl { font-size: 0.92rem; color: var(--muted); margin: 0 0 8px; }
.pos-sl.hit { color: var(--red); font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; font-size: 0.9rem; }
.links a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.range-box {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0;
}
@media (max-width: 700px) { .range-box { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 12px;
}
.price-card.mid {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-wash);
}
.price-card-h {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; font-weight: 600;
}
.price-card-v {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 1.2rem; font-variant-numeric: tabular-nums; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 600;
}
.pm {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.pm:hover { background: var(--surface-2); }
.price-input { font-size: 0.95rem !important; }
.pct-tag { font-weight: 700; font-size: 0.92rem; color: var(--green); }
.pct-tag.neg { color: var(--red); }
.meta-line.warn { color: var(--amber); font-weight: 600; }
.pool-info .sym {
  font-size: 1.15rem; font-weight: 700; font-family: var(--font-display);
}
.pool-info .meta-line { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable .arrow { opacity: 0.5; font-size: 0.7em; }
th.sortable.on .arrow { opacity: 1; color: var(--accent-text); }
.depth-box { margin: 12px 0; }
.depth-title { font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.depth-chart {
  position: relative; height: 120px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
}
.depth-bar {
  position: absolute; bottom: 0; width: 4px; background: var(--line-strong);
  transform: translateX(-50%); max-width: 8px;
}
.depth-bar.on { background: var(--accent); }
.depth-range {
  position: absolute; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left: 1px solid var(--accent); border-right: 1px solid var(--accent);
}
.depth-cur {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text);
  transform: translateX(-50%); z-index: 2;
}
.depth-legend { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.depth-empty {
  font-size: 0.92rem; color: var(--muted); padding: 12px;
  border: 1px dashed var(--line); border-radius: var(--radius-md);
}
.amt-hint { margin: 4px 0 10px; min-height: 1.2em; font-size: 0.92rem; }
.amt-hint.warn { color: var(--amber); font-weight: 600; }
.auto-stats { color: var(--accent-text); font-size: 0.95rem; font-weight: 600; }
.badge.in { background: var(--accent-tint); color: var(--accent-text); }
.badge.out { background: #fceeee; color: var(--red); }

/* —— Deposit (做 LP) Uni-like —— */
.deposit-shell {
  display: flex; justify-content: center; padding: 8px 0 24px;
}
.deposit-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
}
.deposit-head h2 {
  margin: 0 0 4px; font-size: 1.25rem; font-weight: 600;
}
.deposit-head .hint { margin: 0 0 14px; font-size: 0.85rem; }
.deposit-pool-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.deposit-pool-row .input {
  flex: 1; border-radius: 12px; font-size: 0.85rem; font-family: var(--font-mono);
}
.deposit-pool-row .btn { border-radius: 12px; box-shadow: none; white-space: nowrap; }
.pool-chip-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px;
}
.pool-chip-row .sym { font-size: 1.1rem; font-weight: 600; }
.pool-info {
  background: var(--surface-2); border: none; border-radius: 14px;
  padding: 12px 14px; margin: 0 0 14px;
}
.deposit-section { margin-bottom: 14px; }
.deposit-section-h {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: 8px;
}
.range-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
}
.chip-btn.on, .chip-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-wash); color: var(--accent-text);
}
.token-input {
  background: var(--surface-2); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px;
}
.token-input-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.token-sym { font-weight: 600; font-size: 0.95rem; }
.btn-text {
  border: 0; background: transparent; color: var(--accent-text);
  font-weight: 600; font-size: 0.8rem; cursor: pointer; font-family: var(--font-body);
}
.token-amt {
  width: 100%; border: 0; background: transparent; font-size: 1.65rem; font-weight: 500;
  color: var(--text); font-family: var(--font-body); outline: none; padding: 4px 0;
  letter-spacing: -0.02em;
}
.token-amt::placeholder { color: var(--line-strong); }
.range-mid {
  text-align: center; background: var(--accent-wash); border: 1px solid
    color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 14px; padding: 14px 12px; margin-bottom: 10px;
}
.range-mid-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.range-mid-price {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0;
}
.range-mid-meta { font-size: 0.78rem; color: var(--muted); }
.range-mid-actions {
  display: flex; justify-content: center; gap: 6px; margin-top: 8px;
}
.range-mid-actions .btn.sm {
  box-shadow: none; font-size: 0.75rem; padding: 5px 10px; border-radius: 8px;
}
.range-ends {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.range-end {
  background: var(--surface-2); border-radius: 14px; padding: 12px;
}
.range-end-h {
  font-size: 0.75rem; color: var(--muted); font-weight: 500;
  display: flex; justify-content: space-between; margin-bottom: 8px;
}
.range-end-ctrl {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 1.05rem; font-weight: 600; margin-bottom: 8px;
}
.range-end .price-input { font-size: 0.8rem; border-radius: 10px; padding: 8px 10px; }
.adv-ticks {
  margin-top: 10px; font-size: 0.8rem; color: var(--muted);
}
.adv-ticks summary { cursor: pointer; font-weight: 500; }
.deposit-footer { margin-top: 8px; }
.deposit-footer .row2.compact { gap: 8px; }
.deposit-footer .field { margin: 6px 0; font-size: 0.85rem; }
.deposit-footer .btn.wide {
  margin-top: 12px; border-radius: 14px; height: 48px; font-size: 1rem;
}
.tg-help {
  margin-top: 16px; padding: 12px 14px; background: var(--surface-2);
  border-radius: 12px; font-size: 0.85rem; color: var(--ink-2);
}
.tg-help h3 {
  margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.tg-help ul { margin: 0; padding-left: 1.15em; line-height: 1.55; }
.tg-help li { margin-bottom: 4px; }

@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .range-ends { grid-template-columns: 1fr; }
  .tabs { width: 100%; overflow-x: auto; }
  .deposit-card { border-radius: 16px; }
}
