:root {
  --bg: #000000;
  --bg-subtle: #0a0a0b;
  --bg-raised: #111113;
  --bg-overlay: #18181b;
  --line: rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.10);
  --line-focus: rgba(255,255,255,.16);
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #52525b;
  --info: #c8ced8;
  --info-soft: rgba(200,206,216,.1);
  --info-border: rgba(200,206,216,.16);
  --accent: var(--text);
  --accent-soft: rgba(255,255,255,.08);
  --green: #34d399;
  --green-soft: rgba(52,211,153,.1);
  --amber: #fbbf24;
  --amber-soft: rgba(251,191,36,.1);
  --red: #fb7185;
  --red-soft: rgba(251,113,133,.1);
  --radius: 12px;
  --radius-sm: 9px;
  --header-h: 56px;
  --mobile-nav-h: 62px;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-meter: 600ms;

  /* type scale */
  --text-micro: 10px;
  --text-caption: 11px;
  --text-label: 12px;
  --text-body: 13px;
  --text-lead: 14px;
  --text-stat: 22px;
  --text-stat-sm: 20px;
  --leading-tight: 1.35;
  --leading-body: 1.55;
  --leading-relaxed: 1.62;

  /* legacy aliases for JS-injected markup */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-raised);
  --bg-tertiary: var(--bg-overlay);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --border-color: var(--line-strong);
  --border: var(--line-strong);
  --border-strong: var(--line-focus);
  --border-soft: var(--line);
  --accent-cyan: var(--info);
  --accent-green: var(--green);
  --accent-amber: var(--amber);
  --accent-red: var(--red);
  --cyan: var(--info);
  --blue: var(--info);
  --purple: #a8a8b3;
  --panel: var(--bg-raised);
  --bg-sub: var(--bg-subtle);
  --r-lg: var(--radius-sm);
  --green-text: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-meter: 0ms;
  }
  .tab-content.active,
  .wallet-scan, .aml-scan, .contract-scan, .tx-scan, .phish-scan, .appr-scan, .perm-scan {
    animation: none !important;
  }
  #cp.show .cp-i,
  #cp.show .cp-sep {
    opacity: 1;
    transform: none;
    transition-delay: 0ms !important;
  }
  .aml-row:hover,
  .appr-row:hover,
  .wallet-activity-item:hover {
    transform: none;
  }
}

.light-theme {
  --bg: #f4f4f5;
  --bg-subtle: #fafafa;
  --bg-raised: #ffffff;
  --bg-overlay: #f4f4f5;
  --line: rgba(0,0,0,.06);
  --line-strong: rgba(0,0,0,.10);
  --line-focus: rgba(0,0,0,.16);
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --text-4: #a1a1aa;
  --info: #64748b;
  --info-soft: rgba(100,116,139,.1);
  --info-border: rgba(100,116,139,.16);
  --accent: var(--text);
  --accent-soft: rgba(0,0,0,.06);
  --green: #059669;
  --green-soft: rgba(5,150,105,.1);
  --amber: #d97706;
  --amber-soft: rgba(217,119,6,.1);
  --red: #dc2626;
  --red-soft: rgba(220,38,38,.1);
  --surface-0: rgba(0,0,0,.02);
  --surface-1: rgba(0,0,0,.025);
  --surface-2: rgba(0,0,0,.035);
  --surface-3: rgba(0,0,0,.05);
  --surface-hover: rgba(0,0,0,.04);
  --shadow-elevated: 0 10px 28px rgba(0,0,0,.08);
  --shadow-panel: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-raised);
  --bg-tertiary: #e4e4e7;
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --border-color: var(--line-strong);
  --border: var(--line-strong);
  --accent-cyan: var(--info);
  --accent-green: var(--green);
  --accent-amber: var(--amber);
  --accent-red: var(--red);
  --cyan: var(--info);
  --blue: var(--info);
  --purple: #78788a;
  color-scheme: light;
}
body:not(.light-theme) { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-lead);
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
button,
[role="button"],
a[href],
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
button,
[role="button"] {
  touch-action: manipulation;
  user-select: none;
}
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color .32s ease,
    color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease,
    fill .32s ease,
    stroke .32s ease !important;
}
html.theme-transition .app-atmosphere-mesh,
html.theme-transition .app-header,
html.theme-transition .mobile-bottom-nav {
  transition:
    background .32s ease,
    background-color .32s ease,
    border-color .32s ease,
    box-shadow .32s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-transition,
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after {
    transition: none !important;
  }
}
.app-header-btn.is-theme-switching svg {
  animation: theme-icon-spin .45s var(--ease) both;
}
@keyframes theme-icon-spin {
  from { transform: rotate(-40deg) scale(.82); opacity: .35; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.mono, .font-mono, input, textarea, select, kbd,
.addr, .addr-hi, .data-table td.mono,
#wallet-input, #approvals-input, #permissions-input, #contract-input, #aml-input,
#tx-input, #phish-input, #vanity-pattern, #report-target, #report-desc, #report-links, #report-contact,
.btn-ghost, .btn-danger, .copy-btn,
.spinner, .spin,
.init-loader-name, .init-loader-badge, .init-loader-tagline,
.sidebar-aside-label, .sidebar-aside-live, .sidebar-aside-ghost, .sidebar-aside-ghost-dot, .sidebar-aside-ver,
#toast, .cp-prefix, .cp-n, .cp-d, .cp-sep, .cp-empty, .cp-f, .cp-f-item, .cp-f-label {
  font-family: var(--mono) !important;
}
#toast { font-family: var(--font-ui) !important; }

button svg[data-lucide] { pointer-events: none; }

::selection { background: rgba(255,255,255,.14); color: #fff; }
.light-theme ::selection { background: rgba(0,0,0,.12); color: #000; }

/* ── atmosphere ── */
.app-atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.app-atmosphere-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(255,255,255,.035), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255,255,255,.03), transparent 50%),
    var(--bg);
}
.app-atmosphere-noise {
  position: absolute; inset: 0; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── tailwind color overrides ── */
.bg-darkBg, .bg-darkBg\/30, .bg-darkBg\/60, .bg-darkBg\/80 { background-color: transparent !important; }
.bg-darkCard, .bg-darkCard\/30, .bg-darkCard\/40, .bg-darkCard\/50 { background: var(--bg-raised) !important; }
.bg-black, .bg-black\/40, .bg-black\/60, .bg-black\/70 { background: var(--bg-subtle) !important; }
.bg-panelBorder\/20 { background: rgba(255,255,255,.03) !important; }
.bg-panelBorder\/30, .bg-panelBorder\/40 { background: rgba(255,255,255,.04) !important; }
.bg-panelBorder\/80 { background: rgba(255,255,255,.06) !important; }
.bg-hackCyan\/5, .bg-hackCyan\/10, .bg-hackCyan\/15 { background: var(--info-soft) !important; }
.bg-hackGreen\/5, .bg-hackGreen\/10 { background: var(--green-soft) !important; }
.bg-hackRed\/10, .bg-hackRed\/20 { background: var(--red-soft) !important; }
.bg-hackAmber\/5, .bg-hackAmber\/10 { background: var(--amber-soft) !important; }
.bg-hackCyan { background: var(--info) !important; }
.bg-hackGreen { background: var(--green) !important; }
.bg-hackRed { background: var(--red) !important; }
.bg-hackAmber { background: var(--amber) !important; }
.bg-slate-800 { background: var(--bg-overlay) !important; }
.bg-slate-900\/70 { background: rgba(0,0,0,.7) !important; }

.border-panelBorder, .border-panelBorder\/30, .border-panelBorder\/40,
.border-panelBorder\/50, .border-panelBorder\/60, .border-panelBorder\/70,
.border-panelBorder\/80 { border-color: var(--line) !important; }
.border-hackCyan, .border-hackCyan\/30 { border-color: var(--info-border) !important; }
.border-hackGreen, .border-hackGreen\/30, .border-hackGreen\/40 { border-color: rgba(52,211,153,.22) !important; }
.border-hackRed, .border-hackRed\/30 { border-color: rgba(251,113,133,.22) !important; }
.border-hackAmber, .border-hackAmber\/50 { border-color: rgba(251,191,36,.22) !important; }

.text-white { color: var(--text) !important; }
.text-slate-200, .text-slate-300 { color: var(--text) !important; }
.text-slate-400 { color: var(--text-2) !important; }
.text-slate-500 { color: var(--text-3) !important; }
.text-slate-600 { color: var(--text-4) !important; }
.text-hackCyan, .text-info { color: var(--info) !important; }
.text-hackGreen { color: var(--green) !important; }
.text-hackRed { color: var(--red) !important; }
.text-hackAmber { color: var(--amber) !important; }

.hover\:text-hackCyan:hover { color: var(--info) !important; }
.hover\:text-hackRed:hover { color: var(--red) !important; }
.hover\:text-white:hover, .hover\:text-slate-200:hover { color: var(--text) !important; }
.hover\:bg-panelBorder\/20:hover, .hover\:bg-panelBorder\/30:hover,
.hover\:bg-panelBorder\/40:hover, .hover\:bg-panelBorder\/80:hover {
  background: rgba(255,255,255,.05) !important;
}
.hover\:bg-hackCyan:hover { background: var(--info-soft) !important; }
.hover\:bg-hackRed:hover { background: var(--red) !important; color: #fff !important; }
.hover\:bg-hackGreen:hover { background: var(--green) !important; color: #000 !important; }
.hover\:border-hackRed:hover { border-color: rgba(251,113,133,.35) !important; }
.hover\:border-hackCyan\/60:hover, .focus\:border-hackCyan\/60:focus { border-color: var(--info-border) !important; }

.light-theme .bg-darkBg, .light-theme .bg-darkBg\/30,
.light-theme .bg-darkBg\/60, .light-theme .bg-darkBg\/80 { background: transparent !important; }
.light-theme .bg-darkCard, .light-theme .bg-darkCard\/50 { background: var(--bg-raised) !important; }
.light-theme .bg-black, .light-theme .bg-black\/40, .light-theme .bg-black\/60 { background: var(--bg-subtle) !important; }
.light-theme .text-white { color: var(--text) !important; }
.light-theme .text-slate-300 { color: var(--text) !important; }
.light-theme .text-slate-400 { color: var(--text-2) !important; }
.light-theme .text-slate-500 { color: var(--text-3) !important; }
.light-theme .text-slate-600 { color: var(--text-4) !important; }
.light-theme .border-panelBorder, .light-theme .border-panelBorder\/60 { border-color: var(--line) !important; }
.light-theme .hover\:bg-panelBorder\/20:hover { background: rgba(0,0,0,.04) !important; }
.light-theme .hover\:bg-panelBorder\/30:hover { background: rgba(0,0,0,.06) !important; }
.light-theme .hover\:bg-panelBorder\/40:hover,
.light-theme .hover\:bg-panelBorder\/80:hover { background: rgba(0,0,0,.05) !important; }
.light-theme .bg-panelBorder\/20 { background: rgba(0,0,0,.025) !important; }
.light-theme .bg-panelBorder\/30,
.light-theme .bg-panelBorder\/40 { background: rgba(0,0,0,.035) !important; }
.light-theme .bg-panelBorder\/80 { background: rgba(0,0,0,.05) !important; }
.light-theme .bg-slate-900\/70 { background: rgba(255,255,255,.92) !important; }
.light-theme .border-hackGreen,
.light-theme .border-hackGreen\/30,
.light-theme .border-hackGreen\/40 { border-color: rgba(5,150,105,.22) !important; }
.light-theme .border-hackRed,
.light-theme .border-hackRed\/30 { border-color: rgba(220,38,38,.2) !important; }
.light-theme .border-hackAmber,
.light-theme .border-hackAmber\/50 { border-color: rgba(217,119,6,.22) !important; }

/* light theme — atmosphere & brand */
.light-theme .app-atmosphere-mesh {
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(0,0,0,.04), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0,0,0,.025), transparent 50%),
    var(--bg);
}
.light-theme .app-atmosphere-noise { opacity: .015; }
.light-theme .app-brand img,
.light-theme .init-loader-icon { filter: invert(1) brightness(0.18); }

/* light theme — shell */
.light-theme .app-sidebar { background: rgba(0,0,0,.018) !important; }
.light-theme .sidebar-nav-btn:hover { background: var(--surface-hover) !important; }
.light-theme .sidebar-nav-btn.tab-nav-active {
  background: var(--surface-3) !important;
  border-color: var(--line-strong) !important;
}
.light-theme .sidebar-cmd-btn:hover { background: var(--surface-hover) !important; }
.light-theme .sidebar-kbd {
  background: rgba(0,0,0,.03);
  border-color: var(--line);
}
.light-theme .sidebar-aside {
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: var(--shadow-panel);
}
.light-theme .sidebar-aside-track { background: rgba(0,0,0,.06); }
.light-theme .app-header-lang-dd { box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.light-theme .lang-opt:hover { background: var(--surface-hover); }
.light-theme .lang-opt-active { background: var(--surface-3); }

/* light theme — panels & inputs */
.light-theme .module-panel {
  background: linear-gradient(180deg, #fff, #fafafa) !important;
  box-shadow: var(--shadow-panel);
}
.light-theme .search-wrap .field-input,
.light-theme .module-panel textarea.field-input,
.light-theme .module-panel .field-block input.field-input-plain,
.light-theme .tab-content .relative > input:not(.field-input) {
  background: #fff;
  border-color: var(--line-strong);
}
.light-theme .search-wrap .field-input:focus,
.light-theme .module-panel textarea.field-input:focus,
.light-theme .tab-content .relative > input:not(.field-input):focus {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.light-theme .report-type-btn,
.light-theme .mobile-sheet-btn,
.light-theme .mobile-sheet-card,
.light-theme .mobile-sheet-block--trx {
  background: #fff !important;
}
.light-theme .report-type-btn:hover { background: var(--surface-hover) !important; }
.light-theme .mobile-sheet-btn:hover { background: var(--surface-hover) !important; }

/* light theme — data blocks */
.light-theme .aml-block,
.light-theme .scan-head-card,
.light-theme .scan-head-card--featured,
.light-theme .wallet-verdict,
.light-theme .an-card,
.light-theme .sk-table-wrap,
.light-theme .sk-token-card,
.light-theme .sk-analytics-cell,
.light-theme .sk-card,
.light-theme .wallet-token-card,
.light-theme .wallet-activity-item {
  background: #fff !important;
}
.light-theme .aml-block-head,
.light-theme .data-table thead,
.light-theme .sk-table-head,
.light-theme .sk-panel .sk-table-head {
  background: rgba(0,0,0,.02) !important;
}
.light-theme .wallet-load-more-btn {
  background: var(--surface-1);
  border-color: var(--line);
}
.light-theme .wallet-load-more-btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

/* light theme — mobile */
.light-theme .mobile-bottom-nav {
  background: rgba(255,255,255,.94) !important;
  border-top-color: var(--line) !important;
}
.light-theme #mobile-menu-backdrop { background: rgba(0,0,0,.28) !important; }

/* light theme — loader & tour */
.light-theme .init-loader-mesh {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,0,0,.05), transparent 70%);
}
.light-theme .init-loader-beam { background: rgba(0,0,0,.06); }
.light-theme .init-loader-beam-fill {
  background: linear-gradient(90deg, #52525b, #18181b);
}
.light-theme .tour-card {
  box-shadow: 0 24px 64px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
}
.light-theme .tour-progress { background: rgba(0,0,0,.06); }
.light-theme .tour-btn:hover { background: var(--surface-hover); }
.light-theme .tour-btn--primary {
  color: #fff;
  background: #18181b;
  border-color: #18181b;
}
.light-theme .tour-btn--primary:hover {
  color: #fff;
  background: #27272a;
  border-color: #27272a;
}
.light-theme #toast { box-shadow: 0 16px 48px rgba(0,0,0,.12) !important; }
.light-theme .wallet-activity-item:hover { background: rgba(0,0,0,.02); }
.light-theme .scan-btn-loader {
  border-color: rgba(0,0,0,.12) !important;
  border-top-color: #18181b !important;
  border-right-color: #18181b !important;
}
.light-theme .app-header-cmd:hover svg {
  filter: none;
}

/* ── app shell ── */
.app-layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
@media (min-width: 768px) {
  .app-layout {
    height: calc(100dvh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
  }
}
@media (max-width: 767px) {
  .app-layout {
    height: calc(100dvh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
  }
}
.app-header {
  position: sticky; top: 0; z-index: 40; flex-shrink: 0;
  height: var(--header-h); padding: 0 16px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.03);
}
.light-theme .app-header {
  background: rgba(244,244,245,.85) !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.04);
}
.app-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.app-brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text);
  text-decoration: none;
  transition: opacity .15s ease;
}
.app-brand:hover { opacity: .88; }
.app-brand img { width: 22px; height: 22px; flex-shrink: 0; opacity: .92; }
.app-brand-name {
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--mono) !important;
}
.app-brand-meta {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: .06em;
  font-family: var(--mono) !important;
  text-transform: lowercase;
}
.app-brand-badge {
  font-size: var(--text-micro); font-weight: 500; color: var(--text-4);
  padding: 2px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-family: var(--mono) !important;
  letter-spacing: .04em;
}
.app-header-status {
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  font-size: var(--text-caption);
  color: var(--text-3);
  font-family: var(--mono) !important;
  letter-spacing: .02em;
  white-space: nowrap;
}
/* hidden sm:flex — Tailwind visibility; pill layout stays on sm+ */
.app-header-status.hidden {
  display: none !important;
}
@media (min-width: 640px) {
  .app-header-status.hidden.sm\:flex {
    display: inline-flex !important;
  }
}
.app-header-chain-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.app-chain-picker-wrap { position: relative; margin-left: 12px; }
.app-chain-picker {
  display: inline-flex;
  margin-left: 0;
  cursor: pointer;
  color: var(--text-3);
  font: inherit;
}
.app-chain-picker:hover { color: var(--text); border-color: var(--line-strong, var(--line)); }
.app-chain-chevron { width: 12px; height: 12px; opacity: .65; }
.app-chain-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: 250px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, #111720);
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
}
.app-chain-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  font: 500 12px/1.3 var(--mono, ui-monospace, monospace);
  cursor: pointer;
}
.app-chain-option:hover,.app-chain-option.is-active { background: rgba(255,255,255,.065); color: var(--text); }
.app-chain-option span { color: var(--text-4); font-size: 10px; white-space: nowrap; }
.app-chain-option .app-chain-option-label { color: var(--text-2); font-size: 12px; }
.app-chain-menu-note { padding: 8px 10px 6px; border-top: 1px solid var(--line); color: var(--text-4); font-size: 10px; line-height: 1.4; }
.app-header-context {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.app-header-context-kicker {
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--mono) !important;
}
.app-header-context-kicker::before {
  content: '//';
  margin-right: 5px;
  color: var(--text-4);
}
.app-header-context-title {
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.app-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(52,211,153,.4);
  flex-shrink: 0;
}

