/* UTN Wallet. Graphite, UTN red #E11D2E, white. Flat mark, no gradients on the logo. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --red: #E11D2E; --red-d: #C3172A; --red-soft: rgba(225,29,46,.14);
  --bg: #0C0D10; --s1: #141519; --s2: #1A1C21; --s3: #22252B; --line: rgba(var(--ink-rgb),.07); --line2: rgba(var(--ink-rgb),.12);
  --fg: #F6F7F9; --fg2: #C9CDD4; --mut: #8A909B; --ok: #34C77B; --warn: #F2A93B; --err: #FF5A67;
  --r: 20px; --r-sm: 14px; --tab: 64px; --ease: cubic-bezier(.2,.8,.2,1);
  --fg-rgb: 246,247,249; --ink-rgb: 255,255,255; --glass: rgba(12,13,16,.78); --glass2: rgba(12,13,16,.86);
  --skel-a: #1E2026; --skel-b: #2A2D34; --skel-c: #1A1C21; --skel-d: #24272D;
  --hero-a: #1F2228; --hero-b: #141519; --hero-glow: rgba(225,29,46,.26);
  --sh-hero: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); --sh-qr: 0 24px 50px -24px rgba(0,0,0,.9);
  --sh-sheet: 0 -20px 60px rgba(0,0,0,.5); --sh-toast: 0 16px 40px -12px rgba(0,0,0,.7); --sh-bar: 0 18px 40px -12px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05);
  --sh-menu: 0 24px 60px -16px rgba(0,0,0,.8);
  --addr-bg: rgba(0,0,0,.28); --addr-bg-h: rgba(0,0,0,.45); --overlay: rgba(4,5,7,.62); --toast-bg: rgba(34,37,43,.94); --bar-bg: rgba(26,28,33,.72);
  --warn-fg: #F5D9A8; --warn-sub: #C9B48F; --brand-sub: #A4A9B4; --ph: #5D636E; --soon: #545A66;
  color-scheme: dark;
}
/* Light theme: same structure, graphite ink on white. Dark (above) is the reference. */
:root[data-theme="light"] {
  --red-soft: rgba(225,29,46,.10);
  --bg: #F3F4F6; --s1: #FFFFFF; --s2: #F4F5F7; --s3: #EAECEF; --line: rgba(12,13,16,.07); --line2: rgba(12,13,16,.11);
  --fg: #0C0D10; --fg2: #3A3F48; --mut: #6A707B; --ok: #12A15C; --warn: #B26A00; --err: #D72638;
  --fg-rgb: 12,13,16; --ink-rgb: 12,13,16; --glass: rgba(243,244,246,.78); --glass2: rgba(243,244,246,.86);
  --skel-a: #ECEEF1; --skel-b: #F7F8FA; --skel-c: #EEF0F3; --skel-d: #F8F9FB;
  --hero-a: #FFFFFF; --hero-b: #F7F8FA; --hero-glow: rgba(225,29,46,.13);
  --sh-hero: 0 1px 2px rgba(16,24,40,.04), 0 24px 50px -28px rgba(16,24,40,.22); --sh-qr: 0 18px 40px -22px rgba(16,24,40,.3);
  --sh-sheet: 0 -16px 50px rgba(16,24,40,.14); --sh-toast: 0 14px 34px -12px rgba(16,24,40,.25); --sh-bar: 0 14px 34px -12px rgba(16,24,40,.22), inset 0 1px 0 rgba(255,255,255,.7);
  --sh-menu: 0 22px 50px -18px rgba(16,24,40,.28);
  --addr-bg: rgba(12,13,16,.035); --addr-bg-h: rgba(12,13,16,.07); --overlay: rgba(12,13,16,.32); --toast-bg: rgba(255,255,255,.94); --bar-bg: rgba(255,255,255,.72);
  --warn-fg: #6E4300; --warn-sub: #8A6420; --brand-sub: #5B616E; --ph: #A0A5AE; --soon: #B8BCC4;
  color-scheme: light;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .features { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
:root[data-theme="light"] .feature div, :root[data-theme="light"] .grow small { color: var(--mut); }
html.theming, html.theming * { transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100dvh; }
a { color: var(--fg); text-decoration-color: rgba(var(--ink-rgb),.3); text-underline-offset: 3px; }
h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 15px; margin: 0; color: var(--fg); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(225,29,46,.35); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.boot { display: grid; place-items: center; min-height: 100dvh; }
.boot img { animation: pulse 1.4s var(--ease) infinite; }
.noscript { padding: 24px; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: -.01em; }
.wrap { word-break: break-all; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; gap: 1px; }
.grow strong { font-weight: 600; }
.grow small { color: var(--mut); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-card .grow small { white-space: normal; }
[hidden] { display: none !important; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.main > section { animation: rise .32s var(--ease) both; }
.main > section > * { animation: rise .42s var(--ease) both; }
.main > section > :nth-child(2) { animation-delay: .03s; } .main > section > :nth-child(3) { animation-delay: .06s; }
.main > section > :nth-child(4) { animation-delay: .09s; } .main > section > :nth-child(n+5) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* shell */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
/* Brand lockup (brand kit web/utn-brand.css): UTN / WALLET below 721 px, Umbrella Trust Network / WALLET above. */
.mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; min-width: 0; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand-name .d { display: none; }
.brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-sub); }
@media (min-width: 721px) {
  .brand-name { font-size: 15px; font-weight: 650; }
  .brand-name .m { display: none; }
  .brand-name .d { display: inline; }
}
.netpill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(var(--ink-rgb),.04); cursor: pointer; font-size: 13px; font-weight: 550; transition: background .2s, border-color .2s; }
.netpill:hover { background: rgba(var(--ink-rgb),.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); flex: none; }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,199,123,.16); }
.dot.soon { background: var(--soon); }
.side { display: none; }
.main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 18px calc(var(--tab) + 46px + env(safe-area-inset-bottom)); }
.bare .main { padding-bottom: 36px; }
/* Floating tab bar (mobile). Narrow items; the active indicator is a rounded square around icon + label.
   Scrolling down shrinks bar and items further and the indicator becomes a circle around the icon. */
