:root {
  color-scheme: dark;
  --bg: #050b12;
  --bg-elevated: #09131e;
  --panel: rgba(9, 23, 35, 0.82);
  --panel-strong: rgba(11, 28, 42, 0.94);
  --text: #edf8fb;
  --muted: #78909f;
  --dim: #4f6472;
  --line: rgba(113, 187, 204, 0.14);
  --line-bright: rgba(120, 221, 231, 0.28);
  --cyan: #6fe8f3;
  --cyan-soft: rgba(111, 232, 243, 0.12);
  --mint: #73f0b4;
  --mint-soft: rgba(115, 240, 180, 0.12);
  --amber: #ffc86a;
  --amber-soft: rgba(255, 200, 106, 0.12);
  --violet: #b39cff;
  --red: #ff7b8b;
  --radius: 18px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, "SF Pro Display", "Segoe UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(88, 172, 190, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 172, 190, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 76% 5%, rgba(34, 126, 143, 0.15), transparent 27rem),
    radial-gradient(circle at 3% 60%, rgba(66, 120, 92, 0.08), transparent 25rem),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: 18rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: var(--cyan);
}

.ambient-two {
  top: 54rem;
  left: -12rem;
  width: 28rem;
  height: 28rem;
  background: var(--mint);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  padding: 34px 0 26px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 2px 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.radar-mark {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(111, 232, 243, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(111, 232, 243, 0.14), transparent 60%),
    #07131d;
  box-shadow:
    inset 0 0 24px rgba(111, 232, 243, 0.06),
    0 0 34px rgba(55, 181, 198, 0.08);
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(111, 232, 243, 0.28);
  border-radius: 50%;
}

.ring-a {
  inset: 13px;
}

.ring-b {
  inset: 24px;
}

.radar-sweep {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 23px;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 232, 243, 0.95), transparent);
  transform-origin: left center;
  animation: sweep 5s linear infinite;
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  transform: translate(-50%, -50%);
}

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

.eyebrow,
.panel-kicker,
.metric-code,
.run-strip,
.footer,
.metric-topline,
.window-badge,
.table-meta,
.signal-legend,
.timeline-head {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.global-search {
  position: relative;
  width: min(330px, 100%);
}

.global-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 31, 0.9);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.global-search-input::placeholder {
  color: var(--dim);
}

.global-search-input:focus {
  border-color: var(--line-bright);
  background: rgba(11, 27, 40, 0.98);
}

.search-icon,
.search-shortcut {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: var(--dim);
  font-family: var(--mono);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon {
  left: 12px;
  color: var(--cyan);
  font-size: 18px;
}

.search-shortcut {
  right: 11px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
}

.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 430px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: #08131d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.search-result {
  display: grid;
  width: 100%;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.search-result:hover,
.search-result.is-active {
  background: rgba(111, 232, 243, 0.07);
}

.search-result-glyph {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.search-result-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.search-result-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.status-chip,
.action-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 20, 31, 0.78);
  color: var(--text);
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(115, 240, 180, 0.8);
}

.status-chip.error .status-dot {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 123, 139, 0.7);
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.action-button:hover {
  border-color: var(--line-bright);
  background: rgba(14, 32, 45, 0.95);
}

.action-button:active {
  transform: translateY(1px);
}

.action-button:focus-visible,
.text-input:focus-visible,
.select-input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.action-link {
  color: var(--muted);
}

.refresh-glyph {
  display: inline-block;
  color: var(--cyan);
  font-size: 17px;
}

.run-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-height: 38px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.entry-rules {
  position: relative;
  margin-top: 16px;
  padding: 17px 18px 14px;
  border-top: 1px solid rgba(111, 232, 243, 0.4);
  border-bottom: 1px solid rgba(111, 232, 243, 0.16);
  background:
    linear-gradient(90deg, rgba(111, 232, 243, 0.075), transparent 42%),
    rgba(6, 18, 28, 0.48);
}

.entry-rules::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(111, 232, 243, 0.55);
  content: "";
}

.entry-rules-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.entry-rules-heading > span:first-child,
.entry-status,
.rule-index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.entry-rules-heading h2 {
  font-size: 18px;
}

.entry-status {
  margin-left: auto;
  color: var(--mint);
}

.entry-rule-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.4fr 1.15fr;
  gap: 18px;
  margin-top: 15px;
}

.entry-rule {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-bright);
}

