/* CELA wallet console. Same design language as the CELA operator side client (operator-side-client.html):
   near-black, rounded panels, tone pills with a dot, pill controls, a sticky blurred header and, on phones,
   a bottom tab bar. System fonts only (the CSP allows nothing from other origins). */
:root {
  --bg: #070807; --panel: #101211; --panel-alt: #161917; --panel-2: #0c0e0d;
  --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f5f3; --muted: #9aa39d; --faint: #6f7772;
  --ok: #3ddc84; --warn: #ffc94d; --fail: #ff5d6c; --cyan: #20d6ff;
  --radius: 20px; --radius-sm: 14px; --pill: 999px; --tabbar-h: 60px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; max-width: 100%;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(120% 55% at 50% -12%, rgba(61, 220, 132, 0.06), transparent 60%), var(--bg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-icon.big { width: 34px; height: 34px; color: var(--faint); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-size: 13px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: rgba(7, 8, 7, 0.74); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); }
.head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cela-mark { width: 26px; height: 26px; border-radius: 24%; margin-right: 4px; box-shadow: 0 0 0 1px rgba(53, 224, 192, 0.28); }
.brand { font-size: 15px; font-weight: 800; letter-spacing: 0.26em; color: var(--ok); }
.brand-sub { font-size: 15px; font-weight: 600; color: var(--muted); }
.head-right { display: flex; align-items: center; gap: 8px; }

main { max-width: 1180px; margin: 0 auto;
  padding: 18px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); }
.page-head { margin: 4px 2px 14px; }
.page-title { font-size: 28px; font-weight: 780; letter-spacing: -0.02em; margin: 0 0 2px; }
.page-sub { color: var(--muted); font-size: 14px; margin: 0; }
h2 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 22px 2px 10px; }
h3 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 18px 0 8px; }

/* Pills and badges */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-tone="ok"] { color: var(--ok); background: rgba(61, 220, 132, 0.12); }
.pill[data-tone="warn"] { color: var(--warn); background: rgba(255, 201, 77, 0.12); }
.pill[data-tone="fail"] { color: var(--fail); background: rgba(255, 93, 108, 0.13); }
.pill[data-tone="cyan"] { color: var(--cyan); background: rgba(32, 214, 255, 0.12); }
.badge { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 7px; flex-shrink: 0; text-transform: uppercase;
  color: var(--muted); background: rgba(154, 163, 157, 0.14); }
.badge[data-tone="ok"] { color: var(--ok); background: rgba(61, 220, 132, 0.14); }
.badge[data-tone="warn"] { color: var(--warn); background: rgba(255, 201, 77, 0.14); }
.badge[data-tone="fail"] { color: var(--fail); background: rgba(255, 93, 108, 0.14); }
.badge[data-tone="cyan"] { color: var(--cyan); background: rgba(32, 214, 255, 0.14); }
.chip { display: inline-flex; font-size: 11.5px; padding: 3px 9px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Banner */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid rgba(255, 201, 77, 0.28); border-radius: var(--radius); background: rgba(255, 201, 77, 0.07); }
.banner[data-tone="fail"] { border-color: rgba(255, 93, 108, 0.32); background: rgba(255, 93, 108, 0.07); }
.banner .b-icon { color: var(--warn); margin-top: 1px; }
.banner[data-tone="fail"] .b-icon, .banner[data-tone="fail"] .b-title { color: var(--fail); }
.banner .b-title { font-weight: 700; color: var(--warn); }
.banner .b-body { color: var(--muted); font-size: 13px; margin: 3px 0 0; line-height: 1.5; }

/* Segmented control */
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--panel);
  margin: 0 0 18px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; white-space: nowrap; min-height: 38px; padding: 0 16px; border-radius: var(--pill); border: 1px solid transparent;
  background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); background: none; }
.seg button[aria-selected="true"] { background: rgba(61, 220, 132, 0.12); color: var(--ok); border-color: rgba(61, 220, 132, 0.5); }
.seg.small { width: 100%; margin-bottom: 16px; }
.count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: var(--pill); font-size: 11px; line-height: 18px;
  background: var(--ok); color: #04120a; font-weight: 800; }
.count:empty { display: none; }