.app-sidebar {
  width: 248px;
  flex: 0 0 248px;
  align-self: stretch;
  min-height: 0;
  border-right: 1px solid var(--line) !important;
  background: rgba(255,255,255,.015) !important;
  padding: 16px 12px !important;
  overflow: hidden;
}
/* hidden md:flex — Tailwind visibility; layout styles stay on md+ */
.app-sidebar.hidden {
  display: none !important;
}
@media (min-width: 768px) {
  .app-sidebar.hidden.md\:flex {
    display: flex !important;
  }
}
.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 2px;
}
@media (min-width: 768px) {
  .sidebar-scroll { gap: 24px; }
}
.sidebar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption); font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-4);
  padding: 0 10px; margin-bottom: 6px;
  font-family: var(--mono) !important;
}
.sidebar-label::before,
.sidebar-comment-title::before {
  content: '›';
  margin-right: 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-label-plain::before {
  content: none;
}
.sidebar-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px !important; height: auto !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  border-left-width: 1px !important;
  background: transparent !important;
  color: var(--text-3) !important;
  font-size: var(--text-body) !important; font-weight: 500 !important;
  font-family: var(--font-ui) !important;
  text-align: left; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.sidebar-nav-btn span { font-family: var(--font-ui) !important; }
.sidebar-nav-btn:hover {
  color: var(--text-2) !important;
  background: rgba(255,255,255,.04) !important;
}
.sidebar-nav-btn.tab-nav-active {
  color: var(--text) !important;
  background: rgba(255,255,255,.06) !important;
  border-color: var(--line-strong) !important;
}
.sidebar-nav-btn svg { width: 16px; height: 16px; opacity: .75; flex-shrink: 0; }
.sidebar-nav-btn.tab-nav-active svg { opacity: 1; }
.sidebar-nav-btn .sidebar-nav-state {
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  transform: scale(0.35);
  transition:
    opacity .24s ease,
    transform .28s cubic-bezier(.34, 1.35, .64, 1),
    box-shadow .24s ease,
    background-color .24s ease,
    margin-left .24s ease,
    max-width .24s ease;
}
.sidebar-nav-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit !important;
}
.sidebar-nav-state.is-empty {
  margin-left: 0;
  max-width: 0;
  opacity: 0;
  transform: scale(0.35);
  background: transparent;
  box-shadow: none;
}
.sidebar-nav-state.is-cached,
.sidebar-nav-state.is-error {
  margin-left: 3px;
  max-width: 6px;
  opacity: 1;
  transform: scale(1);
}
.sidebar-nav-state.is-cached {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .4);
}
.sidebar-nav-state.is-error {
  background: var(--red);
  box-shadow: 0 0 8px rgba(251, 113, 133, .42);
}
.sidebar-nav-btn.tab-nav-active .sidebar-nav-state.is-cached {
  box-shadow: 0 0 10px rgba(52, 211, 153, .55);
}
.mobile-bottom-nav .sidebar-nav-btn {
  position: relative;
}
.mobile-bottom-nav .sidebar-nav-state {
  display: none !important;
}
/* Inactive tabs: tinted icon + corner badge (visible without sidebar dots). */
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="cached"]:not(.tab-nav-active):not(.is-sheet-open) svg {
  stroke: var(--green) !important;
  opacity: 1 !important;
}
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="error"]:not(.tab-nav-active):not(.is-sheet-open) svg {
  stroke: var(--red) !important;
  opacity: 1 !important;
}
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="cached"]:not(.tab-nav-active):not(.is-sheet-open)::before,
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="error"]:not(.tab-nav-active):not(.is-sheet-open)::before {
  content: '';
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .92);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="cached"]:not(.tab-nav-active):not(.is-sheet-open)::before {
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, .55);
}
.mobile-bottom-nav .sidebar-nav-btn[data-module-state="error"]:not(.tab-nav-active):not(.is-sheet-open)::before {
  background: var(--red);
  box-shadow: 0 0 6px rgba(251, 113, 133, .55);
}
.light-theme .mobile-bottom-nav .sidebar-nav-btn[data-module-state="cached"]:not(.tab-nav-active):not(.is-sheet-open)::before,
.light-theme .mobile-bottom-nav .sidebar-nav-btn[data-module-state="error"]:not(.tab-nav-active):not(.is-sheet-open)::before {
  border-color: rgba(255, 255, 255, .94);
}
@media (prefers-reduced-motion: reduce) {
  .sidebar-nav-btn .sidebar-nav-state {
    transition: opacity .12s ease, margin-left .12s ease, max-width .12s ease;
    transform: none;
  }
  .sidebar-nav-state.is-empty { transform: none; }
  .sidebar-nav-state.is-cached,
  .sidebar-nav-state.is-error { transform: none; }
}
.sidebar-cmd-btn {
  color: var(--text-2) !important;
}
.sidebar-cmd-btn:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line-strong) !important;
}
.sidebar-cmd-btn svg {
  color: var(--text) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.22));
}
.sidebar-cmd-btn:hover svg {
  filter: drop-shadow(0 0 8px rgba(255,255,255,.32));
}
.sidebar-kbd {
  margin-left: auto; font-size: var(--text-micro); color: var(--text-4);
  padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-family: var(--mono) !important;
}
.sidebar-kbd-hotkey {
  color: var(--text-4) !important;
  border-color: var(--line) !important;
  background: rgba(255,255,255,.03) !important;
  font-weight: 500;
}
body > header:not(.app-header) {
  position: sticky; top: 0; z-index: 40; flex-shrink: 0;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line) !important;
}
nav.hidden.md\:flex button[data-tab-btn],
nav.hidden.md\:flex button[onclick*="switchTab"],
nav.hidden.md\:flex button[onclick*="openCommandPalette"] {
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  border-left-width: 1px !important;
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  font-size: var(--text-body) !important;
}
[data-tab-btn].tab-nav-active {
  color: var(--text) !important;
  background: rgba(255,255,255,.06) !important;
  border-color: var(--line-strong) !important;
}

.app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px 40px !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .app-main { padding: 16px 16px 96px !important; }
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-4);
  text-decoration: none;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .05em;
  transition: color .15s ease, background .15s ease;
}
.sidebar-brand-link:hover {
  color: var(--text-2);
  background: rgba(255,255,255,.03);
}
.sidebar-brand-link img { opacity: .75; flex-shrink: 0; }
.sidebar-brand-name {
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
}
.sidebar-brand-domain {
  margin-left: auto;
  text-transform: lowercase;
  color: var(--text-4);
}
.init-loader-site {
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: lowercase;
  transition: color .15s ease;
}
.init-loader-site:hover { color: var(--text); }
.sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0;
}
.sidebar-hint {
  margin: 0 10px 10px;
  font-size: var(--text-micro);
  color: var(--text-4);
  line-height: 1.4;
  letter-spacing: .01em;
}
.sidebar-aside-ghostline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0 5px;
  padding: 0 10px;
  white-space: nowrap;
}
.sidebar-aside-ghost {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--text-3);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.sidebar-aside-ghost:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.sidebar-aside-ghost.is-copied {
  color: var(--green);
  text-decoration: none;
}
.sidebar-aside-ghost--with-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.sidebar-aside-ver {
  font-family: var(--mono) !important;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-4);
  padding: 0 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  line-height: 1.35;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-aside-ghost:hover .sidebar-aside-ver {
  color: var(--text-3);
}
.sidebar-aside-ghost-dot {
  color: var(--text-4);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  line-height: 1;
  user-select: none;
  opacity: .65;
  flex-shrink: 0;
}
.light-theme .sidebar-aside-ghost:hover { color: var(--text); }
.mobile-sheet-ghostline {
  padding: 0;
}
.sidebar-footer--sheet {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  background: none;
}
.sidebar-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.sidebar-aside-fg {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar-aside-trx {
  padding: 10px 12px;
}
.sidebar-trx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sidebar-trx-price {
  font-family: var(--mono) !important;
  font-size: var(--text-lead);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}
.sidebar-trx-change {
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.sidebar-trx-change.is-green { color: var(--green); }
.sidebar-trx-change.is-red { color: var(--red); }
.sidebar-trx-sk {
  display: inline-block;
  width: 56px;
  height: 14px;
  border-radius: 4px;
  vertical-align: middle;
}
.sidebar-trx-sk-sm {
  display: inline-block;
  width: 40px;
  height: 10px;
  border-radius: 4px;
  vertical-align: middle;
}
.sidebar-trx-chart-wrap {
  position: relative;
  height: 44px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.sidebar-trx-sparkline {
  display: block;
  width: 100%;
  height: 44px;
}
.sidebar-trx-chart-wrap.is-loading .sidebar-trx-sparkline {
  opacity: 0;
}
.sidebar-trx-chart-wrap.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: sidebar-trx-shimmer 1.2s ease-in-out infinite;
}
@keyframes sidebar-trx-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.mobile-sheet-trx {
  padding: 0;
}
.light-theme .mobile-sheet-block--trx {
  background: #fff !important;
}
.mobile-sheet-block--trx {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 12px;
}
.sidebar-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sidebar-aside-label {
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--mono) !important;
}
.sidebar-aside-meta {
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-4);
  font-family: var(--mono) !important;
}
.sidebar-aside-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green);
  font-family: var(--mono) !important;
}
.sidebar-aside-live .app-live-dot { width: 4px; height: 4px; }
.sidebar-aside-fg-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sidebar-aside-fg-val {
  font-family: var(--mono) !important;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}
.sidebar-aside-sk-val { display: inline-block; width: 32px; height: 18px; border-radius: 5px; vertical-align: middle; }
.sidebar-aside-sk-meta { display: inline-block; width: 68px; height: 10px; border-radius: 4px; vertical-align: middle; }
.sidebar-aside-fg-val .sk,
.sidebar-aside-fg-meta .sk { vertical-align: middle; }
.sidebar-aside-fg-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .02em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-aside-fg-meta.is-green { color: var(--green); }
.sidebar-aside-fg-meta.is-info { color: var(--info); }
.sidebar-aside-fg-meta.is-amber { color: var(--amber); }
.sidebar-aside-fg-meta.is-red { color: var(--red); }
.sidebar-aside-track {
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.sidebar-aside-track.is-loading {
  background: rgba(255,255,255,.04);
}
.sidebar-aside-track.is-loading .sidebar-aside-fill { opacity: 0; }
.sidebar-aside-track.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  animation: sk-shimmer 1.6s ease-in-out infinite;
  transform: translateX(-100%);
}
.sidebar-aside-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  transition: width .5s var(--ease);
}
.sidebar-aside-actions {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.sidebar-aside-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-family: var(--font-ui) !important;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.sidebar-aside-action-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .8;
}
.sidebar-aside-action:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: var(--line-strong);
}
.sidebar-aside-action:hover .sidebar-aside-action-icon {
  opacity: 1;
}

.app-header-btn {
  height: 34px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid transparent; background: transparent;
  color: var(--text-3); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  font-family: var(--font-ui) !important;
}
.app-header-btn:hover {
  background: rgba(255,255,255,.05); color: var(--text-2);
  border-color: var(--line);
}
.app-header-icon {
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
}
.app-header-cmd:hover {
  color: var(--text) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.app-header-cmd:hover svg {
  filter: drop-shadow(0 0 6px rgba(255,255,255,.18));
}
.app-header-lang { position: relative; }
.app-header-lang-btn span {
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  letter-spacing: .06em;
}
.app-header-lang-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  z-index: 50;
}
.app-header-lang-dd:not(.hidden) {
  animation: header-dd-in .18s var(--ease) both;
}
@keyframes header-dd-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-opt {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: var(--mono) !important;
  font-size: var(--text-caption) !important;
  letter-spacing: .02em;
  color: var(--text-3) !important;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.lang-opt:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,.05);
}
.lang-opt-active {
  color: var(--text) !important;
  background: rgba(255,255,255,.06);
}
@media (max-width: 1023px) {
  .app-header-context { display: none !important; }
}
@media (max-width: 639px) {
  .app-header { padding: 0 12px; gap: 10px; }
  .app-brand-name { display: none; }
  .app-header-lang-btn span { display: none; }
}

/* ── module panels ── */
.module-panel {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
  padding: 0 0 22px !important;
  font-family: var(--font-ui) !important;
  overflow: visible;
}
.module-panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}
.module-panel-head h2 {
  font-size: var(--text-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  font-family: var(--mono) !important;
}
.sidebar-nav-btn .module-file {
  font-family: var(--mono) !important;
  font-size: var(--text-body) !important;
  font-weight: 500;
}
.module-panel-head p {
  font-size: var(--text-body) !important; color: var(--text-2) !important;
  line-height: 1.55 !important; font-family: var(--font-ui) !important;
}
.module-panel-head .module-desc { margin-top: 10px; max-width: 680px; }
.module-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.module-head-top h2 {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}
.module-head-top .module-action-btn {
  flex-shrink: 0;
  margin-top: 1px;
}
.module-panel-head > h2 {
  margin: 0 !important;
}
.module-panel-head > h2 + .module-desc {
  margin-top: 10px;
}
.module-desc-lead {
  margin: 0 0 10px;
  font-size: var(--text-body) !important;
  line-height: 1.62 !important;
  color: var(--text-2) !important;
  font-family: var(--font-ui) !important;
}
.module-desc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.module-desc-tags-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--text-3);
  font-family: var(--font-ui) !important;
  font-size: var(--text-label);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.module-desc-tags-toggle:hover,
.module-desc-tags-toggle.is-open {
  color: var(--text-2);
  border-color: var(--line-focus);
  background: rgba(255,255,255,.04);
}
.module-desc-tags-toggle-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
  letter-spacing: .04em;
}
.module-desc-tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .03em;
  color: var(--text-3);
  line-height: 1.35;
  white-space: nowrap;
}
.module-panel-head p:last-of-type:not(.module-desc-lead) {
  font-size: var(--text-label) !important; color: var(--text-3) !important;
  margin-bottom: 0 !important;
}

/* content area below panel head */
.module-panel-head ~ .search-bar,
.module-panel-head ~ .flex,
.module-panel-head ~ .grid,
.module-panel-head ~ .vanity-panel,
.module-panel-head ~ [id$="-err"],
.module-panel-head ~ [id$="-empty"],
.module-panel-head ~ [id$="-result"],
.module-panel-head ~ .report-panel {
  padding-left: 22px;
  padding-right: 22px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.module-panel-head + .search-bar,
.module-panel-head + .flex,
.module-panel-head + .grid,
.module-panel-head + .vanity-panel,
.module-panel-head + [id$="-err"],
.module-panel-head + [id$="-empty"],
.module-panel-head + [id$="-result"],
.module-panel-head + .report-panel {
  padding-top: 24px !important;
}
.module-panel-head + .grid + .grid,
.module-panel .grid + .grid {
  padding-top: 0 !important;
  margin-top: 16px !important;
}
.module-panel-head ~ .search-bar,
.module-panel-head ~ .flex {
  margin-bottom: 16px !important;
}
.module-panel-head ~ [id$="-result"] {
  padding-top: 0;
}
.module-panel-head ~ [id$="-result"]:not(:empty) {
  padding-top: 4px;
}
.module-panel:has([id$="-result"]:not(:empty)) > .scan-empty {
  display: none !important;
}
.tab-content.active > .module-panel + .module-panel { margin-top: 14px; }

.module-action-btn {
  font-size: var(--text-caption) !important; font-weight: 700 !important;
  color: var(--text-3) !important; background: none !important;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 7px;
  font-family: var(--mono) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: color .2s, background .2s;
}
.module-action-btn:hover { color: var(--red) !important; background: var(--red-soft) !important; }
.module-action-btn.is-clearing {
  color: var(--red) !important;
  background: var(--red-soft) !important;
  opacity: .88;
  cursor: wait;
  pointer-events: none;
}
.module-action-btn.is-clearing:hover {
  color: var(--red) !important;
  background: var(--red-soft) !important;
}
.tab-content [id$="-result"],
.tab-content .report-panel {
  transition: opacity .22s var(--ease), transform .22s var(--ease), filter .22s var(--ease);
}
.tab-content [id$="-result"].is-purging,
.tab-content .report-panel.is-purging {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  filter: blur(3px);
  pointer-events: none;
}
.scan-empty.is-entering {
  animation: purge-empty-in .34s var(--ease) both;
}
@keyframes purge-empty-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── search / scan ── */
.search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  align-items: stretch;
}
@media (min-width: 640px) {
  .search-bar { flex-direction: row; align-items: center; }
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within {
  border-color: var(--line-focus) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.light-theme .search-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.field-icon,
.search-wrap > svg,
.search-wrap > i[data-lucide] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-4);
  pointer-events: none;
  flex-shrink: 0;
}
.search-wrap .search-input,
.search-wrap .field-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px 0 42px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--text) !important;
  font-size: var(--text-body) !important;
  border-radius: 0 !important;
  font-family: var(--mono) !important;
}
.search-wrap .search-input::placeholder,
.search-wrap .field-input::placeholder {
  color: var(--text-4) !important;
}
.search-wrap .search-input:focus,
.search-wrap .field-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.module-panel textarea.field-input,
.module-panel textarea.search-input {
  min-height: 96px;
  height: auto;
  padding: 12px 14px !important;
  font-family: var(--mono) !important;
  resize: vertical;
}
.module-panel .field-block textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-size: var(--text-body) !important;
  font-family: var(--mono) !important;
  resize: vertical;
}
.module-panel .field-block textarea:focus,
.module-panel .field-block input:focus {
  outline: none !important;
  border-color: var(--line-focus) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.module-panel .field-block input.field-input-plain {
  width: 100%;
  height: 44px;
  padding: 0 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-size: var(--text-body) !important;
  font-family: var(--mono) !important;
}
.module-panel .field-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 8px;
  font-family: var(--font-ui) !important;
}
.module-panel .field-block + .field-block {
  margin-top: 16px;
}
.module-panel #report-form-fields .field-block:first-child,
.report-fields .field-block:first-child {
  margin-top: 0;
}

.scan-btn, #wallet-scan-btn, #approvals-scan-btn, #contract-scan-btn,
#aml-scan-btn, #tx-decode-btn, #phish-btn, #vanity-start-btn, .module-panel button[id$="-scan-btn"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  flex-shrink: 0;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  background: var(--text) !important;
  color: var(--bg) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--text-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: var(--mono) !important;
  cursor: pointer;
  white-space: nowrap;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform 80ms ease-out !important;
}
.scan-btn:hover, #wallet-scan-btn:hover, #approvals-scan-btn:hover,
#contract-scan-btn:hover, #aml-scan-btn:hover, #tx-decode-btn:hover,
#phish-btn:hover, #vanity-start-btn:hover:not(:disabled):not(.is-disabled) {
  background: #f4f4f5 !important;
  color: #000 !important;
}
.scan-btn:active, #wallet-scan-btn:active, #approvals-scan-btn:active,
#contract-scan-btn:active, #aml-scan-btn:active, #tx-decode-btn:active,
#phish-btn:active, #vanity-start-btn:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.985) translateZ(0) !important;
  transition-duration: 0ms !important;
}
.light-theme .scan-btn, .light-theme #wallet-scan-btn,
.light-theme #approvals-scan-btn, .light-theme #contract-scan-btn,
.light-theme #aml-scan-btn, .light-theme #tx-decode-btn,
.light-theme #phish-btn, .light-theme #vanity-start-btn {
  background: #18181b !important;
  color: #fff !important;
}
#vanity-start-btn:disabled,
#vanity-start-btn.is-disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: rgba(255,255,255,.35) !important;
  color: rgba(0,0,0,.4) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.light-theme #vanity-start-btn:disabled,
.light-theme #vanity-start-btn.is-disabled {
  background: rgba(24,24,27,.3) !important;
  color: rgba(255,255,255,.45) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.search-bar > button,
.search-bar > #wallet-scan-btn,
.search-bar > #approvals-scan-btn,
.search-bar > #contract-scan-btn,
.search-bar > #aml-scan-btn,
.search-bar > #tx-decode-btn,
.search-bar > #phish-btn,
.search-bar > #vanity-start-btn {
  width: auto;
}
@media (min-width: 640px) {
  .search-bar > button,
  .search-bar > #wallet-scan-btn,
  .search-bar > #approvals-scan-btn,
  .search-bar > #contract-scan-btn,
  .search-bar > #aml-scan-btn,
  .search-bar > #tx-decode-btn,
  .search-bar > #phish-btn,
  .search-bar > #vanity-start-btn {
    min-width: 108px;
  }
}

.scan-btn-loader {
  border: 2px solid rgba(0,0,0,.12) !important;
  border-top-color: #000 !important;
  border-right-color: #000 !important;
}

/* ── Report scam form ── */
.report-panel {
  display: flex; flex-direction: column; gap: 12px;
  animation: fadeSlideIn .4s var(--ease) both;
}
.report-form {
  display: flex; flex-direction: column; gap: 12px;
}
.report-notice { margin: 0; }
.report-type-body { padding: 12px 16px 14px !important; }
.report-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .report-type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.report-type-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text-2);
  font-family: var(--font-ui) !important;
  font-size: var(--text-label); font-weight: 500;
  line-height: 1.3; text-align: center;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.report-type-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.04);
}
.report-type-btn.report-type-active {
  color: var(--red);
  border-color: rgba(251,113,133,.28);
  background: var(--red-soft);
}
.report-fields { padding: 14px 16px 16px !important; }
.report-desc-label {
  display: flex !important;
  align-items: center; justify-content: space-between;
  gap: 10px;
}
.report-desc-counter {
  font-size: var(--text-caption); color: var(--text-4);
  font-family: var(--mono) !important;
  font-weight: 400;
}
.report-field-hint {
  margin-top: 6px;
  font-size: var(--text-caption); line-height: 1.45;
  color: var(--text-4);
  font-family: var(--font-ui) !important;
}
.report-field-optional {
  color: var(--text-4); font-weight: 400;
}
.report-actions { padding-top: 2px; }
.report-submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251,113,133,.28);
  background: transparent;
  color: var(--red);
  font-family: var(--mono) !important;
  font-size: var(--text-body); font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.report-submit-btn:hover {
  background: var(--red-soft);
  border-color: rgba(251,113,133,.4);
}
.report-submit-btn svg { flex-shrink: 0; }
.report-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.report-submit-btn.is-busy { opacity: .75; pointer-events: none; }
.report-submit-status {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: var(--text-caption);
  color: var(--text-3);
  letter-spacing: .02em;
}
.report-submit-status.is-active { color: var(--amber); }
.report-form.is-submitting {
  opacity: .55;
  pointer-events: none;
  transition: opacity .2s;
}
.report-success { padding-top: 4px; }
.report-success-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  padding: 28px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52,211,153,.22);
  background: var(--green-soft);
}
.report-success-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(52,211,153,.12);
  color: var(--green);
}
.report-success-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  font-family: var(--font-ui) !important;
}
.report-success-desc {
  font-size: var(--text-body); line-height: 1.5; color: var(--text-2);
  font-family: var(--font-ui) !important;
  max-width: 360px;
}
.report-success-btn { margin-top: 8px; }

