/* Aethelix Forensics V2: restrained institutional surfaces and Brief sharing. */
:root {
  --fx-bg: var(--web-bg, #000000);
  --fx-surface: var(--web-panel, #111113);
  --fx-surface-2: var(--web-panel, #0D0E11);
  --fx-border: var(--web-line, #2C2C2E);
  --fx-border-soft: var(--web-line, #2C2C2E);
  --fx-text: var(--web-text, #f5f7fa);
  --fx-muted: #8d98a8;
  --fx-blue: #315bff;
  --fx-blue-soft: rgba(49, 91, 255, .12);
  --fx-green: #36b978;
  --fx-amber: #d39b39;
  --fx-red: #d65d63;
}

#dt2-forensics-layout {
  display: block !important;
  overflow: auto !important;
  background: var(--fx-bg) !important;
}

.uf-page {
  min-height: 100%;
  width: 100%;
  color: var(--fx-text);
  background: var(--fx-bg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.uf-page.desktop {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.uf-command {
  padding: 30px 24px;
  border-right: 1px solid var(--fx-border-soft);
  background: #090d13;
}

.uf-page.desktop .uf-command {
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.uf-command-copy > span,
.fb-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #7890ff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.uf-command h1 {
  margin: 0;
  color: var(--fx-text);
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.035em;
}

.uf-command-copy p {
  margin: 10px 0 28px;
  color: var(--fx-muted);
  font-size: 13px;
  line-height: 1.6;
}

.uf-search label {
  display: block;
  margin: 0 0 8px;
  color: #aeb7c4;
  font-size: 11px;
  font-weight: 650;
}

.uf-search > div {
  display: flex;
  min-width: 0;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: #080c12;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.uf-search > div:focus-within {
  border-color: rgba(79, 113, 255, .72);
  box-shadow: 0 0 0 3px rgba(49, 91, 255, .09);
}

.uf-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 10px 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fx-text);
  font: 500 11px/1.3 "JetBrains Mono", ui-monospace, monospace;
}

.uf-search input[aria-invalid="true"] { color: #f08a8e; }
.uf-search > div button {
  margin: 6px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--fx-border-soft);
  background: transparent;
  color: var(--fx-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.uf-search > button {
  width: 100%;
  height: 45px;
  margin-top: 10px;
  border: 1px solid #466bff;
  border-radius: 12px;
  background: var(--fx-blue);
  color: var(--web-text, #fff);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 42, 130, .24);
}

.uf-command-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #6f7a89;
  font-size: 10px;
  line-height: 1.5;
}
.uf-command-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--fx-green); }
.uf-report { min-width: 0; padding: 26px; }
.uf-empty {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fx-border-soft);
  border-radius: 16px;
  background: var(--fx-surface);
  text-align: center;
}
.uf-empty-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(78, 109, 255, .5);
  border-radius: 13px;
  background: var(--fx-blue-soft);
  color: #8ca1ff;
  font-size: 18px;
  font-weight: 800;
}
.uf-empty h2 { margin: 20px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.uf-empty p { max-width: 520px; margin: 0; color: var(--fx-muted); font-size: 13px; line-height: 1.65; }
.uf-empty > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.uf-empty > div:last-child span { padding: 7px 10px; border: 1px solid var(--fx-border-soft); border-radius: 8px; color: #93a0b1; font-size: 10px; }

/* Shared report: quiet hierarchy, semantic color only where evidence needs it. */
.chart-forensics-card,
.chart-forensics-card.mobile,
.chart-forensics-card.desktop {
  margin: 0;
  border: 1px solid var(--fx-border-soft) !important;
  border-radius: 16px !important;
  background: var(--fx-surface) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24) !important;
  backdrop-filter: none !important;
}
.cf-head { padding: 20px 22px !important; border-bottom: 1px solid var(--fx-border-soft) !important; background: #0d1219 !important; }
.cf-icon { border: 1px solid rgba(81, 111, 255, .4) !important; border-radius: 10px !important; background: var(--fx-blue-soft) !important; color: #8298ff !important; box-shadow: none !important; }
.cf-title { color: var(--fx-text) !important; font-size: 17px !important; font-weight: 760 !important; letter-spacing: -.025em !important; text-transform: none !important; }
.cf-sub, .cf-status, .cf-limit { color: var(--fx-muted) !important; }
.cf-status { padding: 11px 22px !important; border-bottom: 1px solid var(--fx-border-soft) !important; background: #0a0f16 !important; }
.cf-actions { gap: 8px !important; }
.cf-actions button { min-height: 38px; border-radius: 10px !important; box-shadow: none !important; font-size: 11px !important; letter-spacing: 0 !important; text-transform: none !important; }
.cf-share-btn {
  padding: 0 15px;
  border: 1px solid rgba(91, 119, 255, .5);
  background: var(--fx-blue-soft);
  color: #aab8ff;
  font-weight: 750;
  cursor: pointer;
}
.cf-share-btn:disabled { opacity: .55; cursor: wait; }
.cf-analyze-btn { border: 1px solid #486eff !important; background: var(--fx-blue) !important; color: var(--web-text, #fff) !important; }
.cf-cancel-btn { border-color: var(--fx-border) !important; background: transparent !important; color: var(--fx-muted) !important; }
.cf-body { padding: 20px !important; }
.cf-score-grid { gap: 10px !important; margin-bottom: 12px !important; }
.cf-score-card, .cf-metric, .cf-panel, .cf-supply-panel {
  border: 1px solid var(--fx-border-soft) !important;
  border-radius: 12px !important;
  background: var(--fx-surface-2) !important;
  box-shadow: none !important;
}
.cf-score-card { border-left: 3px solid var(--fx-blue) !important; }
.cf-score-card b, .cf-metric b { color: var(--fx-text) !important; }
.cf-score-card b { font-size: 38px !important; font-weight: 760 !important; letter-spacing: -.045em; }
.cf-score-card span, .cf-metric span, .cf-panel-title { color: #8995a6 !important; letter-spacing: .055em !important; }
.cf-panel-title { font-size: 10px !important; }
.cf-main-grid { gap: 10px !important; }
.cf-top-tiles b { color: var(--fx-text) !important; }
.cf-supply-stack, .cf-supply-legend i { filter: saturate(.62); }
.cf-kv, .cf-score-part, .cf-holder-row, .cf-wallet-cluster-item { border-color: var(--fx-border-soft) !important; background: #0c1118 !important; box-shadow: none !important; }
.cf-bubble-link button { border: 1px solid #486eff !important; background: var(--fx-blue) !important; box-shadow: none !important; }

/* Desktop Forensics: the same iOS-dark materials as mobile, with wider information grids. */
body.desktop-mode #dt2-forensics-layout {
  padding: 0 !important;
  background: var(--web-bg, #000) !important;
}
body.desktop-mode .uf-page.desktop {
  display: block;
  min-height: 100%;
  padding: 20px 22px 42px;
  background: var(--web-bg, #000);
}
body.desktop-mode .uf-desktop-command,
body.desktop-mode .uf-desktop-status,
body.desktop-mode .uf-desktop-report {
  width: min(1500px, 100%);
  margin-inline: auto;
}
body.desktop-mode .uf-desktop-command {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(540px, 1.35fr);
  align-items: center;
  gap: 34px;
  padding: 22px 24px;
  border: 1px solid var(--web-line, #2C2C2E);
  border-radius: 20px 20px 0 0;
  background: var(--web-panel, #111113);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
}
body.desktop-mode .uf-desktop-command-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
}
body.desktop-mode .uf-desktop-command-copy .cf-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
}
body.desktop-mode .uf-desktop-command-copy .cf-icon svg { width: 21px; height: 21px; }
body.desktop-mode .uf-desktop-command-copy > div > span {
  display: block;
  margin: 1px 0 6px;
  color: #8094ff;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .15em;
}
body.desktop-mode .uf-desktop-command-copy h1 {
  margin: 0;
  color: var(--web-text, #f5f7fa);
  font-size: 24px;
  font-weight: 770;
  letter-spacing: -.035em;
}
body.desktop-mode .uf-desktop-command-copy p {
  margin: 7px 0 0;
  color: #8d98a8;
  font-size: 12px;
  line-height: 1.5;
}
body.desktop-mode .uf-desktop-search { min-width: 0; }
body.desktop-mode .uf-desktop-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
body.desktop-mode .uf-desktop-search-meta label {
  color: #aeb7c4;
  font-size: 10px;
  font-weight: 680;
}
body.desktop-mode .uf-desktop-search-meta .cf-limit {
  color: #aeb7c4 !important;
  font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace;
}
body.desktop-mode .uf-desktop-control-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 9px;
}
body.desktop-mode .uf-desktop-address {
  display: flex;
  min-width: 220px;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--web-line, #2C2C2E);
  border-radius: 13px;
  background: var(--web-panel, #0D0E11);
  transition: border-color .16s ease, box-shadow .16s ease;
}
body.desktop-mode .uf-desktop-address:focus-within {
  border-color: rgba(81,111,255,.72);
  box-shadow: 0 0 0 3px rgba(49,91,255,.1);
}
body.desktop-mode .uf-desktop-address input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--web-text, #f5f7fa);
  font: 540 11px/1.3 "JetBrains Mono", ui-monospace, monospace;
}
body.desktop-mode .uf-desktop-address input[aria-invalid="true"] { color: #e8888c; }
body.desktop-mode .uf-desktop-address button {
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--web-line, #2C2C2E);
  background: transparent;
  color: #9aa6b5;
  cursor: pointer;
}
body.desktop-mode .uf-desktop-address button svg { width: 19px; height: 19px; }
body.desktop-mode .uf-desktop-control-row > button {
  min-height: 48px;
  padding-inline: 19px;
  border-radius: 13px !important;
  white-space: nowrap;
}
body.desktop-mode .uf-desktop-control-row .cf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
body.desktop-mode .uf-desktop-control-row .cf-share-btn svg { width: 18px; height: 18px; }
body.desktop-mode .uf-desktop-status {
  margin-top: -1px;
  padding: 12px 18px !important;
  border: 1px solid var(--web-line, #2C2C2E) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px;
  background: var(--web-panel, #0D0E11) !important;
  color: #7f8b9b !important;
}
body.desktop-mode .uf-desktop-report { padding-top: 16px; }
body.desktop-mode .uf-desktop-report > .cf-body {
  padding: 0 !important;
  background: var(--web-bg, #000) !important;
}
body.desktop-mode .uf-desktop-report .cf-empty {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--web-line, #2C2C2E);
  border-radius: 16px;
  background: var(--web-panel, #111113);
}

body.desktop-mode .chart-forensics-card.desktop {
  overflow: hidden;
  border-color: var(--web-line, #2C2C2E) !important;
  border-radius: 20px !important;
  background: var(--web-panel, #111113) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.28) !important;
}
body.desktop-mode .chart-forensics-card.desktop .cf-head {
  min-height: 84px;
  padding: 18px 20px !important;
  border-color: var(--web-line, #2C2C2E) !important;
  background: var(--web-panel, #111113) !important;
}
body.desktop-mode .chart-forensics-card.desktop .cf-title-wrap { gap: 13px; }
body.desktop-mode .chart-forensics-card.desktop .cf-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
}
body.desktop-mode .chart-forensics-card.desktop .cf-sub { margin-top: 4px; font-size: 10px; }
body.desktop-mode .chart-forensics-card.desktop .cf-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px !important;
}
body.desktop-mode .chart-forensics-card.desktop .cf-action-buttons { display: flex; gap: 8px; }
body.desktop-mode .chart-forensics-card.desktop .cf-limit {
  font: 700 9px/1 "JetBrains Mono", ui-monospace, monospace;
}
body.desktop-mode .chart-forensics-card.desktop .cf-status {
  padding: 10px 20px !important;
  border-color: var(--web-line, #2C2C2E) !important;
  background: var(--web-panel, #0D0E11) !important;
  font-size: 10px;
}
body.desktop-mode .chart-forensics-card.desktop > .cf-body {
  padding: 18px !important;
  background: var(--web-bg, #000) !important;
}
body.desktop-mode .chart-forensics-card.desktop .cf-empty {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--web-line, #2C2C2E);
  border-radius: 14px;
  background: var(--web-panel, #111113);
}

body.desktop-mode .cf-token-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--web-line, #2C2C2E);
  border-radius: 16px;
  background: var(--web-panel, #111113);
}
body.desktop-mode .cf-token-summary .mf-token-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-color: var(--web-line, #2C2C2E);
  background: var(--web-panel, #0D0E11);
}
body.desktop-mode .cf-token-summary-copy { min-width: 0; }
body.desktop-mode .cf-token-summary-copy > span,
body.desktop-mode .cf-token-summary-score > span {
  display: block;
  color: #748092;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.desktop-mode .cf-token-summary-copy h2 {
  overflow: hidden;
  margin: 5px 0 0;
  color: #f3f5f8;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.desktop-mode .cf-token-summary-copy p {
  margin: 4px 0 0;
  color: #8d98a8;
  font: 650 10px "JetBrains Mono", ui-monospace, monospace;
}
body.desktop-mode .cf-token-summary-copy p i { margin-inline: 4px; color: #566170; font-style: normal; }
body.desktop-mode .cf-token-summary-score { min-width: 120px; text-align: right; }
body.desktop-mode .cf-token-summary-score strong {
  display: block;
  margin-top: 4px;
  font: 750 28px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -.05em;
}
body.desktop-mode .cf-token-summary-score strong small { color: #66717f; font-size: 11px; letter-spacing: 0; }
body.desktop-mode .cf-token-summary-score b { display: block; margin-top: 5px; color: #aeb7c4; font-size: 8px; letter-spacing: .08em; }

body.desktop-mode .cf-score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px !important; }
body.desktop-mode .cf-metric,
body.desktop-mode .cf-panel,
body.desktop-mode .cf-supply-panel {
  border-color: var(--web-line, #2C2C2E) !important;
  background: var(--web-panel, #111113) !important;
  box-shadow: none !important;
}
body.desktop-mode .cf-metric { min-height: 88px; padding: 15px !important; border-radius: 14px !important; }
body.desktop-mode .cf-metric b { overflow: hidden; color: #f0f3f7 !important; text-overflow: ellipsis; white-space: nowrap; text-shadow: none !important; }
body.desktop-mode .cf-primary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.desktop-mode .cf-primary-grid > .cf-supply-panel,
body.desktop-mode .cf-primary-grid > .cf-panel { min-width: 0; margin-bottom: 12px !important; }
body.desktop-mode .cf-top-tiles > div,
body.desktop-mode .cf-kv,
body.desktop-mode .cf-score-part,
body.desktop-mode .cf-holder-row,
body.desktop-mode .cf-wallet-cluster-item,
body.desktop-mode .cf-audit-matrix,
body.desktop-mode .cf-security-badge,
body.desktop-mode .cf-market-wallet-row,
body.desktop-mode .cf-mini-row,
body.desktop-mode .cf-sell-event {
  border-color: var(--web-line, #2C2C2E) !important;
  background: var(--web-panel, #0D0E11) !important;
  box-shadow: none !important;
}
body.desktop-mode #dtcf-card .cf-primary-grid,
body.desktop-mode #dtcf-card .cf-main-grid { grid-template-columns: minmax(0, 1fr); }
body.desktop-mode #dtcf-card .cf-holder-list { max-height: 520px; overflow-y: auto; }
body.desktop-mode .cf-loading { min-height: 104px; padding: 18px; border: 1px solid var(--web-line, #2C2C2E); border-radius: 14px; background: var(--web-panel, #111113); }
body.desktop-mode .cf-error { min-height: 96px; padding: 24px; border: 1px solid rgba(214,93,99,.35); border-radius: 14px; background: rgba(214,93,99,.08); color: #e4a0a3; }

@media (max-width: 1220px) {
  body.desktop-mode .uf-desktop-command { grid-template-columns: 1fr; gap: 20px; }
  body.desktop-mode .uf-desktop-report .cf-primary-grid,
  body.desktop-mode .uf-desktop-report .cf-main-grid { grid-template-columns: 1fr; }
}

/* Mobile standalone Forensics: one command surface and a flat research hierarchy. */
body:not(.desktop-mode) #view-analyzer {
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
  padding: 0 !important;
}
.mobile-forensics-surface { width: 100%; margin-top: 30px; }
.mf-page {
  --mf-card: var(--web-panel, #111113);
  --mf-inner: var(--web-panel, #0D0E11);
  --mf-divider: var(--web-line, #2C2C2E);
  min-height: 100%;
  width: 100%;
  max-width: none;
  padding: 12px 12px calc(126px + env(safe-area-inset-bottom));
  background: var(--web-bg, #000);
}
.mf-page.embedded { min-height: 0; padding: 0 12px; }
.mf-page.embedded .mf-search { margin-top: 18px; }
.mf-command-card {
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--mf-divider);
  border-radius: 20px;
  background: var(--mf-card);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.mf-command-title { display: flex; align-items: flex-start; gap: 13px; }
.mf-command-title .mf-header-quota { flex: 0 0 auto; margin: 5px 0 0 auto; }
.mf-command-title .cf-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; }
.mf-command-title .cf-icon svg { width: 19px; height: 19px; }
.mf-command-title > div > span { display: block; margin: 1px 0 5px; color: #8094ff; font-size: 9px; font-weight: 760; letter-spacing: .15em; }
.mf-command-title h1 { margin: 0; color: var(--fx-text); font-size: 22px; font-weight: 760; letter-spacing: -.035em; }
.mf-command-title p { margin: 6px 0 0; color: var(--fx-muted); font-size: 12px; line-height: 1.5; }
.mf-search { margin-top: 21px; }
.mf-search-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mf-search label { display: block; color: #aeb7c4; font-size: 10px; font-weight: 680; }
.mf-quota { min-width: 38px; color: #aeb7c4; font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace; text-align: right; }
.mf-address-field {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mf-divider);
  border-radius: 13px;
  background: var(--mf-inner);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mf-address-field:focus-within { border-color: rgba(81,111,255,.72); box-shadow: 0 0 0 3px rgba(49,91,255,.1); }
.mf-search input { min-width: 0; width: 100%; height: 48px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--fx-text); font: 530 11px/1.3 "JetBrains Mono", ui-monospace, monospace; }
.mf-search input[aria-invalid="true"] { color: #e8888c; }
.mf-address-field > button { display: grid; width: 46px; flex: 0 0 46px; place-items: center; border: 0; border-left: 1px solid var(--mf-divider); background: transparent; color: #9aa6b5; cursor: pointer; }
.mf-address-field > button svg { width: 19px; height: 19px; }
.mf-action-row { display: flex; gap: 9px; margin-top: 10px; }
.mf-run-button, .mf-share-button, .mf-cancel-button { height: 48px; border-radius: 13px; font-size: 12px; font-weight: 760; cursor: pointer; }
.mf-run-button { min-width: 0; flex: 1; border: 1px solid #496dff; background: #315bff; color: var(--web-text, #fff); box-shadow: 0 10px 26px rgba(25,49,151,.24); }
.mf-run-button:disabled { border-color: rgba(255,255,255,.08); background: #303641; color: #929ba8; box-shadow: none; cursor: wait; }
.mf-share-button { display: grid; width: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(105,130,255,.45); background: rgba(49,91,255,.12); color: #a8b7ff; }
.mf-share-button svg { width: 20px; height: 20px; }
.mf-cancel-button { padding: 0 16px; border: 1px solid rgba(255,255,255,.09); background: transparent; color: #a3adba; }
.mf-share-button.hidden, .mf-cancel-button.hidden { display: none !important; }
.mf-progress { display: flex; min-height: 41px; align-items: flex-start; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mf-divider); color: #929dac; }
.mf-progress > i { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: currentColor; }
.mf-progress > div { min-width: 0; }
.mf-progress b, .mf-progress span, .mf-progress small { display: block; }
.mf-progress b { color: currentColor; font-size: 10px; font-weight: 680; }
.mf-progress span { margin-top: 3px; color: #687485; font-size: 9px; line-height: 1.45; }
.mf-progress small { margin-top: 4px; color: #596575; font-size: 8px; font-weight: 560; }
.mf-progress.scanning { color: #9ca6b3; }
.mf-progress.scanning > i { border: 1.5px solid rgba(255,255,255,.18); border-top-color: #9ca6b3; background: transparent; animation: mf-spin .8s linear infinite; }
.mf-progress.complete { color: #63c895; }
.mf-progress.error { color: #d8787d; }
.mf-progress.muted { color: #7d8897; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
.mf-report { min-width: 0; width: 100%; padding: 26px 0 0; }
.mf-report.is-empty { display: none; padding: 0; }
.mf-empty { display: flex; min-height: 270px; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.mf-empty-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(81,111,255,.36); border-radius: 14px; background: rgba(49,91,255,.09); color: #91a3ff; font-size: 16px; font-weight: 800; }
.mf-empty h2 { margin: 17px 0 8px; color: var(--fx-text); font-size: 18px; letter-spacing: -.03em; }
.mf-empty p { max-width: 340px; margin: 0; color: #758091; font-size: 11px; line-height: 1.65; }
.mf-scan-placeholder { display: flex; min-height: 260px; align-items: center; justify-content: center; gap: 10px; color: #8f99a7; font-size: 11px; }
.mf-scan-placeholder i { width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.14); border-top-color: #8f99a7; border-radius: 50%; animation: mf-spin .8s linear infinite; }
.mf-error { display: flex; min-height: 240px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.mf-error b { color: #e4a0a3; font-size: 15px; }
.mf-error span { max-width: 330px; margin-top: 8px; color: #7c8796; font-size: 11px; line-height: 1.55; }
.mf-results { color: var(--fx-text); }
.mf-token-identity { display: flex; align-items: center; gap: 13px; padding: 0 2px 22px; border-bottom: 1px solid var(--mf-divider); }
.mf-token-avatar { position: relative; display: grid; width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; place-items: center; border: 1px solid var(--mf-divider); border-radius: 50%; background: var(--mf-card); color: #a8b6c8; font-size: 15px; font-weight: 780; }
.mf-token-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--mf-card); }
.mf-token-identity h2 { margin: 0; font-size: 21px; font-weight: 760; letter-spacing: -.035em; }
.mf-token-identity p { margin: 5px 0 0; color: #8d98a8; font-size: 11px; font-weight: 630; }
.mf-token-identity p span { margin: 0 3px; color: #4f5967; }
.mf-safety { padding: 27px 2px 24px; }
.mf-safety > span { color: #7f8b9b; font-size: 9px; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.mf-safety > div { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.mf-safety strong { font-size: 54px; font-weight: 740; line-height: 1; letter-spacing: -.06em; }
.mf-safety em { color: #66717f; font-size: 15px; font-style: normal; }
.mf-safety b { margin-left: 5px; color: #aeb7c4; font-size: 11px; letter-spacing: .07em; }
.mf-safety p { margin: 8px 0 0; color: #687485; font-size: 9px; }
.mf-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.mf-metric-grid > div { min-width: 0; min-height: 88px; padding: 13px 11px; border: 1px solid var(--mf-divider); border-radius: 14px; background: var(--mf-card); box-shadow: none; }
.mf-metric-grid span, .mf-metric-grid b, .mf-metric-grid small { display: block; }
.mf-metric-grid span { min-height: 24px; color: #748092; font-size: 8px; font-weight: 720; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
.mf-metric-grid b { margin-top: 8px; overflow: hidden; color: #f0f3f7; font-size: 14px; font-weight: 720; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.mf-metric-grid small { margin-top: 4px; overflow: hidden; color: #707b8a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mf-primary-section { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--mf-divider); }
.mf-primary-section > .cf-supply-panel, .mf-primary-section > .cf-panel { margin: 0 !important; padding: 23px 0 0 !important; border: 0 !important; background: transparent !important; }
.mf-primary-section .cf-panel-title { color: #b6bfca !important; font-size: 10px !important; letter-spacing: .09em !important; }
.mf-primary-section .cf-top-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
.mf-primary-section .cf-top-tiles > div { border: 1px solid var(--mf-divider) !important; background: var(--mf-card) !important; box-shadow: none !important; }
.mf-primary-section .cf-weight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
.mf-primary-section .cf-weight { min-width: 0; padding: 12px 11px !important; border: 1px solid var(--mf-divider); background: var(--mf-card); box-shadow: none; }
.mf-primary-section .cf-weight:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mf-secondary-sections { margin-top: 30px; border-top: 1px solid var(--mf-divider); }
.mf-disclosure { border-bottom: 1px solid var(--mf-divider); }
.mf-disclosure > summary { display: flex; min-height: 55px; align-items: center; justify-content: space-between; color: #dce2e9; font-size: 11px; font-weight: 700; list-style: none; cursor: pointer; }
.mf-disclosure > summary::-webkit-details-marker { display: none; }
.mf-disclosure > summary svg { width: 18px; height: 18px; color: #657181; transition: transform .18s ease; }
.mf-disclosure[open] > summary svg { transform: rotate(180deg); }
.mf-disclosure-body { padding: 0 0 20px; }
.mf-disclosure-body > .cf-panel { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.mf-disclosure-body > .cf-panel > .cf-panel-title { display: none; }
.mf-disclosure-body .cf-kv { border: 1px solid var(--mf-divider) !important; background: var(--mf-card) !important; box-shadow: none !important; }
.mf-disclosure-body .cf-holder-list, .mf-disclosure-body .cf-sell-map { overflow-x: hidden; }
.mf-results .cf-holder-list { max-height: none; padding: 0; overflow-y: visible; }
.mf-results .cf-holder-row { grid-template-columns: 26px minmax(0, 1fr) 58px !important; grid-template-areas: "rank id pct" ". amount usd" ". bar bar" !important; gap: 7px 8px; margin-bottom: 8px; padding: 11px 10px; border: 1px solid var(--mf-divider) !important; border-radius: 13px; background: var(--mf-card) !important; box-shadow: none !important; }
.mf-results .cf-holder-row > span { grid-area: rank; }
.mf-results .cf-holder-id { grid-area: id; }
.mf-results .cf-holder-amount { grid-area: amount; text-align: left; }
.mf-results .cf-holder-row > strong { grid-area: pct; }
.mf-results .cf-holder-row > div:nth-child(5) { grid-area: bar; }
.mf-results .cf-holder-usd { grid-area: usd; text-align: right; }
.mf-results .cf-audit-matrix,
.mf-results .cf-security-badge,
.mf-results .cf-market-wallet-row,
.mf-results .cf-mini-row,
.mf-results .cf-sell-event,
.mf-results .cf-wallet-cluster-item { border-color: var(--mf-divider) !important; background: var(--mf-inner) !important; box-shadow: none !important; }
.mf-results .cf-network-panel { border: 1px solid var(--mf-divider); background: var(--mf-inner); box-shadow: none; }
.mf-search input { scroll-margin-block: 90px; }
body.kb-open .mf-page { padding-bottom: 24px; }
.mf-bubble-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.09); }
.mf-bubble-action b, .mf-bubble-action span { display: block; }
.mf-bubble-action b { font-size: 11px; }
.mf-bubble-action span { margin-top: 4px; color: #747f8f; font-size: 9px; }
.mf-bubble-action button { min-height: 38px; flex: 0 0 auto; padding: 0 14px; border: 1px solid rgba(85,113,255,.45); border-radius: 10px; background: rgba(49,91,255,.12); color: #adbbff; font-size: 10px; font-weight: 720; }

/* Share Brief sheet */
.fb-modal { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 24px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.fb-modal-backdrop { position: absolute; inset: 0; background: rgba(1, 3, 7, .8); backdrop-filter: blur(10px); }
.fb-modal-sheet { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid #263143; border-radius: 18px; background: #0b1017; color: var(--fx-text); box-shadow: 0 32px 100px rgba(0, 0, 0, .6); }
.fb-modal-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.fb-modal-sheet h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.fb-modal-sheet header p { margin: 7px 0 0; color: var(--fx-muted); font-size: 12px; line-height: 1.55; }
.fb-close { width: 34px; height: 34px; border: 1px solid var(--fx-border); border-radius: 9px; background: #111722; color: #a6afbc; font-size: 22px; cursor: pointer; }
.fb-modal-preview { padding: 14px; border: 1px solid var(--fx-border-soft); border-radius: 15px; background: #06090e; }
.fb-preview-card { position: relative; overflow: hidden; min-height: 350px; padding: 28px; border: 1px solid #263143; border-radius: 13px; background: radial-gradient(circle at 90% 0, rgba(49, 91, 255, .14), transparent 42%), #090d13; }
.fb-preview-top, .fb-preview-foot, .fb-preview-token, .fb-preview-score { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fb-preview-top { color: #8591a2; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.fb-preview-token-row { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.fb-preview-token-row .fb-token-avatar { width: 44px; height: 44px; flex-basis: 44px; }
.fb-preview-token { align-items: flex-start; flex-direction: column; gap: 2px; }
.fb-preview-token b { font-size: 24px; letter-spacing: -.035em; }
.fb-preview-token span { color: var(--fx-muted); font-size: 11px; }
.fb-preview-finding { max-width: 640px; margin-top: 25px; color: var(--fx-text); font-size: 25px; font-weight: 780; letter-spacing: -.035em; line-height: 1.1; text-transform: uppercase; }
.fb-preview-card > p { margin: 8px 0 20px; color: #a3adba; font-size: 12px; }
.fb-preview-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-preview-facts > div { padding: 11px; border: 1px solid var(--fx-border-soft); border-radius: 9px; background: #0d131c; }
.fb-preview-facts b, .fb-preview-facts span { display: block; }
.fb-preview-facts b { font-size: 17px; }
.fb-preview-facts span { margin-top: 4px; color: var(--fx-muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fb-preview-score { justify-content: flex-start; margin-top: 18px; color: var(--fx-muted); font-size: 10px; }
.fb-preview-score b { color: var(--fx-text); font-size: 15px; }
.fb-preview-score em { color: #8ca1ff; font-style: normal; font-weight: 700; }
.fb-preview-foot { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--fx-border-soft); color: #7f8b9b; font-size: 9px; }
.fb-preview-foot strong { color: #d4daE4; font-weight: 650; }
.fb-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.fb-share-grid button, .fb-download-row button { min-height: 43px; border: 1px solid var(--fx-border); border-radius: 10px; background: #111722; color: #dce2ea; font-size: 11px; font-weight: 720; cursor: pointer; }
.fb-share-grid button.primary { border-color: #486eff; background: var(--fx-blue); color: var(--web-text, #fff); }
.fb-download-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fb-download-row button { background: transparent; color: var(--fx-muted); }
.fb-disclaimer { margin: 14px 0 0; color: #667180; font-size: 9px; text-align: center; }

@media (max-width: 760px) {
  .uf-page.mobile { padding-bottom: 112px; }
  .uf-page.mobile.mf-page { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
  .uf-page.mobile.mf-page.embedded { padding: 0 12px; }
  .uf-command { padding: 22px 18px 18px; border-right: 0; border-bottom: 1px solid var(--fx-border-soft); }
  .uf-command-copy p { margin-bottom: 18px; }
  .uf-report { padding: 14px; }
  .uf-empty { min-height: 320px; padding: 34px 20px; }
  body:not(.desktop-mode) .uf-report .chart-forensics-card.mobile { width: 100% !important; margin: 0 !important; }
  body:not(.desktop-mode) .cf-head, body:not(.desktop-mode) .cf-actions { align-items: stretch !important; }
  body:not(.desktop-mode) .cf-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
  body:not(.desktop-mode) .cf-limit { grid-column: 1 / -1; }
  .fb-modal { align-items: end; padding: 0; }
  .fb-modal-sheet { width: 100%; max-height: 92vh; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 20px 20px 0 0; }
  .fb-preview-card { min-height: 330px; padding: 22px 18px; }
  .fb-preview-finding { font-size: 21px; }
  .fb-preview-facts { gap: 5px; }
  .fb-preview-facts > div { padding: 9px 7px; }
  .fb-preview-facts b { font-size: 14px; }
  .fb-share-grid { grid-template-columns: repeat(2, 1fr); }
}