.entry-rule strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.entry-rule p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.signal-rule {
  border-left-color: rgba(115, 240, 180, 0.45);
  background: linear-gradient(90deg, rgba(115, 240, 180, 0.045), transparent);
}

.entry-exclusion {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(113, 187, 204, 0.1);
  color: var(--muted);
  font-size: 11px;
}

.run-strip strong {
  color: var(--muted);
  font-weight: 400;
}

.strip-separator {
  width: 1px;
  height: 12px;
  background: var(--line-bright);
}

.error-banner {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 123, 139, 0.35);
  border-radius: 12px;
  background: rgba(88, 18, 29, 0.3);
  color: #ffd1d7;
  font-size: 14px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric-card,
.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 55%),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.metric-card {
  overflow: hidden;
  padding: 17px 18px 15px;
  border-radius: 14px;
}

.metric-card::after {
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  content: "";
  opacity: 0.35;
}

.metric-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.metric-code {
  color: var(--dim);
}

.metric-value {
  display: block;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.accent-cyan {
  border-top-color: rgba(111, 232, 243, 0.62);
}

.accent-cyan .metric-value {
  color: var(--cyan);
}

.accent-amber {
  border-top-color: rgba(255, 200, 106, 0.62);
}

.accent-amber .metric-value {
  color: var(--amber);
}

.accent-mint {
  border-top-color: rgba(115, 240, 180, 0.62);
}

.accent-mint .metric-value {
  color: var(--mint);
}

.accent-violet {
  border-top-color: rgba(179, 156, 255, 0.62);
}

.accent-violet .metric-value {
  color: var(--violet);
}

.primary-grid,
.secondary-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.primary-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.9fr);
}

.secondary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.panel::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
  opacity: 0.72;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 22px 16px;
}

.panel-heading.compact {
  padding-bottom: 12px;
}

.panel-kicker {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 10px;
}

h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.panel-note {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.watchlist {
  display: grid;
}

.sort-header {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 22px;
  border-top: 1px solid rgba(113, 187, 204, 0.09);
  border-bottom: 1px solid rgba(113, 187, 204, 0.09);
  background: rgba(3, 12, 19, 0.28);
}

.watchlist-header {
  grid-template-columns: minmax(0, 1.35fr) 0.65fr 0.7fr 0.48fr;
}

.sort-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.sort-button:hover,
.sort-button.active {
  color: var(--cyan);
}

.sort-indicator {
  color: currentColor;
  font-size: 10px;
  opacity: 0.72;
}

.sort-button.active .sort-indicator {
  opacity: 1;
}

.watch-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.35fr) 0.65fr 0.7fr 0.48fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 22px;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(113, 187, 204, 0.08);
  border-left: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease;
}

.watch-row:hover {
  background: rgba(111, 232, 243, 0.035);
}