.tabs { --iw: 70px; --hw: 62px; --hh: 50px; --hr: 16px; --pad: 7px;
  position: fixed; z-index: 6; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: calc(3 * var(--iw) + 2 * var(--pad)); height: calc(var(--hh) + 2 * var(--pad)); padding: var(--pad); border-radius: 999px;
  background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--line2); box-shadow: var(--sh-bar);
  transition: width .38s var(--ease), height .38s var(--ease), padding .38s var(--ease), bottom .38s var(--ease), opacity .3s; will-change: width, height; }
.tabs-in { position: relative; display: grid; grid-template-columns: repeat(3, var(--iw)); height: 100%; transition: grid-template-columns .38s var(--ease); }
.tab-hl { position: absolute; top: 50%; left: calc((var(--iw) - var(--hw)) / 2); width: var(--hw); height: var(--hh); border-radius: var(--hr);
  background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(225,29,46,.16);
  transform: translate(calc(var(--i, 0) * var(--iw)), -50%);
  transition: transform .42s cubic-bezier(.3,1.25,.5,1), width .38s var(--ease), height .38s var(--ease), border-radius .38s var(--ease), left .38s var(--ease), opacity .25s; }
.tabs.none .tab-hl { opacity: 0; }
.tabs a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  text-decoration: none; color: var(--mut); font-size: 11px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: color .25s, gap .38s var(--ease); }
.tabs a .ti { display: grid; place-items: center; }
.tabs .icon { width: 22px; height: 22px; transition: transform .3s var(--ease), stroke .25s; }
.tabs a:active .icon { transform: scale(.88); }
.tabs .tl { display: block; max-height: 14px; line-height: 14px; opacity: 1; overflow: hidden; transition: opacity .2s ease, max-height .38s var(--ease), transform .38s var(--ease); }
.tabs a.on { color: var(--fg); }
.tabs a.on .icon { stroke: var(--red); }
.tabs.compact { --iw: 50px; --hw: 40px; --hh: 40px; --hr: 20px; --pad: 5px; bottom: calc(10px + env(safe-area-inset-bottom)); }
.tabs.compact a { gap: 0; }
.tabs.compact .tl { opacity: 0; max-height: 0; transform: translateY(6px); }

@media (min-width: 1024px) {
  .tabs { display: none; }
  .top { padding: 12px 24px; }
}