/* ── analytics dashboard ── */
.module-panel-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
@media (max-width: 767px) {
  .module-panel-head {
    padding: 16px 16px 18px !important;
  }
  .module-head-top {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .module-head-top h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .module-head-top .module-action-btn {
    margin-top: 0;
    flex-shrink: 0;
    font-size: var(--text-micro) !important;
    padding: 6px 8px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap;
  }
  .module-panel-head .module-desc {
    margin-top: 8px;
    max-width: none;
  }
  .module-desc-lead {
    font-size: var(--text-label) !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }
  .module-desc-tags {
    display: none;
    margin-top: 8px;
  }
  .module-desc-tags.is-open {
    display: flex;
  }
  .module-desc-tags-toggle {
    display: inline-flex;
  }
  .module-panel-head ~ .search-bar,
  .module-panel-head ~ .flex,
  .module-panel-head ~ .grid,
  .module-panel-head ~ .vanity-panel,
  .module-panel-head ~ [id$="-err"],
  .module-panel-head ~ [id$="-empty"],
  .module-panel-head ~ [id$="-result"],
  .module-panel-head ~ .report-panel {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .an-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
.an-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-size: var(--text-label); font-weight: 500;
  font-family: var(--font-ui) !important;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.an-refresh-btn:hover {
  color: var(--text);
  border-color: var(--line-focus);
  background: rgba(255,255,255,.06);
}
.an-refresh-btn svg { opacity: .75; }
.an-refresh-btn:hover svg { opacity: 1; }
.an-body { padding: 20px 22px 0; }
#tab-analytics .module-panel[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.an-section-label {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 10px;
}
.an-section-label + .an-stat-grid { margin-bottom: 18px; }
.an-stat-grid + .an-section-label { margin-top: 24px; }
.an-hero-grid + .an-section-label { margin-top: 20px; }
.an-stat-grid {
  display: grid; gap: 10px; align-items: stretch;
}
.an-stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 96px;
  box-sizing: border-box;
}
.an-stat--sk { justify-content: flex-start; gap: 8px; }
.an-sk-label { height: 12px; width: 64%; border-radius: 5px; flex-shrink: 0; }
.an-sk-value {
  height: 28px; width: 58%; border-radius: 7px; flex-shrink: 0;
}
.an-sk-value--inline { display: inline-block; width: 120px; max-width: 58%; }
.an-sk-sub { height: 10px; width: 46%; border-radius: 4px; margin-top: auto; }
.an-sk-card-value { display: inline-block; width: 88px; height: 32px; border-radius: 7px; }
.an-sk-card-tag { display: inline-block; width: 80px; height: 26px; border-radius: 6px; }
.an-sk-mini { display: inline-block; width: 64px; height: 14px; border-radius: 4px; margin: 0 auto; }
.an-stat-label {
  font-size: var(--text-label); font-weight: 500; color: var(--text-3);
  font-family: var(--font-ui) !important;
}
.an-stat-value {
  font-family: var(--mono) !important;
  font-size: var(--text-stat); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.15; color: var(--text);
}
.an-stat-value.is-info { color: var(--info); }
.an-stat-value.is-green { color: var(--green); }
.an-stat-value.is-amber { color: var(--amber); }
.an-stat-value.is-red { color: var(--red); }
.an-stat-value.is-neutral { color: var(--text-2); }
.an-stat-sub {
  font-size: var(--text-caption); color: var(--text-4);
  font-family: var(--font-ui) !important;
  margin-top: auto;
}
.an-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.an-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 18px 20px;
  display: flex; flex-direction: column;
}
.an-card-label {
  font-size: var(--text-label); font-weight: 500; color: var(--text-3);
  font-family: var(--font-ui) !important;
  margin-bottom: 12px;
}
.an-card-main {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
}
.an-card-value {
  font-family: var(--mono) !important;
  font-size: clamp(26px, 4vw, 32px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1; color: var(--text);
}
.an-card-value.is-green { color: var(--green); }
.an-card-tag {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: 6px;
  font-size: var(--text-caption); font-weight: 500;
  font-family: var(--font-ui) !important;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-3);
  margin-bottom: 2px;
}
.an-card-tag.is-green { color: var(--green); background: var(--green-soft); border-color: rgba(52,211,153,.2); }
.an-card-tag.is-info { color: var(--info); background: var(--info-soft); border-color: var(--info-border); }
.an-card-tag.is-amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(251,191,36,.2); }
.an-card-tag.is-red { color: var(--red); background: var(--red-soft); border-color: rgba(251,113,133,.2); }
.an-card-tag.is-neutral { color: var(--text-3); }
.an-card-change {
  font-family: var(--mono) !important;
  font-size: var(--text-body); font-weight: 600;
  color: var(--text-3); margin-bottom: 4px;
}
.an-card-change.is-green { color: var(--green); }
.an-card-change.is-red { color: var(--red); }
.an-fg-track {
  height: 6px; margin-top: 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.an-fg-fill {
  height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  transition: width .55s var(--ease);
}
.an-card.is-error {
  border-color: var(--red-border, rgba(248,113,113,.35));
  background: rgba(248,113,113,.04);
}
.an-card.is-error .an-fg-track { opacity: .35; }
.an-card-value.is-muted { color: var(--text-4); }
.an-chart-wrap { margin-bottom: 18px; }
.an-chart-host { position: relative; overflow: hidden; width: 100%; touch-action: pan-y; }
.an-chart-svg { touch-action: none; }
.an-chart {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.008) 100%);
  padding: 12px 10px 6px;
  box-sizing: border-box;
}
.an-chart--line { cursor: default; }
.an-chart--bars { cursor: default; }
.an-chart-skeleton {
  height: 156px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200% 100%;
  animation: an-chart-shimmer 1.2s ease-in-out infinite;
}
@keyframes an-chart-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.an-chart-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 156px;
  font-size: var(--text-label); color: var(--text-4);
  font-family: var(--font-ui) !important;
}
.an-chart-legend {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  margin-bottom: 8px;
}
.an-chart-legend-item {
  font-size: var(--text-caption); color: var(--text-3);
  font-family: var(--font-ui) !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.an-chart-legend-item::before {
  content: ''; width: 10px; height: 3px; border-radius: 2px;
}
.an-chart-legend--energy::before { background: var(--info); }
.an-chart-legend--bw::before { background: var(--green); }
.an-chart-svg { display: block; overflow: hidden; }
.an-chart-grid line,
.an-chart-grid path { stroke: rgba(255,255,255,.06); }
.an-chart-axis text {
  fill: var(--text-4);
  font-family: var(--mono);
  font-size: var(--text-micro);
}
.an-chart-axis path,
.an-chart-axis line { stroke: var(--line); }
.an-chart-line {
  fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.18));
}
.an-chart-line--energy { stroke: var(--info); }
.an-chart-line--bw { stroke: var(--green); }
.an-chart-line--usdt { stroke: var(--info); }
.an-chart-line--trx { stroke: var(--green); }
.an-chart-area { opacity: 1; pointer-events: none; }
.an-chart-area--bw { opacity: .55; }
.an-chart-dot {
  fill: var(--bg, #0a0a0f);
  stroke-width: 2;
  opacity: .85;
  transition: opacity .15s ease;
}
.an-chart-dot--energy { stroke: var(--info); }
.an-chart-dot--bw { stroke: var(--green); }
.an-chart-dot--usdt { stroke: var(--info); }
.an-chart-dot--trx { stroke: var(--green); }
.an-chart-dot.is-dim { opacity: .2; }
.an-chart-dot-active {
  fill: var(--bg, #0a0a0f);
  stroke-width: 2.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.an-chart-dot-active.is-visible { opacity: 1; }
.an-chart-dot-active--energy { stroke: var(--info); }
.an-chart-dot-active--bw { stroke: var(--green); }
.an-chart-dot-active--usdt { stroke: var(--info); }
.an-chart-dot-active--trx { stroke: var(--green); }
.an-chart-overlay { fill: transparent; cursor: default; }
.an-chart-tooltip {
  position: absolute; z-index: 4; pointer-events: none;
  min-width: 108px; max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,12,16,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-family: var(--font-ui) !important;
  font-size: var(--text-caption); line-height: 1.45;
  color: var(--text-2);
  opacity: 0;
  transition: opacity .12s ease;
}
.an-chart-tooltip strong {
  display: block; margin-bottom: 4px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4);
}
.an-chart-tooltip span { display: block; color: var(--text); font-family: var(--mono) !important; font-size: var(--text-caption); }
.an-chart-tip-row { display: block; font-family: var(--mono) !important; font-size: var(--text-caption); }
.an-chart-tip-row--energy { color: var(--info); }
.an-chart-tip-row--bw { color: var(--green); }
.light-theme .an-chart-tooltip { background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.light-theme .an-chart {
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.005) 100%);
}
.light-theme .an-chart-grid line,
.light-theme .an-chart-grid path { stroke: rgba(0,0,0,.06); }
.an-section-label + .an-chart-wrap,
.an-section-label + .an-chart { margin-bottom: 18px; }
.an-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 14px;
}
.an-mini-stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  text-align: center;
}
.an-mini-label {
  display: block; font-size: var(--text-micro); color: var(--text-4);
  font-family: var(--font-ui) !important;
  margin-bottom: 4px;
}
.an-mini-val {
  display: block;
  font-family: var(--mono) !important;
  font-size: var(--text-label); font-weight: 600; color: var(--info);
}

/* analytics / inline stat tiles (legacy locale HTML) */
.stat-tile,
.module-panel .grid .bg-black,
.module-panel .grid .bg-black.border,
.module-panel .bg-black.border,
.module-panel .bg-darkCard.border {
  background: rgba(255,255,255,.02) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
}
.module-panel .grid .bg-black,
.module-panel .grid .bg-black.border,
.module-panel .bg-black.border { padding: 16px !important; }
.module-panel .bg-darkCard.border { padding: 10px 12px !important; border-radius: 8px !important; }
.module-panel .grid { gap: 12px !important; align-items: stretch; }
.stat-tile-label {
  font-size: var(--text-label); font-weight: 500; color: var(--text-3);
  font-family: var(--font-ui); margin-bottom: 8px;
}
.stat-tile-val { font-size: var(--text-stat-sm); font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.stat-tile-sub { font-size: var(--text-caption); color: var(--text-4); margin-top: 4px; font-family: var(--font-ui); }

/* legacy card panels (locale HTML) */
.bg-darkCard\/50 > .border-b + .grid,
.border-panelBorder.bg-darkCard\/50 > .border-b + .grid {
  margin-top: 0 !important;
  padding-top: 20px !important;
}
.bg-darkCard\/50 > .grid + .grid,
.border-panelBorder.bg-darkCard\/50 > .grid + .grid {
  margin-top: 16px !important;
}

/* legacy input rows — unified icon + padding */
.tab-content .relative.flex-1:has(> input),
.tab-content .relative.flex-1:has(> textarea) {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  transition: border-color .2s, box-shadow .2s;
}
.tab-content .relative.flex-1:has(> input):focus-within,
.tab-content .relative.flex-1:has(> textarea):focus-within {
  border-color: var(--line-focus) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.tab-content .relative.flex-1:has(> input)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z'/%3E%3C/svg%3E");
  pointer-events: none;
}
.tab-content .relative.flex-1 > span.absolute { display: none !important; }
.tab-content .relative.flex-1 > input,
.tab-content .relative.flex-1 > textarea {
  width: 100%;
  min-width: 0;
  padding-left: 42px !important;
  padding-right: 14px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  height: 44px;
  font-size: var(--text-body) !important;
  font-family: var(--mono) !important;
  color: var(--text) !important;
}
.tab-content .relative > input:not(.field-input),
.tab-content .relative > textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--text-body) !important;
  font-family: var(--mono) !important;
  color: var(--text) !important;
}
.tab-content .relative > input:not(.field-input):focus,
.tab-content .relative > textarea:focus {
  outline: none !important;
  border-color: var(--line-focus) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.tab-content .relative > span.absolute { display: none !important; }

.module-panel span.uppercase.font-bold {
  text-transform: none !important;
  font-weight: 500 !important;
  font-size: var(--text-label) !important;
  letter-spacing: 0 !important;
  font-family: var(--font-ui) !important;
}
.border-t-hackCyan { border-top-color: var(--info) !important; }
.border-t-hackGreen { border-top-color: var(--green) !important; }
.border-t-hackRed { border-top-color: var(--red) !important; }

/* captcha */
.captcha-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .32s var(--ease),
    visibility .32s var(--ease),
    backdrop-filter .32s var(--ease),
    -webkit-backdrop-filter .32s var(--ease);
}
.captcha-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.captcha-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.captcha-card {
  width: 380px; max-width: calc(100vw - 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  font-family: var(--font-ui);
  overflow: hidden;
  transform: translateY(16px) scale(0.965);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform .38s var(--ease),
    opacity .38s var(--ease),
    filter .38s var(--ease),
    box-shadow .38s var(--ease);
}
.captcha-overlay.is-open .captcha-card {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  box-shadow: 0 28px 72px rgba(0,0,0,.58);
}
.captcha-overlay.is-closing .captcha-card {
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  filter: blur(3px);
}
.captcha-overlay.is-open .captcha-head-dot {
  animation: captcha-dot-boot .55s var(--ease) both, sk-dot 1.2s ease-in-out .55s infinite;
}
.captcha-overlay.is-open .captcha-line:nth-child(1) { animation: captcha-fade-up .34s .12s var(--ease) both; }
.captcha-overlay.is-open .captcha-line:nth-child(2) { animation: captcha-fade-up .34s .18s var(--ease) both; }
.captcha-overlay.is-open .captcha-line:nth-child(3) { animation: captcha-fade-up .34s .24s var(--ease) both; }
.captcha-overlay.is-open .captcha-start-btn { animation: captcha-fade-up .34s .32s var(--ease) both; }
@keyframes captcha-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes captcha-dot-boot {
  from { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 rgba(52,211,153,0); }
  to { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(52,211,153,.45); }
}
.captcha-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.captcha-head-brand { display: flex; align-items: center; gap: 8px; }
.captcha-head-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52,211,153,.45);
  animation: sk-dot 1.2s ease-in-out infinite;
}
.captcha-head-title {
  font-family: var(--mono) !important;
  font-size: var(--text-caption); font-weight: 500; letter-spacing: .06em;
  color: var(--text-2);
}
.captcha-close {
  background: none; border: none; color: var(--text-3);
  font-size: var(--text-stat); line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.captcha-close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.captcha-body { padding: 18px 20px 20px; }
.captcha-terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 14px;
  margin-bottom: 12px;
}
.captcha-terminal-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.captcha-line {
  font-family: var(--mono) !important;
  font-size: var(--text-caption); color: var(--text-2); letter-spacing: .02em;
}
.captcha-line-dim { color: var(--text-4); }
.captcha-start-btn {
  width: 100%; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: var(--mono) !important;
  font-size: var(--text-caption); letter-spacing: .06em;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.captcha-start-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--line-focus);
}
.captcha-log {
  display: flex; flex-direction: column; gap: 5px;
  min-height: 108px; margin-bottom: 12px;
}
.captcha-log-line {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .03em;
  color: var(--text-3);
  animation: captcha-line-in .25s ease both;
}
.captcha-log-line.is-ok { color: var(--green); }
.captcha-log-line.is-warn { color: var(--info); }
@keyframes captcha-line-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.captcha-block {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02); padding: 14px; margin-bottom: 12px;
}
.captcha-block--puzzle { padding: 12px; }
.captcha-progress-track {
  height: 3px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden;
}
.captcha-progress-bar {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, rgba(200,206,216,.35), var(--text));
  transition: width .12s linear;
}
.captcha-puzzle-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.captcha-puzzle-text {
  font-family: var(--mono) !important;
  font-size: var(--text-caption); color: var(--text-2);
  letter-spacing: .04em; line-height: 1.5; flex: 1;
}
.captcha-puzzle-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4);
  white-space: nowrap; padding-top: 1px;
}
.captcha-puzzle-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.captcha-puzzle-grid.captcha-shake { animation: captcha-shake .45s ease; }
@keyframes captcha-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.captcha-footnote {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-bottom: 12px;
  letter-spacing: .04em;
}
.captcha-footnote-tag {
  color: var(--text-3);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.02);
}
.captcha-btn {
  width: 100%; height: 44px; border-radius: var(--radius-sm);
  font-family: var(--mono) !important; font-size: var(--text-caption); font-weight: 500;
  letter-spacing: .06em;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.captcha-btn--disabled {
  background: var(--bg-overlay); color: var(--text-4);
  border-color: var(--line); cursor: not-allowed;
}
.captcha-btn--primary {
  background: #fff; color: #000;
  border-color: rgba(255,255,255,.15); cursor: pointer;
}
.captcha-btn--primary:hover { background: #f4f4f5; }
.captcha-success-block {
  text-align: center; padding: 18px 12px;
  border: 1px solid rgba(52,211,153,.18);
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  margin-bottom: 12px;
}
.captcha-success-icon {
  font-family: var(--mono) !important;
  font-size: var(--text-label); font-weight: 600; letter-spacing: .08em;
  color: var(--green); margin-bottom: 8px;
}
.captcha-success-title {
  font-family: var(--mono) !important;
  font-size: var(--text-body); font-weight: 600; letter-spacing: .06em; color: var(--green);
}
.captcha-success-sub { font-size: var(--text-caption); color: var(--text-3); margin-top: 6px; }
.captcha-puzzle-btn {
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  border-radius: 8px;
  color: var(--text-2);
  transition: border-color .15s, background .15s, box-shadow .15s, color .15s;
  min-height: 72px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; cursor: pointer;
}
.captcha-puzzle-btn:hover { border-color: var(--line-focus); background: rgba(255,255,255,.04); color: var(--text); }
.captcha-puzzle-btn.selected {
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.08) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.captcha-overlay.hidden { display: none !important; }
.light-theme .captcha-overlay { background: rgba(15,23,42,.28); }
.light-theme .captcha-card {
  background: var(--bg-raised);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-panel);
}
.light-theme .captcha-terminal {
  background: rgba(15,23,42,.03);
  border-color: var(--line-strong);
}
.light-theme .captcha-block,
.light-theme .captcha-progress-track {
  background: rgba(15,23,42,.02);
  border-color: var(--line-strong);
}
.light-theme .captcha-puzzle-btn {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}
.light-theme .captcha-puzzle-btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-focus);
}
.light-theme .captcha-puzzle-btn.selected {
  border-color: var(--line-focus) !important;
  background: rgba(15,23,42,.06) !important;
  box-shadow: 0 0 0 1px var(--line);
}
.light-theme .captcha-close:hover { background: rgba(15,23,42,.05); }
.light-theme .captcha-start-btn { background: rgba(0,0,0,.03); }
.light-theme .captcha-btn--primary { background: #18181b; color: #fff; }
.light-theme .captcha-btn--primary:hover { background: #27272a; }

/* ── command palette ── */
#cp-o {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
  pointer-events: none;
}
#cp-o.is-open {
  opacity: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
#cp {
  position: fixed; top: 14%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  transform-origin: top center;
  z-index: 9996;
  width: 540px; max-width: calc(100vw - 32px);
  background: var(--bg-overlay);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 24px 64px rgba(0,0,0,.55),
    0 8px 24px rgba(0,0,0,.28);
  font-family: var(--font-ui);
  opacity: 0;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  pointer-events: none;
}
#cp.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#cp .cp-h {
  padding: 13px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
#cp .cp-h .cp-prefix {
  font-size: var(--text-body); color: var(--text-3); font-weight: 500;
  white-space: nowrap;
}
#cp .cp-h input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: var(--text-lead); color: var(--text); font-weight: 400;
}
#cp .cp-h input::placeholder { color: var(--text-4); }
#cp .cp-badge {
  font-size: var(--text-micro); font-weight: 700; letter-spacing: .5px;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap; display: none;
}
#cp .cp-badge.on { display: inline-block; }
#cp .cp-badge.t-address { background: var(--accent-soft); color: var(--text); }
#cp .cp-badge.t-tx { background: rgba(168,85,247,.12); color: #c084fc; }
#cp .cp-badge.t-url,
#cp .cp-badge.t-domain { background: var(--green-soft); color: var(--green); }
#cp .cp-badge.t-text { background: rgba(148,163,184,.12); color: var(--text-3); }
#cp .cp-l { max-height: 380px; overflow-y: auto; padding: 8px 6px; }
#cp .cp-l::-webkit-scrollbar { width: 5px; }
#cp .cp-l::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
#cp .cp-i {
  padding: 9px 12px; display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: background 120ms var(--ease-out);
  border-radius: 10px; margin: 0 2px;
}
#cp .cp-i.cp-i--instant { /* filter refresh — same as default */ }
#cp .cp-i:hover { background: rgba(255,255,255,.045); }
#cp .cp-i.sel {
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
#cp .cp-i .cp-ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-4); transition: color 140ms var(--ease-out); }
#cp .cp-i .cp-ic svg { width: 100%; height: 100%; }
#cp .cp-i:hover .cp-ic,
#cp .cp-i.sel .cp-ic { color: var(--text-2); }
#cp .cp-i.sel .cp-ic { color: var(--text); }
#cp .cp-i .cp-n {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
#cp .cp-i .cp-d {
  font-family: var(--font-ui) !important;
  font-size: var(--text-label);
  color: var(--text-3);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