.watch-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.rank-index {
  width: 24px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.token-orb {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(111, 232, 243, 0.22);
  border-radius: 10px;
  background: rgba(111, 232, 243, 0.055);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
}

.token-copy {
  min-width: 0;
}

.token-symbol-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.token-symbol {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.micro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.micro-badge.new {
  border-color: rgba(179, 156, 255, 0.35);
  background: rgba(179, 156, 255, 0.08);
  color: var(--violet);
}

.watch-metric {
  min-width: 0;
}

.watch-metric span {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-metric strong {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.score-wrap {
  min-width: 76px;
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.score-line strong {
  color: var(--cyan);
}

.score-track {
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(102, 143, 155, 0.15);
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transition: width 450ms ease;
}

.inline-risk {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.watch-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.signal-pill {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(111, 232, 243, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}

.signal-pill.whale {
  background: rgba(115, 240, 180, 0.09);
  color: var(--mint);
}

.signal-pill.warning {
  background: rgba(255, 200, 106, 0.08);
  color: var(--amber);
}

.signal-pill.persistent {
  background: rgba(111, 232, 243, 0.14);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(111, 232, 243, 0.15);
}

.signal-pill.outflow {
  background: rgba(255, 123, 139, 0.1);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 123, 139, 0.15);
}

.method-note {
  margin: 12px 22px 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(113, 187, 204, 0.08);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.55;
}

.signal-panel {
  padding-bottom: 18px;
}

.signal-orbit {
  position: relative;
  width: min(100%, 280px);
  height: 252px;
  margin: 0 auto;
}

.orbit-svg {
  display: block;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  overflow: visible;
}

.orbit-track {
  fill: none;
  stroke: rgba(106, 162, 175, 0.15);
  stroke-width: 1;
}

.orbit-track.inner {
  stroke: rgba(106, 162, 175, 0.12);
}

.orbit-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
  transform: rotate(-90deg);
  transform-origin: 120px 120px;
  transition: stroke-dashoffset 600ms ease;
}

.orbit-whale {
  stroke: var(--mint);
  filter: drop-shadow(0 0 6px rgba(115, 240, 180, 0.38));
}

.orbit-outflow {
  stroke: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 123, 139, 0.28));
}

.orbit-node {
  fill: var(--cyan);
  opacity: 0.7;
}

.orbit-center {
  position: absolute;
  top: 104px;
  left: 50%;
  display: flex;
  width: 106px;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.orbit-center strong {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.orbit-center span {
  margin-top: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.orbit-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.label-whale {
  top: 30px;
  right: 4px;
}

.label-concentration {
  right: 17px;
  bottom: 34px;
}

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

.legend-dot.whale {
  background: var(--mint);
}

.legend-dot.concentration {
  background: var(--red);
}

.signal-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0 20px;
  font-size: 9px;
}

.signal-legend > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.signal-legend strong {
  grid-column: 2;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.legend-line {
  width: 11px;
  height: 2px;
}

.legend-line.whale {
  background: var(--mint);
}

.legend-line.concentration {
  background: var(--red);
}

.legend-line.overlap {
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

.signal-panel hr {
  margin: 17px 20px 13px;
  border: 0;
  border-top: 1px solid var(--line);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 8px;
  color: var(--dim);
  font-size: 9px;
}

.timeline-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16px, 1fr);
  align-items: end;
  gap: 7px;
  min-height: 92px;
  padding: 4px 20px 18px;
}

.timeline-day {
  display: grid;
  grid-template-rows: 65px auto;
  gap: 8px;
  min-width: 0;
}

.timeline-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 65px;
}

.timeline-bar {
  width: min(8px, 45%);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
}

.timeline-bar.whale {
  background: var(--mint);
  opacity: 0.9;
}

.timeline-bar.concentration {
  background: var(--amber);
  opacity: 0.8;
}

.timeline-date {
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.secondary-grid .panel {
  min-height: 320px;
}

.window-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
}

.window-badge.mint {
  border-color: rgba(115, 240, 180, 0.23);
  color: var(--mint);
}

.list-table {
  border-top: 1px solid var(--line);
}

.signal-list-header {
  grid-template-columns: 25px minmax(0, 1.35fr) 0.9fr 0.8fr 0.65fr 0.45fr;
  border-top: 0;
}

.header-rank {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
}

.signal-row {
  display: grid;
  width: 100%;
  grid-template-columns: 25px minmax(0, 1.35fr) 0.9fr 0.8fr 0.65fr 0.45fr;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 7px 20px;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(113, 187, 204, 0.07);
  border-left: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-name {
  min-width: 0;
}

.signal-name strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-name span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-cell {
  font-family: var(--mono);
  font-size: 11px;
}

.metric-cell span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.status-text {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.status-text.live {
  color: var(--mint);
}

.status-text.warm {
  color: var(--amber);
}

.status-text.danger {
  color: var(--red);
}

.results-panel {
  margin-top: 12px;
}

.wallet-panel {
  margin-top: 12px;
}

.wallet-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.wallet-summary strong {
  color: var(--cyan);
  font-weight: 400;
}

.wallet-method {
  padding: 0 20px 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.wallet-table-header,
.wallet-profile-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr) 0.75fr 0.6fr 0.55fr 0.7fr 0.7fr;
  align-items: center;
  gap: 12px;
}

.wallet-table-header {
  padding: 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 12, 19, 0.3);
}

.wallet-rows {
  display: grid;
}

.wallet-profile-row {
  width: 100%;
  min-height: 58px;
  padding: 9px 20px;
  border: 0;
  border-bottom: 1px solid rgba(113, 187, 204, 0.07);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.wallet-profile-row:hover {
  background: rgba(111, 232, 243, 0.035);
}

.wallet-address {
  min-width: 0;
}

.wallet-address strong,
.wallet-address span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-address strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.wallet-address span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.wallet-status {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(111, 232, 243, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}

.wallet-status.high_win_candidate,
.wallet-status.verified {
  background: rgba(115, 240, 180, 0.09);
  color: var(--mint);
}

.wallet-status.distributor_watch {
  background: rgba(255, 123, 139, 0.1);
  color: var(--red);
}

.wallet-stat-cell {
  font-family: var(--mono);
  font-size: 11px;
}

.wallet-stat-cell span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.wallet-monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.wallet-monitor-bar .is-monitored {
  color: var(--mint);
}

.wallet-stat {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(3, 12, 19, 0.34);
}

.wallet-stat span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.wallet-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
}

.wallet-tag-form {
  display: grid;
  grid-template-columns: 1fr 0.8fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.wallet-tag-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.wallet-note-field {
  grid-column: 1 / span 2;
}

.wallet-save-status {
  color: var(--muted);
  font-size: 10px;
}

.wallet-token-list,
.wallet-alert-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.wallet-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 0.75fr 0.65fr 0.65fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.wallet-token-copy strong,
.wallet-token-copy span {
  display: block;
}

.wallet-token-copy strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.wallet-token-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.wallet-flow-tag {
  justify-self: start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.wallet-flow-tag.inflow {
  color: var(--mint);
}

.wallet-flow-tag.outflow {
  color: var(--red);
}

.wallet-alert-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.wallet-alert-row strong {
  color: var(--text);
  font-weight: 400;
}

.wallet-detail-loading {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--line-bright);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.results-heading {
  align-items: flex-end;
}

.result-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.text-input,
.select-input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 12, 19, 0.72);
  color: var(--text);
  font-size: 13px;
}

.text-input {
  width: min(250px, 100%);
  padding: 0 12px;
}

.select-input {
  padding: 0 30px 0 10px;
}

.text-input::placeholder {
  color: var(--dim);
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 10px;
  color: var(--dim);
  font-size: 9px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.results-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 12px;
}

.results-table th {
  padding: 10px 13px;
  border-bottom: 1px solid rgba(113, 187, 204, 0.1);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.results-table th.numeric .sort-button {
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}

.table-sort {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.results-table td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(113, 187, 204, 0.07);
  vertical-align: middle;
}

.results-table tbody tr {
  transition: background 140ms ease;
}

.results-table tbody tr:hover {
  background: rgba(111, 232, 243, 0.03);
}

.results-table .numeric {
  text-align: right;
}

.results-table .token-cell {
  display: flex;
  align-items: center;
  min-width: 158px;
  gap: 9px;
}

.token-cell .token-grid {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
}

.chain-cell span {
  display: block;
}

.pair-cell a,
.pair-cell span {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.pair-cell a:hover {
  color: var(--text);
}

.pair-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.chain-cell small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
}

.table-number {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.risk-score-cell {
  color: var(--amber);
}

.risk-score-cell small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 8px;
}

.mini-meter {
  display: inline-block;
  width: 46px;
  height: 3px;
  margin-left: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(102, 143, 155, 0.16);
  vertical-align: middle;
}

.mini-meter span {
  display: block;
  height: 100%;
  background: var(--amber);
}

.table-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.data-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.data-links a:hover {
  color: var(--cyan);
}

.detail-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
}

.detail-link:hover {
  color: var(--text);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 15px;
  border-top: 1px solid rgba(113, 187, 204, 0.07);
}

.empty-state {
  margin: 0 22px 20px;
  padding: 18px;
  border: 1px dashed var(--line-bright);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.empty-state.compact {
  margin: 15px 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 18px 2px 0;
  color: var(--dim);
  font-size: 9px;
}

.detail-drawer {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(111, 232, 243, 0.25);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(111, 232, 243, 0.045), transparent 30%),
    #08131d;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.detail-drawer::backdrop {
  background: rgba(0, 5, 9, 0.76);
  backdrop-filter: blur(8px);
}

.detail-shell {
  padding: 24px;
}

.detail-heading,
.detail-identity,
.detail-section-title,
.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-identity {
  justify-content: flex-start;
}

.detail-glyph {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.detail-symbol,
.detail-name {
  display: block;
}

.detail-symbol {
  font-family: var(--mono);
  font-size: 20px;
}

.detail-name {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-close:hover {
  color: var(--text);
  border-color: var(--line-bright);
}

.detail-loading,
.detail-error {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--line-bright);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.detail-error {
  border-color: rgba(255, 123, 139, 0.35);
  color: #ffd1d7;
}

.detail-content {
  margin-top: 20px;
}

.detail-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-score {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 12, 19, 0.42);
}

.detail-score span,
.detail-score small,
.detail-section-title span,
.performance-grid span,
.breakdown-label span,
.wallet-copy span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-score strong {
  display: block;
  margin-top: 9px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.detail-score.risk strong {
  color: var(--amber);
}

.detail-score small {
  display: block;
  margin-top: 8px;
}

.quick-analysis {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(111, 232, 243, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(111, 232, 243, 0.07), transparent 55%),
    rgba(3, 12, 19, 0.52);
}

.quick-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quick-analysis-head > div > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.quick-analysis h3 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.confidence-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.verdict-line {
  display: block;
  margin-top: 16px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 400;
}

.quick-summary {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.key-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 17px;
}

.key-point {
  position: relative;
  padding: 11px 0 11px 13px;
  border-top: 1px solid var(--line);
}

.key-point::before {
  position: absolute;
  top: 16px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.key-point.positive::before {
  background: var(--mint);
}

.key-point.warning::before {
  background: var(--amber);
}

.key-point > span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
}

.key-point p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.next-checks {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.next-checks > span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-checks ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.next-checks li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.next-checks li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--dim);
  content: "→";
}

.detail-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.performance-grid > div {
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(3, 12, 19, 0.28);
}

.performance-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
}

.positive {
  color: var(--mint) !important;
}

.negative {
  color: var(--red) !important;
}

.detail-chart {
  min-height: 138px;
  margin-top: 10px;
}

.detail-chart svg {
  width: 100%;
  height: 138px;
  overflow: visible;
}

.chart-axis {
  stroke: rgba(112, 171, 184, 0.18);
  stroke-width: 1;
}

.chart-price {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#price-area-gradient);
}

.chart-signal {
  fill: var(--mint);
  stroke: #08131d;
  stroke-width: 2;
}

.chart-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.breakdown-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 6px 12px;
}

.breakdown-label {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.breakdown-label strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

.breakdown-head {
  grid-column: 1 / -1;
}

.breakdown-track {
  grid-column: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(112, 171, 184, 0.14);
}

.breakdown-fill {
  height: 100%;
  background: var(--cyan);
}

.breakdown-row.risk .breakdown-fill {
  background: var(--amber);
}

.breakdown-detail {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 9px;
}

.wallet-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.wallet-row.inflow .wallet-copy span {
  color: var(--mint);
}

.wallet-row.outflow .wallet-copy span {
  color: var(--red);
}

.wallet-copy {
  min-width: 0;
}

.wallet-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-metrics {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.detail-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Readability pass */
body {
  font-size: 17px;
}

.eyebrow,
.run-strip,
.panel-kicker,
.metric-topline,
.table-meta,
.signal-legend,
.timeline-head {
  font-size: 11px;
}

.hero-copy,
.panel-note,
.metric-card p {
  font-size: 15px;
}

.status-chip,
.action-button,
.text-input,
.select-input {
  font-size: 14px;
}

h2 {
  font-size: 23px;
}

.token-symbol,
.signal-name strong {
  font-size: 15px;
}

.token-name,
.signal-name span,
.micro-badge,
.watch-metric span,
.metric-cell span,
.status-text,
.window-badge,
.result-controls,
.data-links,
.footer {
  font-size: 10px;
}

.watch-metric strong,
.metric-cell,
.orbit-label,
.breakdown-label strong,
.wallet-copy strong {
  font-size: 13px;
}

.score-line strong,
.token-grid {
  font-size: 11px;
}

.signal-pill {
  font-size: 10px;
}

.method-note,
.empty-state,
.error-banner {
  font-size: 13px;
}

.results-table {
  font-size: 13px;
}

.results-table th,
.table-sort {
  font-size: 10px;
}

.pair-cell a,
.pair-cell span {
  font-size: 11px;
}

.pair-cell small,
.chain-cell small,
.risk-score-cell small {
  font-size: 10px;
}

.detail-symbol {
  font-size: 22px;
}

.detail-name,
.detail-loading,
.detail-error,
.detail-footer {
  font-size: 14px;
}

.detail-section h3 {
  font-size: 17px;
}

.detail-score small,
.detail-score span,
.detail-section-title span,
.performance-grid span,
.breakdown-label span,
.wallet-copy span {
  font-size: 10px;
}

.breakdown-detail,
.wallet-metrics {
  font-size: 10px;
}

.performance-grid strong {
  font-size: 15px;
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .signal-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .signal-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .signal-panel hr,
  .timeline-head,
  .timeline-chart {
    grid-column: 2;
  }

  .signal-orbit {
    grid-row: 2 / span 4;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 22px;
  }

  .hero,
  .brand-lockup {
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .global-search {
    width: 100%;
  }

  .metrics-grid,
  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .entry-rules-heading {
    flex-wrap: wrap;
  }

  .entry-status {
    width: 100%;
    margin-left: 0;
  }

  .entry-rule-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signal-panel {
    display: block;
  }

  .panel-heading {
    flex-direction: column;
  }

  .panel-note {
    max-width: none;
    text-align: left;
  }

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

  .result-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .text-input {
    flex: 1 1 180px;
  }

  .watch-row {
    grid-template-columns: minmax(0, 1.5fr) 0.75fr 0.75fr;
  }

  .watchlist-header {
    grid-template-columns: minmax(0, 1.5fr) 0.75fr 0.75fr;
  }

  .watchlist-header > :last-child {
    display: none;
  }

  .watch-row > .score-wrap {
    display: none;
  }

  .signal-row {
    grid-template-columns: 20px minmax(0, 1.4fr) 0.7fr 0.7fr 0.7fr;
  }

  .signal-list-header {
    grid-template-columns: 20px minmax(0, 1.4fr) 0.7fr 0.7fr 0.7fr;
  }

  .signal-list-header > :nth-child(5) {
    display: none;
  }

  .signal-row > :nth-child(5) {
    display: none;
  }

  .detail-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wallet-table-header,
  .wallet-profile-row {
    grid-template-columns: minmax(180px, 1.4fr) 0.8fr 0.65fr 0.65fr;
  }

  .wallet-table-header > :nth-child(4),
  .wallet-table-header > :nth-child(5),
  .wallet-profile-row > :nth-child(4),
  .wallet-profile-row > :nth-child(5) {
    display: none;
  }

  .wallet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-lockup {
    gap: 14px;
  }

  .radar-mark {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .ring-a {
    inset: 10px;
  }

  .ring-b {
    inset: 20px;
  }

  .hero-copy {
    max-width: 245px;
    line-height: 1.5;
  }

  .metrics-grid {
    gap: 8px;
  }

  .metric-card {
    padding: 14px;
  }

  .watch-row {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px 14px;
  }

  .watchlist-header {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding: 0 14px;
  }

  .watchlist-header > :nth-child(2),
  .watchlist-header > :nth-child(4) {
    display: none;
  }

  .watch-row > .watch-metric:nth-child(2) {
    display: none;
  }

  .panel-heading {
    padding: 18px 14px 12px;
  }

  .watchlist,
  .method-note {
    padding-right: 0;
    padding-left: 0;
  }

  .method-note {
    margin-right: 14px;
    margin-left: 14px;
  }

  .signal-row {
    grid-template-columns: 20px minmax(0, 1.5fr) 0.8fr;
    padding: 8px 14px;
  }

  .signal-list-header {
    grid-template-columns: 20px minmax(0, 1.5fr) 0.8fr;
    padding: 0 14px;
  }

  .signal-list-header > :nth-child(n + 4) {
    display: none;
  }

  .signal-row > :nth-child(n + 4) {
    display: none;
  }

  .timeline-chart {
    gap: 3px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .signal-legend {
    padding-right: 14px;
    padding-left: 14px;
  }

  .timeline-head,
  .signal-panel hr {
    margin-right: 14px;
    margin-left: 14px;
  }

  .timeline-head {
    padding-right: 0;
    padding-left: 0;
  }

  .detail-drawer {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .detail-shell {
    padding: 18px 14px;
  }

  .detail-score-grid {
    grid-template-columns: 1fr;
  }

  .key-points {
    grid-template-columns: 1fr;
  }

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

  .detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-summary {
    justify-content: flex-start;
  }

  .wallet-table-header,
  .wallet-profile-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 14px;
    padding-left: 14px;
  }

  .wallet-table-header > :nth-child(n + 3),
  .wallet-profile-row > :nth-child(n + 3) {
    display: none;
  }

  .wallet-tag-form {
    grid-template-columns: 1fr;
  }

  .wallet-note-field {
    grid-column: auto;
  }

  .wallet-token-row {
    grid-template-columns: minmax(0, 1.35fr) 0.8fr;
  }

  .wallet-token-row > :nth-child(n + 3) {
    display: none;
  }

  .result-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .text-input,
  .select-input {
    width: 100%;
  }

  .table-meta {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@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;
  }
}