/* blocks */
.stack { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card > .card-head { margin-bottom: 6px; }
.card-head a { display: inline-flex; align-items: center; gap: 5px; color: var(--fg2); text-decoration: none; font-weight: 550; }
.card-head a:hover { color: var(--fg); }
.card-head .icon { width: 14px; height: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 4px; }
.page-head p { margin-top: 6px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: var(--s2); color: var(--fg); text-decoration: none; cursor: pointer; font-weight: 600; letter-spacing: -.005em;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s, box-shadow .2s; }
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(.975); }
.btn.primary { background: var(--red); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(225,29,46,.7), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.primary:hover { background: var(--red-d); }
.btn.white { background: #fff; color: #0C0D10; border-color: transparent; }
.btn.danger { color: var(--err); }
.btn.big { min-height: 56px; font-size: 16px; border-radius: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s2); cursor: pointer; flex: none; transition: background .2s, transform .15s var(--ease); }
.icon-btn:hover { background: var(--s3); }
.icon-btn:active { transform: scale(.94); }
.link-btn { background: none; border: 0; padding: 0 4px; color: var(--fg); text-decoration: underline; text-decoration-color: rgba(var(--ink-rgb),.3); text-underline-offset: 3px; cursor: pointer; }
.pill-btn { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(var(--ink-rgb),.05); cursor: pointer; font-size: 12.5px; font-weight: 600; transition: background .2s; }
.pill-btn:hover { background: rgba(var(--ink-rgb),.1); }
.back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--mut); text-decoration: none; font-size: 14px; font-weight: 550; }
.back:hover { color: var(--fg); }
label { font-size: 13px; color: var(--fg2); font-weight: 600; margin-bottom: -6px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; }
input, textarea { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--ph); }
input:focus, textarea:focus { border-color: rgba(225,29,46,.7); box-shadow: 0 0 0 4px rgba(225,29,46,.14); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); }
input[type=file] { padding: 10px; }
textarea { resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.input-row { display: flex; align-items: center; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.suffix { color: var(--mut); font-size: 13px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.kv > span:first-child { color: var(--mut); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kv > span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; }
.rows { display: flex; flex-direction: column; }
.rows > .kv { padding: 13px 0; }
.rows > .kv + .kv { border-top: 1px solid var(--line); }
.status { font-size: 13.5px; color: var(--mut); min-height: 1em; }
.status:empty { display: none; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.note { font-size: 13.5px; padding: 12px 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); color: var(--fg2); }
.note.warn { border-color: rgba(242,169,59,.3); background: rgba(242,169,59,.07); color: var(--warn-fg); }
details summary { cursor: pointer; color: var(--mut); font-size: 13px; margin-bottom: 8px; }

/* welcome */
.welcome { display: flex; flex-direction: column; gap: 26px; padding-top: 18px; max-width: 440px; margin: 0 auto; }
.hero { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 0 2px; }
.hero::before { content: ""; position: absolute; top: -40px; left: 50%; width: 340px; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--hero-glow), transparent); pointer-events: none; z-index: -1; }
.hero-mark { width: 76px; height: 76px; margin-bottom: 8px; filter: drop-shadow(0 12px 30px rgba(225,29,46,.35)); }
.hero h1 { font-size: 34px; max-width: 360px; }
.lead { color: var(--fg2); max-width: 380px; font-size: 16px; line-height: 1.5; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.features { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.feature { display: flex; gap: 14px; align-items: center; padding: 12px; }
.feature .ft { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--red-soft); flex: none; }
.feature .ft .icon { stroke: var(--red); width: 19px; height: 19px; }
.feature div { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: var(--mut); }
.feature strong { color: var(--fg); font-size: 14.5px; font-weight: 600; }
.foot { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 13px; }
.foot a { color: var(--fg2); }

/* home */
.home { display: flex; flex-direction: column; gap: 18px; }
.home-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.balance { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 22px 22px; border-radius: 28px;
  background: radial-gradient(120% 120% at 100% 0%, var(--hero-glow) 0%, rgba(225,29,46,0) 52%), linear-gradient(165deg, var(--hero-a) 0%, var(--hero-b) 70%);
  border: 1px solid rgba(var(--ink-rgb),.09); box-shadow: var(--sh-hero); }
.balance .wm { position: absolute; right: -26px; bottom: -34px; width: 150px; height: 150px; opacity: .045; z-index: -1; pointer-events: none; }
.bal-top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.bal-label { font-size: 13px; color: var(--fg2); font-weight: 550; }
.amount { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; min-height: 64px; }
.amount .num { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.amount .num .dec { color: rgba(var(--fg-rgb),.45); }
.amount .unit { color: var(--fg2); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.skeleton { display: inline-block; width: 160px; height: 52px; border-radius: 12px; background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 50%, var(--skel-a) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.bal-note { color: var(--mut); font-size: 14px; }
.addr { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--addr-bg); border: 1px solid var(--line2);
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; cursor: pointer; transition: background .2s; }
.addr:hover { background: var(--addr-bg-h); }
.addr .icon { width: 14px; height: 14px; color: var(--mut); }
.ident { width: 22px; height: 22px; border-radius: 50%; flex: none; display: block; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--fg2); font-size: 12.5px; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.qa .qi { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: var(--s2); border: 1px solid var(--line2); color: var(--fg); transition: transform .15s var(--ease), background .2s; }
.qa .qi .icon { width: 22px; height: 22px; }
.qa:hover .qi { background: var(--s3); }
.qa:active .qi { transform: scale(.92); }
/* v3: all four actions share one calm style. Red is only the icon tint and a thin ring on hover/focus. */
.qa .qi .icon { stroke: var(--red); stroke-width: 2; }
.qa:hover .qi, .qa:focus-visible .qi { box-shadow: 0 0 0 1px rgba(225,29,46,.38); }
:root[data-theme="light"] .qa .qi { background: var(--s1); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
:root[data-theme="light"] .qa:hover .qi { background: var(--s1); box-shadow: 0 0 0 1px rgba(225,29,46,.32), 0 1px 2px rgba(16,24,40,.05); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; background: rgba(242,169,59,.07); border: 1px solid rgba(242,169,59,.25); }
.banner .icon { stroke: var(--warn); }
.banner .grow small { color: var(--warn-sub); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line2); }
.chip .icon { width: 13px; height: 13px; }
.chip.ok { color: var(--ok); border-color: rgba(52,199,123,.3); background: rgba(52,199,123,.07); }
.chip.warn { color: var(--warn); border-color: rgba(242,169,59,.3); }
}
@media (min-width: 1024px) { .quick { gap: 12px; } .qa .qi { width: 64px; height: 64px; } }

/* history */
.history { list-style: none; margin: 0; padding: 0; }
.history li + li .hrow { border-top: 1px solid var(--line); }
.hrow { display: flex; align-items: center; gap: 14px; padding: 13px 4px; text-decoration: none; border-radius: 12px; transition: background .2s; }
.hrow:hover { background: rgba(var(--ink-rgb),.025); }
.hicon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); flex: none; }
.hicon.in { background: rgba(52,199,123,.12); }
.hicon.in .icon { stroke: var(--ok); }
.hicon.out .icon { stroke: var(--fg); }
.hamt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; gap: 1px; }
.hamt strong { font-weight: 650; }
.hamt small { font-size: 12px; }
.pos { color: var(--ok); }
.history .empty { padding: 22px 4px; color: var(--mut); text-align: center; }
.history .loading { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.history .loading span { height: 42px; border-radius: 12px; background: linear-gradient(90deg, var(--skel-c) 0%, var(--skel-d) 50%, var(--skel-c) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }

/* receive */
.receive-card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 20px 20px; }
.qr-box { position: relative; width: min(264px, 70vw); aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: #fff; padding: 14px; box-shadow: var(--sh-qr); animation: pop .4s var(--ease) both; }
.qr { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); background: #fff; border-radius: 14px; padding: 7px; }
.addr-full { max-width: 320px; text-align: center; font-size: 15px; line-height: 1.6; letter-spacing: .02em; word-spacing: .2em; }
.addr-full .g:nth-child(odd) { color: var(--mut); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.btn-row.one { grid-template-columns: 1fr; }

/* send */
.amount-entry { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px 20px; }
.amount-line { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; }
.amount-line input { field-sizing: content; width: 4.3ch; min-width: 1.3ch; max-width: 100%; border: 0; background: none; padding: 0; text-align: center; font-size: 52px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; border-radius: 0; box-shadow: none; }
.amount-line input:focus { box-shadow: none; }
.amount-line .unit { font-size: 20px; font-weight: 650; color: var(--fg2); flex: none; }
.amount-line { max-width: 100%; overflow: hidden; }
.amount-meta { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.to-row { display: flex; align-items: center; gap: 10px; }
.to-row input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.review-amt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 14px; }
.review-amt .big-amount { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.review-amt .big-amount .unit { font-size: 18px; color: var(--fg2); letter-spacing: -.01em; }
.to-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.to-card .ident { width: 36px; height: 36px; }
.to-card .grow small { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; word-break: break-all; line-height: 1.4; }
.scan-video { width: 100%; border-radius: 18px; background: #000; aspect-ratio: 1; object-fit: cover; }
.done { display: grid; place-items: center; padding: 8px 0 2px; }
.done svg { width: 76px; height: 76px; }
.done circle { fill: rgba(52,199,123,.12); stroke: var(--ok); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .5s var(--ease) forwards; }
.done path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .35s var(--ease) forwards; }
.sheet h2.center { font-size: 22px; letter-spacing: -.02em; }

/* faucet and access */
.drop-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px 0 4px; }
.drop-hero .dt { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--red-soft); }
.drop-hero .dt .icon { width: 30px; height: 30px; stroke: var(--red); }
.access { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--s2); }
.access div { display: flex; flex-direction: column; gap: 2px; }
.access small { color: var(--mut); }
.access .icon { width: 26px; height: 26px; }
.access.ok .icon { stroke: var(--ok); }
.access.warn .icon { stroke: var(--warn); }

/* settings */
.row-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s2); cursor: pointer; transition: background .2s, border-color .2s; }
.row-btn:hover { background: var(--s3); }
.row-btn.on { border-color: rgba(225,29,46,.7); box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.row-btn:disabled { opacity: .5; cursor: not-allowed; }
.list { display: flex; flex-direction: column; gap: 8px; }
.notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--fg2); }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: w; }
.words li { counter-increment: w; padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.words li::before { content: counter(w) ". "; color: var(--mut); }

/* sheet and toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .22s ease both; }
.sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto; background: var(--s1); border: 1px solid var(--line2); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--sh-sheet); animation: sheetUp .38s var(--ease) both; }
.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(var(--ink-rgb),.18); margin: 0 auto 10px; }
.sheet-wrap.closing { animation: fade .2s ease reverse both; }
.sheet-wrap.closing .sheet { animation: sheetUp .22s ease-in reverse both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head .icon-btn { width: 36px; height: 36px; border-radius: 50%; }
@media (min-width: 1024px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line2); padding: 18px 24px 24px; animation: pop .26s var(--ease) both; }
  .sheet::before { display: none; }
  .sheet-wrap.closing .sheet { animation: pop .18s ease-in reverse both; }
}
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  background: var(--toast-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line2); color: var(--fg); padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-toast); animation: toastIn .32s var(--ease) both; }
.toast .icon { width: 16px; height: 16px; stroke: var(--ok); }
.toast.err .icon { stroke: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 1024px) { .toast { bottom: 32px; } }
@supports (field-sizing: content) { .amount-line input { width: auto; min-width: 1ch; } }

/* top bar actions: network dropdown and theme toggle */
.top-actions { display: flex; align-items: center; gap: 8px; }
.netwrap { position: relative; }
.netpill .icon { width: 14px; height: 14px; color: var(--mut); transition: transform .25s var(--ease); }
.netpill[aria-expanded="true"] .icon { transform: rotate(180deg); }
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(var(--ink-rgb),.04); cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.theme-btn:hover { background: rgba(var(--ink-rgb),.08); }
.theme-btn:active { transform: scale(.92) rotate(-12deg); }
.theme-btn .icon { width: 16px; height: 16px; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; width: 260px; padding: 6px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line2); box-shadow: var(--sh-menu); transform-origin: top right; animation: pop .2s var(--ease) both; }
.menu-title { padding: 8px 10px 6px; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-align: left; transition: background .15s; }
.menu-item:hover:not(:disabled) { background: rgba(var(--ink-rgb),.05); }
.menu-item.on { background: rgba(var(--ink-rgb),.04); }
.menu-item:disabled { cursor: default; }
.menu-item:disabled strong { color: var(--mut); }
.menu-item .icon { stroke: var(--red); }
.soon-tag { font-size: 10.5px; font-weight: 650; padding: 3px 7px; border-radius: 999px; background: rgba(var(--ink-rgb),.06); color: var(--mut); white-space: nowrap; }