#cp .cp-i.sel .cp-d { color: var(--text-2); }
#cp .cp-sep {
  padding: 10px 14px 6px;
  font-size: var(--text-caption);
  color: var(--text-4);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#cp .cp-sep.cp-sep--instant { /* filter refresh — same as default */ }
#cp .cp-empty { padding: 24px 16px; font-size: var(--text-body); color: var(--text-3); text-align: center; }
#cp .cp-f {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 18px;
}
#cp .cp-f-item {
  font-size: var(--text-micro);
  color: var(--text-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#cp .cp-f-label {
  font-family: var(--font-ui) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
  letter-spacing: .01em;
}
#cp .cp-f-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--mono) !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-3);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  box-shadow:
    0 1px 0 rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05);
}
.light-theme #cp-o { background: rgba(15,23,42,.12); }
.light-theme #cp { background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-panel); }
.light-theme #cp .cp-h { border-bottom-color: var(--line-strong); }
.light-theme #cp .cp-h .cp-prefix { color: var(--text-3); }
.light-theme #cp .cp-h input { color: var(--text); }
.light-theme #cp .cp-h input::placeholder { color: var(--text-4); }
.light-theme #cp .cp-badge.t-address { background: rgba(15,23,42,.06); color: var(--text-3); }
.light-theme #cp .cp-badge.t-tx { background: rgba(147,51,234,.12); color: #9333ea; }
.light-theme #cp .cp-badge.t-url,
.light-theme #cp .cp-badge.t-domain { background: rgba(22,163,74,.12); color: #16a34a; }
.light-theme #cp .cp-badge.t-text { background: rgba(100,116,139,.12); color: var(--text-3); }
.light-theme #cp .cp-l::-webkit-scrollbar-thumb { background: var(--line-strong); }
.light-theme #cp .cp-i:hover { background: rgba(15,23,42,.04); }
.light-theme #cp .cp-i.sel {
  background: rgba(15,23,42,.07);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.light-theme #cp .cp-i .cp-ic { color: var(--text-4); }
.light-theme #cp .cp-i.sel .cp-ic { color: var(--text); }
.light-theme #cp .cp-i .cp-n { color: var(--text); }
.light-theme #cp .cp-i .cp-d { color: var(--text-4); }
.light-theme #cp .cp-i.sel .cp-d { color: var(--text-3); }
.light-theme #cp .cp-sep { color: var(--text-4); }
.light-theme #cp .cp-empty { color: var(--text-4); }
.light-theme #cp .cp-f { border-top-color: var(--line-strong); }
.light-theme #cp .cp-f-label { color: var(--text-4); }
.light-theme #cp .cp-f-item kbd {
  color: var(--text-3);
  background: rgba(15,23,42,.04);
  border-color: var(--line-strong);
  box-shadow:
    0 1px 0 rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.7);
}

@media (max-width: 767px) {
  #cp { top: 10%; width: calc(100% - 32px); max-width: 540px; }
}
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,.35);
}
.mobile-sheet-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mobile-sheet {
  border-top: 1px solid var(--line) !important;
  background: var(--bg-raised) !important;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-ui) !important;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}
.mobile-sheet-btn {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.02) !important;
  color: var(--text-2) !important;
  font-family: var(--font-ui) !important;
  font-size: var(--text-label) !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.mobile-sheet-btn:hover { background: rgba(255,255,255,.05) !important; color: var(--text) !important; }
.mobile-sheet-block { margin-bottom: 16px; }
.mobile-sheet-block:last-child { margin-bottom: 0; }
.mobile-sheet-block-label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 0 2px;
  margin-bottom: 8px;
  font-family: var(--mono) !important;
}
.mobile-sheet-block-label::before {
  content: '//';
  margin-right: 6px;
  color: var(--text-4);
}
.mobile-sheet-actions {
  display: flex;
  gap: 8px;
}
.mobile-sheet-actions .sidebar-aside-action {
  font-size: var(--text-label);
  padding: 10px 8px;
}
.mobile-sheet-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02); padding: 12px;
}
.text-green { color: var(--green) !important; }
.hover\:bg-green-soft:hover { background: var(--green-soft) !important; }
.border-line { border-color: var(--line-strong) !important; }

/* ── mobile nav ── */
#mobile-menu-backdrop {
  z-index: 190;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}
#mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#mobile-more-menu {
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 200;
  max-height: min(72vh, calc(100dvh - var(--header-h) - var(--mobile-nav-h) - 12px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, .42);
  transition:
    transform var(--duration-normal) var(--ease-out),
    visibility var(--duration-normal) var(--ease-out);
  font-family: var(--font-ui);
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 100%, 0);
  touch-action: pan-y;
}
#mobile-more-menu.is-open {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
#mobile-more-menu.is-dragging {
  transition: none;
}
@media (min-width: 768px) {
  #mobile-more-menu,
  #mobile-menu-backdrop,
  .mobile-bottom-nav {
    display: none !important;
    pointer-events: none !important;
  }
}
.mobile-more-grab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  margin: 0;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.mobile-more-grab::after {
  content: '';
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}
.mobile-more-grab:active { cursor: grabbing; }
.mobile-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.mobile-more-title {
  margin: 0;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  font-family: var(--mono) !important;
}
.mobile-more-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-more-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.mobile-more-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
  font-size: var(--text-body);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.mobile-more-item svg { opacity: .72; flex-shrink: 0; }
.mobile-more-item:hover,
.mobile-more-item:focus-visible {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.mobile-more-item:active { transform: scale(0.99); }
.mobile-more-item span { flex: 1; min-width: 0; }
.mobile-more-item[data-module-state="cached"] svg {
  stroke: var(--green) !important;
  opacity: 1 !important;
}
.mobile-more-item[data-module-state="error"] svg {
  stroke: var(--red) !important;
  opacity: 1 !important;
}
.mobile-more-item[data-module-state="cached"]::after,
.mobile-more-item[data-module-state="error"]::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}
.mobile-more-item[data-module-state="cached"]::after {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .45);
}
.mobile-more-item[data-module-state="error"]::after {
  background: var(--red);
  box-shadow: 0 0 8px rgba(251, 113, 133, .45);
}
.mobile-more-item.is-more-active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, .06) !important;
}
.light-theme .mobile-more-item.is-more-active {
  background: var(--surface-hover) !important;
}
.mobile-more-foot {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.light-theme .mobile-more-item:hover,
.light-theme .mobile-more-item:focus-visible {
  background: var(--surface-hover);
}
.mobile-bottom-nav {
  background: rgba(0,0,0,.92) !important;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line) !important;
  z-index: 210;
}
.mobile-bottom-nav .sidebar-nav-btn {
  flex-direction: column; width: auto; gap: 2px !important;
  padding: 6px 8px !important; border: none !important;
  background: transparent !important; font-size: var(--text-micro) !important;
}
.mobile-bottom-nav .sidebar-nav-btn.tab-nav-active {
  color: var(--text) !important;
  background: var(--bg-raised);
  border-radius: 8px;
}
.mobile-bottom-nav .sidebar-nav-btn.is-sheet-open {
  color: var(--text) !important;
}
.mobile-bottom-nav .sidebar-nav-btn span {
  font-size: var(--text-micro) !important;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

/* ── tabs ── */
.tab-content { display: none; }
.tab-content.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: tabFadeIn var(--duration-normal) var(--ease-out) both;
}
@media (max-width: 767px) {
  .tab-content.active:not(#tab-analytics):not(#tab-report):has(> .module-panel:only-child > [id$="-result"]:empty) {
    flex: 1 1 auto;
    min-height: 0;
  }
  .tab-content.active:not(#tab-analytics):not(#tab-report) > .module-panel:only-child:has(> [id$="-result"]:empty) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--header-h) - var(--mobile-nav-h) - 32px);
  }
  .tab-content.active:not(#tab-analytics):not(#tab-report) > .module-panel:only-child:has(> [id$="-result"]:empty) > .scan-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    min-height: 0;
  }
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-focus); }

/* ── shared components ── */
.kv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
}
.kv-label { color: var(--text-2); font-size: 12px; flex-shrink: 0; }
.kv-val {
  font-size: var(--text-caption); color: var(--text); text-align: right; min-width: 0;
  font-family: var(--mono) !important;
}
.kv-muted { color: var(--text-3); font-family: var(--font-ui) !important; }
.kv-row--last { border-bottom: none; }
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; font-size: var(--text-caption); font-weight: 500;
  border-radius: 6px; text-transform: none; letter-spacing: 0;
}
.badge.hidden {
  display: none !important;
}
.b-red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(251,113,133,.18); }
.b-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251,191,36,.18); }
.b-green { background: var(--green-soft); color: var(--green); border: 1px solid rgba(52,211,153,.18); }
.b-ghost { background: transparent; color: var(--text-3); border: 1px solid var(--line); }
.b-cyan {
  background: var(--info-soft);
  color: var(--info);
  border: 1px solid var(--info-border);
}
.b-blue {
  background: var(--info-soft);
  color: var(--blue);
  border: 1px solid var(--info-border);
}
.b-purple {
  background: rgba(168,168,179,.1);
  color: var(--purple);
  border: 1px solid rgba(168,168,179,.16);
}

.tbl-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); }
.data-table th {
  background: rgba(255,255,255,.03); padding: 10px 14px;
  text-align: left; font-size: var(--text-caption); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-4); border-bottom: 1px solid var(--line);
  font-family: var(--font-ui) !important;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }

.btn-ghost {
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer; padding: 6px 12px;
  font-size: var(--text-label); border-radius: 7px;
}
.btn-ghost:hover { border-color: var(--line-focus); color: var(--text); }
.btn-danger {
  background: transparent; border: 1px solid rgba(251,113,133,.25);
  color: var(--red); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: var(--text-label); border-radius: 7px;
}
.btn-danger:hover { background: var(--red-soft); }
.a-link { color: var(--info); text-decoration: none; cursor: pointer; }
.a-link:hover { color: var(--text); text-decoration: underline; }
.a-link-inline {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.a-link-inline svg { flex-shrink: 0; opacity: .65; }
.a-link-inline:hover svg { opacity: 1; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; font-size: var(--text-label);
  background: transparent; border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer; border-radius: 7px;
}
.copy-btn:hover { border-color: var(--line-focus); color: var(--text); }

/* ── wallet scanner output ── */
.wallet-verdict {
  margin-bottom: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}
.wallet-verdict.is-red { border-color: rgba(251,113,133,.28); }
.wallet-verdict.is-amber { border-color: rgba(251,191,36,.28); }
.wallet-verdict.is-green { border-color: rgba(52,211,153,.22); }
.wallet-verdict-main {
  padding: 12px 14px 10px;
}
.wallet-verdict-kicker {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 6px;
  font-family: var(--font-ui) !important;
}
.wallet-verdict-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-verdict-value {
  font-family: var(--mono) !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.wallet-verdict-value .aml-score-unit {
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
  letter-spacing: 0;
  color: var(--text-4);
}
.wallet-verdict-value.is-red { color: var(--red); }
.wallet-verdict-value.is-amber { color: var(--amber); }
.wallet-verdict-value.is-green { color: var(--green); }
.wallet-verdict-value.is-neutral { color: var(--text-3); }
.wallet-verdict-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  max-width: 55%;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  font-family: var(--font-ui) !important;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
}
.wallet-verdict-badge.is-red {
  color: var(--red);
  border-color: rgba(251,113,133,.35);
  background: var(--red-soft);
}
.wallet-verdict-badge.is-amber {
  color: var(--amber);
  border-color: rgba(251,191,36,.35);
  background: var(--amber-soft);
}
.wallet-verdict-badge.is-green {
  color: var(--green);
  border-color: rgba(52,211,153,.3);
  background: var(--green-soft);
}
.wallet-verdict-badge.is-neutral {
  color: var(--text-3);
  border-color: var(--line);
  background: transparent;
}
.wallet-verdict-meter {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin-top: 12px;
}
.wallet-verdict-meter-fill {
  height: 100%;
  border-radius: 99px;
  transition: width var(--duration-meter) var(--ease-out);
}
.wallet-verdict-meter-fill.is-green { background: var(--green); }
.wallet-verdict-meter-fill.is-amber { background: var(--amber); }
.wallet-verdict-meter-fill.is-red { background: var(--red); }
.wallet-verdict-meter-fill.is-neutral { background: var(--text-4); }
.wallet-verdict-note {
  margin-top: 8px;
  font-size: var(--text-micro);
  line-height: 1.35;
  color: var(--text-4);
  font-family: var(--font-ui) !important;
}
.light-theme .wallet-verdict-badge {
  background: rgba(0,0,0,.03);
}
.light-theme .wallet-verdict-meter {
  background: rgba(0,0,0,.06);
}
.wallet-verdict-why {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.light-theme .wallet-verdict-why {
  background: rgba(15,23,42,.03);
}
.wallet-verdict-why-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--text-3);
  font-family: var(--font-ui) !important;
  user-select: none;
}
.wallet-verdict-why-summary::-webkit-details-marker { display: none; }
.wallet-verdict-why-summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--text-4);
  font-size: 11px;
  transition: transform .15s ease;
}
.wallet-verdict-why[open] .wallet-verdict-why-summary {
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.wallet-verdict-why[open] .wallet-verdict-why-summary::after {
  transform: rotate(90deg);
}
.wallet-verdict-why-summary:hover {
  color: var(--text-2);
}
.wallet-verdict-why-meta {
  font-weight: 500;
  color: var(--text-4);
}
.wallet-verdict-why-meta::before {
  content: '·';
  margin-right: 6px;
  color: var(--text-4);
}
.wallet-verdict-why-body {
  padding: 0;
}
.wallet-factor-list {
  display: flex;
  flex-direction: column;
}
.wallet-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}
.wallet-factor:last-child {
  border-bottom: none;
}
.wallet-factor.is-hard {
  background: rgba(251,113,133,.04);
}
.wallet-factor-label {
  min-width: 0;
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.wallet-factor.is-hard .wallet-factor-label {
  color: var(--text);
}
.wallet-factor-pts {
  flex-shrink: 0;
  min-width: 2.4em;
  text-align: right;
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.wallet-factor-pts.is-red { color: var(--red); }
.wallet-factor-pts.is-amber { color: var(--amber); }
.wallet-factor-pts.is-green { color: var(--green); }

.wallet-verdict-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.wallet-verdict-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui) !important;
  transition: background .15s ease;
}
.wallet-verdict-action:last-child {
  border-bottom: none;
}
.wallet-verdict-action:hover {
  background: rgba(255,255,255,.03);
}
.wallet-verdict-action.is-primary.is-red {
  background: rgba(251,113,133,.05);
}
.wallet-verdict-action.is-primary.is-amber {
  background: rgba(251,191,36,.05);
}
.wallet-verdict-action.is-primary.is-red:hover {
  background: rgba(251,113,133,.08);
}
.wallet-verdict-action.is-primary.is-amber:hover {
  background: rgba(251,191,36,.08);
}
.wallet-verdict-action-title {
  min-width: 0;
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.wallet-verdict-action-cta {
  flex-shrink: 0;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.wallet-verdict-action.is-red .wallet-verdict-action-cta { color: var(--red); }
.wallet-verdict-action.is-amber .wallet-verdict-action-cta { color: var(--amber); }
.wallet-verdict-action:hover .wallet-verdict-action-cta { color: var(--text); }
.wallet-verdict-action.is-red:hover .wallet-verdict-action-cta { color: var(--red); }
.wallet-verdict-action.is-amber:hover .wallet-verdict-action-cta { color: var(--amber); }
.light-theme .wallet-verdict-action:hover {
  background: rgba(0,0,0,.03);
}
.light-theme .wallet-verdict-action.is-primary.is-red {
  background: var(--red-soft);
}
.light-theme .wallet-verdict-action.is-primary.is-amber {
  background: var(--amber-soft);
}
.light-theme .wallet-go-btn--red {
  color: var(--red);
  border-color: rgba(220,38,38,.3);
  background: var(--red-soft);
}
.light-theme .wallet-go-btn--amber {
  color: var(--amber);
  border-color: rgba(217,119,6,.3);
  background: var(--amber-soft);
}
.light-theme .wallet-go-btn--name {
  color: var(--info);
  border-color: var(--info-border);
  background: var(--info-soft);
}
.wallet-go-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.wallet-go-btn--red {
  color: var(--red);
  border-color: rgba(251,113,133,.28);
  background: rgba(251,113,133,.08);
}
.wallet-go-btn--amber {
  color: var(--amber);
  border-color: rgba(251,191,36,.28);
  background: rgba(251,191,36,.08);
}
.wallet-go-btn--name {
  color: var(--info);
  border-color: var(--info-border);
  background: var(--info-soft);
}
.wallet-inline-cta {
  margin-left: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.wallet-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.wallet-scan .aml-alert { margin: 0; }
.scan-head-card--featured {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.01) 100%);
  padding: 18px 20px;
  overflow: visible;
}
.wallet-head-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.wallet-head-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; position: relative; }
.scan-head-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.scan-head-overflow-menu[hidden] { display: none !important; }
.scan-head-overflow-menu .wallet-action-btn {
  width: 100%;
  justify-content: flex-start;
}
.scan-head-overflow-btn span { letter-spacing: .01em; }
.wallet-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-size: var(--text-label); font-weight: 500;
  font-family: var(--font-ui) !important;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-instant) var(--ease-out);
}
.wallet-action-btn span { line-height: 1; }
.wallet-action-btn svg { opacity: .72; flex-shrink: 0; transition: opacity var(--duration-fast) var(--ease-out); }
.wallet-action-btn:active { transform: scale(0.96); }
.wallet-action-btn:hover {
  color: var(--text);
  border-color: var(--line-focus);
  background: rgba(255,255,255,.06);
}
.wallet-action-btn:hover svg { opacity: 1; }
.wallet-action-btn.is-copied {
  color: var(--green);
  border-color: rgba(52,211,153,.28);
  background: var(--green-soft);
  box-shadow: 0 0 0 1px rgba(52,211,153,.08);
}
.wallet-action-btn.is-copied svg { opacity: 1; color: var(--green); }
.wallet-action-btn--ext:hover {
  color: var(--info);
  border-color: var(--info-border);
  background: var(--info-soft);
}
.wallet-action-btn--ext:hover svg { color: var(--info); opacity: 1; }
.wallet-action-btn.is-busy { opacity: .55; pointer-events: none; }
.wallet-action-btn--ghost { color: var(--text-3); }
.wallet-action-btn--ghost:hover { color: var(--text-2); background: rgba(255,255,255,.04); }
.wallet-action-btn--danger {
  color: var(--red);
  border-color: rgba(251,113,133,.22);
  background: var(--red-soft);
}
.wallet-action-btn--danger:hover {
  color: var(--red);
  border-color: rgba(251,113,133,.35);
  background: rgba(251,113,133,.14);
}
.wallet-action-btn--danger svg { opacity: 1; color: var(--red); }

