:root {
  --dash-bg: #eef2f6;
  --dash-panel: #ffffff;
  --dash-text: #0f172a;
  --dash-muted: #475569;
  --dash-faint: #94a3b8;
  --dash-line: #e2e8f0;
  --dash-side: #0f172a;
  --dash-side-text: #94a3b8;
  --dash-up: #15803d;
  --dash-down: #dc2626;
  --hero: #ffffff;
  --dash-primary: #2563eb;
  --dash-primary-weak: rgba(37, 99, 235, 0.12);
  --dash-primary-strong: #1d4ed8;
  --dash-primary-contrast: #ffffff;
  --dash-accent-rgb: 37, 99, 235;
  --dash-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --dash-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --dash-bg: #0f172a;
  --dash-panel: #1e293b;
  --dash-text: #f8fafc;
  --dash-muted: #94a3b8;
  --dash-faint: #64748b;
  --dash-line: #334155;
  --dash-side: #020617;
  --hero: #020617;
  --dash-primary: #3b82f6;
  --dash-primary-weak: rgba(96, 165, 250, 0.16);
  --dash-primary-strong: #60a5fa;
  --dash-primary-contrast: #020617;
  --dash-accent-rgb: 96, 165, 250;
  --dash-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
html[data-accent="blue"] { --dash-primary: #2563eb; --dash-primary-weak: rgba(37, 99, 235, 0.12); --dash-primary-strong: #1d4ed8; --dash-accent-rgb: 37, 99, 235; }
html[data-accent="cyan"] { --dash-primary: #0891b2; --dash-primary-weak: rgba(8, 145, 178, 0.14); --dash-primary-strong: #0e7490; --dash-accent-rgb: 8, 145, 178; }
html[data-accent="teal"] { --dash-primary: #0d9488; --dash-primary-weak: rgba(13, 148, 136, 0.14); --dash-primary-strong: #0f766e; --dash-accent-rgb: 13, 148, 136; }
html[data-accent="green"] { --dash-primary: #16a34a; --dash-primary-weak: rgba(22, 163, 74, 0.14); --dash-primary-strong: #15803d; --dash-accent-rgb: 22, 163, 74; }
html[data-accent="violet"] { --dash-primary: #7c3aed; --dash-primary-weak: rgba(124, 58, 237, 0.14); --dash-primary-strong: #6d28d9; --dash-accent-rgb: 124, 58, 237; }
html[data-accent="amber"] { --dash-primary: #d97706; --dash-primary-weak: rgba(217, 119, 6, 0.14); --dash-primary-strong: #b45309; --dash-accent-rgb: 217, 119, 6; }
html[data-accent="orange"] { --dash-primary: #ea580c; --dash-primary-weak: rgba(234, 88, 12, 0.14); --dash-primary-strong: #c2410c; --dash-accent-rgb: 234, 88, 12; }
html[data-accent="rose"] { --dash-primary: #e11d48; --dash-primary-weak: rgba(225, 29, 72, 0.14); --dash-primary-strong: #be123c; --dash-accent-rgb: 225, 29, 72; }
html[data-accent="slate"] { --dash-primary: #475569; --dash-primary-weak: rgba(71, 85, 105, 0.16); --dash-primary-strong: #334155; --dash-accent-rgb: 71, 85, 105; }
html[data-accent="custom"] { --dash-primary: var(--dash-accent-custom, #2563eb); }
html[data-theme="dark"][data-accent="blue"] { --dash-primary: #60a5fa; --dash-primary-weak: rgba(96, 165, 250, 0.16); --dash-primary-strong: #93c5fd; --dash-primary-contrast: #020617; --dash-accent-rgb: 96, 165, 250; }
html[data-theme="dark"][data-accent="cyan"] { --dash-primary: #22d3ee; --dash-primary-weak: rgba(34, 211, 238, 0.16); --dash-primary-strong: #67e8f9; --dash-primary-contrast: #020617; --dash-accent-rgb: 34, 211, 238; }
html[data-theme="dark"][data-accent="teal"] { --dash-primary: #2dd4bf; --dash-primary-weak: rgba(45, 212, 191, 0.16); --dash-primary-strong: #5eead4; --dash-primary-contrast: #020617; --dash-accent-rgb: 45, 212, 191; }
html[data-theme="dark"][data-accent="green"] { --dash-primary: #4ade80; --dash-primary-weak: rgba(74, 222, 128, 0.16); --dash-primary-strong: #86efac; --dash-primary-contrast: #020617; --dash-accent-rgb: 74, 222, 128; }
html[data-theme="dark"][data-accent="violet"] { --dash-primary: #a78bfa; --dash-primary-weak: rgba(167, 139, 250, 0.16); --dash-primary-strong: #c4b5fd; --dash-primary-contrast: #020617; --dash-accent-rgb: 167, 139, 250; }
html[data-theme="dark"][data-accent="amber"] { --dash-primary: #fbbf24; --dash-primary-weak: rgba(251, 191, 36, 0.16); --dash-primary-strong: #fcd34d; --dash-primary-contrast: #020617; --dash-accent-rgb: 251, 191, 36; }
html[data-theme="dark"][data-accent="orange"] { --dash-primary: #fb923c; --dash-primary-weak: rgba(251, 146, 60, 0.16); --dash-primary-strong: #fdba74; --dash-primary-contrast: #020617; --dash-accent-rgb: 251, 146, 60; }
html[data-theme="dark"][data-accent="rose"] { --dash-primary: #fb7185; --dash-primary-weak: rgba(251, 113, 133, 0.16); --dash-primary-strong: #fda4af; --dash-primary-contrast: #020617; --dash-accent-rgb: 251, 113, 133; }
html[data-theme="dark"][data-accent="slate"] { --dash-primary: #94a3b8; --dash-primary-weak: rgba(148, 163, 184, 0.16); --dash-primary-strong: #cbd5e1; --dash-primary-contrast: #020617; --dash-accent-rgb: 148, 163, 184; }
html[data-density="airy"] {
  --u1: 10px;
  --u2: 20px;
  --u3: 32px;
  --u4: 44px;
  --u5: 52px;
}
html[data-density="split"] {
  --u1: 8px;
  --u2: 14px;
  --u3: 20px;
  --u4: 28px;
}
html[data-density="compact"] {
  --u1: 6px;
  --u2: 12px;
  --u3: 16px;
  --u4: 22px;
}
html[data-density="board"] {
  --u1: 4px;
  --u2: 8px;
  --u3: 12px;
  --u4: 16px;
}
html[data-density="airy"] .ui-card { padding: 28px 32px; }
html[data-density="compact"] .ui-card { padding: 14px 16px; }
html[data-density="compact"] .asset-row-pro { min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
html[data-density="compact"] .page-hero { padding-bottom: 8px; }
html[data-density="board"] .ui-card { padding: 12px 14px; border-radius: 12px; }
html[data-density="board"] .asset-row-pro { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }

.dash-body {
  background: var(--dash-bg);
  color: var(--dash-text);
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
}
.dash-body button,
.dash-body input,
.dash-body select,
.dash-body textarea {
  font: inherit;
  color: inherit;
}
.dash-body input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
.dash-body select,
.dash-body textarea {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: 1px solid var(--dash-line);
  background: var(--dash-panel);
  color: var(--dash-text);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.dash-body input[type="radio"],
.dash-body input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--dash-primary);
  flex: none;
  cursor: pointer;
}
.dash-body input[type="range"] {
  width: 100%;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--dash-bg);
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--dash-primary);
}
.dash-body textarea { min-height: 112px; height: auto; resize: vertical; }
.dash-body input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):focus,
.dash-body select:focus,
.dash-body textarea:focus {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.dash-body .btn {
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 16px;
  transform: none !important;
  box-shadow: none !important;
}
.dash-body .btn-sm { height: 40px; min-height: 40px; font-size: 14px; }
.dash-body .btn-primary {
  background: var(--dash-primary);
  color: #fff;
  border: 1px solid var(--dash-primary);
}
.dash-body .btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.dash-body .btn-ghost {
  background: #fff;
  color: var(--dash-text);
  border: 1px solid var(--dash-line);
}
html[data-theme="dark"] .dash-body .btn-ghost {
  background: var(--dash-panel);
  color: var(--dash-text);
}
.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.dash-side {
  background: var(--dash-side);
  color: var(--dash-side-text);
  padding: 24px 12px 88px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0 12px 24px;
  font-size: 16px;
}
.dash-brand .brand-mark { width: 24px; height: 24px; border-radius: 8px; background: #fff; }
.dash-nav a, .dash-nav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}
.dash-nav a:hover, .dash-nav button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dash-nav a.on, .dash-nav button.on {
  background: transparent;
  color: #fff;
  box-shadow: none;
  animation: none;
  font-weight: 700;
}
html[data-theme="light"] .dash-nav a.on,
html[data-theme="light"] .dash-nav button.on {
  background: transparent;
  color: #0f172a;
}
.dash-nav .sec {
  margin: 20px 12px 6px;
  padding-top: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}
.dash-nav .sec:first-child { margin-top: 0; }
.dash-nav button.nav-transfer {
  margin-left: 2px;
}
.dash-nav button.nav-transfer .nav-label {
  font-weight: 600;
}
.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--dash-bg);
}
.dash-announce {
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  flex: none;
  position: relative;
}
html[data-theme="dark"] .dash-announce {
  background: #fff;
  color: #0a0a0a;
}
.dash-announce:empty { display: none; height: 0; }
.dash-announce::before,
.dash-announce::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 48px; z-index: 1;
  pointer-events: none;
}
.dash-announce::before { left: 0; background: linear-gradient(90deg, #0f172a, transparent); }
.dash-announce::after { right: 0; background: linear-gradient(270deg, #0f172a, transparent); }
html[data-theme="dark"] .dash-announce::before { background: linear-gradient(90deg, #fff, transparent); }
html[data-theme="dark"] .dash-announce::after { background: linear-gradient(270deg, #fff, transparent); }
.announce-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 0 24px;
}
.announce-tag {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.announce-mask { overflow: hidden; flex: 1; min-width: 0; }
.dash-announce .track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.dash-announce .track--marquee {
  animation: ticker 32s linear infinite;
}
.dash-announce .track--static span { opacity: 1; }
.dash-announce .track span { opacity: 0.92; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--dash-panel);
  border-bottom: 1px solid var(--dash-line);
  position: sticky;
  top: 0;
  z-index: 8;
  flex: none;
  min-height: 72px;
}
.dash-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dash-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-faint);
  font-weight: 700;
  margin: 0 0 0;
}
.dash-top h1.view-title-rename {
  cursor: text;
  outline: none;
  min-width: 1.2em;
  border-radius: 0;
  box-shadow: none;
}
.dash-top h1.view-title-rename:hover {
  box-shadow: inset 0 -1px 0 var(--dash-line);
}
.dash-top h1.view-title-rename:focus {
  box-shadow: inset 0 -2px 0 var(--dash-text);
}
.dash-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: none;
}
.dash-body .dash-tools select,
.dash-body .tool-select select {
  width: auto;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 28px 0 14px;
  border: 1px solid var(--dash-line);
  background: var(--dash-panel);
  color: var(--dash-text);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  box-shadow: none;
}
.tool-select { position: relative; display: block; }
.tool-select::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  opacity: 0.55;
}
.tool-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--dash-line);
  background: var(--dash-panel);
  color: var(--dash-text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  flex: none;
  line-height: 0;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.tool-btn svg { width: 18px; height: 18px; display: block; }
.tool-btn:hover {
  transform: translateY(-1px);
  border-color: var(--dash-text);
  background: var(--dash-bg);
}
.n-count {
  position: absolute; top: -3px; right: -3px;
  background: var(--dash-primary); color: #fff; font-size: 12px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  display: grid; place-items: center; line-height: 1;
}
html[data-theme="dark"] .n-count { background: var(--dash-primary); color: #fff; }
.avatar {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  padding: 0; margin: 0; flex: none;
  border-radius: 50%;
  background: var(--dash-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em;
  cursor: pointer; border: 0; line-height: 1;
  overflow: hidden;
  transition: transform 0.18s ease;
}
.avatar:hover { transform: scale(1.05); }
.avatar.has-photo { background: #111; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-host { position: absolute; right: 0; top: calc(100% + 10px); z-index: 22; }
.pop {
  width: 280px;
  background: var(--dash-panel);
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(10,10,10,0.12);
  animation: pop 0.2s ease;
}
.pop a, .pop button {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  border-radius: 12px; font-weight: 600; font-size: 0.9rem;
}
.pop a:hover, .pop button:hover { background: var(--dash-bg); }
.pop p { padding: 8px 10px; margin: 0; font-size: 0.86rem; color: var(--dash-muted); }
.dash-view {
  padding: 0;
  width: 100%;
  max-width: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--dash-bg);
}
.stage { width: 100%; display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; }
@keyframes railUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes railSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.coin {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex: none; background: #fff;
}
.chev {
  width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--dash-faint);
  border-bottom: 2px solid var(--dash-faint);
  transform: rotate(-45deg);
  margin-left: 8px;
}
.list-card { padding: 0 !important; overflow: hidden; }
.list-card > h3 { padding: 16px 16px 8px; margin: 0; }
.list-card .quick { padding: 8px 16px 16px; margin: 0; }
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: 0;
  overflow: hidden;
  animation: railSlide 0.4s ease both;
}
.list-row:nth-child(1) { animation-delay: 0.18s; }
.list-row:nth-child(2) { animation-delay: 0.25s; }
.list-row:nth-child(3) { animation-delay: 0.32s; }
.list-row:nth-child(4) { animation-delay: 0.39s; }
.list-row:nth-child(5) { animation-delay: 0.46s; }
.list-row:nth-child(n+6) { animation-delay: 0.5s; }
.list-row-static {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid var(--dash-line);
  text-align: left;
  color: inherit;
  animation: railSlide 0.4s ease both;
}
.list-row-static:nth-child(1) { animation-delay: 0.18s; }
.list-row-static:nth-child(2) { animation-delay: 0.25s; }
.list-row-static:nth-child(3) { animation-delay: 0.32s; }
.list-row-static:nth-child(4) { animation-delay: 0.39s; }
.list-row-static:nth-child(5) { animation-delay: 0.46s; }
.list-row-static:nth-child(n+6) { animation-delay: 0.5s; }
.list-row-static:last-child { border-bottom: 0; }
.list-row.on {
  background: transparent;
  box-shadow: inset 3px 0 0 var(--dash-primary);
}
html[data-theme="dark"] .list-row.on { background: transparent; }
.list-row[data-wd-asset] { cursor: pointer; }
.list-row[data-wd-asset].on .grow b { color: var(--dash-primary); }
.faq-item { padding: 16px 0; border-top: 1px solid var(--dash-line); }
.faq-item:first-of-type { border-top: 0; padding-top: 0; }
.faq-q { margin: 0 0 6px; }
.faq-a { margin: 0; line-height: 1.55; }
.ann-row { padding: 12px 0; border-top: 1px solid var(--dash-line); }
.ann-row:first-child { border-top: 0; }
.dash-wallet-menu { margin-top: 16px; }
.dash-connect-panel { margin-top: 24px; }
.dash-body .wallet-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  background: transparent;
  color: var(--dash-text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: none;
}
.dash-body .wallet-btn:hover { background: transparent; color: var(--dash-primary); }
.dash-body .wallet-meta { flex: 1; min-width: 0; }
.dash-body .wallet-meta strong { display: block; font-size: 14px; }
.dash-body .wallet-meta span { display: block; font-size: 12px; color: var(--dash-faint); }
.dash-body .wallet-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--dash-line);
}
.dash-body .wallet-ico svg { width: 22px; height: 22px; }
.dash-body .wallet-ico img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  display: block;
}
.dash-body .connect-status {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--dash-line);
  font-size: 14px;
}
.dash-body .connect-status.show { display: block; }
.dash-body .connect-status.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.dash-body .connect-status.err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.list-row:hover { background: transparent; }
.list-row.on { background: transparent; box-shadow: inset 3px 0 0 var(--dash-primary); }
html[data-theme="dark"] .list-row:hover { background: transparent; }
html[data-theme="dark"] .list-row.on { background: transparent; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row b { display: block; font-size: 14px; color: var(--dash-text); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small, .list-row .sub { display: block; font-size: 12px; color: var(--dash-faint); line-height: 1.2; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .amt { font-size: 14px; font-weight: 600; color: var(--dash-text); flex: none; }
.metric, button.kpi, .kpi {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: railUp 0.5s ease both;
}
.kpis .metric:nth-child(1), .kpis .kpi:nth-child(1) { animation-delay: 0.05s; }
.kpis .metric:nth-child(2), .kpis .kpi:nth-child(2) { animation-delay: 0.1s; }
.kpis .metric:nth-child(3), .kpis .kpi:nth-child(3) { animation-delay: 0.15s; }
.kpis .metric:nth-child(4), .kpis .kpi:nth-child(4) { animation-delay: 0.2s; }
.metric-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric-label, .kpi .metric-label, .kpi span {
  display: block; color: var(--dash-faint); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.metric-value, .kpi strong {
  display: block; font-size: 16px; letter-spacing: 0; margin: 0; color: var(--dash-text); font-weight: 700;
}
.view-in { animation: viewIn 0.35s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 24px;
  background: var(--hero);
  color: #fff;
  min-height: auto;
  box-shadow: var(--dash-shadow);
  animation: railUp 0.5s ease both;
}
.hero::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 68%);
  animation: drift 8s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 8px); }
}
.hero .kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.hero h2 { font-size: 24px; letter-spacing: -0.03em; margin: 8px 0 8px; }
.hero p { color: #94a3b8; max-width: none; font-size: 14px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.hero .btn-primary { background: var(--dash-primary); color: #fff; border-color: var(--dash-primary); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.24); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.panel, .form-card, .empty, .modal, .tour-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.panel, .form-card {
  animation: railUp 0.55s ease both 0.2s;
  border-bottom: 1px solid var(--dash-line);
}
.panel { padding: 16px 0; }
.panel:last-child { border-bottom: 0; }
.panel + .dash-connect-panel { margin-top: 16px; }
.up { color: var(--dash-up); }
.down { color: var(--dash-down); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.assets { display: block; }
.asset { display: none; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; color: var(--dash-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 6px; font-weight: 650; }
.table td { padding: 10px 6px; border-top: 1px solid var(--dash-line); vertical-align: middle; }
.dash-body .badge {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid var(--dash-line);
  background: var(--dash-bg);
  box-shadow: none;
  opacity: 1;
  white-space: nowrap;
  gap: 0;
}
.badge.active, .badge.completed, .badge.processing, .badge.verified { color: var(--dash-up); }
.badge.frozen, .badge.pending, .badge.flagged, .badge.confirming, .badge.receiving { color: #a15c00; }
.badge.closed, .badge.failed, .badge.expired, .badge.loststolen, .badge.blocked { color: var(--dash-down); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plastic {
  border-radius: 22px; padding: 20px; min-height: 190px; color: #fff;
  background: linear-gradient(145deg, #1a1a1a, #3a3a3a);
  display: grid; align-content: space-between;
}
.plastic.plus { background: linear-gradient(145deg, #111, #445); }
.plastic.pro { background: linear-gradient(145deg, #141414, #333); }
.plastic.black { background: #0a0a0a; border: 1px solid #333; }
.plastic .pan { letter-spacing: 0.18em; font-family: ui-monospace, Consolas, monospace; }
.bar { height: 8px; background: var(--dash-bg); border-radius: 99px; overflow: hidden; margin: 0 0 16px; }
.bar > i { display: block; height: 100%; background: var(--dash-primary); }
html[data-theme="dark"] .bar > i { background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 8px; color: var(--dash-muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps i { flex: 1; height: 8px; background: var(--dash-line); border-radius: 99px; transition: background 0.2s ease; }
.steps i.on { background: var(--dash-primary); }
html[data-theme="dark"] .steps i.on { background: var(--dash-primary); }
.modal > .hw-modal {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  max-width: none;
}
.modal:has(> .hw-modal) {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  width: min(680px, 100%);
  border: 1px solid var(--dash-line);
  box-shadow: var(--dash-shadow-lg);
  background: transparent;
}
.modal {
  width: min(640px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--dash-panel);
  border-radius: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  box-shadow: none;
  animation: pop 0.28s ease;
}
.modal-back {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.48);
  display: grid; place-items: center; z-index: 120; padding: 24px;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal > * { padding-left: 24px; padding-right: 24px; }
.modal h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.03em; }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
}
.modal-head h3 { margin: 0; }
.modal-kicker { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.modal-center { text-align: center; }
.modal-center .app-muted { margin: 8px auto 16px; max-width: 40ch; }
.kv-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--dash-line);
}
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  padding: 12px 0;
  min-height: auto;
}
.kv span { display: block; font-size: 13px; color: var(--dash-faint); font-weight: 600; flex: none; }
.kv b { display: block; font-size: 14px; margin-top: 0; font-weight: 600; word-break: break-word; text-align: right; }
.field-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--dash-muted);
  margin: 0 0 8px;
}
.check-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--dash-line);
}
.check-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}
.check-cell:hover { color: var(--dash-primary); }
.check-cell:has(input:checked) {
  border-color: var(--dash-line);
  background: transparent;
  color: var(--dash-text);
}
html[data-theme="dark"] .check-cell:has(input:checked) { background: transparent; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.modal-sec {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-line);
}
.modal-sec h4 { font-size: 16px; margin: 0 0 16px; }
.tx-detail-link { margin: 0 0 12px; font-size: 13px; }
.tx-detail-link a { color: var(--dash-primary); font-weight: 600; text-decoration: none; }
.tx-detail-link a:hover { text-decoration: underline; }
.code-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.code-box code {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-bg);
  font-size: 13px;
}
.scan-vid {
  width: 100%;
  min-height: 180px;
  border-radius: 12px;
  background: #0f172a;
  margin-bottom: 16px;
}
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%);
  background: var(--dash-primary); color: #fff; padding: 10px 16px; border-radius: 999px;
  z-index: 50; font-size: 0.88rem; animation: toastIn 0.25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.chat-fab {
  position: fixed; right: 20px; bottom: 88px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--dash-panel); color: var(--dash-text);
  border: 1px solid var(--dash-line); cursor: pointer; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.chat-fab:hover { transform: translateY(-1px); }
.chat-fab:active { transform: scale(0.96); }
.chat-box {
  position: fixed; right: 20px; bottom: 148px; width: min(360px, calc(100vw - 24px));
  background: var(--dash-panel); border: 1px solid var(--dash-line); border-radius: 18px;
  display: flex; flex-direction: column; height: 520px; z-index: 30;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, transform 200ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 180ms;
}
.chat-box.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(.22, 1, .36, 1);
}
.side-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(7, 16, 31, 0.46);
}
.side-scrim.open { display: block; }
.chat-pre { padding: 12px 12px 0; }
.chat-pre .field { margin-bottom: 12px; }
.chat-log { flex: 1; overflow: auto; padding: 12px; font-size: 0.88rem; }
.chat-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
}
.chat-foot .btn { height: 40px; }
.chat-tools { padding: 0 12px 12px; margin-top: 0; }
.bubble { max-width: 80%; padding: 8px 10px; border-radius: 12px; margin: 6px 0; }
.bubble.agent { background: var(--dash-bg); }
.bubble.user { background: #0a0a0a; color: #fff; margin-left: auto; }
.qr { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 8px; }
.hidden { display: none !important; }
.tabs {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-line);
}
.tabs button, .tabs .tab {
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0 !important;
  color: var(--dash-faint);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
}
.tabs button.on, .tabs button.btn-primary, .tabs .tab.on {
  color: var(--dash-text) !important;
  border-bottom-color: var(--dash-primary);
  background: none !important;
}
.tier-pick-head,
.tier-pick {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  text-align: left;
  font: inherit;
  color: inherit;
}
.tier-pick-head {
  font-size: 12px;
  color: var(--dash-faint);
  font-weight: 600;
}
.tier-pick {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dash-line);
  border-radius: 0;
  cursor: pointer;
}
.tier-pick:hover { background: #f8fafc; }
.tier-pick.on { background: #eff6ff; }
html[data-theme="dark"] .tier-pick:hover { background: rgba(248, 250, 252, 0.06); }
html[data-theme="dark"] .tier-pick.on { background: rgba(37, 99, 235, 0.18); }
.tier-pick b { font-size: 14px; }
.tier-pick span { font-size: 14px; color: var(--dash-muted); }
.tier-pick.type-pick {
  grid-template-columns: 140px 1fr;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: var(--dash-shadow);
}
.tier-pick.type-pick.on { border-color: var(--dash-primary); }
.success-mark {
  width: 48px; height: 48px; border-radius: 50%; background: var(--dash-primary); color: #fff;
  display: grid; place-items: center; font-size: 16px; margin: 0 auto 16px; font-weight: 700;
}
.page-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-bottom: 0;
}
.page-head h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 700; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis-secondary { margin-top: -4px; }
.kpis-secondary .kpi strong { font-size: 1.05rem; }
.panel h3 { font-size: 16px; letter-spacing: 0; margin-bottom: 8px; font-weight: 700; }
.panel > select, .panel > input, .panel > textarea { margin-top: 8px; }
.field input, .field select, .field textarea { margin-top: 0; }
.panel.tight { margin-top: 14px; }
.form-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  padding: 16px 0;
  width: 100%;
  max-width: none;
  box-shadow: none;
}
.form-card h3 { margin-bottom: 16px; font-size: 16px; }
.empty {
  text-align: center;
  padding: 32px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  margin: 8px 0 16px;
}
.empty h3 { font-size: 16px; margin-bottom: 8px; }
.empty p { color: var(--dash-muted); max-width: none; margin: 0 auto 16px; font-size: 14px; }
.empty-inline { color: var(--dash-muted); padding: 16px; margin: 0; font-size: 14px; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.filter-grid .field { margin-bottom: 0; }
.filter-grid input, .filter-grid select { width: 100%; min-width: 0; }
.row-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}
.list-row-static .row-acts { margin-left: 8px; }
.panel .list-card {
  border: 0;
  border-radius: 0;
  margin: 0 0 16px;
  background: transparent;
}
.table-wrap { overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; word-break: break-all; }
.txn-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px solid var(--dash-line); font-size: 0.9rem;
}
.result-box { margin-top: 14px; }
.tour-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,10,10,0.35);
  display: grid; place-items: center; padding: 20px;
}
.tour-card {
  width: min(440px, 100%);
  background: var(--dash-panel);
  color: var(--dash-text);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--dash-line);
  box-shadow: 0 30px 70px rgba(10,10,10,0.18);
}
.tour-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dash-faint); font-weight: 700; }
.tour-card h2 { margin: 10px 0 8px; letter-spacing: -0.03em; }
.tour-card p { color: var(--dash-muted); line-height: 1.55; }

.net-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--dash-line); }
.net-grid.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0; border-top: 1px solid var(--dash-line); }
.net-chip {
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: transparent;
  border-radius: 0;
  padding: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  color: var(--dash-muted);
  font: inherit;
}
.net-chip:hover { background: transparent; color: var(--dash-text); transform: none; }
.net-chip.on { background: transparent; color: var(--dash-text); box-shadow: inset 0 -2px 0 var(--dash-primary); }
html[data-theme="dark"] .net-chip.on { background: transparent; color: #fff; }
.net-chip .coin { width: 24px; height: 24px; }
.net-chip span { font-size: 14px; font-weight: 600; line-height: 1.2; }
.coin.mark {
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--dash-primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}
html[data-theme="dark"] .coin.mark { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.page-lede { margin: 0; max-width: 52ch; }
.receive-stack .receive-box { text-align: left; max-width: 420px; }
.tier-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--dash-line);
}
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 0 14px 12px;
  min-height: auto;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
  box-shadow: none;
}
.tier-card b { font-size: 16px; }
.tier-card small, .tier-card span { font-size: 12px; color: var(--dash-faint); }
.tier-card.on { border-color: var(--dash-line); background: transparent; box-shadow: inset 3px 0 0 var(--dash-primary); }
html[data-theme="dark"] .tier-card.on { background: transparent; }
.spend-row { margin-top: 16px; }
.spend-row:first-of-type { margin-top: 8px; }
.spend-lab {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}
.spend-lab b { font-size: 14px; }
.spend-bar {
  height: 8px;
  background: var(--dash-bg);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
}
.spend-bar > span {
  display: block;
  height: 100%;
  background: var(--dash-primary);
  border-radius: 99px;
}
.receive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}
.receive-box { text-align: center; }
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  width: 100%;
}
.addr-row {
  display: flex; gap: 8px; align-items: stretch; margin-top: 16px;
}
.field .addr-row { margin-top: 0; }
.addr-row input { flex: 1; min-width: 0; }
.scan-wrap { position: relative; }
.scan-btn { flex: none; width: auto; min-width: 48px; }
.slide-confirm {
  position: relative;
  height: 58px;
  border-radius: 999px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  overflow: hidden;
  margin-top: 8px;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.slide-confirm.is-sliding {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.slide-confirm.is-complete .slide-fill {
  transition: width 0.18s ease;
  background: #059669;
}
.slide-fill {
  position: absolute; inset: 4px auto 4px 4px;
  width: 0;
  background: var(--dash-primary);
  border-radius: 12px;
  transition: width 0.05s linear, background 0.2s ease;
}
.slide-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d0d0d4;
  box-shadow: 0 8px 18px rgba(10,10,10,0.18);
  pointer-events: none;
  z-index: 1;
  transition: left 0.05s linear, transform 0.2s ease;
}
.slide-confirm.is-sliding .slide-thumb { transform: scale(1.04); }
html[data-theme="dark"] .slide-fill { background: #fff; }
html[data-theme="dark"] .slide-confirm.is-complete .slide-fill { background: #34d399; }
.slide-confirm input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0; min-height: 58px;
  background: transparent; border: 0; box-shadow: none;
  appearance: none; cursor: pointer; z-index: 2;
  opacity: 0;
}
.slide-confirm input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 50px; height: 50px; border-radius: 50%;
  background: transparent; border: 0; box-shadow: none;
}
.slide-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 750; letter-spacing: 0.01em; pointer-events: none; z-index: 1;
  font-size: 1.05rem;
  transition: opacity 0.15s ease;
}
.auth-sheet {
  max-width: 460px;
  margin: 0 auto;
}
.auth-sheet-icon {
  display: flex;
  justify-content: center;
}
.auth-sheet .field {
  text-align: left;
  margin-top: 14px;
}
.auth-sheet-actions {
  margin-top: 18px;
}
.pass-ring {
  width: 72px; height: 72px; border-radius: 50%; margin: 8px auto 14px;
  border: 3px solid var(--dash-line); border-top-color: #0a0a0a;
  animation: spin 1s linear infinite;
}
html[data-theme="dark"] .pass-ring { border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 24;
  background: color-mix(in srgb, var(--dash-panel) 92%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--dash-line);
  border-radius: 22px;
  padding: 8px;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 16px 40px rgba(10,10,10,0.12);
}
.dock button {
  border: 0; background: transparent; color: var(--dash-muted);
  border-radius: 16px; padding: 10px 4px; font: inherit; font-size: 0.72rem; font-weight: 650;
  cursor: pointer;
}
.dock button.on { background: var(--dash-bg); color: var(--dash-text); }
.quote {
  padding: 16px 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  margin: 16px 0;
}
.quote b { display: block; font-size: 20px; letter-spacing: -0.03em; }
.swap-pair { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.swap-pair .chev { margin: 0; }
.app-muted { color: var(--dash-muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--dash-bg); font-size: 0.75rem; font-weight: 650; }

/* —— Full-width page sheet (all views) —— */
.page-sheet {
  flex: 1;
  width: 100%;
  min-height: 100%;
  background: var(--dash-panel);
  display: flex;
  flex-direction: column;
  animation: railUp 0.35s ease both;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 32px;
  border-bottom: 1px solid var(--dash-line);
}
.page-lede { margin: 0; max-width: 56rem; font-size: 14px; line-height: 1.5; }
.page-top-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--dash-line);
}
.page-hero-compact { padding: 24px 32px 20px; }
.page-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dash-faint);
  font-weight: 700;
  margin: 0 0 8px;
}
.page-balance {
  font-size: clamp(32px, 4.5vw, 42px);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.page-meta { margin: 10px 0 0; color: var(--dash-muted); font-size: 14px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--dash-line);
}
.page-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 32px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.page-stat:last-child { border-right: 0; }
.page-stat:hover { background: rgba(37, 99, 235, 0.04); }
.page-stat .coin { width: 28px; height: 28px; }
.page-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-faint);
  font-weight: 700;
}
.page-stat-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.page-section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--dash-line);
}
.page-section:last-child { border-bottom: 0; }
.page-section .section-head { margin-bottom: 16px; }
.page-section .section-head h3,
.page-section > h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.page-section-flush { padding: 0; }
.page-section-flush .ledger-head,
.page-section-flush .ledger-row { padding-left: 32px; padding-right: 32px; }
.page-foot { margin: 16px 0 0; }
.page-steps {
  padding: 20px 32px;
  margin: 0;
  border-bottom: 1px solid var(--dash-line);
}
.page-tabs {
  padding: 0 32px;
  margin: 0 0 0;
  border-bottom: 1px solid var(--dash-line);
}
.page-success {
  text-align: center;
  padding: 48px 32px;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  align-items: stretch;
  flex: 1;
}
.page-grid-receive,
.page-grid-flow {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}
.page-grid > .page-section {
  border-bottom: 0;
  border-right: 1px solid var(--dash-line);
  min-height: 100%;
}
.page-grid > .page-section:last-child { border-right: 0; }
.page-section-flow { border-right: 1px solid var(--dash-line); }
.page-col { min-width: 0; display: flex; flex-direction: column; }
.page-col .page-section { flex: none; }
.page-col .page-section:last-child { flex: 1; }
.page-col-side {
  border-left: 1px solid var(--dash-line);
  background: rgba(148, 163, 184, 0.04);
}
html[data-theme="dark"] .page-col-side {
  background: rgba(15, 23, 42, 0.35);
}
.page-col-side .page-section { padding: 20px 24px; }
.page-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
  flex: 1;
}
.page-card {
  padding: 24px;
  border-right: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  min-width: 0;
}
.page-sheet > .panel,
.page-sheet > .form-card,
.page-sheet > .empty {
  padding: 24px 32px;
  margin: 0;
  border-bottom: 1px solid var(--dash-line);
}
.page-sheet > .empty { margin: 0; }
.page-sheet .ledger-head,
.page-sheet .ledger-row,
.page-sheet .list-row,
.page-sheet .list-row-static { padding-left: 0; padding-right: 0; }
.page-sheet .page-section .ledger-head,
.page-sheet .page-section .ledger-row,
.page-sheet .page-section .list-row,
.page-sheet .page-section .list-row-static { padding-left: 0; padding-right: 0; }
.page-sheet .empty-inline { margin: 0; }
.asset-hero { padding: 24px 32px; border-bottom: 1px solid var(--dash-line); margin: 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ledger-table { width: 100%; }
.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.7fr) minmax(88px, 0.8fr) minmax(72px, 0.6fr);
  gap: 12px;
  align-items: center;
  padding: 0;
}
.tx-feed .ledger-head,
.tx-feed .ledger-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.9fr) minmax(96px, 0.8fr) minmax(88px, 0.7fr);
}
.ledger-head {
  height: 36px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-faint);
  border-bottom: 1px solid var(--dash-line);
}
.ledger-row {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  animation: railSlide 0.35s ease both;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row:hover { background: transparent; }
html[data-theme="dark"] .ledger-row:hover { background: transparent; }
.ledger-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ledger-asset b { display: block; font-size: 14px; font-weight: 600; }
.ledger-asset small {
  display: block;
  font-size: 12px;
  color: var(--dash-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.ledger-amt, .ledger-val, .ledger-when {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dash-text);
}
.ledger-share {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ledger-share i {
  display: block;
  height: 4px;
  flex: 1;
  max-width: 48px;
  border-radius: 99px;
  background: var(--dash-primary);
  opacity: 0.85;
}
.ledger-share small { font-size: 12px; color: var(--dash-faint); flex: none; }
.net-grid.compact { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }

/* Live sync + alerts */
.live-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--dash-line);
  background: var(--dash-panel);
  font-size: 12px;
  font-weight: 650;
  color: var(--dash-muted);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: livePulse 2.4s ease infinite;
}
.live-sync.syncing .live-dot { background: var(--dash-primary); animation: liveSpin 0.8s linear infinite; }
.live-label { display: none; }
@media (min-width: 900px) { .live-label { display: inline; } }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
@keyframes liveSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.bell-pulse { animation: bellShake 0.5s ease; }
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  animation: railUp 0.35s ease both;
}
html[data-theme="dark"] .alert-banner {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dash-primary);
  flex: none;
  animation: livePulse 2s ease infinite;
}
.notify-pop { width: min(360px, calc(100vw - 24px)); padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(22, 24, 32, 0.98), rgba(12, 14, 20, 0.96)); box-shadow: 0 18px 50px rgba(0,0,0,0.38); backdrop-filter: blur(18px); }
html[data-theme="light"] .notify-pop { background: linear-gradient(180deg, #fff, #f7f8fb); border-color: rgba(15,23,42,0.08); box-shadow: 0 18px 40px rgba(15,23,42,0.12); }
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--dash-line);
}
.notify-list { max-height: 360px; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
html[data-theme="light"] .notify-item { background: rgba(15,23,42,0.03); border-color: rgba(15,23,42,0.06); }
.notify-item:hover { background: rgba(255,255,255,0.06); border-color: color-mix(in srgb, var(--float-accent, var(--dash-primary)) 35%, transparent); }
.notify-item.unread { box-shadow: inset 3px 0 0 var(--float-accent, var(--dash-primary)); }
.notify-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--float-accent, var(--dash-primary));
  background: color-mix(in srgb, var(--float-accent, var(--dash-primary)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--float-accent, var(--dash-primary)) 28%, transparent);
}
.notify-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--float-accent, var(--dash-primary));
  margin-bottom: 2px;
}
.notify-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.notify-detail { display: block; font-size: 12px; color: var(--dash-muted); line-height: 1.35; margin-bottom: 4px; }
.notify-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.notify-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
html[data-theme="light"] .notify-chip { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.06); }
.notify-chip small { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dash-muted); }
.notify-chip b { font-size: 11px; font-weight: 700; }
.notify-time { margin-top: 4px; color: var(--dash-faint) !important; font-size: 11px !important; }
#toastHost { display: none !important; }
.view-in { animation: viewIn 0.35s ease both; }
.stage { gap: 0; }
.page-strip .page-stat:nth-child(1) { animation: railUp 0.4s ease 0.04s both; }
.page-strip .page-stat:nth-child(2) { animation: railUp 0.4s ease 0.08s both; }
.page-strip .page-stat:nth-child(3) { animation: railUp 0.4s ease 0.12s both; }
.page-strip .page-stat:nth-child(4) { animation: railUp 0.4s ease 0.16s both; }