/* grouped settings lists */
.group { display: flex; flex-direction: column; gap: 8px; }
.group-title { padding: 0 6px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.group-card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
:root[data-theme="light"] .group-card { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.group-card > .pad { padding: 14px 16px; }
.srow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; background: none; color: var(--fg); text-decoration: none; text-align: left; cursor: default; transition: background .15s; }
button.srow, a.srow { cursor: pointer; }
button.srow:hover, a.srow:hover { background: rgba(var(--ink-rgb),.03); }
button.srow:active, a.srow:active { background: rgba(var(--ink-rgb),.06); }
.srow + .srow, .group-card > * + .srow, .srow + .pad { border-top: 1px solid var(--line); }
.srow > .icon { color: var(--mut); width: 16px; height: 16px; }
.srow .grow small { white-space: normal; line-height: 1.4; }
.srow.danger strong { color: var(--err); }
.srow .right { color: var(--mut); font-size: 13px; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--ink-rgb),.06); flex: none; }
.sic .icon { width: 17px; height: 17px; }
.sic.red { background: var(--red-soft); color: var(--red); }
.sic.green { background: rgba(52,199,123,.12); color: var(--ok); }
.sic.amber { background: rgba(242,169,59,.12); color: var(--warn); }
.sic.blue { background: rgba(80,140,255,.12); color: #5B8DEF; }
.sic.danger { background: rgba(255,90,103,.1); color: var(--err); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: grid; place-items: center; transition: border-color .2s; }
.radio.on { border-color: var(--red); }
.radio.on::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pop .2s var(--ease) both; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 18px 20px; text-align: center; }
.profile .ident { width: 64px; height: 64px; box-shadow: 0 0 0 4px var(--s1), 0 0 0 5px var(--line2); }
.profile h2 { font-size: 19px; letter-spacing: -.02em; }
.profile .addr { margin-top: 2px; }
.seg { position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; padding: 4px; border-radius: 14px; background: rgba(var(--ink-rgb),.05); border: 1px solid var(--line); }
.seg-hl { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 10px; background: var(--s3); box-shadow: 0 1px 3px rgba(0,0,0,.18), inset 0 0 0 1px var(--line); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .35s var(--ease); }
:root[data-theme="light"] .seg-hl { background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--mut); transition: color .2s; }
.seg button.on { color: var(--fg); }
.seg button .icon { width: 15px; height: 15px; }
.foot-meta { text-align: center; font-size: 12.5px; color: var(--mut); padding: 6px 0 2px; }