/* ── approvals output ── */
.appr-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.appr-scan .aml-alert { margin: 0; }
.appr-assessment .aml-alert { margin: 0; }
.appr-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appr-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.appr-section .appr-list,
.appr-section .scan-list {
  border: none;
  border-radius: 0;
  background: transparent;
}
.appr-hero-grid,
.aml-hero-grid,
.phish-hero-grid,
.contract-hero-grid,
.tx-hero-grid,
.perm-hero-grid,
.scan-hero-grid { gap: 10px; margin-bottom: 0; }
.appr-stat-unit {
  font-size: var(--text-lead); font-weight: 500; color: var(--text-3);
}
.appr-section-head,
.scan-section-head,
.perm-section-head { margin-bottom: 10px; }
.scan-section-head,
.perm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.scan-section-badges,
.perm-section-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.scan-section-title,
.perm-section-title,
.appr-section-title {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.appr-section-title { color: var(--text-4); }
.perm-section-title { color: var(--text-3); }
.scan-section-title span,
.perm-section-title span,
.appr-section-title span { color: var(--text-3); }
.scan-list,
.appr-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.appr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  transition:
    background var(--duration-fast) var(--ease-out),
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.appr-row:last-child { border-bottom: none; }
.appr-row:hover:not(.is-revoked) {
  background: rgba(255,255,255,.025);
  transform: translateX(2px);
}
.appr-row.is-revoked { opacity: .45; }
.appr-row.risk-row.is-high { box-shadow: inset 3px 0 0 var(--red); }
.appr-row.risk-row.is-med { box-shadow: inset 3px 0 0 var(--amber); }
.appr-row-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); font-weight: 700; letter-spacing: .02em;
  color: var(--info); background: var(--info-soft);
  border: 1px solid var(--info-border);
}
.appr-row.is-risk .appr-row-icon {
  color: var(--red); background: var(--red-soft);
  border-color: rgba(251,113,133,.2);
}
.appr-row.is-warn .appr-row-icon {
  color: var(--amber); background: var(--amber-soft);
  border-color: rgba(251,191,36,.22);
}
.appr-row-body { flex: 1; min-width: 0; }
.appr-row-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: var(--text-body); font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.appr-token-link,
.appr-token-name {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.appr-token-link svg { flex-shrink: 0; opacity: .65; }
.appr-token-link:hover svg { opacity: 1; }
.appr-row-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 4px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.appr-row-sub {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 3px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.appr-kv-label {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-4);
  flex-shrink: 0;
}
.appr-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 92px;
}
.appr-row-amount {
  font-family: var(--mono) !important;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
  white-space: nowrap;
}
.appr-row.is-risk .appr-row-amount { color: var(--red); }
.appr-row.is-warn .appr-row-amount { color: var(--amber); }
.appr-row-age {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
}
.appr-row-addr {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 3px;
}
.appr-row-action { flex-shrink: 0; position: relative; z-index: 1; }
.appr-row-action .wallet-action-btn { white-space: nowrap; }
.revoke-one-btn {
  padding: 5px 9px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .05em;
  gap: 0;
  min-height: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.appr-revoke-footnote { margin-top: 10px; }
.appr-section .appr-revoke-footnote {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.revoke-one-btn.is-dev,
.revoke-one-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.revoke-one-btn:disabled:hover {
  border-color: var(--line);
  color: inherit;
  background: transparent;
}
.scan-empty {
  padding: 36px 20px; text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.scan-empty.is-hiding {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.scan-empty--inline {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 40px 24px;
}
.scan-empty-icon,
.scan-empty--inline svg {
  width: 40px; height: 40px; margin: 0 auto 12px;
  color: var(--text-4); display: block;
}
.scan-empty-title {
  font-size: var(--text-lead); font-weight: 500; color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.scan-empty-hint {
  font-size: var(--text-body); color: var(--text-3); margin-top: 6px;
  font-family: var(--font-ui) !important;
}
.scan-empty-link {
  color: var(--info);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scan-empty-link:hover { color: var(--text); }

/* ── contract redirect callout ── */
.contract-redirect-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.012) 100%);
  overflow: hidden;
}
.contract-redirect-glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(200,206,216,.14) 0%, transparent 68%);
  pointer-events: none;
}
.contract-redirect-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 20px;
}
.contract-redirect-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.contract-redirect-name {
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.contract-redirect-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 4px 8px 0;
}
.contract-redirect-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--info);
  background: linear-gradient(145deg, rgba(200,206,216,.16) 0%, rgba(200,206,216,.06) 100%);
  border: 1px solid var(--info-border);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.contract-redirect-icon svg { display: block; opacity: .92; }
.contract-redirect-title {
  margin: 0;
  font-size: var(--text-lead);
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-ui) !important;
  letter-spacing: -.01em;
}
.contract-redirect-hint {
  margin: 0;
  max-width: 52ch;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text-3);
  font-family: var(--font-ui) !important;
}
.contract-redirect-addr {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  overflow: hidden;
}
.contract-redirect-addr-text {
  display: block;
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  line-height: 1.45;
  color: var(--text-2);
  word-break: break-all;
}
.contract-redirect-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.contract-redirect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: var(--text-label);
  font-weight: 600;
  font-family: var(--font-ui) !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-instant) var(--ease-out);
}
.contract-redirect-btn svg {
  flex-shrink: 0;
  opacity: .88;
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.contract-redirect-btn:active { transform: scale(0.98); }
.contract-redirect-btn--primary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.05) 100%);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.06);
}
.contract-redirect-btn--primary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.07) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.contract-redirect-btn--primary:hover svg { opacity: 1; transform: translateX(1px); }
.contract-redirect-btn--ghost {
  color: var(--text-3);
  background: rgba(255,255,255,.02);
  border-color: var(--line);
}
.contract-redirect-btn--ghost:hover {
  color: var(--text);
  border-color: var(--line-focus);
  background: rgba(255,255,255,.05);
}
.contract-redirect-btn--ghost:hover svg { opacity: 1; }
.contract-redirect-btn.is-copied {
  color: var(--green);
  border-color: rgba(52,211,153,.28);
  background: var(--green-soft);
}
.contract-redirect-btn.is-copied svg { opacity: 1; color: var(--green); }
.light-theme .contract-redirect-card {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.96) 100%) !important;
}
.light-theme .contract-redirect-glow {
  background: radial-gradient(ellipse at center, rgba(100,116,139,.12) 0%, transparent 68%);
}
.light-theme .contract-redirect-addr {
  background: rgba(0,0,0,.03);
}
.light-theme .contract-redirect-btn--primary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.02) 100%);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.light-theme .contract-redirect-btn--primary:hover {
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.03) 100%);
  border-color: var(--line-strong);
}
.light-theme .contract-redirect-btn--ghost {
  background: #fff;
}

/* ── AML check output ── */
.aml-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.aml-scan .alert,
.aml-scan .aml-alert { margin: 0; }
.aml-alerts {
  display: flex; flex-direction: column; gap: 8px;
}
.aml-flag-card {
  border: 1px solid rgba(251,113,133,.22);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}
.aml-flag-card-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-ui) !important;
  background: rgba(251,113,133,.05);
}
.aml-flag-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aml-flag-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.aml-flag-item:last-child { border-bottom: none; }
.aml-flag-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aml-flag-item-title {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-ui) !important;
  line-height: 1.35;
}
.aml-flag-token {
  flex-shrink: 0;
  max-width: 46%;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251,113,133,.28);
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aml-flag-item-hint {
  margin-top: 4px;
  font-size: var(--text-micro);
  line-height: 1.35;
  color: var(--text-4);
  font-family: var(--font-ui) !important;
}
.light-theme .aml-flag-card {
  background: #fff;
}
.aml-alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: var(--text-body); line-height: 1.5;
  font-family: var(--font-ui);
}
.aml-alert--red {
  background: var(--red-soft);
  border: 1px solid rgba(251,113,133,.18);
}
.aml-alert--amber {
  background: var(--amber-soft);
  border: 1px solid rgba(251,191,36,.18);
}
.aml-alert--green {
  background: var(--green-soft);
  border: 1px solid rgba(52,211,153,.18);
}
.aml-alert--inline {
  display: flex; align-items: flex-start; gap: 10px;
}
.aml-alert--inline svg {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px;
}
.aml-alert--red.aml-alert--inline svg { color: var(--red); }
.aml-alert--amber.aml-alert--inline svg { color: var(--amber); }
.aml-alert--green.aml-alert--inline svg { color: var(--green); }
.aml-alert--red .aml-alert-body { color: var(--red); }
.aml-alert--amber .aml-alert-body { color: var(--amber); }
.aml-alert--green .aml-alert-body { color: var(--green); }
.aml-alert-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.aml-alert--red .aml-alert-head { color: var(--red); }
.aml-alert--amber .aml-alert-head { color: var(--amber); }
.aml-alert-head svg { width: 14px; height: 14px; flex-shrink: 0; }
.aml-alert-title {
  font-size: var(--text-label); font-weight: 600; letter-spacing: .02em;
}
.aml-alert-list {
  margin: 0; padding: 0 0 0 22px; list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.aml-alert-list li {
  position: relative;
  font-size: var(--text-label); line-height: 1.45; color: var(--text-2);
}
.aml-alert-list li::before {
  content: '—';
  position: absolute; left: -16px;
  color: var(--text-4); font-family: var(--mono);
}
.aml-alert-list a { color: var(--text); font-weight: 500; }
.scan-head-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 16px 18px;
}
.aml-assessment .alert,
.aml-assessment .aml-alert { margin: 0; }
.aml-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  min-width: 0;
}
.aml-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.aml-block-title {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-4);
}
.aml-block-title span { color: var(--text-3); letter-spacing: .04em; }
.aml-block-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); white-space: nowrap;
}
.aml-block-body { min-width: 0; }
.aml-block-note {
  margin: 0;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-label);
  line-height: 1.55;
  color: var(--text-3);
}
.aml-peer-security {
  display: block;
  margin-top: 4px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.aml-peer-security.is-clear { color: var(--green); }
.aml-peer-security.is-watch { color: var(--amber); }
.aml-peer-security.is-flagged { color: var(--red); }
.aml-peer-security.is-muted { color: var(--text-4); }
.aml-peer-security.is-pending { color: var(--text-3); animation: aml-peer-pulse 1.4s ease-in-out infinite; }
.aml-alert-source {
  color: var(--text-4);
  font-size: var(--text-caption);
  font-family: var(--mono);
}
.aml-token-sec { margin-left: 6px; vertical-align: middle; }
.aml-block-note {
  margin: 0 0 10px;
  font-size: var(--text-caption);
  color: var(--text-3);
  line-height: 1.45;
}
@keyframes aml-peer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.aml-grid-2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.aml-grid-2 > :only-child { grid-column: 1 / -1; }
.aml-kv-list .kv-row {
  padding: 11px 16px; margin: 0;
}
.aml-kv-list .kv-row:last-child { border-bottom: none; }
.aml-kv-list .kv-val .is-info { color: var(--info); }
.aml-rows .aml-row:last-child { border-bottom: none; }

/* ── risk design system ── */
.risk-row.is-high { box-shadow: inset 3px 0 0 var(--red); }
.risk-row.is-med { box-shadow: inset 3px 0 0 var(--amber); }
.risk-row.is-low { box-shadow: inset 3px 0 0 var(--info); }
.risk-stat {
  min-height: 100px;
}
.risk-stat__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.risk-stat--aml .risk-stat__body,
.risk-stat--contract .risk-stat__body {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.risk-stat__text { flex: 1; min-width: 0; }
.row-icon,
.appr-row-icon,
.aml-row-icon,
.wallet-token-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-raised);
}

.aml-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.aml-row:hover {
  background: rgba(255,255,255,.022);
  transform: translateX(2px);
}
.aml-row.is-risk { box-shadow: inset 3px 0 0 rgba(251,113,133,.5); }
.aml-row--compact { padding: 11px 16px; }
.aml-row-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); font-weight: 700; letter-spacing: .02em;
  color: var(--info); background: var(--info-soft);
  border: 1px solid var(--info-border);
}
.aml-row.is-risk .aml-row-icon {
  color: var(--red); background: var(--red-soft);
  border-color: rgba(251,113,133,.2);
}
.aml-row-icon--token {
  color: var(--amber); background: var(--amber-soft);
  border-color: rgba(251,191,36,.2);
}
.aml-row-body { flex: 1; min-width: 0; }
.aml-row-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: var(--text-body); font-weight: 600; color: var(--text);
}
.aml-row-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 4px;
}
.aml-row-action { flex-shrink: 0; }
.aml-token-name { white-space: nowrap; }
.aml-addr-link {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.aml-addr-link svg { flex-shrink: 0; opacity: .65; }
.aml-addr-link:hover svg { opacity: 1; }
.aml-risk-stat { min-height: 104px; }
.aml-risk-body {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 2px;
}
.aml-risk-text { flex: 1; min-width: 0; }
.risk-shield-icon {
  flex-shrink: 0;
  display: block;
}
.risk-shield-icon--muted,
.aml-risk-icon--muted { opacity: .45; }
.aml-risk-icon,
.contract-risk-icon { margin-top: 2px; }
.aml-score-unit {
  font-size: var(--text-lead); font-weight: 500; color: var(--text-3);
}
.aml-risk-meter {
  height: 3px; border-radius: 99px; background: rgba(255,255,255,.06);
  overflow: hidden; margin-top: 10px;
}
.aml-risk-meter-fill {
  height: 100%; border-radius: 99px;
  transition: width var(--duration-meter) var(--ease-out);
}
.aml-risk-meter-fill.is-green { background: var(--green); }
.aml-risk-meter-fill.is-amber { background: var(--amber); }
.aml-risk-meter-fill.is-red { background: var(--red); }
.aml-risk-meter-fill.is-neutral { background: var(--text-4); }
.aml-signals { display: flex; flex-direction: column; }
.aml-signal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: var(--text-label);
}
.aml-signal:last-child { border-bottom: none; }
.aml-signal.is-high { background: rgba(251,113,133,.035); }
.aml-signal.is-hard { background: rgba(251,113,133,.05); }
.aml-signal.is-hard .aml-signal-label { color: var(--text); }
.aml-signal.is-positive { background: rgba(52,211,153,.035); }
.aml-signal-label { color: var(--text-2); font-family: var(--font-ui) !important; }
.aml-signal-pts {
  font-family: var(--mono) !important;
  font-size: var(--text-caption); font-weight: 600; flex-shrink: 0;
}
.aml-signal-pts.is-red { color: var(--red); }
.aml-signal-pts.is-amber { color: var(--amber); }
.aml-signal-pts.is-green { color: var(--green); }
.aml-graph-root { display: flex; flex-direction: column; }
.aml-graph-stats {
  border-bottom: 1px solid var(--line);
  gap: 0 !important;
}
.aml-graph-stats .an-stat {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  min-height: 72px;
  padding: 12px 14px;
}
.aml-graph-stats .an-stat:last-child { border-right: none; }
.an-stat--mini .an-stat-value { font-size: 18px; }
.an-stat--mini .an-stat-label { font-size: var(--text-caption); }
.aml-graph-wrap {
  position: relative;
  min-height: 280px;
  background: rgba(0,0,0,.15);
}
.aml-graph-svg { display: block; width: 100%; }
.aml-graph-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(17,17,19,.96);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 220px;
}
.aml-graph-tooltip strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 2px;
}
.aml-graph-tooltip span { display: block; color: var(--text-2); }
.aml-graph-tooltip-sub { color: var(--text-4) !important; font-size: 9px; }
.aml-graph-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.aml-graph-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}
.aml-graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption);
  color: var(--text-3);
  font-family: var(--font-ui) !important;
}
.aml-graph-legend-hint {
  font-size: var(--text-micro);
  color: var(--text-4);
  font-family: var(--font-ui) !important;
}
.aml-graph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.aml-graph-dot--center { background: #f5f5f7; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.aml-graph-dot--danger { background: var(--red); }
.aml-graph-dot--warn { background: var(--amber); }
.aml-graph-dot--safe { background: var(--green); }
.aml-graph-filter { font-size: var(--text-caption) !important; padding: 6px 11px !important; }
.aml-graph-filter.is-active {
  color: var(--info) !important;
  border-color: var(--info-border) !important;
  background: var(--info-soft) !important;
}
.aml-flag-list {
  display: flex; flex-direction: column; gap: 4px; margin-top: 6px;
  font-size: var(--text-label); color: var(--text-2);
}
.aml-flag-list a { font-weight: 500; }
.aml-empty {
  padding: 22px 16px; text-align: center;
  font-size: var(--text-label); color: var(--text-3); line-height: 1.45;
  font-family: var(--font-ui) !important;
}
.aml-disclaimer {
  font-size: var(--text-caption); color: var(--text-4); line-height: var(--leading-body);
  font-family: var(--font-ui) !important;
  padding: 2px 2px 0;
}

/* ── URL scan output ── */
.phish-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.phish-scan .aml-alert { margin: 0; }
.phish-head-url { font-size: var(--text-body) !important; }
.phish-assessment .aml-alert { margin: 0; }
.phish-verdict-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-lead); font-weight: 600; font-family: var(--font-ui) !important;
}
.phish-verdict-inline svg { flex-shrink: 0; }
.an-stat-value .phish-verdict-inline { font-size: inherit; font-weight: inherit; }
.phish-flags { display: flex; flex-direction: column; }
.phish-flag {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.phish-flag:last-child { border-bottom: none; }
.phish-flag.is-high { background: rgba(251,113,133,.03); }
.phish-flag.is-med { background: rgba(251,191,36,.025); }
.phish-flag-reason {
  font-size: var(--text-label); line-height: 1.45; color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.phish-flag-badge { flex-shrink: 0; }
.phish-scan .kv-val .is-green { color: var(--green); }
.phish-scan .kv-val .is-red { color: var(--red); }

.sk-wallet-block.aml-alert--inline {
  display: flex; align-items: flex-start; gap: 10px;
}
.aml-scan .aml-row.sk-wallet-block,
.phish-scan .phish-flag.sk-wallet-block {
  display: flex; align-items: flex-start;
}
.aml-scan .aml-signal.sk-wallet-block {
  border-bottom: 1px solid var(--line);
}
.aml-scan .aml-signal.sk-wallet-block:last-child { border-bottom: none; }

/* ── Contract scan output ── */
.contract-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.contract-scan .aml-alert { margin: 0; }
.contract-head-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  font-family: var(--font-ui) !important;
  line-height: 1.35; margin-bottom: 4px;
  word-break: break-word;
}
.contract-head-addr { font-size: var(--text-label) !important; color: var(--text-3) !important; }
.contract-assessment .aml-alert { margin: 0; }
.contract-risk-stat .contract-risk-body {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}
.contract-risk-stat .contract-risk-text { min-width: 0; }
.contract-risks { display: flex; flex-direction: column; }
.contract-risk {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.contract-risk:last-child { border-bottom: none; }
.contract-risk.is-high { background: rgba(251,113,133,.03); }
.contract-risk.is-med { background: rgba(251,191,36,.025); }
.contract-risk.is-info { background: var(--info-soft); }
.contract-risk-cat {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 4px;
}
.contract-risk-msg {
  font-size: var(--text-label); line-height: 1.45; color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.contract-risk-badge { flex-shrink: 0; }
.contract-table-wrap { overflow-x: auto; }
.contract-scan .aml-block-body--flush,
.contract-table-wrap .data-table { margin: 0; }
.contract-scan .data-table th {
  padding: 10px 16px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-4); background: rgba(255,255,255,.018);
  border-bottom: 1px solid var(--line);
}
.contract-scan .data-table td { padding: 10px 16px; font-size: var(--text-label); }
.contract-table-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
}
.contract-table-foot-meta {
  font-size: var(--text-caption);
  font-family: var(--mono) !important;
}
.contract-table-foot .wallet-load-more-btn {
  margin-top: 0;
}
.ctr-fn-name { font-size: var(--text-caption) !important; }
.ctr-fn-danger { color: var(--red) !important; }
.ctr-fn-warn { color: var(--amber) !important; }
.ctr-fn-ok { color: var(--text) !important; }
.contract-scan .sk-table-wrap,
.contract-table-wrap.sk-wallet-block .sk-table-wrap {
  border: none; border-radius: 0; margin: 0;
}
.contract-scan .contract-risk.sk-wallet-block,
.contract-scan .contract-table-wrap.sk-wallet-block {
  display: flex; align-items: flex-start;
}

/* ── TX decoder output ── */
.tx-scan {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.tx-scan .aml-alert { margin: 0; }
.tx-head-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  font-family: var(--font-ui) !important;
  line-height: 1.35; margin-bottom: 4px;
  word-break: break-word;
}
.tx-head-title svg { display: inline; vertical-align: -2px; margin-right: 2px; }
.tx-head-hash { font-size: var(--text-caption) !important; word-break: break-all; }
.tx-assessment .aml-alert { margin: 0; }
.tx-type-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-lead); font-weight: 600; font-family: var(--font-ui) !important;
}
.tx-type-inline svg { flex-shrink: 0; color: var(--text-3); }
.tx-signals { display: flex; flex-direction: column; }
.tx-signal {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.tx-signal:last-child { border-bottom: none; }
.tx-signal.is-high { background: rgba(251,113,133,.03); }
.tx-signal.is-med { background: rgba(251,191,36,.025); }
.tx-signal-body {
  font-size: var(--text-label); line-height: 1.45; color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.tx-signal-badge { flex-shrink: 0; }
.tx-summary {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.tx-summary-title {
  font-size: var(--text-lead); font-weight: 600; color: var(--text);
  font-family: var(--font-ui) !important;
  line-height: 1.35;
}
.tx-summary-desc {
  margin-top: 6px;
  font-size: var(--text-label); line-height: 1.5; color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.tx-raw-data {
  padding: 12px 16px 14px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-2);
  word-break: break-all; line-height: 1.8;
}
.tx-raw-sel {
  background: rgba(251,113,133,.12); color: var(--red);
  border-radius: 3px; padding: 1px 4px;
}
.tx-raw-note {
  margin-top: 8px; font-size: var(--text-micro); color: var(--text-4);
  font-family: var(--mono) !important;
}
.tx-scan .kv-link {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; font-size: var(--text-caption);
}
.tx-scan .kv-link span { word-break: break-all; text-align: right; }
.tx-scan .kv-val .is-blue { color: var(--blue); }
.tx-scan .kv-val .is-amber { color: var(--amber); }
.tx-scan .aml-kv-list .kv-val {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.tx-scan .tx-signal.sk-wallet-block {
  display: flex; align-items: flex-start;
}
.tx-scan-contract-btn {
  width: auto;
  margin: 0;
  padding: 6px 10px;
  font-size: var(--text-caption);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tx-move-list { border-top: 1px solid var(--line); }
.tx-move-list .tx-move-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tx-move-list .tx-move-item:last-child { border-bottom: none; }
.tx-move-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.tx-move-arrow {
  color: var(--text-4);
  font-size: var(--text-micro);
  flex-shrink: 0;
}
.tx-move-val { text-align: right; flex-shrink: 0; }
.tx-transfer-table td { vertical-align: middle; }

.wallet-head-addr {
  flex: 1; min-width: 0;
  font-family: var(--mono) !important;
  font-size: var(--text-lead); line-height: 1.5; color: var(--text);
  word-break: break-all;
}
.wallet-head-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wallet-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .03em; color: var(--text-3);
}
.wallet-tag.is-name { color: var(--info); border-color: var(--info-border); background: var(--info-soft); }
.wallet-tag.is-warn { color: var(--amber); border-color: rgba(251,191,36,.2); background: var(--amber-soft); }
.wallet-tag.is-live { color: var(--green); border-color: rgba(52,211,153,.2); background: var(--green-soft); }
.wallet-tag.is-bad { color: var(--red); border-color: rgba(251,113,133,.2); background: var(--red-soft); }

.wallet-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px;
}
.wallet-portfolio-card,
.wallet-meters-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 18px 20px;
}
.wallet-portfolio-label {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 10px;
}
.wallet-portfolio-value {
  font-family: var(--mono) !important;
  font-size: clamp(28px, 4vw, 36px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.1; color: var(--text);
}
.wallet-portfolio-sub {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 12px; font-size: var(--text-label); color: var(--text-3);
}
.wallet-portfolio-sub strong { color: var(--text-2); font-weight: 500; }
.wallet-meter { margin-bottom: 14px; }
.wallet-meter:last-child { margin-bottom: 0; }
.wallet-meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px; gap: 8px;
}
.wallet-meter-label {
  font-size: var(--text-caption); color: var(--text-3); font-weight: 500;
}
.wallet-meter-val {
  font-family: var(--mono) !important;
  font-size: var(--text-caption); color: var(--text-2);
}
.wallet-meter-track {
  height: 5px; border-radius: 99px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.wallet-meter-fill {
  height: 100%; border-radius: 99px;
  transition: width .55s var(--ease);
}
.wallet-meter-fill.is-green { background: var(--green); }
.wallet-meter-fill.is-amber { background: var(--amber); }
.wallet-meter-fill.is-red { background: var(--red); }
.wallet-meter-fill.is-info { background: var(--info); }

.wallet-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wallet-profile-grid > .wallet-kv-block,
.wallet-profile-grid > .aml-block {
  margin-top: 0;
  min-width: 0;
}
.wallet-profile-grid .aml-kv-list .kv-row {
  min-height: 48px;
  box-sizing: border-box;
}
.wallet-profile-grid .aml-kv-list .kv-row:last-child { border-bottom: none; }

.wallet-section-title,
.wallet-scan .scan-section-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-4);
}
.wallet-section-title span,
.wallet-scan .scan-section-title span { color: var(--text-3); }

.wallet-token-list,
.wallet-activity {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.wallet-token-row,
.wallet-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.wallet-token-row:last-child,
.wallet-activity-item:last-child { border-bottom: none; }
.wallet-activity-item {
  transition:
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.wallet-activity-item:hover {
  background: rgba(255,255,255,.025);
  transform: translateX(2px);
}

.wallet-token-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--mono) !important;
  font-size: var(--text-micro); font-weight: 700; letter-spacing: .02em;
  color: var(--info); background: var(--info-soft);
  border: 1px solid var(--info-border);
}
.wallet-token-body { flex: 1; min-width: 0; }
.wallet-token-name { font-size: var(--text-body); font-weight: 600; color: var(--text); }
.wallet-token-meta {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 3px;
}
.wallet-token-meta-text { font-family: var(--mono) !important; }
.wallet-inline-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--mono) !important;
  font-size: inherit;
  color: var(--info);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s ease;
}
.wallet-inline-link:hover { color: var(--text); text-decoration: underline; }
.wallet-activity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
  min-width: 0;
}
.wallet-activity-route {
  min-width: 0;
}
.wallet-activity-hash {
  min-width: 0;
}
.wallet-activity-hash::before {
  content: '·';
  margin-right: 6px;
  color: var(--text-4);
}
.wallet-token-val { text-align: right; flex-shrink: 0; }
.wallet-token-usd {
  font-family: var(--mono) !important;
  font-size: var(--text-body); font-weight: 600; color: var(--text);
}
.wallet-token-bal {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-3); margin-top: 3px;
}