/* Floating alerts */
.float-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.float-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--float-accent, var(--dash-primary)) 22%, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, rgba(22, 24, 32, 0.96), rgba(12, 14, 20, 0.94));
  color: var(--dash-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 0 1px color-mix(in srgb, var(--float-accent, var(--dash-primary)) 10%, transparent);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
html[data-theme="dark"] .float-toast {
  background: linear-gradient(180deg, rgba(22, 24, 32, 0.96), rgba(12, 14, 20, 0.94));
}
html[data-theme="light"] .float-toast {
  background: linear-gradient(180deg, #fff, #f7f8fb);
  border-color: color-mix(in srgb, var(--float-accent, var(--dash-primary)) 18%, rgba(15,23,42,0.08));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.float-bar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: color-mix(in srgb, var(--float-accent, var(--dash-primary)) 12%, transparent);
}
.float-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--float-accent, var(--dash-primary));
  transform-origin: left center;
  animation-name: floatDrain;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.float-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--float-accent, var(--dash-primary));
  background: color-mix(in srgb, var(--float-accent, var(--dash-primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--float-accent, var(--dash-primary)) 30%, transparent);
}
.float-body { flex: 1; min-width: 0; padding-top: 2px; }
.float-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.float-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--float-accent, var(--dash-primary));
}
.float-body b { display: block; font-size: 14px; line-height: 1.25; }
.float-detail { margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: inherit; opacity: 0.9; }
.float-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.float-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
html[data-theme="light"] .float-chip { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.06); }
.float-chip small { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dash-muted); }
.float-chip b { font-size: 12px; font-weight: 700; }
.float-txid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--dash-line);
  font-size: 12px;
}
@keyframes floatDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.float-close {
  flex: none;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}
