
:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --surface-3: #eef3f4;
  --text: #111a24;
  --text-2: #445362;
  --muted: #7c8996;
  --line: #dfe6e8;
  --line-strong: #ccd7da;
  --green: #19bb68;
  --green-2: #0fa78f;
  --green-soft: #eaf8f0;
  --teal-soft: #e9f7f6;
  --blue: #2878e5;
  --blue-soft: #edf4fe;
  --yellow: #d99516;
  --yellow-soft: #fff7df;
  --orange: #e46e2c;
  --red: #df3d52;
  --red-soft: #fff0f2;
  --critical: #a82840;
  --purple: #7158d9;
  --shadow: 0 10px 35px rgba(20, 37, 44, .07);
  --sidebar: 220px;
  --topbar: 67px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: var(--topbar);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.brand {
  width: 180px;
  height: 45px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.brand img {
  width: 180px;
  height: auto;
  display: block;
}
.chain-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  background: var(--surface-2);
}
.chain-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}
.chain-option.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(18,33,39,.10);
}
.chain-mark {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  font-size: 10px;
  font-weight: 800;
}
.primary-evm-mark { background: linear-gradient(145deg, #25cd72, #079e91); }
.solana-mark { background: linear-gradient(145deg, #9945ff, #14f195); }
.global-search {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  color: var(--muted);
  min-width: 0;
}
.search-icon { padding-left: 12px; font-size: 18px; }
.global-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  min-width: 0;
}
.global-search kbd {
  margin-right: 8px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 5px;
  min-width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.top-actions { display: flex; align-items: center; gap: 5px; }
.nav-action {
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 650;
}
.nav-action:hover { background: var(--surface-3); color: var(--text); }
.counter {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  color: white;
  background: var(--red);
  border-radius: 999px;
  font-size: 10px;
}
.demo-badge {
  color: #8a5b05;
  background: var(--yellow-soft);
  border: 1px solid #edd89d;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  white-space: nowrap;
}
.upgrade-button {
  color: white;
  border: 1px solid var(--green);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 750;
}
.shell { display: flex; min-height: calc(100vh - var(--topbar)); }
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  z-index: 30;
}
.sidebar-scroll { flex: 1; overflow: auto; padding: 13px 10px; }
.nav-group { margin-bottom: 17px; }
.nav-label {
  color: #9aa6b0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 7px 10px;
}
.side-link {
  width: 100%;
  border: 0;
  color: var(--text-2);
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  text-align: left;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active {
  background: var(--green-soft);
  color: #087842;
  font-weight: 720;
}
.side-icon { width: 20px; text-align: center; color: #758593; }
.side-link.active .side-icon { color: var(--green); }
.side-count {
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
}
.alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 12px;
}
.indexer-status { display: flex; gap: 9px; align-items: flex-start; }
.indexer-status strong { display: block; font-size: 11px; }
.indexer-status small { display: block; color: var(--muted); margin-top: 2px; font-size: 9px; }
.live-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25,187,104,.12);
  flex: 0 0 auto;
}
.live-dot.tiny { width: 6px; height: 6px; margin: 0; box-shadow: none; display: inline-block; }
.sidebar-legal {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.sidebar-legal a {
  color: #8c99a4;
  font-size: 9px;
  text-decoration: none;
}
.sidebar-legal a:hover { color: var(--green-2); }
.main { min-width: 0; flex: 1; padding: 20px; }
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 15px;
}
.eyebrow {
  color: var(--green-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.terminal-header h1 {
  font-size: 24px;
  letter-spacing: -.025em;
  margin: 4px 0 3px;
}
.terminal-header p { margin: 0; color: var(--muted); font-size: 12px; }
.header-buttons { display: flex; gap: 8px; }
.primary-button, .secondary-button {
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
}
.primary-button {
  color: white;
  border: 1px solid var(--green);
  background: linear-gradient(135deg, var(--green), var(--green-2));
}
.secondary-button {
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(22,42,48,.08); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  min-width: 0;
}
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.metric-label { color: var(--muted); font-size: 10px; }
.metric-icon {
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 7px; color: var(--green-2); background: var(--teal-soft);
}
.metric-value { font-size: 20px; font-weight: 810; letter-spacing: -.02em; margin-top: 7px; }
.metric-foot { margin-top: 4px; color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 5px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}
.market-panel, .risk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-tabs {
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
}
.tabs { align-self: stretch; display: flex; }
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 13px;
  color: var(--muted);
  font-weight: 700;
}
.tab.active { color: var(--text); border-bottom-color: var(--green); }
.panel-meta { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.panel-meta span { display: flex; align-items: center; gap: 5px; }
.filters { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.select-control, .filter-button, .icon-button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-2);
}
.select-control { padding: 0 26px 0 9px; outline: none; }
.filter-button { padding: 0 9px; }
.filter-count {
  color: white; background: var(--green); border-radius: 99px; padding: 1px 5px; margin-left: 4px; font-size: 9px;
}
.icon-button {
  min-width: 34px;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover, .filter-button:hover, .select-control:hover { border-color: var(--line-strong); background: var(--surface-2); }
.quick-filters { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
}
.quick-chip:hover, .quick-chip.active {
  color: #087842;
  border-color: #b9e8cf;
  background: var(--green-soft);
}
.table-card { min-width: 0; }
.table-scroll { overflow-x: auto; overflow-y: visible; }
.token-table { width: 100%; min-width: 1760px; border-collapse: collapse; }
.token-table th {
  background: #f7f9fa;
  color: #85939f;
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: right;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.token-table th:first-child, .token-table td:first-child { text-align: center; width: 42px; }
.token-table th:nth-child(2), .token-table td:nth-child(2) { text-align: left; }
.token-table td {
  padding: 10px;
  border-bottom: 1px solid #ebeff0;
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
}
.token-table tbody tr { transition: .12s ease; cursor: pointer; }
.token-table tbody tr:hover { background: #f8fbfa; }
.token-table tbody tr:last-child td { border-bottom: 0; }
.token-info { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.token-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-size: 10px;
  font-weight: 850;
  background: linear-gradient(145deg, var(--avatar-a), var(--avatar-b));
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.token-avatar > span { position: relative; z-index: 0; }
.token-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: white; }
.token-avatar.large { width: 45px; height: 45px; border-radius: 12px; font-size: 12px; }
.token-name { font-weight: 760; color: var(--text); }
.token-name > span { color: var(--muted); font-size: 9px; font-weight: 680; margin-left: 4px; }
.token-sub { color: var(--muted); font-size: 9px; margin-top: 2px; }
.launchpad-cell { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.pad-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pad-color); }
.stage-badge, .risk-badge, .status-badge {
  border-radius: 999px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 750;
}
.stage-bonding { color: #5c4fc1; background: #f1effe; border-color: #dfdafd; }
.stage-near { color: #b06c0b; background: var(--yellow-soft); border-color: #f4dfac; }
.stage-graduated { color: #087842; background: var(--green-soft); border-color: #ccefdc; }
.stage-live { color: #2460a7; background: var(--blue-soft); border-color: #d1e2fa; }
.risk-low { color: #087842; background: var(--green-soft); border-color: #ccefdc; }
.risk-medium { color: #9a620f; background: var(--yellow-soft); border-color: #f0d99d; }
.risk-high { color: #c74f19; background: #fff1e8; border-color: #f6d1bd; }
.risk-critical { color: var(--critical); background: var(--red-soft); border-color: #f2c7ce; }
.risk-unknown { color: #687583; background: #f0f3f5; border-color: #dce3e6; }
.supply-value.high, .creator-status.selling { color: var(--red); font-weight: 750; }
.supply-value.medium { color: var(--yellow); font-weight: 750; }
.creator-status.holding, .creator-status.tracked { color: var(--green); font-weight: 700; }
.creator-status.neutral { color: var(--muted); }
.mini-spark { width: 68px; height: 24px; display: inline-block; vertical-align: middle; }
.mini-spark polyline { fill: none; stroke: var(--spark-color); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rank-cell { color: var(--muted); font-variant-numeric: tabular-nums; }
.change-up { color: var(--green); font-weight: 720; }
.change-down { color: var(--red); font-weight: 720; }
.data-state, .collecting { color: var(--muted); font-size: 9px; font-weight: 600; }
.valuation-cell { display: grid; justify-items: end; gap: 2px; }
.valuation-cell b { font-weight: 720; }
.valuation-cell small { color: var(--muted); font-size: 8px; }
.pair-link { color: var(--green-2); font-weight: 720; text-decoration: none; }
.pair-link:hover { text-decoration: underline; }
.table-footer {
  border-top: 1px solid var(--line);
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--muted);
  font-size: 10px;
}
.page-button {
  width: 28px; height: 28px; border: 1px solid var(--line); background: white; color: var(--muted); margin-left: 3px; border-radius: 6px;
}
.page-button.active { color: white; background: var(--green); border-color: var(--green); }
.risk-panel { position: static; }
.risk-panel-header {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 13px;
}
.risk-panel-header h2 { margin: 0; font-size: 14px; }
.risk-panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.severity-summary {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 9px; border-bottom: 1px solid var(--line); background: #fbfcfc;
}
.severity-box { padding: 7px 4px; text-align: center; border-radius: 6px; }
.severity-box b { display: block; font-size: 13px; }
.severity-box span { font-size: 8px; color: var(--muted); text-transform: uppercase; }
.severity-critical { background: var(--red-soft); color: var(--critical); }
.severity-high { background: #fff1e8; color: var(--orange); }
.severity-watch { background: var(--yellow-soft); color: var(--yellow); }
.severity-info { background: var(--blue-soft); color: var(--blue); }
.risk-feed { max-height: calc(100vh - 330px); overflow: auto; }
.feed-item {
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid #ebeff0;
}
.feed-item:hover { background: #fafcfc; }
.feed-icon {
  width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-weight: 850;
}
.feed-icon.critical { background: var(--red-soft); color: var(--critical); }
.feed-icon.high { background: #fff1e8; color: var(--orange); }
.feed-icon.watch { background: var(--yellow-soft); color: var(--yellow); }
.feed-icon.info { background: var(--blue-soft); color: var(--blue); }
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feed-top strong { font-size: 10px; }
.feed-time { color: #a0abb4; font-size: 8px; }
.feed-title { font-size: 11px; font-weight: 700; margin-top: 3px; line-height: 1.35; }
.feed-body { color: var(--muted); font-size: 9px; line-height: 1.45; margin-top: 3px; }
.feed-evidence { color: var(--green-2); font-size: 8px; margin-top: 5px; }
.view-all-risk {
  width: 100%; border: 0; border-top: 1px solid var(--line); background: #fbfcfc; color: var(--green-2); padding: 12px; font-weight: 750;
}
.drawer-backdrop, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 28, 33, .38); backdrop-filter: blur(3px); z-index: 80; opacity: 0; visibility: hidden; transition: .2s;
}
.drawer-backdrop.show, .modal-backdrop.show { opacity: 1; visibility: visible; }
.token-drawer {
  position: fixed; z-index: 90; right: 0; top: 0; bottom: 0;
  width: min(1120px, 94vw); background: var(--surface); transform: translateX(102%);
  transition: .25s ease; box-shadow: -20px 0 60px rgba(14,32,38,.15); overflow: auto;
}
.token-drawer.show { transform: translateX(0); }
.drawer-header {
  height: 72px; position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.drawer-token { display: flex; align-items: center; gap: 11px; }
.drawer-name-row { display: flex; align-items: center; gap: 6px; }
.drawer-name-row h2 { margin: 0; font-size: 18px; }
.drawer-name-row > span { color: var(--muted); }
.contract-line { color: var(--muted); font-size: 9px; display: flex; gap: 5px; margin-top: 4px; align-items: center; }
.copy-address { border: 0; background: transparent; color: var(--green-2); padding: 0; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 9px; }
.drawer-actions { display: flex; gap: 7px; }
.drawer-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line);
}
.drawer-stat { padding: 11px 14px; border-right: 1px solid var(--line); }
.drawer-stat:last-child { border-right: 0; }
.drawer-stat span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.drawer-stat b { display: block; margin-top: 5px; font-size: 14px; }
.drawer-stat small { color: var(--muted); font-size: 8px; }
.drawer-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 10px; padding: 12px; background: var(--bg); }
.drawer-grid.chart-hidden { grid-template-columns: minmax(0,1fr); }
.chart-card[hidden] { display: none; }
.chart-card, .risk-summary-card { background: white; border: 1px solid var(--line); border-radius: 10px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.timeframes button {
  border: 0; background: transparent; color: var(--muted); padding: 5px 7px; border-radius: 5px; font-size: 9px;
}
.timeframes button.active { background: var(--green-soft); color: #087842; font-weight: 750; }
.chart-legend { color: var(--muted); font-size: 8px; display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend-dot.price { background: var(--green); }
.legend-dot.volume { background: #bfdad0; margin-left: 6px; }
.price-chart { width: 100%; height: 280px; display: block; }
.chart-grid { stroke: #edf1f2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-volume { fill: #dcece5; }
.chart-event-circle { fill: white; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-event-text { font-size: 9px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.event-markers {
  display: flex; gap: 13px; padding: 8px 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px;
}
.event-markers b { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text-2); }
.risk-summary-card { padding: 13px; }
.risk-score-row { display: flex; justify-content: space-between; align-items: center; }
.section-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.risk-score-row h3 { margin: 4px 0 0; font-size: 16px; }
.score-ring {
  --score: 68;
  --score-color: var(--yellow);
  width: 57px; height: 57px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 850;
  background: radial-gradient(circle at center, white 58%, transparent 60%), conic-gradient(var(--score-color) calc(var(--score)*1%), #e8edef 0);
}
.score-ring.unavailable {
  color: var(--muted);
  background: white;
  border: 5px solid #e8edef;
}
.risk-components { margin-top: 11px; }
.risk-component {
  display: grid; grid-template-columns: 82px minmax(100px,1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #edf0f1;
}
.risk-component:last-child { border-bottom: 0; }
.risk-component span:first-child { color: var(--text-2); font-size: 9px; }
.component-state { display: flex; align-items: baseline; gap: 7px; }
.component-state b { color: var(--text-2); font-size: 8px; }
.component-state small { color: var(--muted); font-size: 8px; }
.component-label { font-size: 8px; font-weight: 800; color: var(--text-2); }
.evidence-button {
  width: 100%; border: 1px solid #cfe7dc; background: var(--green-soft); color: #087842; border-radius: 7px; padding: 8px; margin-top: 10px; font-weight: 750;
}
.evidence-button:disabled { cursor: not-allowed; color: var(--muted); background: #f3f5f6; border-color: var(--line); }
.drawer-tabs {
  height: 46px; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: white; padding: 0 12px; overflow-x: auto;
}
.drawer-tabs button {
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 0 12px; white-space: nowrap; font-weight: 700; font-size: 10px;
}
.drawer-tabs button.active { color: var(--text); border-bottom-color: var(--green); }
.drawer-content { padding: 13px; min-height: 300px; background: #fbfcfc; }
.audit-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px;
  padding: 10px 12px; border: 1px solid #dce5e7; border-radius: 9px; background: white;
  color: var(--muted); font-size: 9px;
}
.audit-legend b { color: var(--text); }
.audit-check-list { max-height: 520px; overflow: auto; }
.audit-field b { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.audit-field b small { display: inline-block; margin: 0; }
.audit-status {
  border-radius: 999px; padding: 3px 6px; background: #edf1f2; color: #5d6972;
  font-size: 7px; letter-spacing: .04em;
}
.audit-status.status-available { background: var(--green-soft); color: #087842; }
.audit-status.status-preview { background: #fff4d6; color: #8b6500; }
.audit-table-row {
  display: grid; grid-template-columns: minmax(90px,1fr) minmax(100px,1.2fr) minmax(70px,.7fr) minmax(80px,1fr);
  gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0f1; font-size: 9px;
}
.audit-table-row:last-child { border-bottom: 0; }
.audit-table-row > :nth-child(3) { text-align: right; }
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; }
.detail-card { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.detail-card-header { padding: 11px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.detail-card-header h3 { margin: 0; font-size: 12px; }
.detail-card-body { padding: 11px 12px; }
.finding-list { display: grid; gap: 7px; }
.finding {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start;
}
.finding-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-weight: 850; }
.finding h4 { margin: 0; font-size: 10px; }
.finding p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.finding-evidence { color: var(--green-2); font-size: 8px; margin-top: 5px; }
.finding-badge { font-size: 8px; font-weight: 800; border-radius: 999px; padding: 4px 6px; }
.holder-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.holder-dot {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 8px; font-weight: 850; position: relative;
}
.holder-dot.creator { outline: 3px solid #ffbdc6; }
.holder-dot.linked::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe24b; right: 1px; top: 1px; border: 1px solid white;
}
.key-value { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid #edf0f1; font-size: 9px; }
.key-value:last-child { border-bottom: 0; }
.key-value span { color: var(--muted); }
.key-value span small { display: block; margin-top: 3px; font-size: 7px; color: #8c98a2; }
.scan-check small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.check-status { font-size: 8px; font-weight: 800; border-radius: 999px; padding: 4px 7px; color: #43515d; background: #edf1f2; }
.check-finding { color: #9d2638; background: #fde9ed; }
.check-pass { color: #087842; background: var(--green-soft); }
.check-error { color: #9d2638; background: #fde9ed; }
.key-value b { text-align: right; }
.evidence-row {
  display: grid; grid-template-columns: 130px 90px 1fr 105px; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 9px;
}
.mono { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.modal-backdrop { display: grid; place-items: center; }
.modal {
  width: min(620px, calc(100vw - 28px)); background: white; border-radius: 13px; border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(14,31,37,.22); padding: 16px; transform: translateY(8px); transition: .2s;
}
.modal-backdrop.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; }
.modal h2 { margin: 4px 0 0; font-size: 18px; }
.modal > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.scan-input { display: flex; gap: 7px; }
.scan-input input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px; outline: none; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px;
}
.scan-loading { display: none; align-items: center; gap: 8px; color: var(--muted); margin-top: 11px; font-size: 10px; }
.scan-loading.show { display: flex; }
.spinner { width: 15px; height: 15px; border: 2px solid #dce4e6; border-top-color: var(--green); border-radius: 50%; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-result { margin-top: 12px; }
.scan-result-card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.scan-result-head { padding: 11px; background: #fafcfc; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.scan-result-body { padding: 10px; display: grid; gap: 7px; }
.scan-check { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; border-bottom: 1px solid #edf1f2; }
.scan-check:last-child { border-bottom: 0; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 120; background: #14251d; color: #e1faec;
  border: 1px solid #2a5c42; border-radius: 9px; padding: 10px 13px; box-shadow: var(--shadow);
  font-size: 10px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-only { display: none; }

@media (max-width: 1250px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar { grid-template-columns: auto auto minmax(180px,1fr) auto; gap: 10px; }
  .brand, .brand img { width: 155px; }
}
@media (max-width: 980px) {
  .desktop-only { display: none; }
  .sidebar {
    position: fixed; left: 0; top: var(--topbar); bottom: 0; height: auto; transform: translateX(-102%); transition: .2s; box-shadow: 18px 0 50px rgba(13,29,35,.12);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid; }
  .topbar { grid-template-columns: auto auto 1fr auto; }
  .chain-switch { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .risk-panel { position: static; }
  .risk-feed { max-height: 420px; }
  .table-scroll { max-height: none; }
  .drawer-grid { grid-template-columns: 1fr; }
  .drawer-stats { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .demo-strip span { display: none; }
  .topbar { padding: 0 9px; gap: 7px; grid-template-columns: auto auto minmax(0,1fr) auto; }
  .brand, .brand img { width: 130px; }
  .global-search kbd { display: none; }
  .global-search { height: 36px; }
  .nav-action { display: none; }
  .demo-badge { display: none; }
  .upgrade-button { padding-inline: 10px; }
  .main { padding: 12px 9px; }
  .terminal-header { align-items: flex-start; flex-direction: column; }
  .header-buttons { width: 100%; }
  .header-buttons button { flex: 1; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card:last-child { display: none; }
  .panel-tabs { align-items: flex-start; flex-direction: column; padding: 0; }
  .tabs { width: 100%; overflow-x: auto; height: 45px; }
  .panel-meta { padding: 8px 11px; }
  .filters { padding: 8px; }
  .select-control { flex: 1; min-width: 130px; }
  .quick-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .quick-chip { white-space: nowrap; }
  .token-drawer { width: 100vw; }
  .drawer-header { height: auto; min-height: 72px; padding: 10px; align-items: flex-start; }
  .drawer-actions .secondary-button, .drawer-actions .primary-button { display: none; }
  .drawer-stats { grid-template-columns: repeat(2, 1fr); }
  .holder-grid { grid-template-columns: repeat(5, 1fr); }
  .evidence-row { grid-template-columns: 1fr; }
  .audit-table-row { grid-template-columns: 1fr 1fr; }
}
.demo-badge.live { color:#087842; background:var(--green-soft); border-color:#bfe8d2; }
.demo-badge.offline { color:#a82840; background:var(--red-soft); border-color:#efc4cb; }
.empty-state { padding:30px 18px; text-align:center; color:var(--muted); font-size:11px; }

.auth-modal { width:min(430px,calc(100vw - 28px)); }
.auth-tabs { display:flex; gap:4px; margin:14px 0; padding:3px; background:var(--surface-3); border-radius:8px; }
.auth-tabs button { flex:1; border:0; background:transparent; color:var(--muted); padding:8px; border-radius:6px; font-weight:700; }
.auth-tabs button.active { background:white; color:var(--text); box-shadow:0 1px 5px rgba(18,33,39,.08); }
.auth-form { display:grid; gap:12px; }
.auth-form label { display:grid; gap:5px; color:var(--text-2); font-size:10px; font-weight:700; }
.auth-form input { width:100%; border:1px solid var(--line-strong); border-radius:8px; padding:10px; outline:none; color:var(--text); background:white; }
.auth-form input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(25,187,104,.10); }
.form-error { min-height:16px; color:var(--red); font-size:10px; }
.panel-modal { width:min(720px,calc(100vw - 28px)); max-height:82vh; overflow:auto; }
.panel-content { margin-top:14px; }
.panel-list { display:grid; gap:7px; }
.panel-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px; border:1px solid var(--line); border-radius:8px; }
.panel-row-main { min-width:0; }
.panel-row-main b { display:block; font-size:11px; }
.panel-row-main span { display:block; color:var(--muted); font-size:9px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; }
.panel-action { border:1px solid var(--line); background:white; border-radius:7px; color:var(--text-2); padding:7px 9px; white-space:nowrap; }
.account-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px; background:var(--surface-2); border:1px solid var(--line); border-radius:9px; }
.account-card b,.account-card span { display:block; }
.account-card span { color:var(--muted); font-size:9px; margin-top:3px; }
.account-actions { display:flex; gap:7px; align-items:center; }
.account-actions a { text-decoration:none; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.price-card { border:1px solid var(--line); border-radius:9px; padding:13px; }
.price-card.featured { border-color:#a8ddc1; background:var(--green-soft); }
.price-card h3 { margin:0; font-size:13px; }
.price-card strong { display:block; font-size:20px; margin:9px 0; }
.price-card ul { list-style:none; margin:0 0 12px; padding:0; color:var(--muted); font-size:9px; line-height:1.8; }
.api-code { background:#101921; color:#dceee5; border-radius:8px; padding:12px; overflow:auto; font:10px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace; }
@media(max-width:700px){.pricing-grid{grid-template-columns:1fr}.panel-row{align-items:flex-start}.panel-action{padding:6px}}

.live-dot.pending { background:#9ba7b1; box-shadow:0 0 0 4px rgba(120,135,145,.10); }
[hidden] { display: none !important; }
.google-auth-button {
  width: 100%; min-height: 46px; margin-top: 16px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: white; color: var(--text); font-weight: 750;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 2px 8px rgba(18,33,39,.06);
}
.google-auth-button:hover { border-color: #aebbc1; background: var(--surface-2); }
.google-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; font-size: 15px; font-weight: 850; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 10px; }
.auth-divider::before,.auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-email-toggle { width: 100%; border: 0; background: transparent; color: var(--green-2); padding: 8px; font-weight: 750; }
.auth-legal { color: var(--muted); font-size: 9px; line-height: 1.55; margin: 16px 0 0; text-align: center; }
.auth-legal a { color: var(--text-2); }
.credit-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 4px 7px; border-radius: 999px; background: var(--green-soft); color: #087842; font-size: 10px; font-weight: 760; }
.price-card button { width: 100%; }
.payment-options { display:grid; gap:6px; }
.billing-note { color: var(--muted); font-size: 9px; line-height: 1.5; margin-top: 12px; }