/* import */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { margin: 0; }
.field .hint { font-size: 12.5px; color: var(--mut); }
.note.warn { display: flex; gap: 12px; align-items: flex-start; }
.note.warn .icon { stroke: var(--warn); margin-top: 1px; }
.adv summary { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; color: var(--fg2); font-weight: 600; font-size: 13.5px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.adv[open] summary .icon { transform: rotate(90deg); }
.adv > .stack { margin-top: 14px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border-radius: 16px; border: 1.5px dashed var(--line2); background: rgba(var(--ink-rgb),.02); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; margin: 0; font-weight: 500; }
.drop:hover, .drop.has { border-color: rgba(225,29,46,.55); background: var(--red-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .sic { width: 44px; height: 44px; border-radius: 14px; }
.drop strong { font-size: 14.5px; color: var(--fg); }
.drop small { color: var(--mut); font-size: 12.5px; }
.panel { animation: rise .3s var(--ease) both; }

/* ---------------------------------------------------------------- v3: accounts */
.av { --av: #E11D2E; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--av); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); user-select: none; }
.av.xs { width: 20px; height: 20px; font-size: 10.5px; vertical-align: -5px; }
.av.lg { width: 56px; height: 56px; font-size: 22px; }
.av.xl { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 4px var(--s1), 0 0 0 5px var(--line2); }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 70%; height: 36px; padding: 0 10px 0 4px; margin-left: -4px; border-radius: 999px; border: 1px solid var(--line2); background: var(--addr-bg); color: var(--fg); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .2s; }
.acct-btn:hover { background: var(--addr-bg-h); }
.acct-btn .acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn > .icon { width: 15px; height: 15px; color: var(--mut); }
.balance .bal-label { margin-top: 12px; }
.alist { display: flex; flex-direction: column; gap: 8px; }
.arow { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 18px; border: 1px solid var(--line); background: var(--s2); }
.arow.on { border-color: rgba(225,29,46,.4); }
.arow-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 10px 8px; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
.arow-main .av { width: 38px; height: 38px; font-size: 16px; }
.arow-main .grow { display: flex; flex-direction: column; min-width: 0; }
.arow-main .grow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow-main .grow small { color: var(--mut); font-size: 12px; }
.abal { font-size: 13px; font-weight: 600; color: var(--fg2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.acheck { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; flex: none; }
.acheck .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn.sm .icon { width: 16px; height: 16px; color: var(--mut); }
.skeleton.sm { width: 54px; height: 14px; border-radius: 6px; }
.apreview { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--av); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .15s var(--ease), box-shadow .15s; }
.swatches button.on { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px var(--av); }
.swatches button:active { transform: scale(.9); }
.center { text-align: center; }

/* ---------------------------------------------------------------- v3: organizations */
.orgs { display: flex; flex-direction: column; gap: 12px; }
.orgs:empty { display: none; }
.orgav { --av: #64748B; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--av); color: #fff; font-weight: 750; font-size: 14px; letter-spacing: .02em; }
.join-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--line2); background: transparent; color: var(--fg); text-decoration: none; transition: background .2s, border-color .2s; }
.join-row:hover { background: var(--s2); border-color: rgba(225,29,46,.35); }
.join-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.join-row small { color: var(--mut); font-size: 12.5px; line-height: 1.4; }
.join-row > .icon { color: var(--mut); width: 16px; height: 16px; }
.mcard { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--fg); }
.mcard.link { transition: border-color .2s, transform .15s var(--ease); }
.mcard.link:hover { border-color: var(--line2); }
.mcard.link:active { transform: scale(.99); }
.mhead { display: flex; align-items: center; gap: 12px; }
.mhead .grow { display: flex; flex-direction: column; min-width: 0; }
.mhead .grow strong { font-size: 16px; }
.mhead .grow small { color: var(--mut); font-size: 12.5px; }
.mstatus { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 1px solid var(--line2); color: var(--fg2); }
.mstatus .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); }
.mstatus.active { color: var(--ok); border-color: rgba(52,199,123,.3); background: rgba(52,199,123,.07); }
.mstatus.active .dot { background: var(--ok); }
.mstatus.pending, .mstatus.activating { color: var(--warn); border-color: rgba(242,169,59,.3); background: rgba(242,169,59,.06); }
.mstatus.pending .dot, .mstatus.activating .dot { background: var(--warn); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: rgba(var(--ink-rgb),.06); color: var(--fg2); }
.mrows { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mrows .kv { font-size: 13.5px; }
.priv { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.priv .icon { width: 13px; height: 13px; color: var(--mut); }
.olist { display: flex; flex-direction: column; gap: 8px; }
.orow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--s2); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s; }
.orow .grow { display: flex; flex-direction: column; min-width: 0; }
.orow .grow small { color: var(--mut); font-size: 12.5px; line-height: 1.35; }
.orow.on { border-color: rgba(225,29,46,.45); }
.orow.on .radio { border-color: var(--red); }
.orow.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pop .2s var(--ease) both; }
.field .hint .icon { width: 12px; height: 12px; vertical-align: -2px; }
.center-col { align-items: center; text-align: center; }
.sic.big { width: 54px; height: 54px; border-radius: 16px; background: var(--red-soft); color: var(--red); }
.sic.big .icon { width: 24px; height: 24px; }
.otp { max-width: 220px; text-align: center; font-size: 26px; letter-spacing: .4em; font-variant-numeric: tabular-nums; font-weight: 650; padding-left: .4em; }
.note.mock { display: flex; gap: 10px; align-items: flex-start; text-align: left; border-style: dashed; border-color: rgba(242,169,59,.45); background: rgba(242,169,59,.06); color: var(--fg2); }
.note.mock .icon { stroke: var(--warn); margin-top: 1px; }
.note.mock .mono { font-size: 15px; font-weight: 700; color: var(--fg); letter-spacing: .08em; }
.note.mock .pill-btn { height: 26px; margin-left: 4px; }
button.back { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 550; }
.balance .addr { padding-left: 12px; }
.toast.update { cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.toast.update .icon { stroke: var(--red); }
.toast.update:disabled { opacity: .7; }

/* ---- v4: tokens, assets, actions, scan ---- */
.home-tabs { display: flex; flex-direction: column; gap: 8px; }
.seg-head { gap: 14px; }
.seg-head .seg { flex: 1; max-width: 420px; }
.pane { min-height: 120px; }
.panel { display: flex; flex-direction: column; gap: 8px; }
.tmark { --av: #64748B; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--av); color: #fff; font-weight: 750; font-size: 11.5px; letter-spacing: .02em; }
.tmark.native { background: var(--red-soft); }
.tmark.native img { width: 24px; height: 24px; }
.tmark.lg { width: 56px; height: 56px; font-size: 14px; }
.tmark.lg.native img { width: 32px; height: 32px; }
.add-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.add-row .grow small { color: var(--mut); }
.add-row:hover strong { color: var(--fg); }
.add-row > .icon { width: 16px; height: 16px; stroke: var(--mut); }
.token-head { display: flex; align-items: center; gap: 14px; }
.token-head h1 { font-size: 24px; letter-spacing: -.02em; }
.token-head p { margin-top: 2px; }
.token-card .bal-label { margin-top: 4px; }
.token-card .amount { margin-top: 0; min-height: 56px; }
.token-card .amount .num { font-size: 44px; }
.org-inline { display: inline-flex; align-items: center; gap: 8px; }
.orgav.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
.orgav.xxs { width: 18px; height: 18px; border-radius: 6px; font-size: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip.org { color: var(--fg2); }
.action-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--s2); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, transform .1s; }
.action-btn.big { min-height: 72px; }
.action-btn:hover { background: var(--s3); box-shadow: 0 0 0 1px rgba(225,29,46,.3); }
.action-btn:active { transform: scale(.985); }
.action-btn strong { font-size: 16px; }
.action-btn small { display: block; color: var(--mut); margin-top: 2px; }
.action-btn > .icon { width: 16px; height: 16px; stroke: var(--mut); flex: none; }
.action-btn .ai { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red-soft); flex: none; }
.action-btn .ai .icon { stroke: var(--red); width: 20px; height: 20px; }
:root[data-theme="light"] .action-btn { background: var(--s1); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agrid .empty, .agrid .status { grid-column: 1 / -1; padding: 18px 4px; text-align: center; }
.acard { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--s2); text-decoration: none; color: inherit; min-width: 0; transition: background .2s, box-shadow .2s; }
.acard:hover { background: var(--s3); box-shadow: 0 0 0 1px rgba(225,29,46,.25); }
:root[data-theme="light"] .acard { background: var(--s1); }
.ac-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px 2px; }
.ac-body strong, .ac-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-body .org-inline { margin-top: 4px; color: var(--fg2); font-weight: 600; }
.atile { --av: #64748B; position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 12px; border-radius: 12px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(135deg, var(--av), color-mix(in srgb, var(--av) 55%, #000)); }
.atile .at-sym { font-size: 12px; font-weight: 750; letter-spacing: .12em; opacity: .85; }
.atile .at-id { font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.atile.lg { width: 112px; flex: none; aspect-ratio: 1; }
.atile.lg .at-id { font-size: 30px; }
.atile.md { width: 64px; flex: none; aspect-ratio: 1; padding: 8px; }
.atile.md .at-id { display: none; }
.asset-head { display: flex; align-items: flex-start; gap: 16px; }
.asset-head h1 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.asset-head p { margin-top: 6px; }
.sponsor { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 650; }
.kv.sponsored > span:first-child { color: var(--fg2); }
.big-amount.action-name { font-size: 30px; text-align: center; }
.paste-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.paste-row .btn { min-height: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.stack.tight { gap: 10px; }
.action-intro p { margin-top: 2px; }
.link-actions { display: inline-flex; gap: 6px; }
.break { word-break: break-all; }
.hrow strong.wrap { white-space: normal; overflow-wrap: anywhere; }
.center { text-align: center; }
@media (min-width: 1024px) {
  .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-page { max-width: 720px; }
}
.action-btn .grow small { white-space: normal; line-height: 1.4; }

/* ============================================================ v5 layout */
.shell { flex-direction: row; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#app { overflow-x: clip; }
.top-acct { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; text-decoration: none; }
.top-acct .av { width: 30px; height: 30px; font-size: 12px; }

/* Tab screens */
.tabpanel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 0; min-height: 28px; }
.tp-head h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--fg2); letter-spacing: .01em; }
.tp-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.home.bare-tab { gap: 14px; }
.thead, .tc { display: none; }
.scan-cta { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); color: var(--fg); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s var(--ease); }
.scan-cta:hover { box-shadow: 0 0 0 1px rgba(225,29,46,.32); }
.scan-cta:active { transform: scale(.985); }
.scan-cta .sic { width: 48px; height: 48px; border-radius: 16px; background: var(--red-soft); display: grid; place-items: center; flex: none; }
.scan-cta .sic .icon { width: 24px; height: 24px; stroke: var(--red); }
.scan-cta strong { display: block; font-size: 16px; }
.scan-cta small { display: block; color: var(--mut); font-size: 13px; margin-top: 2px; }
.tabpanel .panel { display: flex; flex-direction: column; gap: 14px; }
/* no cards inside cards: inner blocks of a card are flat, separated by hairlines */
.card .action-btn { background: rgba(var(--ink-rgb),.035); border-color: transparent; box-shadow: none; }
.card .card { border: 0; background: none; padding: 0; box-shadow: none; }