.float-txid-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-muted);
}
.float-txid a { color: var(--float-accent, var(--dash-primary)); text-decoration: none; word-break: break-all; }
.float-txid a:hover { text-decoration: underline; }
.float-txid-copy { min-height: 28px !important; height: 28px !important; padding: 0 8px !important; }
.float-in { animation: floatIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.float-out { animation: floatOut 0.32s ease both; }
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes floatOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

/* Celebration overlay */
.celebrate-host {
  position: fixed;
  inset: 0;
  z-index: 75;
}
.celebrate-host.hidden { display: none !important; }
.celebrate-back {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.58);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  animation: celebrateScrim 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.celebrate-back.is-out {
  animation: celebrateScrimOut 0.38s ease forwards;
}
.celebrate-back.is-out .celebrate-card {
  animation: celebrateCardOut 0.36s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes celebrateScrim {
  from { opacity: 0; backdrop-filter: blur(0) saturate(1); }
  to { opacity: 1; backdrop-filter: blur(14px) saturate(1.15); }
}
@keyframes celebrateScrimOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.celebrate-glow {
  position: absolute;
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 197, 94, 0.32), transparent 42%),
    radial-gradient(circle at 32% 58%, rgba(37, 99, 235, 0.24), transparent 46%),
    radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.18), transparent 44%);
  filter: blur(8px);
  pointer-events: none;
  animation: celebratePulse 2.8s ease-in-out infinite;
}
@keyframes celebratePulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.confetti-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.confetti-piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation-name: confettiFall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.celebrate-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 40px 32px 28px;
  border-radius: 24px;
  background: var(--dash-panel);
  border: 1px solid var(--dash-line);
  box-shadow:
    0 28px 90px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 80px rgba(34, 197, 94, 0.08);
  text-align: center;
  overflow: hidden;
  animation: celebrateCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.celebrate-card::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, #2563eb, transparent);
  opacity: 0.85;
  animation: celebrateBar 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.celebrate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.28) 48%, transparent 68%);
  transform: translateX(-120%);
  animation: celebrateShine 1.45s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}