.wallet-activity-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.wallet-activity-icon.is-in { color: var(--green); background: var(--green-soft); border-color: rgba(52,211,153,.18); }
.wallet-activity-icon.is-out { color: var(--red); background: var(--red-soft); border-color: rgba(251,113,133,.18); }
.wallet-activity-icon.is-neutral { color: var(--info); background: var(--info-soft); border-color: var(--info-border); }
.wallet-activity-icon.is-warn { color: var(--amber); background: var(--amber-soft); border-color: rgba(251,191,36,.2); }
.wallet-activity-item.is-dust {
  opacity: .88;
}
.wallet-activity-dust-tag {
  display: inline-flex;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.3;
  vertical-align: middle;
}
.tx-amt-warn { color: var(--amber); }
.wallet-activity-body { flex: 1; min-width: 0; }
.wallet-activity-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text);
}
.wallet-activity-amt {
  text-align: right; flex-shrink: 0;
  font-family: var(--mono) !important; font-size: var(--text-label); font-weight: 600;
}
.wallet-activity-time {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-4); margin-top: 3px; text-align: right;
}
.wallet-empty-block {
  padding: 32px 18px; text-align: center;
  font-size: var(--text-label); color: var(--text-3);
}
.wallet-token-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono) !important; font-size: var(--text-caption); color: var(--text-3);
}
.wallet-token-footer strong { color: var(--text); font-weight: 600; }

.wallet-token-junk {
  border-top: 1px solid var(--line);
}
.wallet-token-junk-summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  color: var(--text-4);
  user-select: none;
}
.wallet-token-junk-summary::-webkit-details-marker { display: none; }
.wallet-token-junk-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transition: transform .15s ease;
  color: var(--text-4);
}
.wallet-token-junk[open] > .wallet-token-junk-summary::before {
  transform: rotate(90deg);
}
.wallet-token-junk-summary:hover { color: var(--text-3); }
.wallet-token-junk-list .wallet-token-row {
  opacity: .72;
}
.wallet-token-junk-list .wallet-token-row:last-child {
  border-bottom: none;
}
.wallet-load-more-btn {
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: var(--text-label);
  font-weight: 500;
  font-family: var(--font-ui) !important;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.wallet-load-more-btn span { line-height: 1; }
.wallet-load-more-btn svg { opacity: .72; flex-shrink: 0; transition: opacity .15s ease, transform .15s ease; }
.wallet-load-more-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-focus);
  background: rgba(255,255,255,.06);
}
.wallet-load-more-btn:hover:not(:disabled) svg {
  opacity: 1;
  transform: translateY(1px);
}
.wallet-load-more-btn:disabled {
  opacity: .75;
  cursor: wait;
}
.wallet-load-more-btn .spin {
  width: 12px; height: 12px;
  border-width: 1.5px;
}
.tx-amt-in { color: var(--green); }
.tx-amt-out { color: var(--red); }
.tx-amt-neutral { color: var(--info); }

/* ── skeletons ── */
.sk {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: sk-shimmer 1.6s ease-in-out infinite;
  transform: translateX(-100%);
}
.sk-line-xs { height: 8px; width: 100%; border-radius: 4px; }
.sk-line-sm { height: 10px; width: 100%; border-radius: 5px; }
.sk-line { height: 12px; width: 100%; }
.sk-line-md { height: 14px; width: 100%; border-radius: 6px; }
.sk-line-lg { height: 16px; width: 75%; border-radius: 6px; }
.sk-line-xl { height: 22px; width: 100%; border-radius: 7px; }
.sk-avatar { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.sk-badge { width: 68px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.sk-chart { width: 100%; border-radius: var(--radius-sm); }
.sk-tab-pill { height: 30px; width: 72px; border-radius: 7px; }
.sk-tab-pill.is-wide { width: 96px; }

.sk-gap { flex-shrink: 0; }

.sk-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
.sk-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 10px rgba(200,206,216,.35);
  animation: sk-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.sk-status-text {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.sk-wallet-block { pointer-events: none; }
.sk-wallet-block.wallet-portfolio-card,
.sk-wallet-block.wallet-meters-card { display: flex; flex-direction: column; gap: 10px; }
.sk-wallet-kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sk-wallet-meter-track {
  height: 5px; width: 100%; border-radius: 99px; margin-top: 2px;
}
.wallet-scan .wallet-section-title .sk { display: inline-block; vertical-align: middle; }
.an-stat-value .sk,
.an-card-value .sk,
.an-card-change .sk,
.an-mini-val .sk { vertical-align: middle; }

.sk-stat-grid {
  display: grid;
  gap: 10px;
}
.sk-stat-grid-compact { gap: 8px; }
.sk-stat {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(200,206,216,.18);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sk-stat-flat {
  border: none;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
}

.sk-panel {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sk-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.sk-panel-head-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sk-panel-body { padding: 4px 16px 12px; }
.sk-panel-body-flush { padding: 0; }

.sk-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.sk-kv-row:last-child { border-bottom: none; }

.sk-table-wrap,
.sk-panel .sk-table-head,
.sk-panel .sk-table-row {
  display: grid;
  grid-template-columns: repeat(var(--sk-cols, 5), minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}
.sk-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.02); }
.sk-table-head,
.sk-panel .sk-table-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.sk-table-row,
.sk-panel .sk-table-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.sk-table-row:last-child,
.sk-panel .sk-table-row:last-child { border-bottom: none; }

.sk-tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }

.sk-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.sk-token-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
.sk-token-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-token-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.sk-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sk-analytics-cell {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.sk-analytics-cell.is-live { padding: 12px; }

.sk-engine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

@keyframes sk-shimmer {
  100% { transform: translateX(100%); }
}
@keyframes sk-dot {
  0%, 100% { opacity: .45; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}

.light-theme .sk { background: rgba(0,0,0,.05); }
.light-theme .sk::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent); }
.light-theme .sk-status-dot { box-shadow: none; }

/* legacy aliases */
.sk-card { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sk-card-hd { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sk-card-body { padding: 10px 16px; }
.sk-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.sk-table-hd, .sk-table-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 10px; padding: 10px 16px; }
.sk-table-hd { border-bottom: 1px solid var(--line); }
.sk-tabs { display: flex; gap: 10px; }
.sk-tab { height: 32px; width: 80px; border-radius: 6px; }
.sk-alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); }
.sk-circle { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }

.term { text-decoration: underline dotted rgba(161,161,170,.5); text-underline-offset: 3px; cursor: help; }
.term:hover { color: var(--text); }

/* pwa install */
#pwa-install-btn.hidden {
  display: none !important;
}
.pwa-install-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), backdrop-filter .28s var(--ease), background .28s var(--ease), visibility .28s var(--ease);
}
.pwa-install-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.pwa-install-overlay.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
}
.pwa-install-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.pwa-install-overlay.is-open .pwa-install-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.pwa-install-overlay.is-closing .pwa-install-card {
  transform: translateY(12px) scale(.98);
  opacity: 0;
}
.pwa-install-close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.pwa-install-close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pwa-install-brand {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.pwa-install-brand img {
  width: 40px; height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.pwa-install-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.pwa-install-lead {
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--text-3);
  margin-bottom: 16px;
}
.pwa-install-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-body);
  line-height: 1.45;
  color: var(--text-2);
}
.pwa-install-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-3);
}
.pwa-install-cta {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: var(--text-body);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pwa-install-cta:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--line-strong);
}

/* qr modal */
.qr-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  opacity: 0;
  transition: opacity .28s var(--ease), backdrop-filter .28s var(--ease), background .28s var(--ease);
}
.qr-modal-overlay.is-open {
  opacity: 1;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.qr-modal-overlay.is-closing {
  opacity: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
}
.qr-modal {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  max-width: 340px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.qr-modal-overlay.is-open .qr-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.qr-modal-overlay.is-closing .qr-modal {
  transform: translateY(12px) scale(.98);
  opacity: 0;
}
.qr-modal-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.qr-modal-brand svg,
.qr-modal-brand img {
  width: 18px; height: 18px; opacity: .95; flex-shrink: 0;
}
.qr-modal-brand span {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .08em; color: var(--text-3);
}
.qr-modal-close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.qr-modal-close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.qr-modal-title {
  font-size: 15px; font-weight: 500; color: var(--text);
  margin-bottom: 6px;
}
.qr-modal-kicker {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); letter-spacing: .07em;
  color: var(--text-4); margin-bottom: 6px;
}
.qr-modal-addr {
  font-family: var(--mono) !important;
  font-size: var(--text-micro); color: var(--text-3);
  word-break: break-all; line-height: 1.5;
  margin-bottom: 16px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.qr-modal-frame {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transform: scale(.88);
  opacity: 0;
}
.qr-modal-frame-glow {
  position: absolute; inset: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(200,206,216,.08), transparent 68%);
  pointer-events: none;
}
.qr-canvas-wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
}
.qr-modal-overlay.is-open .qr-modal-frame {
  animation: qr-frame-in .5s .1s var(--ease) both;
}
@keyframes qr-frame-in {
  from { transform: scale(.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.qr-branded-canvas {
  display: block;
  width: 248px; height: 248px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.qr-modal-copy {
  width: 100%;
  justify-content: center;
}

/* toast */
#toast {
  border-radius: var(--radius-sm) !important;
  border-color: var(--line-strong) !important;
  background: var(--bg-raised) !important;
  font-family: var(--font-ui) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.4) !important;
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out) !important;
}
#toast .w-2 { border-radius: 50%; background: var(--green) !important; box-shadow: 0 0 10px rgba(52,211,153,.4) !important; }

.spinner, .scan-btn-loader, .spin {
  width: 14px; height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
.spinner:not(.hidden), .scan-btn-loader:not(.hidden), .spin:not(.hidden) {
  display: inline-block;
}
.spinner.hidden, .scan-btn-loader.hidden, .spin.hidden {
  display: none !important;
  animation: none !important;
}
.fg-loading { opacity: .5; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.init-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
  overflow: hidden;
}
html.locale-switch-boot body > :not(#init-loader) {
  visibility: hidden !important;
}
html.locale-switch-boot #init-loader {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html.locale-switch-boot #init-loader.done {
  opacity: 1 !important;
  visibility: visible !important;
}
html.locale-switch-boot .init-loader-inner {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
html.locale-switch-boot:not(.locale-loader-ready) .init-loader-tagline {
  visibility: hidden;
}
.init-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.init-loader.done .init-loader-inner {
  transform: translateY(-8px);
  opacity: 0;
}
.init-loader-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(255,255,255,.05), transparent 72%);
}
.init-loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: min(320px, calc(100vw - 48px));
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  animation: initFadeIn .55s var(--ease) both;
}
.init-loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.init-loader-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: .96;
}
.init-loader-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.init-loader-name {
  font-family: var(--mono) !important;
  font-size: var(--text-lead);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.init-loader-badge {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-4);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.init-loader-tagline {
  margin: 0;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.45;
  max-width: min(300px, 92vw);
  text-wrap: nowrap;
}
.init-loader-sep { opacity: .45; margin: 0 2px; }
.init-loader-tron { color: var(--text-2); font-weight: 700; }
.init-loader-beam {
  width: 168px;
  height: 2px;
  margin-top: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.init-loader-beam-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.75));
  animation: initBeam .95s var(--ease) forwards;
}
@keyframes initFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes initBeam {
  from { width: 0; }
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .init-loader-inner { animation: none; }
  .init-loader-beam-fill { animation: none; width: 100%; }
}

@keyframes inputFlash {
  0%, 100% { transform: translateX(0); border-color: var(--line); }
  25%, 75% { transform: translateX(-3px); border-color: var(--red); }
  50% { transform: translateX(3px); border-color: var(--red); }
}
.input-flash { animation: inputFlash .5s ease-in-out !important; }

.score-bar { transition: width 1s cubic-bezier(.4,0,.2,1); }
.fear-greed-transition { transition: all .5s ease; }
#mobile-more-menu .mobile-more-item { width: 100%; }
body.mobile-more-open {
  overflow: hidden;
}
body.mobile-more-open .app-layout,
body.mobile-more-open .app-main {
  overflow: hidden !important;
}

/* ── Onboarding tour ── */
.tour-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04);
  font-family: var(--font-ui) !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  pointer-events: auto;
}
.tour-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tour-progress {
  height: 2px;
  background: rgba(255, 255, 255, .06);
}
.tour-progress-fill {
  height: 100%;
  background: var(--text);
  transition: width .35s var(--ease);
}
.tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tour-kicker {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-3);
}
.tour-step {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
  letter-spacing: .04em;
}
.tour-body {
  padding: 16px 16px 18px;
}
.tour-title {
  font-family: var(--mono) !important;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.tour-text {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.62;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
}
.tour-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-3);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.tour-btn:hover {
  color: var(--text);
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, .04);
}
.tour-btn--primary {
  color: #000;
  background: var(--text);
  border-color: var(--text);
}
.tour-btn--primary:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
}
.tour-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-4);
  padding-left: 0;
  padding-right: 0;
}
.tour-btn--ghost:hover {
  color: var(--text-2);
  background: transparent;
  border-color: transparent;
}
.sidebar-nav-btn.tour-nav-hl,
[data-tab-btn].tour-nav-hl {
  color: var(--text) !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: var(--line-focus) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}
.sidebar-nav-btn.tour-nav-hl svg,
[data-tab-btn].tour-nav-hl svg {
  opacity: 1 !important;
}

#tab-analytics .module-panel-head ~ .grid { padding-left: 0 !important; padding-right: 0 !important; }
#tab-analytics .an-body { padding-bottom: 2px; }

@media (max-width: 767px) {
  .tour-card {
    left: 16px;
    right: 16px;
    bottom: 76px;
    width: auto;
  }
  .wallet-hero-grid,
  .wallet-profile-grid { grid-template-columns: 1fr; }
  .contract-redirect-inner { padding: 18px 16px 16px; }
  .contract-redirect-actions {
    grid-template-columns: 1fr;
  }
  .contract-redirect-btn--ghost { width: 100%; }
  .an-stat-grid--3, .an-stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aml-grid-2 { grid-template-columns: 1fr; }
  .aml-graph-stats.an-stat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aml-graph-stats .an-stat:nth-child(2n) { border-right: none; }
  .aml-graph-stats .an-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .an-hero-grid { grid-template-columns: 1fr; }
  #tab-analytics .an-chart-wrap {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }
  #tab-analytics .an-chart {
    min-height: 216px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px 0 4px;
    border-left: none;
    border-right: none;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }
  #tab-analytics .an-chart--mobile .an-chart-svg {
    touch-action: pan-y;
  }
  #tab-analytics .an-chart-legend {
    gap: 8px 12px;
    margin-bottom: 6px;
  }
  #tab-analytics .an-chart-legend-item {
    font-size: var(--text-micro);
  }
  #tab-analytics .an-chart-axis text {
    font-size: var(--text-micro);
  }
  #tab-analytics .an-chart-line {
    stroke-width: 2.5;
  }
  #tab-analytics .an-chart-dot {
    r: 4;
  }
  #tab-analytics .an-chart-tooltip.is-mobile {
    left: 50% !important;
    right: auto !important;
    bottom: 8px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 16px);
    max-width: none;
    text-align: center;
    padding: 7px 10px;
  }
  #tab-analytics .an-chart-tooltip.is-mobile strong,
  #tab-analytics .an-chart-tooltip.is-mobile span,
  #tab-analytics .an-chart-tooltip.is-mobile .an-chart-tip-row {
    font-size: var(--text-micro);
  }
  #tab-analytics .an-stat-grid--2 { grid-template-columns: 1fr; }
  .sk-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sk-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-token-grid { grid-template-columns: 1fr; }
  .sk-engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .app-brand-meta { display: none; }

  /* Wallet / AML result header */
  .scan-head-card,
  .scan-head-card--featured {
    padding: 14px 14px 12px;
  }
  .wallet-head-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }
  .wallet-head-addr {
    flex: none;
    width: 100%;
    font-size: var(--text-label);
    line-height: 1.45;
    letter-spacing: -.01em;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    word-break: break-all;
  }
  .light-theme .wallet-head-addr {
    background: rgba(0,0,0,.025);
  }
  .wallet-head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }
  .wallet-head-actions .wallet-action-btn {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 6px;
    font-size: var(--text-caption);
    gap: 5px;
  }
  .wallet-head-actions .wallet-action-btn span {
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }
  .scan-head-card:has(.wallet-head-actions.is-overflow-open),
  .scan-head-card--featured:has(.wallet-head-actions.is-overflow-open) {
    position: relative;
    z-index: 65;
    overflow: visible;
  }
  .wallet-head-actions.is-overflow-open {
    z-index: 66;
  }
  .scan-head-overflow-menu {
    z-index: 67;
  }
  .wallet-head-tags {
    gap: 5px;
  }
  .wallet-verdict-action {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }
  .wallet-verdict-action-cta {
    white-space: normal;
  }
  .wallet-verdict-badge {
    max-width: 48%;
    text-align: center;
  }
  .wallet-go-btn { width: 100%; justify-content: center; }
  .wallet-activity-item {
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
  }
  .wallet-activity-item > div:last-child {
    flex-shrink: 0;
    min-width: 68px;
    max-width: 34%;
  }
  .wallet-activity-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wallet-activity-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
  }
  .wallet-activity-route,
  .wallet-activity-hash .wallet-inline-link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wallet-activity-hash::before {
    display: none;
  }
  .wallet-activity-amt {
    font-size: var(--text-caption);
  }
  .wallet-activity-time {
    font-size: var(--text-micro);
  }

  /* Approvals rows — compact: action top-right, amount row below */
  .appr-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon body action"
      ". side side";
    gap: 6px 10px;
    align-items: start;
    padding: 12px 14px;
  }
  .appr-row-icon { grid-area: icon; }
  .appr-row-body {
    grid-area: body;
    min-width: 0;
  }
  .appr-row-title {
    align-items: flex-start;
    gap: 6px;
  }
  .appr-row-meta,
  .appr-row-sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }
  .appr-row-meta .wallet-contract-scan-btn,
  .appr-row-sub .wallet-contract-scan-btn {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }
  .appr-row-side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    width: 100%;
  }
  .appr-row-side > .badge { display: none; }
  .appr-row-amount {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .appr-row-action {
    grid-area: action;
    width: auto;
    align-self: start;
  }
  .appr-row-action .revoke-one-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
  #tab-approvals .appr-scan,
  #tab-approvals .appr-sections,
  #tab-approvals .appr-section {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .wallet-head-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .an-stat-grid--2:not(.scan-hero-grid),
  .an-stat-grid--3:not(.scan-hero-grid),
  .an-stat-grid--4:not(.scan-hero-grid) { grid-template-columns: 1fr; }

  .scan-hero-grid.an-stat-grid--4 {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 280px);
    grid-template-columns: unset;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 2px;
  }
  .scan-hero-grid.an-stat-grid--4::-webkit-scrollbar { display: none; }
  .scan-hero-grid .an-stat { scroll-snap-align: start; }
}