/* Phone stack pages: own header, no app header, no tab bar; slide in from the right. */
.stackbar { display: none; }
@media (max-width: 1023px) {
  .shell.stack .top { display: none; }
  .shell.stack .stackbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px;
    padding: calc(6px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); min-height: calc(52px + env(safe-area-inset-top));
    background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
  .shell.stack .stackbar.titled { border-bottom-color: var(--line); }
  .stackbar .sb-back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; }
  .stackbar .sb-back .icon { width: 22px; height: 22px; }
  .stackbar .sb-title { margin: 0; font-size: 16px; font-weight: 650; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease); }
  .stackbar.titled .sb-title { opacity: 1; transform: none; }
  .shell.stack .main { padding: 8px max(18px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .shell.stack .main .back { display: none; }
  .shell.stack .main > section, .shell.stack .main > section > * { animation: none; }
  .shell.push-in { position: relative; z-index: 3; background: var(--bg); min-height: 100dvh; animation: stackIn .4s var(--ios) both; box-shadow: -10px 0 28px rgba(0,0,0,.22); will-change: transform; }
  .shell.pop-in { animation: stackBack .36s var(--ios) both; will-change: transform; }
  .shell.pop-in::after { content: ""; position: fixed; inset: 0; background: #000; pointer-events: none; z-index: 24; animation: dimOut .36s var(--ios) both; }
  .ghost { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
  .ghost.under { z-index: 1; animation: stackUnder .4s var(--ios) both; }
  .ghost.under::after { content: ""; position: absolute; inset: 0; background: #000; animation: dimIn .4s var(--ios) both; }
  .ghost.out { z-index: 25; box-shadow: -10px 0 28px rgba(0,0,0,.22); animation: stackOut .36s var(--ios) both; will-change: transform; }
  #app { position: relative; z-index: 2; }
}
@keyframes stackIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes stackOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes stackUnder { from { transform: none; } to { transform: translateX(-30%); } }
@keyframes stackBack { from { transform: translateX(-30%); } to { transform: none; } }
@keyframes dimIn { from { opacity: 0; } to { opacity: .28; } }
@keyframes dimOut { from { opacity: .28; } to { opacity: 0; } }
:root { --ios: cubic-bezier(.2, .9, .25, 1); }

/* Desktop (>= 1024 px): sidebar that folds into an icon rail, full-width main area, one grid. */
@media (min-width: 1024px) {
  .top .brand { display: none; }
  .top { justify-content: flex-end; padding: 10px 24px; min-height: 56px; }
  .top-acct { display: none; }
  .side { display: flex; flex-direction: column; flex: none; width: 248px; height: 100dvh; position: sticky; top: 0; padding: 12px 10px; gap: 14px; border-right: 1px solid var(--line); background: var(--s1);
    transition: width .32s var(--ease); overflow: hidden; z-index: 6; }
  .shell.rail .side { width: 68px; }
  .side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 36px; padding-left: 9px; }
  .side-top .brand { gap: 10px; }
  .side-top .brand-name { font-size: 16px; font-weight: 700; }
  .side .sl { white-space: nowrap; transition: opacity .2s ease, transform .3s var(--ease); }
  .shell.rail .side .sl { opacity: 0; transform: translateX(-6px); pointer-events: none; }
  .shell.rail .side-top .brand { width: 0; overflow: hidden; }
  .shell.rail .side-top { padding-left: 0; justify-content: center; }
  .rail-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--fg2); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
  .rail-btn:hover { background: rgba(var(--ink-rgb),.05); color: var(--fg); }
  .rail-btn .icon { width: 20px; height: 20px; transition: transform .38s var(--ease); }
  .shell.rail .rail-btn .icon { transform: scaleX(-1); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-radius: 10px; text-decoration: none; color: var(--fg2); font-weight: 550; font-size: 14px;
    border: 0; background: none; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
  .side-nav .icon { width: 20px; height: 20px; flex: none; }
  .side-nav a:hover, .side-nav button:hover { background: rgba(var(--ink-rgb),.045); color: var(--fg); }
  .side-nav a.on { background: var(--s2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
  .side-nav a.on .icon { stroke: var(--red); }
  .side-foot { margin-top: auto; }
  .side-acct { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); cursor: pointer; text-align: left; color: var(--fg); }
  .side-acct .av { width: 32px; height: 32px; flex: none; }
  .side-acct strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
  .side-acct small { display: block; font-size: 11.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
  .shell.rail .side-acct { padding: 8px 9px; border-color: transparent; background: none; }

  .main { max-width: 760px; margin: 0; padding: 20px 28px 48px; }
  .main.wide { max-width: none; }
  /* Home: summary header (balance + actions + company), then the selected slide full width. */
  .home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-areas: "bal quick" "bal orgs" "slides slides"; gap: 16px; align-items: start; }
  .home > .balance { grid-area: bal; min-height: 100%; }
  .home > .quick { grid-area: quick; }
  .home > .orgs, .home > :nth-child(3) { grid-area: orgs; }
  .home > .tabpanel { grid-area: slides; }
  .tabpanel .agrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .tabpanel .scan-cta { max-width: 520px; }
  .home .quick { gap: 8px; }
  .home .qa { flex-direction: row; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line2); color: var(--fg); font-size: 13.5px; }
  .home .qa .qi { width: auto; height: auto; background: none; border: 0; box-shadow: none !important; }
  .home .qa .qi .icon { width: 18px; height: 18px; }
  .home .qa:hover { background: var(--s3); box-shadow: 0 0 0 1px rgba(225,29,46,.32); }
  :root[data-theme="light"] .home .qa { background: var(--s1); }
  /* tables */
  .tabpanel .history .hrow, .tabpanel .history .thead { display: grid; align-items: center; gap: 16px; }
  .tabpanel .tlist .hrow, .tabpanel .tlist .thead { grid-template-columns: 36px minmax(180px, 2fr) minmax(140px, 1.4fr) minmax(110px, 1fr) minmax(140px, 1fr); }
  .tabpanel .history:not(.tlist) .hrow { grid-template-columns: 36px minmax(180px, 2fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(150px, 1fr); }
  .tabpanel .history:not(.tlist) .thead { grid-template-columns: 36px minmax(180px, 2fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(150px, 1fr); }
  .thead span:first-child { grid-column: span 2; }
  .thead { padding: 10px 4px 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); }
  .thead span:last-child { text-align: right; }
  .tabpanel .tc { display: block; font-size: 13.5px; color: var(--fg2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabpanel .tc.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
  .tabpanel .history:not(.tlist) .hrow .grow small { display: none; }
  .tabpanel .hrow { padding: 10px 4px; }
  .tabpanel .history li.thead + li .hrow { border-top: 0; }
  .tabpanel .agrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 8px 0; }
  /* detail pages: two columns */
  .dcols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .main:has(.dcols) { max-width: 1240px; }
  .asset-page { max-width: none; }
}
@media (max-width: 1023px) { .dcols, .dmain, .dside { display: contents; } }
.dmain, .dside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* v5 polish: flat rows inside sheets and cards (hairline separators, no nested borders) */
.alist { display: flex; flex-direction: column; gap: 0 !important; }
.arow { border: 0; border-radius: 14px; background: none; padding: 2px 4px 2px 0; }
.alist > .arow + .arow, .alist > * + * { border-top: 1px solid var(--line); border-radius: 0; }
.arow.on { background: none; }
.arow .icon-btn.sm { border-color: transparent; background: rgba(var(--ink-rgb),.05); }
.history li.thead + li .hrow { border-top: 0; }
.btn-row .btn { flex: 1 1 0; min-width: 0; }

/* ============================================================ v5 polish: one grid, flat lists, titles above content */
:root { --gx: 18px; --row: 60px; }
.main > section, .main > section > * { animation: none; }            /* tabs appear instantly; stack pages slide (shell) */
.sect { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sect-head, .tp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 24px; margin: 0; padding: 0; }
.sect-head h2, .tp-head h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); line-height: 24px; }
.sect-head .chip { align-self: center; }
.tp-head h1 { line-height: 1.15; }
.tabpanel { gap: 8px; }
.history .hrow, .srow, .rows > .kv, .add-row { min-height: var(--row); }
.hrow { padding: 10px 0; border-radius: 0; gap: 14px; }
.hrow:hover { background: none; }
.history .hamt { margin-left: auto; text-align: right; }
.history li:first-child .hrow { border-top: 0; }
.add-row { padding: 10px 0; border-radius: 0; }
.add-row .sic, .hrow .hicon, .hrow .tmark { flex: none; }
.rows > .kv { padding: 0; }
.group { gap: 6px; }
.group-title { padding: 0; font-size: 13px; letter-spacing: .08em; line-height: 24px; }
.group-card { background: none; border: 0; border-radius: 0; overflow: visible; }
:root[data-theme="light"] .group-card { box-shadow: none; }
.group-card > .pad { padding: 12px 0; }
.srow { padding: 10px 0; }
.srow:hover { background: none; }
.group-card > .srow:first-child { border-top: 0; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1023px) {
  .agrid { display: flex; flex-direction: column; gap: 0; }
  .agrid .acard { flex-direction: row; align-items: center; gap: 14px; min-height: var(--row); padding: 10px 0; border: 0; border-radius: 0; background: none; box-shadow: none !important; }
  .agrid .acard + .acard { border-top: 1px solid var(--line); }
  .agrid .acard .atile { width: 44px; height: 44px; aspect-ratio: 1; padding: 0; border-radius: 12px; flex: none; justify-content: center; align-items: center; }
  .agrid .acard .atile .at-sym { display: none; }
  .agrid .acard .atile .at-id { font-size: 15px; letter-spacing: -.01em; }
  .agrid .acard .ac-body { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; flex: 1; min-width: 0; }
  .agrid .acard .ac-body strong, .agrid .acard .ac-body small { grid-column: 1; }
  .agrid .acard .ac-body .org-inline { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; color: var(--fg2); }
  :root[data-theme="light"] .agrid .acard { background: none; }
  .shell.stack .main .page-head h1, .shell.stack .main section.stack > h1, .shell.stack .main .drop-hero h1 { display: none; }
  .shell.stack .main .page-head:not(:has(> :not(h1))) { display: none; }
  .shell.stack .main .page-head > div:not(:has(> :not(h1))) { display: none; }
  .stackbar .sb-title { opacity: 1; transform: none; }
  .main, .shell.stack .main { padding-left: max(var(--gx), env(safe-area-inset-left)); padding-right: max(var(--gx), env(safe-area-inset-right)); }
  .top { padding-left: max(var(--gx), env(safe-area-inset-left)); padding-right: max(var(--gx), env(safe-area-inset-right)); }
}
.loading-grid { display: grid; place-items: center; min-height: 140px; grid-column: 1 / -1; }
.pulse-mark { display: grid; place-items: center; }
.pulse-mark .mark { width: 34px; height: 34px; animation: markPulse 1.2s ease-in-out infinite; }
.history .loading .pulse-mark { height: auto; background: none; animation: none; padding: 12px 0 4px; }
@keyframes markPulse { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
@media (min-width: 1024px) {
  .tabpanel .history .hrow { padding: 8px 0; min-height: 56px; }
  .sect-head h2, .tp-head h2, .tp-head h1 { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); line-height: 24px; }
}
@media (min-width: 1024px) { .rows > .kv, .srow { min-height: 48px; } }

/* ---------------------------------------------------------------- v6: Connect with UTN Wallet */
.connect-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.connect-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.connect-top .mark { width: 28px; height: 28px; }
.connect-top .brand-name { font-weight: 700; letter-spacing: -.01em; }
.connect-top .brand-name .m { color: var(--red); }
.netpill.static { cursor: default; height: 30px; font-size: 12.5px; }
.netpill.static:hover { background: rgba(var(--ink-rgb),.04); }
.connect-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; max-width: 420px; margin: 0 auto; }
.connect-wait.small { flex: none; padding: 28px 0 18px; }
.connect-wait h1 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.pulse-mark.still .mark { animation: none; width: 56px; height: 56px; }
.sheet-wrap.docked { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 1024px) { .sheet-wrap.docked { align-items: center; } }
.site-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.site-head .grow { display: flex; flex-direction: column; min-width: 0; }
.site-head strong { font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-head small { color: var(--mut); font-size: 13px; }
.site-head small.warn { color: var(--err); }
.site-av { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line2); font-weight: 700; font-size: 18px; color: var(--fg); }
.site-av .mark { width: 26px; height: 26px; }
.srow .site-av { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
.srow .site-av .mark { width: 22px; height: 22px; }
.acct-line { display: flex; align-items: center; gap: 12px; width: 100%; }
.acct-line .grow { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.acct-line small { color: var(--mut); font-size: 12.5px; }
.pick-list { display: flex; flex-direction: column; }
.pick { display: flex; width: 100%; padding: 12px 2px; border: 0; background: none; color: var(--fg); cursor: pointer; font: inherit; }
.pick + .pick { border-top: 1px solid var(--line); }
.can-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.can-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.can-list li .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--mut); }
.can-list li.muted { color: var(--mut); font-size: 13.5px; }
.msg-box { margin: 0; padding: 14px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--s2); border-radius: 14px; color: var(--fg); }
.small-btn { min-height: 36px; padding: 6px 14px; font-size: 13.5px; border-radius: 10px; }
.site-row { cursor: default; }
/* v6b: sign-in details (EIP-4361 fields in UTN words) */
.siwe-sum .kv { align-items: flex-start; }
.siwe-sum .kv > span:first-child { color: var(--muted, #A1A5AE); flex: none; }
.siwe-sum .kv > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