@keyframes celebrateCardIn {
  0% { transform: translateY(36px) scale(0.84); opacity: 0; filter: blur(10px); }
  58% { transform: translateY(-8px) scale(1.025); opacity: 1; filter: blur(0); }
  100% { transform: none; opacity: 1; filter: none; }
}
@keyframes celebrateCardOut {
  to { transform: translateY(18px) scale(0.94); opacity: 0; filter: blur(4px); }
}
@keyframes celebrateShine {
  to { transform: translateX(120%); }
}
@keyframes celebrateBar {
  from { transform: scaleX(0.2); opacity: 0; }
  to { transform: none; opacity: 0.85; }
}
.celebrate-seal {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  perspective: 480px;
  animation: celebrateSeal 0.78s 0.06s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.celebrate-seal .coin {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
  animation: celebrateCoin 0.95s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}
.celebrate-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08);
  animation: celebrateRing 1.7s 0.18s ease-out both;
}
.celebrate-ring.is-late {
  inset: 0;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.06);
  animation-delay: 0.52s;
}
@keyframes celebrateSeal {
  0% { transform: scale(0.35) rotate(-16deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes celebrateCoin {
  0% { transform: scale(0.2) rotateY(-110deg); opacity: 0; }
  58% { transform: scale(1.12) rotateY(16deg); opacity: 1; }
  100% { transform: none; }
}
@keyframes celebrateRing {
  0% { transform: scale(0.55); opacity: 0; }
  28% { opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}
.celebrate-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-faint);
  font-weight: 700;
  margin: 0 0 10px;
  animation: celebrateFade 0.5s 0.16s both;
}
.celebrate-card h2 {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
  animation: celebrateFade 0.55s 0.22s both;
}
.celebrate-usd {
  font-size: 26px;
  font-weight: 700;
  color: var(--dash-up);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
  animation: celebrateFade 0.55s 0.3s both;
}
.celebrate-card h2.is-done,
.celebrate-usd.is-done {
  animation: celebrateAmtDone 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes celebrateAmtDone {
  0% { transform: scale(1); }
  40% { transform: scale(1.045); }
  100% { transform: none; }
}
.celebrate-net {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--dash-muted);
  animation: celebrateFade 0.55s 0.36s both;
}
.celebrate-txid {
  width: 100%;
  margin: 0 0 18px;
  text-align: left;
  animation: celebrateFade 0.55s 0.4s both;
}
.celebrate-txid-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-muted);
  margin-bottom: 8px;
}
.celebrate-txid-row { margin-top: 0 !important; }
.celebrate-txid-link {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--dash-primary);
  text-decoration: none;
  word-break: break-all;
}
.celebrate-txid-link:hover { text-decoration: underline; }
.celebrate-card #celebrateClose {
  animation: celebrateFade 0.5s 0.42s both;
}
@keyframes celebrateFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Portfolio chart */
.page-sheet .balance-chart {
  display: block;
  width: 100%;
  height: 168px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent);
  border-bottom: 0;
}
.chart-box { width: 100%; }
.chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dash-muted);
}
.chart-meta b { color: var(--dash-text); }
.chart-meta .change-stack { margin-left: 0; }
.ledger-amt small { display: block; font-size: 11px; color: var(--dash-faint); font-weight: 500; margin-top: 2px; }