/* ── vanity address generator ── */
.vanity-scan-skel {
  animation: fadeSlideIn .35s var(--ease) both;
}
#tab-vanity .vanity-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideIn .4s var(--ease) both;
}
#tab-vanity .vanity-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#tab-vanity .vanity-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.015);
  transition: opacity .25s ease, border-color .2s;
}
#tab-vanity .vanity-compose.is-searching {
  opacity: .58;
  pointer-events: none;
  border-color: rgba(255,255,255,.06);
}

/* hero preview */
#tab-vanity .vanity-hero {
  text-align: center;
}
#tab-vanity .vanity-hero-preview {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  transition: border-color .2s, box-shadow .2s;
}
#tab-vanity .vanity-hero-preview.is-ready {
  border-color: rgba(52, 211, 153, .22);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .08);
}
#tab-vanity .vanity-hero-preview.is-invalid {
  border-color: rgba(251,113,133,.28);
}
#tab-vanity .vanity-preview-addr {
  display: block;
  font-size: clamp(15px, 3.2vw, 18px);
  line-height: 1.45;
  letter-spacing: .04em;
  word-break: break-all;
}
#tab-vanity .vanity-preview-base { color: var(--text-2); }
#tab-vanity .vanity-preview-fade { color: var(--text-4); opacity: .45; }
#tab-vanity .vanity-preview-match {
  color: var(--text);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(52, 211, 153, .12);
}
#tab-vanity .vanity-preview-invalid {
  color: var(--red);
  background: var(--red-soft);
}
#tab-vanity .vanity-hero-caption {
  margin: 8px 0 0;
  font-size: var(--text-label);
  line-height: 1.45;
  color: var(--text-3);
  font-family: var(--font-ui) !important;
}

/* mode segment */
#tab-vanity .vanity-mode-segment {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.12);
}
@media (max-width: 479px) {
  #tab-vanity .vanity-mode-segment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#tab-vanity .vanity-mode-label--short { display: none; }
@media (max-width: 520px) {
  #tab-vanity .vanity-mode-label--full { display: none; }
  #tab-vanity .vanity-mode-label--short { display: inline; }
}
#tab-vanity .vanity-mode-btn {
  min-height: 36px;
  padding: 6px 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font-ui) !important;
  font-size: var(--text-caption);
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
@media (min-width: 480px) {
  #tab-vanity .vanity-mode-btn {
    padding: 6px 10px;
    font-size: var(--text-label);
  }
}
#tab-vanity .vanity-mode-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255,255,255,.04);
}
#tab-vanity .vanity-mode-btn.is-active {
  color: var(--text);
  background: rgba(255,255,255,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
#tab-vanity .vanity-mode-btn[data-mode="both"].is-active {
  background: rgba(52, 211, 153, .1);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .18);
}
#tab-vanity .vanity-mode-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* search + toolbar */
#tab-vanity .vanity-search-bar {
  margin-bottom: 0 !important;
}
#tab-vanity .vanity-search-bar.is-dual {
  flex-direction: column;
  align-items: stretch;
}
@media (min-width: 640px) {
  #tab-vanity .vanity-search-bar.is-dual {
    flex-direction: row;
    align-items: center;
  }
}
#tab-vanity .vanity-dual-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
#tab-vanity .vanity-dual-fields .search-wrap {
  flex: 1;
  min-width: 0;
}
#tab-vanity .vanity-dual-join {
  flex-shrink: 0;
  color: var(--text-4);
  font-family: var(--mono) !important;
  font-size: var(--text-lead);
  line-height: 1;
  opacity: .55;
  user-select: none;
}
#tab-vanity .vanity-dual-input {
  flex: 1;
  min-width: 0;
  animation: fadeSlideIn .2s var(--ease) both;
}
#tab-vanity .vanity-single-input {
  flex: 1;
  min-width: 0;
  animation: fadeSlideIn .2s var(--ease) both;
}
#tab-vanity .vanity-char-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
  pointer-events: none;
}
#tab-vanity .vanity-char-count.hidden {
  display: none;
}
#tab-vanity #vanity-input-wrap .field-input {
  padding-right: 52px !important;
}
#tab-vanity .vanity-field-tag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-4);
  pointer-events: none;
  font-family: var(--mono) !important;
}
#tab-vanity .vanity-part-input {
  padding-left: 52px !important;
}
#tab-vanity #vanity-input-wrap > .field-icon,
#tab-vanity #vanity-input-wrap > svg.field-icon {
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: block;
}
#tab-vanity #vanity-input-wrap.is-invalid .field-input,
#tab-vanity #vanity-prefix-wrap.is-invalid .field-input,
#tab-vanity #vanity-suffix-wrap.is-invalid .field-input {
  border-color: rgba(251,113,133,.45);
}
#tab-vanity #vanity-input-wrap.is-invalid ~ #vanity-start-btn,
#tab-vanity #vanity-start-btn:disabled,
#tab-vanity #vanity-start-btn.is-disabled {
  opacity: .4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(.35);
  transform: none !important;
}
#tab-vanity .vanity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-top: 2px;
}
#tab-vanity .vanity-presets,
#tab-vanity .vanity-presets-both {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
#tab-vanity .vanity-presets.hidden,
#tab-vanity .vanity-presets-both.hidden {
  display: none;
}
#tab-vanity .vanity-preset {
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text-3);
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
#tab-vanity .vanity-preset:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
}
#tab-vanity .vanity-preset.is-active {
  color: var(--text);
  border-color: rgba(52, 211, 153, .28);
  background: rgba(52, 211, 153, .08);
}
#tab-vanity .vanity-preset:disabled { opacity: .4; cursor: not-allowed; }
#tab-vanity .vanity-case-toggle {
  flex-shrink: 0;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text-3);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
#tab-vanity .vanity-case-toggle:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.05);
}
#tab-vanity .vanity-case-toggle.is-active {
  color: var(--text);
  border-color: rgba(200, 206, 216, .32);
  background: rgba(200, 206, 216, .1);
}
#tab-vanity .vanity-case-toggle:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#tab-vanity .vanity-case-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#tab-vanity .vanity-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
#tab-vanity .vanity-meta-idle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#tab-vanity .vanity-meta-idle.hidden {
  display: none;
}
#tab-vanity .vanity-meta-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text-4);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
}
#tab-vanity .vanity-meta-line {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  color: var(--text-3);
  line-height: 1.4;
}
#tab-vanity .vanity-meta-line.hidden {
  display: none;
}
#tab-vanity .vanity-meta-bar.has-pattern {
  border-color: rgba(52, 211, 153, .16);
  background: rgba(52, 211, 153, .04);
}
#tab-vanity .vanity-diff-badge {
  flex-shrink: 0;
  font-size: var(--text-micro);
  padding: 2px 7px;
}

/* searching */
#tab-vanity .vanity-searching-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 14px 16px;
  animation: fadeSlideIn .35s var(--ease) both;
}
#tab-vanity .vanity-searching-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
#tab-vanity .vanity-searching-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
#tab-vanity .vanity-searching-pulse {
  margin-left: 0;
  max-width: 6px;
  opacity: 1;
  transform: none;
  animation: vanityPulse 1.6s ease infinite;
}
@keyframes vanityPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
#tab-vanity .vanity-stop-inline {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(251,113,133,.25);
  background: transparent;
  color: var(--red);
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
#tab-vanity .vanity-stop-inline:hover {
  background: var(--red-soft);
  border-color: rgba(251,113,133,.4);
}
#tab-vanity .vanity-progress-bar-wrap {
  position: relative;
  height: 6px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
#tab-vanity .vanity-progress-avg-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255,255,255,.22);
  pointer-events: none;
  z-index: 2;
  transition: left .35s var(--ease);
}
#tab-vanity .vanity-progress-bar {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(52,211,153,.4), rgba(52,211,153,.85));
  transition: width .45s var(--ease), background .3s;
  overflow: hidden;
}
#tab-vanity .vanity-progress-bar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.08) 40%,
    rgba(255,255,255,.28) 50%,
    rgba(255,255,255,.08) 60%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: vanityBarShine 1.6s ease-in-out infinite;
}
#tab-vanity .vanity-progress-bar-wrap.is-past-avg .vanity-progress-bar {
  background: linear-gradient(90deg, rgba(251,191,36,.35), rgba(251,191,36,.8));
}
#tab-vanity .vanity-searching-card.is-past-avg .vanity-progress-avg-mark {
  background: rgba(251,191,36,.55);
}
@keyframes vanityBarShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
#tab-vanity .vanity-searching-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#tab-vanity .vanity-searching-stat {
  text-align: center;
  padding: 8px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.12);
}
#tab-vanity .vanity-searching-stat-val {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
#tab-vanity .vanity-searching-stat-label {
  display: block;
  margin-top: 3px;
  font-size: var(--text-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--mono) !important;
}
#tab-vanity .vanity-progress-hint {
  margin: 10px 0 0;
  font-size: var(--text-micro);
  color: var(--text-4);
  text-align: center;
  font-family: var(--mono) !important;
}
#tab-vanity .vanity-stopped-msg {
  margin: 0;
  padding: 10px 14px;
  font-size: var(--text-label);
  color: var(--text-3);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}

/* result */
#tab-vanity .vanity-success-card {
  border: 1px solid rgba(52,211,153,.2);
  border-radius: var(--radius-sm);
  background: rgba(52,211,153,.04);
  padding: 16px;
  animation: fadeSlideIn .45s var(--ease) both;
}
#tab-vanity .vanity-success-card.is-entering {
  animation: fadeSlideIn .45s var(--ease) both;
}
#tab-vanity .vanity-success-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
#tab-vanity .vanity-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(52,211,153,.14);
  color: var(--green);
  flex-shrink: 0;
}
#tab-vanity .vanity-success-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-ui) !important;
}
#tab-vanity .vanity-success-meta {
  margin: 3px 0 0;
  font-size: var(--text-caption);
  color: var(--text-4);
}
#tab-vanity .vanity-address-card,
#tab-vanity .vanity-secret-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.14);
  padding: 12px 14px;
}
#tab-vanity .vanity-secret-card {
  margin-top: 10px;
  border-color: rgba(251,113,133,.18);
  background: rgba(251,113,133,.04);
}
#tab-vanity .vanity-address-card-head,
#tab-vanity .vanity-secret-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
#tab-vanity .vanity-address-label,
#tab-vanity .vanity-secret-label {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-4);
}
#tab-vanity .vanity-secret-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
#tab-vanity .vanity-address-value {
  display: block;
  font-size: var(--text-lead);
  line-height: 1.5;
  word-break: break-all;
}
#tab-vanity .vanity-match {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(52, 211, 153, .2);
  color: var(--green);
  font-weight: 600;
}
#tab-vanity .vanity-key {
  display: block;
  font-size: var(--text-caption);
  line-height: 1.5;
  word-break: break-all;
}
#tab-vanity .vanity-key.is-blurred { filter: blur(5px); user-select: none; }
#tab-vanity .vanity-import-guide {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  padding: 12px 14px;
}
#tab-vanity .vanity-import-guide-title {
  margin: 0 0 8px;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
#tab-vanity .vanity-import-steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--text-3);
}
#tab-vanity .vanity-import-steps li + li {
  margin-top: 6px;
}
#tab-vanity .vanity-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
#tab-vanity .wallet-action-btn {
  padding: 6px 10px;
  font-size: var(--text-caption);
}
#tab-vanity .vanity-result-disclaimer {
  margin: 12px 0 0;
  font-size: var(--text-caption);
  line-height: 1.45;
  color: var(--text-4);
}
#tab-vanity #vanity-err:not(:empty),
#tab-vanity #vanity-progress:not(:empty),
#tab-vanity #vanity-result:not(:empty) {
  margin-top: 0;
}
body.vanity-is-searching #vanity-start-btn { pointer-events: none; }
@media (max-width: 767px) {
  #tab-vanity .vanity-searching-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Permission auditor output ── */
.perm-scan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeSlideIn var(--duration-slow) var(--ease-out) both;
  animation-delay: 50ms;
}
.perm-scan .aml-alert { margin: 0; }
.perm-assessment { margin: 0; }
.perm-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scan-section,
.perm-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.perm-section-title {
  color: var(--text-3);
}
.perm-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
}
.perm-meta-strip strong { color: var(--text-2); font-weight: 600; }
.perm-signer-list { display: flex; flex-direction: column; }
.perm-signer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.perm-signer:last-child { border-bottom: none; }
.perm-signer.is-risk { border-left: 3px solid rgba(251,113,133,.45); background: rgba(251,113,133,.03); }
.perm-signer.is-ok { border-left: 3px solid rgba(52,211,153,.35); }
.perm-signer.is-cosigner { border-left: 3px solid var(--info-border); background: var(--info-soft); }
.perm-signer-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--info);
  background: var(--info-soft);
  border: 1px solid var(--info-border);
}
.perm-signer.is-risk .perm-signer-icon {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(251,113,133,.2);
}
.perm-signer.is-cosigner .perm-signer-icon {
  color: var(--info);
  background: var(--info-soft);
  border-color: var(--info-border);
}
.perm-signer-body { flex: 1; min-width: 0; }
.perm-signer-addr { font-size: var(--text-label); line-height: 1.35; }
.perm-signer-addr .a-link { font-family: var(--mono) !important; font-size: var(--text-caption); }
.perm-signer-meta {
  margin-top: 3px;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  color: var(--text-4);
}
.perm-signer-weight {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.perm-signer-weight .mono {
  font-size: var(--text-lead);
  font-weight: 600;
  color: var(--text);
}
.perm-signer-weight-label {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-4);
}
.perm-ops-block {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.01);
}
.perm-ops-title {
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
}
.perm-ops-title span { color: var(--text-3); }
.perm-ops-kv .kv-row { padding: 8px 0; }
.perm-ops-note {
  margin-top: 10px;
  font-size: var(--text-caption);
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.perm-empty-inline { padding: 12px 16px; margin: 0; }
.perm-findings-block { margin: 0; }
.light-theme .perm-section { background: rgba(15,23,42,.02); }
.light-theme .perm-section-head { background: rgba(15,23,42,.03); }
.light-theme .perm-signer.is-risk { background: rgba(220,38,38,.04); }
.light-theme .perm-signer.is-ok { background: rgba(16,185,129,.04); }
.light-theme .perm-signer.is-cosigner { background: rgba(59,130,246,.04); }
.perm-notes-block .contract-risk.is-info { border-left-color: rgba(96,165,250,.35); }
.perm-disclaimer { margin: 0; }

.perm-risk-stat .aml-score-unit {
  font-size: var(--text-lead);
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}
.perm-weight-bar {
  margin-top: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.perm-weight-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52,211,153,.55), rgba(34,211,238,.45));
}
.perm-signer.is-risk .perm-weight-bar-fill {
  background: linear-gradient(90deg, rgba(251,113,133,.65), rgba(248,113,113,.5));
}
.perm-ops-toggle {
  margin-top: 10px;
  width: 100%;
}
.perm-ops-full {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}
.perm-ops-full.is-open {
  display: flex;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.perm-next-steps { margin: 0; }
.perm-history-block { margin: 0; }
.perm-history-list {
  display: flex;
  flex-direction: column;
}
.perm-history-row {
  display: grid;
  grid-template-columns: minmax(72px, 88px) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.perm-history-row:last-child { border-bottom: none; }
.perm-history-when {
  font-size: var(--text-caption);
  color: var(--text-3);
  white-space: nowrap;
}
.perm-history-link {
  flex-shrink: 0;
  padding: 4px 8px !important;
  font-size: var(--text-micro) !important;
}
@media (max-width: 520px) {
  .perm-history-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .perm-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .scan-section-badges,
  .perm-section-badges { justify-content: flex-start; }
}

/* focus-visible pass */
.wallet-verdict-action:focus-visible,
.risk-row:focus-visible,
.appr-row:focus-visible,
.wallet-action-btn:focus-visible,
.copy-btn:focus-visible,
.sidebar-nav-btn:focus-visible,
.mobile-bottom-nav .sidebar-nav-btn:focus-visible,
.cp-i:focus-visible,
.report-type-btn:focus-visible,
.vanity-mode-btn:focus-visible,
.scan-head-overflow-btn:focus-visible,
.module-desc-tags-toggle:focus-visible {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
}
@media (max-width: 639px) {
  .app-header-actions { gap: 4px; }
  .app-header-lang-btn {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }
}

.app-header-help:focus-visible,
.help-widget-close:focus-visible {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
}
.app-header-help.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.light-theme .app-header-help.is-active {
  background: rgba(15,23,42,.04);
}

/* ── Help widget (header) ── */
#help-widget-panel {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
#help-o {
  position: fixed; inset: 0; z-index: 9993;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  pointer-events: none;
}
#help-o.is-open {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}
.help-widget-panel {
  position: fixed;
  z-index: 9994;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease);
}
.help-widget-panel.show {
  opacity: 1;
  pointer-events: auto;
}
.help-widget-panel.hidden { display: none; }
.help-widget-grab { display: none; }
.light-theme #help-o { background: rgba(15,23,42,.1); }
.light-theme .help-widget-panel {
  box-shadow: 0 16px 48px rgba(15,23,42,.12);
}
@media (min-width: 768px) {
  .help-widget-panel {
    top: calc(var(--header-h) + 8px);
    right: 16px;
    left: auto;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: none;
    transform: translateY(-4px);
    transform-origin: top right;
  }
  .help-widget-panel.show {
    transform: translateY(0);
    animation: header-dd-in .2s var(--ease) both;
  }
}
.help-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 14px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.light-theme .help-widget-head {
  background: linear-gradient(180deg, rgba(15,23,42,.02), transparent);
}
.help-widget-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--mono) !important;
  line-height: 1.2;
}
.help-widget-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.help-widget-close svg { display: block; pointer-events: none; }
.help-widget-close:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: var(--line);
}
.light-theme .help-widget-close:hover { background: rgba(15,23,42,.04); }
.help-widget-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 16px 14px 14px;
}
.help-support {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.light-theme .help-support-card {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
}
.help-support-kicker {
  display: block;
  font-family: var(--mono) !important;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.2;
}
.help-support-text {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--text-2);
  font-family: var(--font-ui) !important;
}
.help-support-btn {
  width: 100%;
  justify-content: center;
  padding: 9px 14px;
  font-size: var(--text-label);
  font-weight: 500;
  border-radius: 8px;
}
.help-support-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-family: var(--mono) !important;
  font-size: var(--text-caption);
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--text-4);
}
.light-theme .help-support-note {
  background: rgba(15,23,42,.02);
}
@media (max-width: 767px) {
  body.help-widget-open { overflow: hidden; }
  #help-o {
    z-index: 190;
    background: rgba(0, 0, 0, .42);
  }
  #help-o.is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .help-widget-panel {
    top: auto;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .42);
    z-index: 200;
    transform: translate3d(0, 100%, 0);
    transform-origin: bottom center;
    transition:
      opacity var(--duration-normal) var(--ease-out),
      transform var(--duration-normal) var(--ease-out);
  }
  .help-widget-panel.show {
    animation: none;
    transform: translate3d(0, 0, 0);
  }
  .help-widget-panel.is-dragging {
    transition: none;
  }
  .help-widget-grab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .help-widget-grab:active,
  .help-widget-head:active { cursor: grabbing; }
  .help-widget-grab::after {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
  }
  .help-widget-head {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .help-widget-title {
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-2);
  }
  .help-widget-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    color: var(--text-3);
  }
  .help-widget-scroll {
    padding: 14px 16px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .help-support-card {
    padding: 16px 14px 15px;
  }
  .help-support-text {
    font-size: var(--text-label);
    line-height: 1.55;
  }
  .help-support-btn {
    min-height: 44px;
    padding: 11px 14px;
  }
  .help-support-note {
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
  }
  .light-theme .help-widget-panel {
    box-shadow: 0 -16px 48px rgba(15, 23, 42, .12);
  }
}

