:root {
  --bg: #020816;
  --panel: #07152c;
  --panel-2: #0a1c38;
  --line: #16365f;
  --text: #f4f8ff;
  --muted: #8ba4c7;
  --green: #23d6ff;
  --green-soft: rgba(35, 214, 255, 0.10);
  --yellow: #f6c65b;
  --red: #ff6b6b;
  --blue: #5aa7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 50% -100px, rgba(20, 128, 255, 0.14), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .025; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.05); }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .17em; display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 38px; background: var(--green); color: #031225; clip-path: polygon(50% 0, 96% 15%, 89% 72%, 50% 100%, 11% 72%, 4% 15%); font-weight: 950; letter-spacing: 0; }
.network-pill { border: 1px solid var(--line); background: rgba(10,17,14,.8); padding: 9px 12px; border-radius: 999px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #a8b8b0; letter-spacing: .08em; display: flex; gap: 8px; align-items: center; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(35,214,255,.08); }
.hero { padding: 105px 0 90px; }
.eyebrow { color: var(--green); font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
h1 { max-width: 900px; margin: 18px 0 20px; font-size: clamp(46px, 7vw, 82px); line-height: .99; letter-spacing: -.055em; font-weight: 770; }
h1 span { color: #a7b3ad; }
.hero > p { max-width: 700px; color: #8d9d95; font-size: 18px; line-height: 1.65; margin-bottom: 34px; }
.scan-box { max-width: 900px; display: flex; padding: 7px; border: 1px solid #1b4778; border-radius: 14px; background: #06142b; box-shadow: 0 22px 80px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.02); }
.scan-box:focus-within { border-color: #1c87d9; box-shadow: 0 0 0 4px rgba(35,214,255,.05); }
.scan-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 15px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.scan-box input::placeholder { color: #526159; }
.scan-box button { border: 0; border-radius: 9px; background: var(--green); color: #031225; padding: 0 22px; min-height: 49px; font-weight: 850; font-size: 12px; letter-spacing: .06em; display: flex; gap: 18px; align-items: center; }
.scan-box button:hover { filter: brightness(1.05); }
.scan-box button:disabled { opacity: .65; cursor: progress; }
.quick-example { margin-top: 12px; color: #637fa4; font-size: 12px; }
.quick-example button { border: 0; padding: 0; color: #84998d; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: underline; text-decoration-color: #265987; text-underline-offset: 3px; }
.error { max-width: 900px; margin-top: 18px; padding: 15px 17px; border: 1px solid rgba(255,107,107,.25); border-radius: 10px; color: #ffb1b1; background: rgba(255,107,107,.06); line-height: 1.5; font-size: 14px; }
.loading-card { position: relative; overflow: hidden; margin: -25px 0 70px; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 18px; }
.loading-card[hidden] { display: none; }
.loading-icon { width: 42px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; clip-path: polygon(50% 0, 96% 15%, 89% 72%, 50% 100%, 11% 72%, 4% 15%); background: var(--green); color: #031225; font-weight: 900; }
.loading-card strong, .loading-card span { display: block; }
.loading-card span { color: var(--muted); margin-top: 5px; font-size: 13px; }
.scanner-line { position: absolute; top: 0; left: -40%; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); animation: scan 1.4s linear infinite; }
@keyframes scan { to { left: 100%; } }
.result { padding-bottom: 80px; scroll-margin-top: 25px; }
.result[hidden] { display: none; }
.passport-header { padding: 32px 0 26px; border-top: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; }
h2 { font-size: 32px; letter-spacing: -.03em; margin: 10px 0 8px; }
.address { color: #7189a8; margin: 0; max-width: 720px; overflow-wrap: anywhere; }
.status-badge { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 12px 15px; font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; display: flex; gap: 9px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-badge.verified { color: var(--green); border-color: rgba(35,214,255,.28); background: var(--green-soft); }
.status-badge.verified .status-dot { background: var(--green); }
.status-badge.watch { color: var(--yellow); border-color: rgba(246,198,91,.28); background: rgba(246,198,91,.08); }
.status-badge.watch .status-dot { background: var(--yellow); }
.status-badge.unverified { color: #9aa79f; }
.status-badge.unverified .status-dot { background: #9aa79f; }
.data-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 15px; }
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14,24,19,.92), rgba(8,15,12,.95)); border-radius: 15px; overflow: hidden; }
.panel-title { min-height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #b7cce6; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.muted { color: #58685f; font-weight: 600; letter-spacing: 0; }
.facts { margin: 0; }
.facts > div { min-height: 53px; padding: 0 18px; border-bottom: 1px solid rgba(29,42,36,.65); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: #829abb; font-size: 13px; }
.facts dd { margin: 0; color: #e8f2ff; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.authority-cards { padding: 14px; display: grid; gap: 11px; }
.authority-card { padding: 17px; border: 1px solid var(--line); background: rgba(2,8,5,.28); border-radius: 10px; }
.authority-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9aacA2; font-size: 12px; }
.authority-head strong { font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.authority-card.revoked .authority-head strong { color: var(--green); }
.authority-card.active .authority-head strong { color: var(--yellow); }
.authority-value { margin-top: 19px; font-size: 13px; color: #e3efff; overflow-wrap: anywhere; }
.authority-card p { color: #617b9d; margin: 6px 0 0; font-size: 11px; }
.findings-panel { margin-top: 15px; }
.findings { display: grid; }
.finding { padding: 19px; display: grid; grid-template-columns: 35px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; border: 1px solid var(--line); background: #091a34; }
.finding.pass .finding-icon { color: var(--green); border-color: rgba(35,214,255,.24); background: var(--green-soft); }
.finding.watch .finding-icon { color: var(--yellow); border-color: rgba(246,198,91,.25); background: rgba(246,198,91,.07); }
.finding.info .finding-icon { color: var(--blue); border-color: rgba(128,191,255,.22); background: rgba(128,191,255,.06); }
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.finding-top strong { font-size: 14px; }
.rule-id { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #53635a; }
.finding-value { margin-top: 7px; color: #9bb2cf; font-size: 12px; overflow-wrap: anywhere; }
.finding p { margin: 7px 0 0; color: #7189a8; font-size: 12px; line-height: 1.55; }
#extensions-panel { margin-top: 15px; }
.extensions { padding: 14px; display: grid; gap: 8px; }
.extension { border: 1px solid var(--line); border-radius: 9px; background: rgba(2,8,5,.28); }
.extension summary { padding: 13px 15px; color: #c5d8ed; font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.extension pre { margin: 0; border-top: 1px solid var(--line); padding: 15px; overflow-x: auto; color: #8aa3c3; font-size: 11px; line-height: 1.55; }
.empty-state { color: #677970; padding: 13px; font-size: 13px; }
.disclaimer { margin-top: 14px; padding: 16px 18px; border: 1px dashed #24362d; border-radius: 10px; color: #65776d; font-size: 11px; line-height: 1.6; }
.footer { min-height: 85px; border-top: 1px solid rgba(255,255,255,.05); color: #526f95; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 650 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1120px); }
  .nav { height: 68px; }
  .network-pill { padding: 8px 9px; font-size: 9px; }
  .hero { padding: 70px 0 62px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero > p { font-size: 16px; }
  .scan-box { display: grid; }
  .scan-box button { justify-content: space-between; padding: 0 16px; }
  .passport-header { align-items: flex-start; flex-direction: column; }
  .data-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; justify-content: center; }
  .panel-title { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 11px; padding-bottom: 11px; }
}

/* Chain Guard dashboard additions */
.token-heading-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.token-image { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: var(--panel); }
h2 small { color: #829abb; font-size: .48em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-left: 7px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.metric-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: linear-gradient(180deg, rgba(14,24,19,.92), rgba(8,15,12,.95)); }
.metric-card > span { display: block; color: #7893b5; font: 760 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.metric-card strong { display: block; margin-top: 10px; font-size: clamp(19px, 2.2vw, 29px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric-card small { display: block; margin-top: 7px; color: #5e789b; font-size: 10px; line-height: 1.4; }
.lower-grid { margin-top: 15px; grid-template-columns: 1fr 1fr; }
.detail-box { min-height: 100%; }
.detail-row { min-height: 52px; padding: 10px 17px; border-bottom: 1px solid rgba(29,42,36,.65); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.detail-row span { color: #829abb; font-size: 12px; flex: 0 0 38%; }
.detail-row strong { color: #d3e0d9; font-size: 12px; font-weight: 670; overflow-wrap: anywhere; }
.align-right { text-align: right; max-width: 62%; }
.detail-actions { padding: 13px 17px; display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid rgba(29,42,36,.65); }
.external-link { color: var(--green); text-decoration: none; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.external-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.inline-warning { margin: 14px; padding: 12px; border: 1px solid rgba(246,198,91,.18); border-radius: 9px; background: rgba(246,198,91,.04); color: #9b8a60; font-size: 10px; line-height: 1.55; }
.holders-panel { margin-top: 15px; }
.holder-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.holder-summary > div { padding: 17px; border-right: 1px solid var(--line); }
.holder-summary > div:last-child { border-right: 0; }
.holder-summary span, .holder-summary strong { display: block; }
.holder-summary span { color: #66786f; font-size: 11px; }
.holder-summary strong { margin-top: 7px; font-size: 22px; letter-spacing: -.03em; }
.holder-list { display: grid; }
.holder-row { min-height: 49px; padding: 8px 17px; display: grid; grid-template-columns: 38px minmax(170px, 1fr) minmax(80px, 1.7fr) 74px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(29,42,36,.58); }
.holder-row:last-child { border-bottom: 0; }
.rank { color: #59769b; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.holder-address { color: #b5c9e1; text-decoration: none; font-size: 11px; }
.holder-address:hover { color: var(--green); }
.holder-bar { height: 5px; overflow: hidden; border-radius: 999px; background: #0b2446; }
.holder-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--green); opacity: .75; }
.holder-row strong { text-align: right; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.panel-note { padding: 13px 17px; color: #5e789b; font-size: 10px; line-height: 1.55; border-top: 1px solid var(--line); }
.extension summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.extension p { color: #7189a8; margin: 0; padding: 0 15px 13px; font-size: 11px; line-height: 1.5; }
.extension.watch { border-color: rgba(246,198,91,.24); }
.extension-risk { font-size: 9px; color: #6d8076; }
.extension.watch .extension-risk { color: var(--yellow); }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .token-heading-wrap { align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
  .holder-summary { grid-template-columns: 1fr; }
  .holder-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .holder-summary > div:last-child { border-bottom: 0; }
  .holder-row { grid-template-columns: 32px minmax(0, 1fr) 60px; }
  .holder-bar { grid-column: 2 / 4; width: 100%; }
}

@media (max-width: 460px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* Chain Guard public-core additions */
.category-statuses {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 15px;
}
.category-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 12, .88);
}
.category-card > span {
  display: block;
  color: #728cab;
  font: 760 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}
.category-card strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font: 780 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.category-card strong i {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-style: normal;
  border: 1px solid currentColor;
}
.category-card small {
  display: block;
  margin-top: 8px;
  color: #5e789b;
  font-size: 9px;
  line-height: 1.45;
}
.category-card.pass strong { color: var(--green); }
.category-card.watch strong { color: var(--yellow); }
.category-card.unknown strong { color: #8c9a93; }

.trading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.trade-period {
  background: #07162d;
  padding: 15px 16px;
}
.trade-period-head {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(29,42,36,.75);
}
.trade-period-head,
.trade-period > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trade-period > div:not(.trade-period-head) {
  min-height: 28px;
}
.trade-period span {
  color: #6b7c73;
  font-size: 10px;
}
.trade-period strong {
  color: #d3e0d9;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.trade-period-head > span {
  color: #9aaca2;
  font-weight: 800;
  letter-spacing: .1em;
}
.trade-period-head > strong { color: var(--green); }

.holder-summary { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1050px) {
  .category-statuses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .category-statuses { grid-template-columns: 1fr 1fr; }
  .trading-grid { grid-template-columns: 1fr; }
  .holder-summary { grid-template-columns: 1fr 1fr; }
  .holder-summary > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 460px) {
  .category-statuses { grid-template-columns: 1fr; }
  .holder-summary { grid-template-columns: 1fr; }
}

/* Chain Guard explainability layer */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mode-toggle {
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,17,14,.8);
  color: #9db0a6;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}
.mode-toggle:hover { border-color: #245d91; color: #c0d0c7; }
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35,214,255,.07); }
.advanced-mode .mode-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(128,191,255,.07); }
.beginner-mode .technical-only { display: none !important; }
.advanced-mode .beginner-only { display: none !important; }

.status-wrap { display: flex; align-items: center; gap: 8px; }
.help-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #244f7a;
  background: rgba(8,16,12,.8);
  color: #7f9388;
  display: inline-grid;
  place-items: center;
  font: 750 12px/1 ui-sans-serif, system-ui, sans-serif;
  vertical-align: middle;
  flex: 0 0 auto;
}
.help-btn:hover,
.help-btn:focus-visible { color: var(--green); border-color: rgba(35,214,255,.45); outline: none; background: rgba(35,214,255,.06); }
.help-btn.mini { width: 18px; height: 18px; font-size: 10px; margin-left: 3px; }
.status-help { width: 31px; height: 31px; }
.inline-help-link {
  width: auto;
  height: auto;
  display: inline;
  padding: 0;
  margin-left: 3px;
  border: 0;
  border-radius: 0;
  color: #72c8ff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}

.read-guide {
  margin-bottom: 15px;
  padding: 20px;
  border: 1px solid rgba(35,214,255,.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(35,214,255,.055), rgba(8,15,12,.93) 52%);
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.6fr);
  gap: 24px;
  align-items: center;
}
.guide-copy h3 { margin: 8px 0 7px; font-size: 20px; letter-spacing: -.025em; }
.guide-copy p { margin: 0; color: #8ca4c1; font-size: 12px; line-height: 1.6; max-width: 520px; }
.status-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.legend-item { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 10px; background: rgba(4,10,7,.32); }
.legend-item i { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-weight: 900; border: 1px solid currentColor; }
.legend-item span, .legend-item strong, .legend-item small { display: block; min-width: 0; }
.legend-item strong { font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.legend-item small { margin-top: 4px; color: #607168; font-size: 9px; line-height: 1.3; }
.legend-item.pass { color: var(--green); }
.legend-item.watch { color: var(--yellow); }
.legend-item.warning { color: var(--red); }
.legend-item.unknown { color: #9aa79f; }

.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label > span { color: #7893b5; font: 760 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.metric-explainer { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgba(29,42,36,.65); color: #6d8076; font-size: 10px; line-height: 1.45; }
.section-explainer { padding: 11px 17px; border-bottom: 1px solid rgba(29,42,36,.65); background: rgba(35,214,255,.025); color: #7f9abb; font-size: 11px; line-height: 1.55; }
.detail-label { display: inline-flex !important; align-items: center; gap: 2px; }
.authority-beginner { margin-top: 10px !important; color: #829abb !important; line-height: 1.5; }
.authority-beginner strong { color: #a5b9d2; font-weight: 750; }
.finding-caption { margin-top: 8px; color: #5e789b; font: 750 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.category-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.category-label > span { color: #728cab; font: 760 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.trade-period span .help-btn { margin-left: 4px; }
.holder-summary span .help-btn { margin-left: 4px; }
.extension summary > span:first-child { display: inline-flex; align-items: center; gap: 4px; }

.help-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 1px solid #244f7a;
  border-radius: 16px;
  color: var(--text);
  background: #06142b;
  box-shadow: 0 40px 120px rgba(0,0,0,.68);
}
.help-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.help-dialog-card { padding: 22px; }
.help-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.help-dialog-head h3 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.03em; }
.dialog-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #0a1c38; color: #8fa198; font-size: 23px; line-height: 1; }
.dialog-close:hover { color: var(--text); border-color: #2a6da5; }
.help-block { padding: 17px 0; border-bottom: 1px solid var(--line); }
.help-block:last-child { border-bottom: 0; padding-bottom: 0; }
.help-block > span { color: #61736a; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.help-block p { margin: 8px 0 0; color: #b3c6dc; font-size: 14px; line-height: 1.65; }
.help-block.important > span { color: var(--green); }
.help-block.important p { color: #d1e2f4; }

@media (max-width: 820px) {
  .nav-actions { gap: 7px; }
  .mode-toggle { padding: 8px; }
  .read-guide { grid-template-columns: 1fr; }
  .status-legend { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .network-pill { display: none; }
  .mode-toggle { font-size: 8px; }
  .status-legend { grid-template-columns: 1fr; }
  .read-guide { padding: 16px; }
  .help-dialog-card { padding: 17px; }
  .help-dialog-head h3 { font-size: 21px; }
  .help-block p { font-size: 13px; }
}

/* Chain Guard holder intelligence */
.holder-table-head,
.holder-row {
  grid-template-columns: 34px minmax(170px, 1.2fr) minmax(120px, .8fr) minmax(90px, .7fr) minmax(90px, 1.2fr) 72px;
}
.holder-table-head {
  min-height: 38px;
  padding: 8px 17px;
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: #52655b;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.holder-table-head > span:last-child { text-align: right; }
.holder-type {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid rgba(87,112,98,.28);
  border-radius: 999px;
  color: #adbed3;
  background: rgba(18,30,24,.68);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holder-type.type-creator { border-color: rgba(246,198,91,.35); color: #d7b95f; }
.holder-type.type-dex { border-color: rgba(98,194,143,.35); color: #69c9ff; }
.holder-type.type-program,
.holder-type.type-program-controlled { border-color: rgba(121,151,219,.32); color: #9bb1df; }
.holder-amount {
  color: #889b91;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#holder-method .help-btn { margin-left: 4px; }

@media (max-width: 900px) {
  .holder-table-head { display: none; }
  .holder-row {
    grid-template-columns: 32px minmax(0, 1fr) auto 70px;
    gap: 8px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .holder-row .holder-type { grid-column: 2; grid-row: 2; }
  .holder-row .holder-amount { grid-column: 3 / 5; grid-row: 2; text-align: right; }
  .holder-row .holder-bar { grid-column: 2 / 5; grid-row: 3; }
  .holder-row > strong { grid-column: 4; grid-row: 1; }
}

/* Chain Guard reliability polish */
.metric-card strong.temporarily-unavailable {
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1.25;
  color: #b7c2bc;
  letter-spacing: -.015em;
}
.availability-state {
  display: grid;
  gap: 6px;
}
.availability-state strong {
  color: #b9c6bf;
  font-size: 13px;
}
.availability-state span {
  color: #667a6f;
  line-height: 1.5;
}
#scan-time {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
}


/* Chain Guard security + launch disclaimer */
.public-disclaimer {
  margin: 18px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid rgba(246,198,91,.24);
  border-radius: 12px;
  background: rgba(48,39,15,.20);
  color: #a9b7b0;
  text-align: left;
}
.public-disclaimer-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246,198,91,.38);
  border-radius: 50%;
  color: #d7b95f;
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.public-disclaimer strong {
  display: block;
  color: #d7c689;
  font-size: 12px;
  letter-spacing: .02em;
}
.public-disclaimer p {
  margin: 4px 0 0;
  color: #8fa8c6;
  font-size: 12px;
  line-height: 1.55;
}
.error .error-code {
  display: block;
  margin-top: 6px;
  color: #7e9187;
  font: 700 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

/* Chain Guard site navigation */
.scanner-nav-links { display:flex; align-items:center; gap:18px; margin-left:auto; margin-right:20px; }
.scanner-nav-links a { color:#829abb; text-decoration:none; font-size:11px; font-weight:700; }
.scanner-nav-links a:hover, .scanner-nav-links a.active { color:#dbe8e1; }
.scanner-beta-chip { margin-left:2px; padding:5px 7px; border:1px solid rgba(35,214,255,.22); border-radius:999px; color:var(--green); background:var(--green-soft); font:750 8px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.05em; }
@media (max-width: 980px) { .scanner-nav-links { display:none; } }
@media (max-width: 560px) { .scanner-beta-chip { display:none; } .mode-toggle { padding-left:8px; padding-right:8px; } }

/* Chain Guard blue-cyber public beta theme */
body{background:radial-gradient(950px 540px at 82% -80px,rgba(0,111,255,.20),transparent 70%),radial-gradient(700px 420px at 8% 28%,rgba(0,198,255,.06),transparent 70%),var(--bg)}
.nav{height:78px;border-bottom-color:rgba(41,129,230,.18)}
.brand{gap:10px;letter-spacing:-.02em;font-size:18px}.brand-logo-img{width:39px;height:39px;border-radius:10px;object-fit:cover;box-shadow:0 0 22px rgba(35,214,255,.12)}.brand-word{font-weight:850;color:#fff}.brand-word>span{color:#1697ff}.scanner-beta-chip{border-color:rgba(35,214,255,.25);color:#55dcff;background:rgba(20,128,255,.09)}
.scanner-nav-links a{color:#718cad}.scanner-nav-links a:hover,.scanner-nav-links a.active{color:#edf6ff}.network-pill{border-color:rgba(41,129,230,.24);background:rgba(4,17,38,.8);color:#a4b9d3}.hero{padding-top:90px;position:relative}.hero:after{content:"";position:absolute;z-index:-1;width:540px;height:540px;right:-140px;top:15px;background:url('/assets/network-globe.svg') center/contain no-repeat;opacity:.27;pointer-events:none}.eyebrow{color:#35cfff}.hero h1 span{background:linear-gradient(90deg,#2bd9ff,#1582ff);-webkit-background-clip:text;color:transparent}.hero>p{color:#93aac7}.scan-box{border-color:rgba(42,141,255,.42);background:rgba(4,18,41,.88)}.scan-box:focus-within{border-color:#28cfff;box-shadow:0 0 0 4px rgba(35,214,255,.07)}.scan-box input::placeholder{color:#56769e}.scan-box button{background:linear-gradient(135deg,#19bcff,#126cff);color:#fff;box-shadow:0 10px 30px rgba(7,106,255,.24)}
.loading-card,.metric-card,.panel,.category-card{background:linear-gradient(180deg,rgba(8,31,66,.93),rgba(3,15,34,.96));border-color:rgba(35,93,159,.58)}.loading-icon{overflow:hidden;padding:0}.loading-icon img{width:100%;height:100%;object-fit:cover}.passport-header{border-top-color:rgba(35,93,159,.58)}.address{color:#6788af}.status-badge.verified{color:#5ce8b9;border-color:rgba(55,230,173,.28);background:rgba(55,230,173,.07)}.status-badge.verified .status-dot{background:#43e1aa}.status-badge.watch{color:var(--yellow)}
.panel-title{color:#abc4e1}.facts>div,.detail-row,.holder-row{border-bottom-color:rgba(35,93,159,.42)}.facts dt,.detail-row span{color:#7e99bb}.facts dd,.detail-row strong{color:#e2edfb}.authority-card,.extension{background:rgba(2,11,25,.4);border-color:rgba(35,93,159,.52)}.finding-icon{background:#081a35;border-color:rgba(35,93,159,.52)}.holder-bar{background:#0b2446}.holder-bar span{background:linear-gradient(90deg,#1596ff,#25d6ff)}.external-link{color:#49ccff}.read-guide{border-color:rgba(35,214,255,.18);background:linear-gradient(135deg,rgba(13,111,191,.10),rgba(4,17,38,.94) 55%)}.section-explainer{background:rgba(20,128,255,.035);border-bottom-color:rgba(35,93,159,.42)}.help-dialog{border-color:#245284;background:#06142b}.help-dialog-head,.help-block{border-color:rgba(35,93,159,.45)}.dialog-close{background:#091b36;border-color:rgba(35,93,159,.52)}.help-btn{border-color:#244f7a;background:rgba(5,18,39,.86)}.help-btn:hover,.help-btn:focus-visible{color:#3dd5ff;border-color:rgba(35,214,255,.45);background:rgba(35,214,255,.06)}.mode-toggle{border-color:rgba(35,93,159,.55);background:rgba(5,18,39,.86)}.mode-toggle:hover{border-color:#2a6da5;color:#d6e8fb}.public-disclaimer{background:rgba(61,49,18,.14)}.footer{border-top-color:rgba(41,129,230,.16)}
@media(max-width:760px){.hero:after{right:-260px;opacity:.18}.brand-word{font-size:15px}}