/* Assets list + detail */
.asset-summary { padding: 20px 0; margin-bottom: 0; border-bottom: 1px solid var(--dash-line); }
.assets-table .ledger-head,
.assets-table .assets-row {
  grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr 108px auto;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.assets-table .assets-row:hover,
.assets-table .assets-row:focus-within { z-index: 6; }
.assets-table .assets-row-main {
  grid-column: 1 / 5;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
  width: auto;
  border: 0;
  background: transparent;
  padding: 0;
}
.assets-table .asset-row-chart {
  grid-column: 5;
  width: 108px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 4;
  overflow: visible;
}
.assets-table .ledger-asset { display: flex; align-items: center; gap: 12px; }
.assets-table .ledger-asset div { min-width: 0; }
.assets-table .ledger-asset small { display: block; color: var(--dash-faint); font-size: 11px; margin-top: 2px; }
.assets-table .ledger-val small { display: block; font-size: 11px; margin-top: 2px; }
.assets-table .ledger-share b { font-size: 14px; }
.page-hero.asset-hero {
  align-items: center;
}
.asset-hero-main { display: flex; align-items: center; gap: 16px; }
.asset-hero-main .coin { width: 52px; height: 52px; }
.asset-ticker { color: var(--dash-faint); font-size: 0.55em; font-weight: 600; }
.asset-price { font-size: 22px; font-weight: 700; margin: 6px 0 0; letter-spacing: -0.02em; }
.asset-hero-bal { text-align: right; }
.asset-hero-bal b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.asset-hero-bal small { color: var(--dash-muted); font-size: 13px; }
.asset-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--dash-line);
}
.asset-stats .metric {
  padding: 16px 20px 16px 0;
  border-right: 1px solid var(--dash-line);
}
.asset-stats .metric:last-child { border-right: 0; padding-right: 0; }
.asset-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.asset-receive { padding: 18px 0; border-bottom: 1px solid var(--dash-line); }
.asset-net-grid { margin-top: 8px; }
.asset-chart-box .balance-chart { height: 140px; }
.asset-chart-box .chart-frame { overflow: visible; }
.bento-assets,
.assets-table,
.holdings-table { overflow: visible; }
.asset-tx-feed .ledger-head,
.asset-tx-feed .ledger-row { grid-template-columns: 1.2fr 0.9fr 1fr auto; }

