:root {
  color-scheme: dark;
  --ink: #070b0c;
  --ink-soft: #0d1314;
  --panel: #101718;
  --panel-raised: #141d1e;
  --line: #263031;
  --line-strong: #3b4747;
  --text: #f1f4ea;
  --muted: #8f9b96;
  --acid: #c7f464;
  --acid-deep: #91c82b;
  --coral: #ff6b57;
  --amber: #f3bc4f;
  --cyan: #67d6d0;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 3px;
  --max-width: 1480px;
}

[hidden] {
  display: none !important;
}

.access-notice {
  margin: 0 12px 28px;
  padding: 18px 20px;
  border: 1px solid rgba(199, 244, 100, 0.45);
  background: rgba(199, 244, 100, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.access-notice strong { display: block; margin: 5px 0; font-size: 1.05rem; }
.access-notice p { margin: 0; color: var(--muted); }

.pricing-panel { margin-top: 28px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid article { padding: 28px; min-height: 190px; border-right: 1px solid var(--line); }
.pricing-grid article:last-child { border-right: 0; }
.pricing-grid article > span { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.pricing-grid article > strong { display: block; margin: 12px 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.pricing-grid article > strong small { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.pricing-grid article p { color: var(--muted); max-width: 52ch; }
.pricing-featured { background: linear-gradient(135deg, rgba(199, 244, 100, 0.1), transparent 70%); }
.pricing-disclaimer { border-top: 1px solid var(--line); margin: 0; padding: 14px 20px; color: var(--muted); font-size: 0.78rem; }

footer a { color: var(--acid); }

.account-consents { display: grid; gap: 10px; }
.consent-row { display: flex !important; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 0.78rem; }
.consent-row input { width: auto !important; margin-top: 3px; }
.consent-row a { color: var(--acid); }
.text-button { appearance: none; border: 0; background: transparent; color: var(--acid); padding: 5px 0; text-align: left; cursor: pointer; }
.verification-card { border: 1px solid rgba(255, 191, 75, 0.45); background: rgba(255, 191, 75, 0.06); padding: 16px; margin-bottom: 14px; }
.verification-card p { color: var(--muted); font-size: 0.8rem; }
.telegram-settings { margin-top: 14px; }
.threshold-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.threshold-grid input { width: 100%; }
.account-action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.legal-page { max-width: 900px; margin: 0 auto; padding: 44px 22px 80px; }
.legal-page .brand { display: inline-flex; margin-bottom: 42px; }
.legal-page article { border: 1px solid var(--line); background: var(--panel); padding: clamp(22px, 5vw, 46px); }
.legal-page h1 { font-size: clamp(2.2rem, 7vw, 4.8rem); line-height: 0.95; margin: 10px 0 26px; }
.legal-page h2 { margin-top: 30px; font-size: 1.15rem; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.7; }
.legal-page a { color: var(--acid); }
.legal-meta { font-family: var(--mono); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }

@media (max-width: 720px) {
  .access-notice { align-items: flex-start; flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .threshold-grid { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(199, 244, 100, 0.055), transparent 22rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  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='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 12, 0.91);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--acid);
  filter: drop-shadow(0 0 9px rgba(199, 244, 100, 0.18));
}

.brand-mark svg {
  width: 40px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .jackal-outline {
  fill: rgba(199, 244, 100, 0.045);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0.11em;
}

.brand strong {
  font-size: 14px;
  font-weight: 800;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.header-actions,
.connection-status,
.button {
  display: inline-flex;
  align-items: center;
}

.header-actions {
  gap: 14px;
}

.connection-status {
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(243, 188, 79, 0.09);
}

.connection-status[data-mode="live"] .status-dot {
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(199, 244, 100, 0.09), 0 0 14px rgba(199, 244, 100, 0.4);
}

.connection-status[data-mode="demo"] .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.09);
}

.button {
  min-height: 39px;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-raised);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--acid);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #0b1008;
}

.button-primary:hover:not(:disabled) {
  background: #dcff8b;
}

.refresh-icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.is-loading .refresh-icon {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

main {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding: 82px 0 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.eyebrow span {
  padding: 4px 7px;
  border: 1px solid rgba(199, 244, 100, 0.35);
  color: var(--acid);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 900px;
  font-size: clamp(48px, 7.4vw, 112px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.83;
}

h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy {
  padding-bottom: 6px;
}

.hero-copy p {
  max-width: 440px;
  margin-bottom: 26px;
  color: #c3cbc5;
  font-size: clamp(16px, 1.4vw, 20px);
}

.last-updated {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-card {
  position: relative;
  min-height: 146px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(16, 23, 24, 0.62);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  content: "";
  background: var(--acid);
}

.stat-card-risk::before {
  background: var(--coral);
}

.stat-card > span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 6px 0 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.stat-card small {
  font-size: 12px;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 0.7fr)) minmax(160px, 0.75fr);
  gap: 1px;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.control-bar label {
  display: flex;
  min-width: 0;
  min-height: 73px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: var(--ink-soft);
}

.field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
}

input[type="search"],
select {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

select {
  appearance: none;
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 13px, calc(100% - 8px) 13px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

select option {
  background: var(--panel);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrap > span {
  color: var(--acid);
  font-size: 20px;
  line-height: 1;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--text);
  font-size: 13px;
}

.toggle-row input {
  position: relative;
  width: 33px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel);
}

.toggle-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: var(--muted);
  transition: transform 140ms ease, background 140ms ease;
}

.toggle-row input:checked {
  border-color: var(--acid);
}

.toggle-row input:checked::after {
  transform: translateX(15px);
  background: var(--acid);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.dashboard-grid > * {
  min-width: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 20, 0.78);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-number {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.panel-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.low { background: var(--acid); }
.legend-dot.medium { background: var(--amber); }
.legend-dot.high { background: var(--coral); }

.radar-chart-wrap {
  position: relative;
  min-height: 400px;
  padding: 14px 12px 0;
}

.risk-map {
  display: block;
  width: 100%;
  min-height: 360px;
  overflow: visible;
}

.risk-map .zone {
  opacity: 0.06;
}

.risk-map .zone-watch { fill: var(--acid); }
.risk-map .zone-risk { fill: var(--coral); }

.risk-map .grid-line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.risk-map .axis-tick,
.risk-map .axis-title,
.risk-map .zone-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.risk-map .axis-tick {
  fill: var(--muted);
  font-size: 10px;
}

.risk-map .axis-title {
  fill: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.risk-map .zone-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.zone-label-watch { fill: var(--acid); }
.zone-label-risk { fill: var(--coral); }

.map-point {
  cursor: pointer;
  outline: none;
}

.map-point circle {
  stroke: var(--ink);
  stroke-width: 4px;
  fill: var(--acid);
  opacity: 0.9;
  transition: r 140ms ease, opacity 140ms ease, stroke 140ms ease;
}

.map-point text {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
}

.map-point.risk-medium circle { fill: var(--amber); }
.map-point.risk-high circle { fill: var(--coral); }

.map-point:hover circle,
.map-point:focus-visible circle,
.map-point.selected circle {
  stroke: var(--text);
  opacity: 1;
}

.map-point:hover text,
.map-point.selected text {
  fill: var(--text);
}

.chart-footnote {
  margin: 0;
  padding: 11px 18px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.chart-empty,
.table-empty {
  color: var(--muted);
  text-align: center;
}

.chart-empty {
  position: absolute;
  inset: 50% 20px auto;
  transform: translateY(-50%);
}

.detail-panel {
  min-width: 0;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--acid);
  font-size: 20px;
}

.icon-button:disabled {
  opacity: 0.25;
}

#token-detail {
  min-height: 478px;
  padding: 20px;
}

.detail-empty {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}

.target-glyph {
  color: var(--line-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 64px;
  line-height: 1;
}

.detail-empty p {
  max-width: 220px;
  margin-bottom: 0;
}

.detail-token-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.token-avatar {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-raised);
  color: var(--acid);
}

.token-avatar.large {
  width: 48px;
  height: 48px;
}

.token-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-avatar-fallback {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 800;
}

.detail-symbol {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-weight: 750;
}

.detail-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-pill {
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.source-pill.live {
  border-color: rgba(199, 244, 100, 0.35);
  color: var(--acid);
}

.source-pill.demo {
  border-color: rgba(255, 107, 87, 0.35);
  color: var(--coral);
}

.source-pill.backend {
  border-color: rgba(103, 214, 208, 0.4);
  color: var(--cyan);
}

.detail-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 25px 0;
}

.detail-price > span {
  max-width: 75%;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
}

.detail-price small,
.positive { color: var(--acid); }
.negative { color: var(--coral); }

.score-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.score-pair.score-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.score-pair > div > span,
.metric-grid span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-pair strong {
  display: block;
  margin: 3px 0 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px;
  font-weight: 500;
}

.score-pair strong small {
  color: var(--muted);
  font-size: 10px;
}

.meter {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  appearance: none;
  border: 0;
  background: var(--line);
}

.meter::-webkit-progress-bar {
  background: var(--line);
}

.meter::-webkit-progress-value {
  background: var(--acid);
}

.meter::-moz-progress-bar {
  background: var(--acid);
}

.risk-meter::-webkit-progress-value {
  background: var(--coral);
}

.risk-meter::-moz-progress-bar {
  background: var(--coral);
}

.confidence-meter::-webkit-progress-value {
  background: var(--cyan);
}

.confidence-meter::-moz-progress-bar {
  background: var(--cyan);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.chain-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.chain-checks > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chain-checks span,
.chain-checks strong {
  display: block;
}

.chain-checks span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chain-checks strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-block {
  margin-top: 20px;
}

.outcome-block h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.outcome-grid > div {
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outcome-grid span,
.outcome-grid strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.outcome-grid span {
  color: var(--muted);
  font-size: 8px;
}

.outcome-grid strong {
  margin-top: 3px;
  font-size: 11px;
}

.outcome-block > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.metric-grid div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-reasons {
  margin-top: 21px;
}

.signal-reasons h3 {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-reasons ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-reasons li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c4ccc6;
  font-size: 11px;
}

.signal-reasons li span {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(199, 244, 100, 0.09);
  color: var(--acid);
  font-size: 9px;
}

.risk-list li span {
  background: rgba(255, 107, 87, 0.09);
  color: var(--coral);
}

.coverage-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.detail-link {
  width: 100%;
  margin-top: 20px;
}

.queue-panel {
  margin-top: 18px;
  overflow: hidden;
}

.queue-heading {
  background: rgba(16, 23, 24, 0.58);
}

.result-count {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td.numeric,
th.numeric {
  text-align: right;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover,
tbody tr.selected-row {
  background: rgba(199, 244, 100, 0.035);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.token-cell {
  display: flex;
  min-width: 200px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.token-cell > span:nth-child(2) {
  min-width: 0;
}

.token-cell strong,
.token-cell small {
  display: block;
}

.token-cell strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.token-cell small {
  max-width: 165px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.watch-indicator {
  margin-left: auto;
  color: var(--acid);
}

.score-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
}

.score-number.opportunity {
  color: var(--acid);
}

.risk-badge,
.signal-label {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.risk-badge.low { color: var(--acid); }
.risk-badge.medium { color: var(--amber); }
.risk-badge.high { color: var(--coral); }

.signal-label {
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
}

.signal-hot { border-color: rgba(199, 244, 100, 0.45); color: var(--acid); }
.signal-building { border-color: rgba(103, 214, 208, 0.4); color: var(--cyan); }
.signal-early { color: var(--amber); }
.signal-quiet { color: var(--muted); }

.flow-buy { color: var(--acid); }
.flow-sell { color: var(--coral); }

.table-empty {
  padding: 40px 18px;
}

.alert-results-panel {
  margin-top: 18px;
  overflow: hidden;
}

.alert-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.alert-filter-bar label {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  background: var(--ink-soft);
}

.stake-input {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stake-input input {
  width: 100%;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.alert-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.alert-summary-grid > div {
  min-height: 112px;
  padding: 16px;
  background: var(--panel);
}

.alert-summary-grid span,
.alert-summary-grid small {
  display: block;
  color: var(--muted);
}

.alert-summary-grid span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alert-summary-grid strong {
  display: block;
  margin: 8px 0 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.alert-summary-grid small {
  font-size: 9px;
  line-height: 1.4;
}

.alert-results-table {
  min-width: 1260px;
}

.alert-token-cell {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.alert-token-copy strong,
.alert-token-copy small {
  display: block;
}

.alert-token-copy strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.alert-token-copy small {
  max-width: 130px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
}

.outcome-pill {
  display: inline-block;
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.outcome-pill.win { border-color: rgba(199, 244, 100, 0.42); color: var(--acid); }
.outcome-pill.loss { color: var(--amber); }
.outcome-pill.false-positive,
.outcome-pill.collapse { border-color: rgba(255, 107, 87, 0.5); color: var(--coral); }

.call-time strong,
.call-time small {
  display: block;
}

.call-time strong {
  font-size: 10px;
  font-weight: 600;
}

.call-time small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.score-triplet {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.score-triplet strong { color: var(--acid); font-weight: 600; }
.score-triplet .risk-score { color: var(--coral); }
.score-triplet .confidence-score { color: var(--cyan); }

.alert-method-note {
  margin: 0;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.paper-positive { color: var(--acid); }
.paper-negative { color: var(--coral); }

.performance-panel {
  margin-top: 18px;
  overflow: hidden;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.performance-grid > div {
  min-height: 126px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.performance-grid > div:last-child {
  border-right: 0;
}

.performance-grid span,
.performance-grid small {
  display: block;
  color: var(--muted);
}

.performance-grid span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.performance-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.performance-grid small {
  font-size: 10px;
}

.readiness-panel {
  margin-top: 18px;
  overflow: hidden;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.readiness-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  min-height: 132px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.readiness-item:last-child {
  border-right: 0;
}

.readiness-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(243, 190, 77, 0.25);
}

.readiness-item[data-ready="true"] .readiness-dot {
  background: var(--acid);
  box-shadow: 0 0 12px rgba(199, 244, 100, 0.4);
}

.readiness-item span,
.readiness-item small {
  display: block;
  color: var(--muted);
}

.readiness-item span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.readiness-item strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 15px;
  font-weight: 650;
}

.readiness-item small {
  font-size: 11px;
  line-height: 1.5;
}

.readiness-help {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.readiness-help code {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.account-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.68);
  color: var(--text);
}

.account-dialog::backdrop {
  background: rgba(3, 6, 7, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.account-tabs button:last-child {
  border-right: 0;
}

.account-tabs button.active {
  background: rgba(199, 244, 100, 0.07);
  color: var(--acid);
}

#account-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

#account-form label {
  display: block;
}

#account-form input {
  width: 100%;
  height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-soft);
  color: var(--text);
}

.form-error {
  min-height: 20px;
  margin: -5px 0 0;
  color: var(--coral);
  font-size: 11px;
}

.account-summary,
.account-benefits {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.account-summary span,
.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.account-benefits h3 {
  margin-bottom: 6px;
  color: var(--acid);
}

.account-benefits p {
  color: var(--muted);
  font-size: 12px;
}

.account-benefits .button {
  width: 100%;
}

.account-benefits small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

#logout-button {
  margin: 22px;
}

.method-strip {
  margin: 70px 0;
  padding: 46px 0 0;
  border-top: 1px solid var(--line);
}

.method-strip > h2 {
  max-width: 560px;
  margin: 9px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-grid article {
  min-height: 180px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-grid article > strong {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.method-grid h3 {
  margin: 42px 0 7px;
  font-size: 17px;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--acid);
  border-radius: var(--radius);
  background: var(--panel-raised);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .control-bar {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }

  .alert-filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  #token-detail {
    min-height: 0;
  }

  .detail-empty {
    min-height: 220px;
  }

  .signal-reasons ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .performance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .performance-grid > div {
    border-bottom: 1px solid var(--line);
  }

  .readiness-grid {
    grid-template-columns: 1fr 1fr;
  }

  .readiness-item:nth-child(2) {
    border-right: 0;
  }

  .readiness-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .app-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .connection-status {
    display: none;
  }

  main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 55px 0 38px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 80px);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .control-bar {
    grid-template-columns: 1fr 1fr;
  }

  .alert-filter-bar,
  .alert-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .radar-chart-wrap {
    min-height: 330px;
    overflow-x: auto;
  }

  .risk-map {
    min-width: 590px;
    min-height: 330px;
  }

  .signal-reasons ul {
    grid-template-columns: 1fr 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .performance-grid {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  .button {
    padding-right: 11px;
    padding-left: 11px;
  }

  .stats-grid,
  .control-bar,
  .method-grid,
  .alert-filter-bar,
  .alert-summary-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .search-field {
    grid-column: auto;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .legend {
    max-width: 110px;
  }

  .score-pair,
  .metric-grid,
  .signal-reasons ul {
    grid-template-columns: 1fr;
  }

  .score-pair.score-triple {
    grid-template-columns: repeat(3, 1fr);
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .performance-grid > div {
    border-right: 0;
  }

  .readiness-grid {
    grid-template-columns: 1fr;
  }

  .readiness-item,
  .readiness-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .readiness-item:last-child {
    border-bottom: 0;
  }

  .detail-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