/* Cards, lists, stats */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 60%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; min-width: 0; }
.empty-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 24px; }
.empty-card p { margin: 0; max-width: 340px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat b { display: block; font-size: 28px; font-weight: 760; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .lab { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.stat .lab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.stat[data-tone="ok"] .lab::before { background: var(--ok); }
.stat[data-tone="warn"] .lab::before { background: var(--warn); }
.stat[data-tone="fail"] .lab::before { background: var(--fail); }
.stat[data-tone="cyan"] .lab::before { background: var(--cyan); }
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; }
button.row { width: 100%; text-align: left; background: none; border-width: 1px 0 0; border-style: solid; border-color: var(--line);
  color: inherit; font: inherit; cursor: pointer; transition: background .15s; min-height: 0; border-radius: 0; justify-content: flex-start; }
.list > .row:first-child { border-top: 0; }
button.row:hover { background: var(--panel-alt); }
button.row[aria-current="true"] { background: rgba(61, 220, 132, 0.07); box-shadow: inset 3px 0 0 var(--ok); }
.row .grow { flex: 1; min-width: 0; }
.row .r-title { font-weight: 700; font-size: 14.5px; }
.row .r-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-sub.mono { font-size: 12px; }
.row .chev { width: 18px; height: 18px; color: var(--faint); }
.empty { color: var(--muted); font-size: 13px; padding: 18px 16px; }

/* Inbox split */
.split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.col-detail { min-width: 0; padding-top: 44px; }
.back { display: none; }

/* Review */
.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-kicker { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.review-title { font-size: 24px; font-weight: 780; letter-spacing: -0.02em; margin: 2px 0 0; overflow-wrap: anywhere; }
.notice { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 201, 77, 0.08);
  color: var(--warn); font-weight: 700; font-size: 13px; }
.fields-list { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.fl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.fl:first-child { border-top: 0; }
.fl dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.fl dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.fl.key dd { font-weight: 700; }
.hashes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hash { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 0; }
.hash .h-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hash.full { grid-column: 1 / -1; }
.hash code { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; color: var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reasons { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.reasons li { padding: 3px 0; }
.approver { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.approver:first-child { border-top: 0; }
.approver .grow { flex: 1; min-width: 0; }
.approver code { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sign-box { margin-top: 16px; padding: 16px; border-radius: var(--radius); border: 1px solid rgba(61, 220, 132, 0.22); background: rgba(61, 220, 132, 0.04); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 2px; font-size: 14px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; flex-shrink: 0; border-radius: 7px;
  border: 1.5px solid var(--line-strong); background: var(--panel-alt); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 10px; height: 6px; border: solid #04120a; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ok); border-color: var(--ok); }
.check input:checked::before { opacity: 1; }
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.25); outline: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.actions .primary { flex: 1 1 220px; }
.status { margin: 10px 2px 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }
.status:empty { margin: 0; min-height: 0; }
.status[data-tone="fail"] { color: var(--fail); } .status[data-tone="ok"] { color: var(--ok); } .status[data-tone="warn"] { color: var(--warn); }

/* Wallets */
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-title { font-size: 22px; font-weight: 780; letter-spacing: -0.02em; margin: 0; }
.w-id { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.w-stats { margin-top: 16px; }
.w-stats .stat { background: var(--panel-2); }
.w-stats .stat b { font-size: 20px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.mono { font-size: 12.5px; }

/* Forms */
.form-card { max-width: 680px; }
.fields { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; letter-spacing: 0.02em; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 150px; }
input, select { width: 100%; max-width: 100%; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-strong);
  background-color: var(--panel-alt); color: var(--text); font: 15px var(--mono); outline: none; transition: border-color .15s, box-shadow .15s;
  overflow: hidden; text-overflow: ellipsis; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 17px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: rgba(61, 220, 132, 0.6); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.14); }

/* Buttons */
button { min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover { background: rgba(255, 255, 255, 0.09); }
button:active { transform: scale(0.97); }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.25); }
button.primary { min-height: 50px; border-color: transparent; background: var(--ok); color: #04120a; font-weight: 700; }
button.primary:hover { background: #55e597; }
button.primary.wide { width: 100%; margin-top: 18px; }
button.danger { color: var(--fail); border-color: rgba(255, 93, 108, 0.3); background: rgba(255, 93, 108, 0.06); }
button.danger:hover { background: rgba(255, 93, 108, 0.12); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.icon-btn { min-height: 40px; width: 40px; padding: 0; }
button.row:active, .seg button:active, .tab-btn:active { transform: none; }

.foot { max-width: 760px; margin: 28px 2px 0; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* Bottom tab bar: phones only */
.tabbar { display: none; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .col-detail { padding-top: 0; }
  .split.detail-open .col-list { display: none; }
  .split:not(.detail-open) .col-detail { display: none; }
  .back { display: inline-flex; margin-bottom: 12px; }
  .tab.detail-open .page-head, .tab.detail-open .stats, .tab.detail-open .col-list h2 { display: none; }
}
@media (max-width: 640px) {
  main { padding: 14px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .top { padding-left: 16px; padding-right: 16px; }
  #seg { display: none; }
  .page-title { font-size: 26px; }
  .fl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hashes { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px;
    background: rgba(10, 12, 11, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line); }
  .tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px;
    padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; }
  .tab-btn .nav-icon { width: 22px; height: 22px; }
  .tab-btn[aria-current="true"] { color: var(--ok); }
  .tab-btn:hover { background: rgba(255, 255, 255, 0.04); }
}

/* L179: policy change review and the policy form */
.row.changed { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.row.changed .r-sub { color: var(--text); }
.muted.small { font-size: 12.5px; margin: 4px 2px 0; }
.r-sub.mono { overflow-wrap: anywhere; }
.seg.small button { flex: 1 1 0; min-width: 0; padding: 0 8px; }

/* ===================== v3 wallet layout (L181): home, activity, send / receive, security ===================== */
.tab > .back[data-go] { display: inline-flex; margin-bottom: 12px; }
#tab-home, #tab-send, #tab-receive { max-width: 720px; margin: 0 auto; }

/* Hero balance card */
.hero { position: relative; overflow: hidden; padding: 22px 22px 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(61, 220, 132, 0.14), transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(32, 214, 255, 0.08), transparent 60%), var(--panel);
  border-color: rgba(61, 220, 132, 0.22); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.hero-balance { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; }
.hero-balance .big { font-size: clamp(44px, 9vw, 64px); font-weight: 780; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-balance .unit { font-size: 18px; font-weight: 700; color: var(--ok); letter-spacing: 0.06em; }
.hero-sub { margin: 4px 0 0; }
.addr-row { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 4px 4px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: rgba(0, 0, 0, 0.25); max-width: 100%; }
.addr-row code { font-family: var(--mono); font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.small { min-height: 30px; width: 30px; border-radius: 50%; }
.icon-btn.small .nav-icon { width: 15px; height: 15px; }
.icon-btn.copied { color: var(--ok); border-color: rgba(61, 220, 132, 0.5); }
.chart-wrap { margin: 16px -22px 0; height: 110px; }
.chart { display: block; width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--ok); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-fill { fill: rgba(61, 220, 132, 0.10); stroke: none; }
.chart-dot { fill: var(--ok); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Round action buttons */
.actions-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 6px; }
button.action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; min-height: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 650; }
button.action:hover { border-color: var(--line-strong); background: var(--panel-alt); }
.round-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%; color: var(--text); background: rgba(255, 255, 255, 0.07); }
.round-icon .nav-icon { width: 18px; height: 18px; }
.round-icon.big { width: 48px; height: 48px; }
.round-icon.big .nav-icon { width: 22px; height: 22px; }
.round-icon.small { width: 30px; height: 30px; }
.round-icon.small .nav-icon { width: 15px; height: 15px; }
.round-icon[data-kind="send"], .round-icon[data-kind="burn"] { color: #ffd88a; background: rgba(255, 201, 77, 0.13); }
.round-icon[data-kind="receive"] { color: var(--cyan); background: rgba(32, 214, 255, 0.13); }
.round-icon[data-kind="mint"] { color: var(--ok); background: rgba(61, 220, 132, 0.14); }
.round-icon[data-kind="requests"] { color: #c9b8ff; background: rgba(170, 140, 255, 0.14); }
.round-icon[data-tone="ok"] { color: var(--ok); background: rgba(61, 220, 132, 0.14); }
.round-icon[data-tone="warn"] { color: var(--warn); background: rgba(255, 201, 77, 0.14); }
.round-icon[data-tone="fail"] { color: var(--fail); background: rgba(255, 93, 108, 0.14); }
.action-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; color: #04120a; background: var(--warn); }

/* Assets and activity rows */
.row.asset .asset-icon { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.3); }
.act-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; text-align: right; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.plus { color: var(--ok); }
.amt.failed { color: var(--faint); text-decoration: line-through; }
.act-wrap + .act-wrap { border-top: 1px solid var(--line); }
.act-wrap > button.row { border-top: 0; }
.act-detail { padding: 4px 16px 16px 66px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--ok); font-size: 13px; font-weight: 650; }
button.link:hover { background: none; text-decoration: underline; }

/* Minting card */
.mint-card .mint-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mint-nums { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bar { display: block; width: 100%; height: 6px; }
.bar-bg { fill: rgba(255, 255, 255, 0.07); }
.bar-fg { fill: var(--ok); }

/* Send / receive sheets */
.sheet { display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.sheet-title { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; }
.amount-box { display: flex; align-items: center; gap: 8px; }
.amount-box input { flex: 1; min-width: 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-box .unit { color: var(--ok); font-weight: 750; font-size: 15px; letter-spacing: 0.05em; }
.address-box { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--panel-2); }
.address-box code { display: block; font-family: var(--mono); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; color: var(--text); }
button.primary .nav-icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.wallet-pick { margin-bottom: 12px; }

/* Tab bar badge */
.tab-btn { position: relative; }
.tab-btn .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

@media (max-width: 640px) {
  .hero { padding: 18px 18px 0; }
  .chart-wrap { margin: 14px -18px 0; height: 90px; }
  .act-detail { padding: 4px 16px 14px; }
}
/* v3 alignment: the switcher and the single-column pages share one centred column on desktop */
#seg { width: fit-content; margin-left: auto; margin-right: auto; }
#tab-activity, #tab-security { max-width: 760px; margin: 0 auto; }
#tab-home, #tab-send, #tab-receive { max-width: 760px; }
#tab-security .form-card { max-width: none; }