/* Flat detail fields in modals */
.modal .field {
  border-bottom: 1px solid var(--dash-line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.modal .field input,
.modal .field textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  box-shadow: none;
}
.modal .field input:focus,
.modal .field textarea:focus {
  outline: none;
  box-shadow: none;
}
.txid-link {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
  color: var(--dash-primary);
  text-decoration: none;
  font-weight: 600;
}
.txid-link:hover { text-decoration: underline; }
.txid-field .addr-row { align-items: center; }

  .page-strip { grid-template-columns: 1fr 1fr; }
  .page-stat:nth-child(2) { border-right: 0; }
  .page-stat:nth-child(1),
  .page-stat:nth-child(2) { border-bottom: 1px solid var(--dash-line); }
  .page-grid,
  .page-grid-receive,
  .page-grid-flow { grid-template-columns: 1fr; }
  .page-col-side { border-left: 0; border-top: 1px solid var(--dash-line); }
  .page-grid > .page-section { border-right: 0; border-bottom: 1px solid var(--dash-line); }
  .page-grid > .page-section:last-child { border-bottom: 0; }
  .page-hero { padding: 24px 20px 20px; }
  .page-section,
  .page-top,
  .page-tabs,
  .page-steps { padding-left: 20px; padding-right: 20px; }
  .page-section-flush .ledger-head,
  .page-section-flush .ledger-row { padding-left: 20px; padding-right: 20px; }
  .page-card-grid { grid-template-columns: 1fr; }
  .asset-stats { grid-template-columns: 1fr 1fr; }
  .asset-stats .metric { border-right: 0; border-bottom: 1px solid var(--dash-line); padding-right: 0; }
  .asset-stats .metric:nth-child(odd) { border-right: 1px solid var(--dash-line); }
  .asset-detail-grid { grid-template-columns: 1fr; }
  .asset-hero-bal { text-align: left; width: 100%; }
  .assets-table .ledger-head { display: none; }
  .ledger-head { display: none; }
  .ledger-row, .tx-feed .ledger-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 12px 16px;
  }
  .assets-table .assets-row {
    grid-template-columns: minmax(0, 1fr) 96px auto;
    grid-template-rows: auto;
    gap: 8px;
    align-items: center;
  }
  .assets-table .assets-row-main {
    grid-column: 1;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .assets-table .assets-row-main .ledger-share,
  .assets-table .assets-row-main span:nth-child(3) { display: none; }
  .assets-table .asset-row-chart { grid-column: 2; width: 96px; }
  .assets-table .assets-row > .btn { grid-column: 3; }
  .ledger-share, .ledger-when { display: none; }
  .ledger-status { justify-self: end; }
  .kpis, .kpis-secondary, .tier-grid, .kv-grid, .code-box { grid-template-columns: 1fr 1fr; }
  .grid-2, .card-grid, .row-2, .receive-layout, .flow-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 800px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-side.open { display: block; position: fixed; z-index: 25; width: min(80vw, 260px); height: 100vh; }
  .dock { display: grid; }
  .dash-view { padding: 0 0 108px; }
  .float-stack { top: 72px; right: 12px; left: 12px; width: auto; }
  .float-toast { padding-top: 16px; }
  .chat-fab {
    left: 16px;
    right: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    font-size: 0.82rem;
  }
  .chat-box {
    left: 16px;
    right: 16px;
    bottom: calc(148px + env(safe-area-inset-bottom));
    width: auto;
  }
}
@media (min-width: 801px) {
  .side-scrim { display: none !important; }
  #menuBtn { display: none; }
  .dash-view { padding-bottom: 40px; }
  .chat-fab { bottom: 20px; }
  .chat-box { bottom: 82px; }
  .toast { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.sc-force-motion) .hero,
  html:not(.sc-force-motion) .page-hero,
  html:not(.sc-force-motion) .page-sheet,
  html:not(.sc-force-motion) .metric,
  html:not(.sc-force-motion) button.kpi,
  html:not(.sc-force-motion) .kpi,
  html:not(.sc-force-motion) .panel,
  html:not(.sc-force-motion) .form-card,
  html:not(.sc-force-motion) .list-row,
  html:not(.sc-force-motion) .list-row-static,
  html:not(.sc-force-motion) .ledger-row,
  html:not(.sc-force-motion) .dash-nav a.on,
  html:not(.sc-force-motion) .dash-nav button.on,
  html:not(.sc-force-motion) .hero::before,
  html:not(.sc-force-motion) .view-in,
  html:not(.sc-force-motion) .live-dot,
  html:not(.sc-force-motion) .float-toast,
  html:not(.sc-force-motion) .celebrate-back,
  html:not(.sc-force-motion) .celebrate-card,
  html:not(.sc-force-motion) .celebrate-glow,
  html:not(.sc-force-motion) .celebrate-seal,
  html:not(.sc-force-motion) .celebrate-seal .coin,
  html:not(.sc-force-motion) .celebrate-card::before,
  html:not(.sc-force-motion) .celebrate-card::after,
  html:not(.sc-force-motion) .dash-announce .track--marquee,
  html:not(.sc-force-motion) .celebrate-ring,
  html:not(.sc-force-motion) .celebrate-kicker,
  html:not(.sc-force-motion) .celebrate-card h2,
  html:not(.sc-force-motion) .celebrate-usd,
  html:not(.sc-force-motion) .celebrate-net,
  html:not(.sc-force-motion) .celebrate-card #celebrateClose,
  html:not(.sc-force-motion) .confetti-piece,
  html:not(.sc-force-motion) .float-bar i {
    animation: none !important;
  }
}