/* wallet / Web3 ID connection */
.wallet-connect-btn { border-color: rgba(80,220,255,.22); color: var(--text-2); background: rgba(80,220,255,.045); }
.wallet-connect-btn:hover, .wallet-connect-btn.is-connected { color: var(--text); border-color: rgba(80,220,255,.48); background: rgba(80,220,255,.09); box-shadow: 0 0 22px rgba(80,220,255,.08); }
.wallet-connect-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.66); backdrop-filter: blur(14px) saturate(1.2); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.wallet-connect-overlay.hidden { display: none !important; }
.wallet-connect-overlay.is-open { opacity: 1; pointer-events: auto; }
.wallet-connect-overlay.is-closing { opacity: 0; pointer-events: none; }
.wallet-connect-card { width: min(100%,560px); max-height: min(760px,calc(100vh - 36px)); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(145deg,rgba(18,20,24,.98),rgba(8,10,12,.98)); box-shadow: 0 28px 100px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.025) inset; transform: translateY(10px) scale(.985); transition: transform .2s var(--ease-out); }
.wallet-connect-overlay.is-open .wallet-connect-card { transform: translateY(0) scale(1); }
.wallet-connect-head { display: flex; justify-content: space-between; gap: 18px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.wallet-connect-kicker, .wallet-connect-review-kicker { color: var(--cyan,#70d9ff); font: 10px var(--mono); letter-spacing: .11em; text-transform: uppercase; margin-bottom: 9px; }
.wallet-connect-title { margin: 0; max-width: 430px; color: var(--text); font: 600 18px/1.3 var(--font-ui); letter-spacing: -.02em; }
.wallet-connect-close { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer; }
.wallet-connect-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
#wallet-connect-body { padding: 20px 24px 24px; }
.wallet-connect-lead, .wallet-connect-review-lead { margin: 0 0 18px; color: var(--text-3); font-size: 13px; line-height: 1.6; }
.wallet-connect-features { display: grid; gap: 9px; margin-bottom: 16px; }
.wallet-connect-feature { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.wallet-connect-feature--action { grid-template-columns: 28px 1fr auto; align-items: center; }
.wallet-connect-feature-icon { color: var(--cyan,#70d9ff); padding-top: 2px; }
.wallet-connect-feature strong { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; }
.wallet-connect-feature small { display: block; margin-top: 4px; color: var(--text-4); font-size: 11px; line-height: 1.45; }
.wallet-connect-detected { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-4); font: 11px var(--mono); }
.wallet-connect-detected.is-ready { color: var(--green); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.05); }
.wallet-connect-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); box-shadow: 0 0 0 3px rgba(148,163,184,.08); }
.wallet-connect-dot.is-ready, .wallet-connect-detected.is-ready .wallet-connect-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.12); }
.wallet-connect-message { margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(248,113,113,.24); border-radius: 8px; color: #fca5a5; background: rgba(248,113,113,.06); font-size: 12px; line-height: 1.45; }
.wallet-connect-message.is-loading { color: var(--text-3); border-color: var(--line); background: rgba(255,255,255,.025); }
.wallet-connect-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.wallet-connect-actions--split { justify-content: space-between; }
.wallet-connect-primary, .wallet-connect-secondary, .wallet-connect-inline-btn { min-height: 36px; border-radius: 8px; padding: 0 14px; border: 1px solid var(--line-strong); font: 600 12px var(--font-ui); cursor: pointer; transition: background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease; }
.wallet-connect-primary { color: #061016; border-color: #70d9ff; background: #70d9ff; }
.wallet-connect-primary:hover { background: #a2e8ff; border-color: #a2e8ff; transform: translateY(-1px); }
.wallet-connect-primary:disabled, .wallet-connect-secondary:disabled, .wallet-connect-inline-btn:disabled { opacity: .55; cursor: default; transform: none; }
.wallet-connect-primary--danger { color: #fff; border-color: rgba(248,113,113,.68); background: rgba(185,28,28,.72); }
.wallet-connect-primary--danger:hover { background: rgba(220,38,38,.86); border-color: #f87171; }
.wallet-connect-secondary { color: var(--text-3); background: transparent; }
.wallet-connect-secondary:hover { color: var(--text); background: rgba(255,255,255,.06); }
.wallet-connect-inline-btn { min-height: 30px; padding: 0 10px; color: var(--cyan,#70d9ff); border-color: rgba(80,220,255,.28); background: rgba(80,220,255,.06); }
.wallet-connect-inline-btn:hover { border-color: rgba(80,220,255,.58); background: rgba(80,220,255,.12); }
.wallet-connect-install { color: var(--text-4); font: 11px var(--mono); text-decoration: none; }
.wallet-connect-install:hover { color: var(--text-2); text-decoration: underline; }
.wallet-connect-disclaimer { margin: 16px 0 0; color: var(--text-4); font-size: 10px; line-height: 1.5; }
.wallet-connected-account { margin-bottom: 16px; padding: 13px 14px; border: 1px solid rgba(52,211,153,.25); border-radius: 10px; background: rgba(52,211,153,.045); }
.wallet-connected-account-label { display: flex; align-items: center; gap: 8px; color: var(--green); font: 11px var(--mono); }
.wallet-connected-address { margin-top: 10px; overflow-wrap: anywhere; color: var(--text); font: 600 13px var(--mono); }
.wallet-connected-chain { margin-top: 6px; color: var(--text-4); font-size: 11px; }
.wallet-connect-safe-note { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 11px 12px; border-left: 2px solid var(--cyan,#70d9ff); background: rgba(80,220,255,.045); }
.wallet-connect-safe-note strong { color: var(--text-2); font-size: 11px; }
.wallet-connect-safe-note span { color: var(--text-4); font-size: 11px; line-height: 1.5; }
.wallet-connect-review-title { margin: 0 0 8px; color: var(--text); font-size: 18px; }
.wallet-connect-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.wallet-connect-review-grid > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.wallet-connect-review-grid span, .wallet-connect-review-grid strong, .wallet-connect-review-grid small { display: block; }
.wallet-connect-review-grid span { color: var(--text-4); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.wallet-connect-review-grid strong { margin-top: 6px; overflow-wrap: anywhere; color: var(--text-2); font-size: 13px; }
.wallet-connect-review-grid strong.is-safe { color: var(--green); }
.wallet-connect-review-grid small { margin-top: 5px; overflow-wrap: anywhere; color: var(--text-4); font: 10px var(--mono); }
.wallet-connect-review-lead code { font-family: var(--mono); }
.wallet-connect-result { text-align: center; padding: 16px 4px 4px; }
.wallet-connect-result-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--green); border: 1px solid rgba(52,211,153,.38); background: rgba(52,211,153,.1); font-size: 23px; }
.wallet-connect-result.is-error .wallet-connect-result-icon { color: #fca5a5; border-color: rgba(248,113,113,.38); background: rgba(248,113,113,.1); }
.wallet-connect-result h3 { margin: 0; color: var(--text); font-size: 17px; }
.wallet-connect-result p { margin: 8px auto 0; max-width: 420px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.wallet-connect-tx-link { display: inline-block; margin-top: 12px; color: var(--cyan,#70d9ff); font: 11px var(--mono); }
@media (max-width: 520px) {
  .wallet-connect-btn { padding: 0 8px; }
  .wallet-connect-btn #wallet-connect-label { display: none; }
  .wallet-connect-head { padding: 18px 18px 14px; }
  #wallet-connect-body { padding: 18px; }
  .wallet-connect-title { font-size: 16px; }
  .wallet-connect-review-grid { grid-template-columns: 1fr; }
  .wallet-connect-feature--action { grid-template-columns: 28px 1fr; }
  .wallet-connect-feature--action .wallet-connect-inline-btn { grid-column: 2; justify-self: start; margin-top: 6px; }
}
.light-theme .wallet-connect-card { background: linear-gradient(145deg,rgba(255,255,255,.99),rgba(245,247,250,.99)); box-shadow: 0 28px 100px rgba(0,0,0,.18); }
.light-theme .wallet-connect-overlay { background: rgba(15,23,42,.3); }

/* Wallet selector layout matched to the TRONSEC app stylesheet. */
.wc-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}

.wc-modal.is-open,
.wc-modal.is-closing {
  visibility: visible;
  pointer-events: auto;
}
.wc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.wc-modal.is-open .wc-backdrop { opacity: 1; }
.wc-modal.is-closing .wc-backdrop { opacity: 0; }
.wc-sheet {
  position: relative;
  width: min(420px, 100%);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
  box-shadow: 0 28px 72px rgba(0,0,0,.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.972);
  transition:
    opacity .28s var(--ease),
    transform .34s var(--ease);
  will-change: transform, opacity;
}
.wc-modal.is-open .wc-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wc-modal.is-closing .wc-sheet {
  opacity: 0;
  transform: translateY(10px) scale(.978);
}
.wc-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 48% at 50% 0%, rgba(255,255,255,.055), transparent 60%);
}
.wc-sheet > * { position: relative; z-index: 1; }
.wc-grab {
  display: none;
}
.wc-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.wc-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wc-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.wc-title--brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wc-title-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
}
.wc-title--brand > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-lede {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
  font-family: var(--font-ui) !important;
  font-weight: 500;
  letter-spacing: -.01em;
}

.wc-trust-foot {
  margin: 0 auto;
  max-width: 34ch;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: -.005em;
  color: var(--text-4);
  font-family: var(--font-ui) !important;
  font-weight: 450;
}
.wc-trust-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2.5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,255,255,.14);
  transition: color .15s, text-decoration-color .15s;
}
.wc-trust-link:hover {
  color: var(--text-3);
  text-decoration-color: rgba(255,255,255,.32);
}
.light-theme .wc-trust-link {
  text-decoration-color: rgba(0,0,0,.14);
}
.light-theme .wc-trust-link:hover {
  color: var(--text-2);
  text-decoration-color: rgba(0,0,0,.28);
}
.wc-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.wc-close:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.wc-close:active { transform: scale(.94); }
#wallet-connect-body.wc-body {
  padding: 12px 14px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.wc-footer {
  flex-shrink: 0;
  padding: 12px 6px 2px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wc-section + .wc-section { margin-top: 14px; }
.wc-section-label {
  margin: 0 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* Popular 2×2 */
.wc-popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wc-popular-grid--trio {
  grid-template-columns: 1fr 1fr;
}
.wc-popular-cell--wide {
  grid-column: 1 / -1;
}
.wc-qr-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}
.wc-qr-hint svg {
  width: 11px;
  height: 11px;
  display: block;
}
.wc-popular-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 560;
  transition:
    background .16s,
    border-color .16s,
    color .16s,
    transform .16s var(--ease),
    opacity .2s;
}
.wc-list.is-entering .wc-popular-cell {
  opacity: 0;
  transform: translateY(6px);
  animation: wcCellIn .38s var(--ease) both;
  animation-delay: calc(40ms + var(--i, 0) * 35ms);
}
.wc-popular-cell:hover,
.wc-popular-cell:focus-visible {
  background: rgba(255,255,255,.045);
  border-color: var(--line-strong);
  outline: none;
}
.wc-popular-cell:active { transform: scale(.985); }
.wc-popular-cell.is-muted { opacity: .42; }
.wc-popular-cell.is-connecting {
  background: rgba(255,255,255,.06);
  border-color: var(--line-focus);
}
.wc-popular-cell:disabled,
.wc-all-cell:disabled {
  opacity: .5;
  cursor: wait;
}

/* More wallets — icon stack + soft CTA */
.wc-section--all {
  margin-top: 12px;
}
.wc-more-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background .18s,
    border-color .18s,
    border-style .18s,
    color .18s;
}
.wc-more-toggle:hover,
.wc-more-toggle:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border-color: var(--line-focus);
  border-style: solid;
  outline: none;
}
.wc-section--all.is-expanded .wc-more-toggle {
  border-style: solid;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
  color: var(--text);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.wc-more-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.wc-more-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--bg-raised, #111113);
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-left: -6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.wc-more-ico:first-child { margin-left: 0; }
.wc-more-ico img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.wc-more-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.wc-more-toggle-label {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.wc-more-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-4);
  line-height: 1;
}
.wc-more-toggle-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--text-4);
  flex-shrink: 0;
  margin-left: auto;
  transition: background .15s, color .15s, transform .28s var(--ease);
}
.wc-more-toggle-chevron svg {
  width: 14px;
  height: 14px;
}
.wc-more-toggle[aria-expanded="true"] .wc-more-toggle-chevron {
  transform: rotate(180deg);
  color: var(--text-2);
  background: rgba(255,255,255,.04);
}
.light-theme .wc-more-ico {
  border-color: #fff;
  background: rgba(0,0,0,.04);
}
.light-theme .wc-more-toggle-count {
  background: rgba(0,0,0,.05);
}

.wc-all-panel {
  height: 0;
  overflow: hidden;
  transition: height .32s var(--ease);
}
.wc-all-panel-inner {
  overflow: hidden;
}
.wc-all-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(255,255,255,.012);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.wc-all-panel.is-open .wc-all-list {
  opacity: 1;
  transform: translateY(0);
}
.wc-all-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 520;
  transition: background .15s, color .15s, opacity .2s;
}
.wc-all-cell:last-child { border-bottom: 0; }
.wc-all-cell:hover,
.wc-all-cell:focus-visible {
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: none;
}
.wc-all-cell.is-muted { opacity: .42; }
.wc-all-cell.is-connecting {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.wc-all-panel.is-open .wc-all-cell {
  animation: wcCellIn .32s var(--ease) both;
  animation-delay: calc(50ms + var(--i, 0) * 22ms);
}

.wc-label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-detected {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,.35);
}
.wc-qr-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.wc-qr-hint svg { width: 11px; height: 11px; }
.wc-spinner {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16);
  border-top-color: rgba(255,255,255,.88);
  animation: wcSpin .8s linear infinite;
  flex-shrink: 0;
}
.wc-item-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.wc-item-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .95;
}
.wc-item-icon--brand {
  border: none;
  background: transparent;
  overflow: visible;
}
.wc-item-icon--brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: none;
  opacity: 1;
}
.wc-more-ico--brand img {
  filter: none;
  opacity: 1;
}
.wc-all-cell .wc-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.wc-all-cell .wc-item-icon img {
  width: 14px;
  height: 14px;
}

@keyframes wcSpin {
  to { transform: rotate(360deg); }
}
@keyframes wcCellIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wc-backdrop,
  .wc-sheet,
  .wc-all-panel,
  .wc-all-list,
  .wc-more-toggle-chevron,
  .wc-popular-cell,
  .wc-all-cell {
    transition: none !important;
    animation: none !important;
  }
  .wc-spinner { animation: none; }
  .wc-sheet,
  .wc-popular-cell {
    opacity: 1;
    transform: none;
  }
}

/* Mobile bottom sheet */
@media (max-width: 767px) {
  .wc-modal {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }
  .wc-backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .light-theme .wc-backdrop {
    background: rgba(15, 23, 42, 0.48);
  }
  .wc-sheet {
    max-height: min(calc(100dvh - var(--mobile-nav-h) - env(safe-area-inset-bottom, 0px) - 16px), 640px);
  }
}
@media (max-width: 560px) {
  .wc-modal {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0 0 calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
  }
  .wc-sheet {
    width: 100%;
    max-width: none;
    max-height: min(calc(100dvh - var(--mobile-nav-h) - env(safe-area-inset-bottom, 0px) - 8px), 720px);
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(108%);
    opacity: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: transform .38s var(--ease);
  }
  .wc-modal.is-open .wc-sheet {
    transform: translateY(0);
    opacity: 1;
  }
  .wc-modal.is-closing .wc-sheet {
    transform: translateY(108%);
    opacity: 1;
  }
  .wc-grab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .wc-grab:active,
  .wc-sheet.is-dragging .wc-grab,
  .wc-sheet.is-dragging .wc-head {
    cursor: grabbing;
  }
  .wc-grab::after {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
  }
  .wc-sheet.is-dragging {
    transition: none !important;
  }
  .wc-sheet::before {
    display: none;
  }
  .wc-head {
    padding: 4px 16px 12px;
    touch-action: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  #wallet-connect-body.wc-body {
    padding: 8px 14px 18px;
    flex: none;
    overflow: visible;
    max-height: none;
    min-height: auto;
  }
  .wc-section--all {
    margin-top: 12px;
    padding-bottom: 2px;
    flex-shrink: 0;
  }
  .wc-more-toggle {
    min-height: 44px;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .wc-popular-grid {
    gap: 7px;
  }
  .wc-popular-cell {
    padding: 11px 10px;
    gap: 8px;
    font-size: 12px;
  }
  .wc-item-icon {
    width: 26px;
    height: 26px;
  }
  .wc-all-cell {
    min-height: 46px;
    padding: 11px 12px;
  }
}

.light-theme .wc-sheet {
  background: linear-gradient(180deg, #fff, #f7f7f8);
  box-shadow: 0 28px 72px rgba(15,23,42,.16);
}
.light-theme .wc-sheet::before {
  background: radial-gradient(ellipse 70% 48% at 50% 0%, rgba(0,0,0,.025), transparent 60%);
}
.light-theme .wc-close:hover,
.light-theme .wc-popular-cell:hover,
.light-theme .wc-popular-cell:focus-visible,
.light-theme .wc-all-cell:hover,
.light-theme .wc-all-cell:focus-visible,
.light-theme .wc-popular-cell.is-connecting,
.light-theme .wc-all-cell.is-connecting,
.light-theme .wc-more-toggle:hover,
.light-theme .wc-more-toggle:focus-visible,
.light-theme .wc-section--all.is-expanded .wc-more-toggle {
  background: rgba(0,0,0,.035);
}
.light-theme .wc-popular-cell,
.light-theme .wc-more-toggle,
.light-theme .wc-all-list,
.light-theme .wc-item-icon {
  background: rgba(0,0,0,.018);
}
.light-theme .wc-item-icon img {
  filter: grayscale(1) brightness(0);
  opacity: .72;
}
.light-theme .wc-item-icon--brand img,
.light-theme .wc-more-ico--brand img {
  filter: none;
  opacity: 1;
}
.light-theme .wc-spinner {
  border-color: rgba(0,0,0,.14);
  border-top-color: rgba(0,0,0,.72);
}
.light-theme .wc-qr-hint,
.light-theme .wc-more-toggle-count,
.light-theme .wc-more-toggle[aria-expanded="true"] .wc-more-toggle-chevron {
  background: rgba(0,0,0,.03);
}

.wc-modal.hidden { display: none !important; }
.wc-modal:not(.is-wallet-picker) .wc-lede { display: none; }
@media (min-width: 561px) {
  .wc-modal:not(.is-wallet-picker) .wc-sheet { width: min(560px, 100%); }
}
.light-theme .wc-title-logo { filter: invert(1) brightness(.18); }

.wallet-picker-qr-view { text-align: center; padding: 8px 0 2px; }
.wallet-picker-qr-title { color: var(--text); font-size: 16px; font-weight: 600; }
.wallet-picker-qr-view p { margin: 8px auto 14px; max-width: 300px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.wallet-picker-qr-box { width: 184px; min-height: 184px; display: grid; place-items: center; margin: 0 auto 12px; padding: 8px; border-radius: 10px; background: #fff; }
.wallet-picker-qr-box img { display: block; width: 184px; height: 184px; }
.wallet-picker-uri { display: block; max-height: 56px; overflow: auto; margin: 0 auto 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-4); font: 9px/1.35 var(--mono); text-align: left; word-break: break-all; }
