@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --bg-deep: #08131b;
  --bg-mid: #102131;
  --bg-ink: #162a36;
  --surface: rgba(15, 31, 44, 0.74);
  --surface-strong: rgba(17, 36, 49, 0.92);
  --surface-soft: rgba(23, 43, 58, 0.45);
  --border: rgba(144, 197, 224, 0.25);
  --border-strong: rgba(160, 218, 244, 0.4);
  --text: #e7f4ff;
  --muted: #9ab2c4;
  --accent: #58d2d7;
  --accent-soft: #74a9ff;
  --accent-warm: #f5aa5a;
  --good: #63dba0;
  --bad: #ff8b7f;
  --shadow-deep: 0 26px 60px rgba(3, 9, 15, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(122, 197, 255, 0.22), transparent 60%),
    radial-gradient(900px 560px at 100% 0%, rgba(250, 185, 105, 0.18), transparent 62%),
    linear-gradient(165deg, var(--bg-deep), var(--bg-mid) 52%, var(--bg-ink));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(165, 213, 236, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 213, 236, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.12;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: -20% -25% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(88, 210, 215, 0.2), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

body.landing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.4rem;
}

.landing-shell {
  width: min(760px, 100%);
}

.landing-hero {
  border: 1px solid rgba(149, 204, 232, 0.28);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 35, 49, 0.94), rgba(12, 25, 36, 0.9));
  box-shadow: var(--shadow-deep);
}

.landing-hero {
  padding: 1.4rem 1.5rem;
}

.landing-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(231, 244, 255, 0.64);
}

.landing-hero h1 {
  margin: 0.52rem 0 0;
  max-width: 16ch;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.landing-subtitle {
  margin: 0.78rem 0 0;
  max-width: 44ch;
  color: rgba(230, 245, 255, 0.76);
}

.landing-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 219, 160, 0.6);
  color: #d6ffee;
  background: linear-gradient(120deg, rgba(69, 185, 137, 0.38), rgba(52, 129, 190, 0.34));
  padding: 0.58rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing-cta-secondary {
  border-color: rgba(116, 169, 255, 0.58);
  color: #d6e7ff;
  background: linear-gradient(120deg, rgba(73, 121, 196, 0.34), rgba(53, 87, 140, 0.26));
}

.landing-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 245, 197, 0.82);
}

.topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 0.9rem 1.1rem;
  align-items: start;
  padding: 0.95rem 1rem 1rem;
  border-bottom: 1px solid rgba(155, 209, 237, 0.22);
  background: linear-gradient(180deg, rgba(8, 20, 30, 0.92), rgba(8, 20, 30, 0.82));
  backdrop-filter: blur(12px);
  z-index: 30;
  box-shadow: 0 10px 30px rgba(5, 11, 17, 0.35);
}

.brand-block {
  min-width: 0;
}

.brand-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: rgba(231, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.topbar h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: 0.04em;
  font-weight: 800;
}

.brand-subtitle {
  margin: 0.25rem 0 0;
  max-width: 58ch;
  color: rgba(230, 245, 255, 0.66);
  font-size: 0.82rem;
}

.view-tabs {
  margin-top: 0.58rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(147, 203, 232, 0.3);
  border-radius: 999px;
  background: rgba(13, 31, 43, 0.58);
  padding: 0.18rem;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.28rem 0.62rem;
  color: rgba(222, 241, 253, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.view-tab:hover {
  color: rgba(233, 247, 255, 0.94);
  border-color: rgba(129, 188, 221, 0.42);
}

.view-tab.is-active {
  color: #d9f8ff;
  border-color: rgba(88, 210, 215, 0.55);
  background: rgba(88, 210, 215, 0.18);
}

.status-block {
  justify-self: end;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(155, 209, 237, 0.3);
  background: rgba(15, 34, 49, 0.64);
}

.ingestion-indicator {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(88, 210, 215, 0.45);
  animation: pulse-indicator 1.8s infinite;
}

.ingestion-indicator.is-stale {
  background: var(--bad);
  box-shadow: 0 0 0 0 rgba(255, 139, 127, 0.5);
}

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

.status-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.62rem;
  color: rgba(231, 244, 255, 0.58);
}

#refresh-label {
  margin-top: 0.18rem;
  color: rgba(231, 244, 255, 0.9);
  font-size: 0.76rem;
  white-space: nowrap;
}

#refresh-label.is-stale {
  color: var(--bad);
}

.controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(147, 203, 232, 0.23);
  background:
    linear-gradient(145deg, rgba(24, 46, 63, 0.5), rgba(14, 30, 42, 0.66));
}

.controls label {
  color: rgba(231, 244, 255, 0.68);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.insiders-shell {
  padding: 0.9rem 1rem 1rem;
}

.insiders-card {
  border: 1px solid rgba(147, 203, 232, 0.25);
  border-radius: 14px;
  padding: 0.82rem;
  background: linear-gradient(165deg, rgba(16, 35, 49, 0.92), rgba(12, 25, 36, 0.88));
  box-shadow: var(--shadow-deep);
  overflow-x: auto;
}

.insiders-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.62rem;
}

.insiders-card-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.insiders-table {
  min-width: 1020px;
}

button,
select,
input {
  border: 1px solid rgba(148, 203, 231, 0.34);
  border-radius: 9px;
  background: rgba(18, 39, 53, 0.88);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.2;
}

button,
select {
  padding: 0.42rem 0.64rem;
}

input[type="number"],
input[type="text"] {
  padding: 0.42rem 0.54rem;
}

button {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

button:hover {
  border-color: var(--border-strong);
  background: rgba(28, 59, 80, 0.95);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

select:focus,
input:focus,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88, 210, 215, 0.22);
}

input[type="number"] {
  width: 5.35rem;
}

input[type="text"] {
  width: 7.4rem;
}

#trader-search,
#market-search {
  width: 9.5rem;
}

#preset-select {
  min-width: 8.4rem;
  max-width: 11.2rem;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.7rem;
  padding: 0.78rem 1rem 0.2rem;
}

.telemetry-card {
  border: 1px solid rgba(147, 203, 232, 0.24);
  border-radius: 13px;
  padding: 0.72rem 0.78rem;
  background: linear-gradient(145deg, rgba(21, 42, 58, 0.58), rgba(14, 29, 40, 0.64));
  box-shadow: inset 0 1px 0 rgba(212, 238, 255, 0.07);
}

.telemetry-label {
  color: rgba(231, 244, 255, 0.58);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.61rem;
}

.telemetry-value {
  margin-top: 0.22rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.layout-grid {
  position: relative;
  padding: 0.75rem;
  min-height: calc(100vh - 235px);
  overflow: auto;
}

.pane {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(149, 204, 232, 0.3);
  background: linear-gradient(165deg, rgba(16, 35, 49, 0.92), rgba(12, 25, 36, 0.9));
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  animation: pane-enter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--pane-index, 0) * 45ms);
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.48rem 0.56rem;
  border-bottom: 1px solid rgba(149, 204, 232, 0.26);
  background: linear-gradient(180deg, rgba(24, 49, 67, 0.74), rgba(13, 29, 41, 0.5));
  cursor: move;
  user-select: none;
  touch-action: none;
}

.pane-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.pane-type-chip {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.58rem;
  padding: 0.18rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 169, 255, 0.45);
  color: rgba(201, 226, 255, 0.92);
  background: rgba(116, 169, 255, 0.15);
}

.pane-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pane-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.remove-btn {
  border: none;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border-radius: 999px;
  color: rgba(231, 244, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.12rem;
  line-height: 1;
}

.remove-btn:hover {
  background: rgba(255, 139, 127, 0.18);
  color: #ffd7d3;
}

.pane-content {
  flex: 1;
  padding: 0.58rem;
  font-size: 0.8rem;
  line-height: 1.44;
  overflow: auto;
}

.pane[data-pane-type="markets"] .pane-content,
.pane[data-pane-type="microstructure"] .pane-content,
.pane[data-pane-type="orders"] .pane-content,
.pane[data-pane-type="traders"] .pane-content,
.pane[data-pane-type="watchlist"] .pane-content,
.pane[data-pane-type="focus"] .pane-content,
.pane[data-pane-type="wallets"] .pane-content {
  padding-top: 0;
}

.pane-content h3 {
  margin: 0.2rem 0 0.44rem;
  font-size: 0.95rem;
}

.pane-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pane-content li {
  padding: 0.44rem 0;
  border-bottom: 1px solid rgba(138, 196, 226, 0.15);
}

.pane-content li:last-child {
  border-bottom: none;
}

.pane-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  border-right: 2px solid rgba(126, 186, 221, 0.78);
  border-bottom: 2px solid rgba(126, 186, 221, 0.78);
  opacity: 0.86;
  cursor: nwse-resize;
  touch-action: none;
}

body.layout-manipulating {
  user-select: none;
}

.pane.pane-active {
  border-color: rgba(197, 234, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(185, 231, 255, 0.6), 0 24px 48px rgba(2, 8, 13, 0.62);
}

.pane[data-pane-type="news"] .pane-type-chip { border-color: rgba(245, 170, 90, 0.5); color: #ffd8b0; background: rgba(245, 170, 90, 0.16); }
.pane[data-pane-type="markets"] .pane-type-chip { border-color: rgba(88, 210, 215, 0.48); color: #bef8fb; background: rgba(88, 210, 215, 0.16); }
.pane[data-pane-type="orders"] .pane-type-chip { border-color: rgba(116, 169, 255, 0.5); color: #d6e7ff; background: rgba(116, 169, 255, 0.16); }
.pane[data-pane-type="traders"] .pane-type-chip { border-color: rgba(99, 219, 160, 0.5); color: #cefbe6; background: rgba(99, 219, 160, 0.14); }
.pane[data-pane-type="insiders"] .pane-type-chip { border-color: rgba(255, 205, 130, 0.58); color: #ffe9c8; background: rgba(255, 190, 117, 0.18); }
.pane[data-pane-type="watchlist"] .pane-type-chip { border-color: rgba(255, 191, 120, 0.55); color: #ffe7c9; background: rgba(255, 191, 120, 0.15); }
.pane[data-pane-type="focus"] .pane-type-chip { border-color: rgba(163, 194, 255, 0.55); color: #e3eeff; background: rgba(163, 194, 255, 0.17); }
.pane[data-pane-type="microstructure"] .pane-type-chip { border-color: rgba(111, 221, 255, 0.52); color: #d8f6ff; background: rgba(111, 221, 255, 0.14); }
.pane[data-pane-type="wallets"] .pane-type-chip { border-color: rgba(142, 232, 168, 0.58); color: #d7fbe5; background: rgba(99, 219, 160, 0.14); }
.pane[data-pane-type="ops"] .pane-type-chip { border-color: rgba(255, 219, 125, 0.58); color: #ffeec5; background: rgba(245, 170, 90, 0.16); }
.pane[data-pane-type="alerts"] .pane-type-chip { border-color: rgba(255, 139, 127, 0.55); color: #ffd0cb; background: rgba(255, 139, 127, 0.18); }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(138, 196, 226, 0.14);
  padding: 0.32rem 0.36rem;
  text-align: left;
  vertical-align: top;
}

.table th {
  position: sticky;
  top: -1px;
  z-index: 1;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(219, 237, 250, 0.7);
  font-weight: 600;
  background: rgba(13, 29, 41, 0.96);
}

.table tbody tr:hover {
  background: rgba(117, 166, 189, 0.1);
}

.wallet-hover-target {
  cursor: crosshair;
}

.wallet-hover-card {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(360px, calc(100vw - 24px));
  padding: 0.62rem 0.68rem;
  border-radius: 13px;
  border: 1px solid rgba(156, 214, 245, 0.42);
  background: linear-gradient(160deg, rgba(11, 31, 44, 0.98), rgba(13, 28, 40, 0.98));
  box-shadow: 0 16px 46px rgba(2, 8, 13, 0.65);
  opacity: 0;
  transform: translateY(4px) scale(0.99);
  transition: opacity 130ms ease, transform 130ms ease;
  pointer-events: none;
}

.wallet-hover-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wallet-hover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.wallet-hover-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.wallet-hover-confidence {
  text-transform: capitalize;
}

.wallet-hover-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem 0.5rem;
  margin-bottom: 0.42rem;
}

.wallet-hover-metrics > div {
  padding: 0.32rem 0.38rem;
  border: 1px solid rgba(142, 203, 237, 0.18);
  border-radius: 8px;
  background: rgba(19, 42, 58, 0.42);
  line-height: 1.2;
}

.wallet-hover-chart-block + .wallet-hover-chart-block {
  margin-top: 0.28rem;
}

.wallet-hover-chart-title {
  margin-bottom: 0.18rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(218, 239, 253, 0.72);
}

.wallet-chart-svg {
  width: 100%;
  height: 78px;
  display: block;
  border-radius: 8px;
  background: rgba(8, 21, 30, 0.62);
}

.wallet-chart-baseline {
  stroke: rgba(178, 217, 238, 0.34);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.wallet-hover-range {
  margin-top: 0.3rem;
}

.good {
  color: var(--good);
}

.bad {
  color: var(--bad);
}

.tag {
  border: 1px solid rgba(126, 186, 221, 0.56);
  color: #cce4f8;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  font-size: 0.69rem;
  background: rgba(116, 169, 255, 0.1);
}

.signal-pill {
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.signal-pill.signal-yes {
  border-color: rgba(99, 219, 160, 0.72);
  color: #b8f3d3;
  background: rgba(99, 219, 160, 0.16);
}

.signal-pill.signal-no {
  border-color: rgba(255, 139, 127, 0.72);
  color: #ffd0cb;
  background: rgba(255, 139, 127, 0.14);
}

.signal-pill.signal-na {
  border-color: rgba(167, 195, 214, 0.62);
  color: #d0e0ec;
  background: rgba(167, 195, 214, 0.12);
}

.small {
  color: var(--muted);
  font-size: 0.72rem;
}

.news-link {
  color: #97f0f2;
  text-decoration: none;
}

.news-link:hover {
  color: #c9fbfd;
  text-decoration: underline;
}

.news-meta-link {
  color: #9ed9ff;
  text-decoration: none;
}

.news-meta-link:hover {
  text-decoration: underline;
}

.news-controls {
  margin-bottom: 0.62rem;
  display: grid;
  gap: 0.42rem;
}

.news-control-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.news-source-dropdown {
  width: min(100%, 19rem);
  border: 1px solid rgba(148, 203, 231, 0.34);
  border-radius: 9px;
  background: rgba(18, 39, 53, 0.88);
}

.news-source-dropdown[open] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88, 210, 215, 0.22);
}

.news-source-dropdown-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.54rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--text);
}

.news-source-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.news-source-dropdown-trigger::after {
  content: "▾";
  color: rgba(229, 243, 255, 0.7);
  transition: transform 0.18s ease;
}

.news-source-dropdown[open] .news-source-dropdown-trigger::after {
  transform: rotate(180deg);
}

.news-source-dropdown-summary {
  color: rgba(231, 244, 255, 0.75);
  max-width: 10.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-source-dropdown-menu {
  margin-top: 0.08rem;
  border-top: 1px solid rgba(148, 203, 231, 0.28);
  padding: 0.22rem;
  display: grid;
  gap: 0.14rem;
  max-height: 10.5rem;
  overflow-y: auto;
}

.news-source-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 7px;
  padding: 0.24rem 0.32rem;
  cursor: pointer;
  color: rgba(231, 244, 255, 0.92);
}

.news-source-option:hover {
  background: rgba(88, 210, 215, 0.12);
}

.news-source-option input[type="checkbox"] {
  appearance: auto;
  width: 0.92rem;
  height: 0.92rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  accent-color: var(--accent-soft);
}

.news-source-input {
  width: min(17.5rem, 100%);
}

.score-breakdown {
  margin-top: 0.55rem;
  margin-bottom: 0.7rem;
}

.score-breakdown-label {
  margin-bottom: 0.28rem;
}

.watch-btn {
  border: 1px solid rgba(126, 186, 221, 0.6);
  background: rgba(20, 44, 58, 0.54);
  color: #c8e6fa;
  padding: 0.14rem 0.44rem;
  font-size: 0.67rem;
  cursor: pointer;
}

.watch-btn.watching {
  border-color: rgba(99, 219, 160, 0.74);
  color: #b8f3d3;
  background: rgba(99, 219, 160, 0.12);
}

.wallet-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
}

.wallet-name-cell > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-inspect-btn {
  border: 1px solid rgba(116, 169, 255, 0.56);
  background: rgba(21, 45, 62, 0.72);
  color: #d6e7ff;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-profile-link {
  border: 1px solid rgba(141, 232, 172, 0.56);
  background: rgba(33, 70, 52, 0.66);
  color: #d7fbe7;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

@keyframes pane-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-indicator {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 210, 215, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(88, 210, 215, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 210, 215, 0);
  }
}

@media (min-width: 761px) and (max-width: 1439px) {
  .topbar {
    padding: 1rem 1.05rem 1.08rem;
  }

  .controls {
    gap: 0.5rem 0.62rem;
  }

  .layout-grid {
    padding: 0.9rem;
  }
}

@media (min-width: 1440px) and (max-width: 2199px) {
  .topbar {
    padding: 1.1rem 1.2rem 1.18rem;
    gap: 1rem 1.2rem;
    grid-template-columns: minmax(360px, 1fr) auto;
  }

  .controls {
    gap: 0.58rem 0.7rem;
    padding: 0.78rem;
  }

  .controls label {
    font-size: 0.7rem;
  }

  button,
  select,
  input {
    font-size: 0.8rem;
  }

  .telemetry-strip {
    padding: 0.95rem 1.2rem 0.28rem;
    gap: 0.86rem;
  }

  .telemetry-card {
    padding: 0.82rem 0.92rem;
  }

  .layout-grid {
    padding: 1rem;
    min-height: calc(100vh - 255px);
  }

  .pane-title {
    font-size: 0.89rem;
  }

  .pane-content {
    padding: 0.68rem;
    font-size: 0.84rem;
  }
}

@media (min-width: 2200px) {
  .topbar {
    padding: 1.2rem 1.35rem 1.25rem;
    gap: 1.08rem 1.25rem;
    grid-template-columns: minmax(420px, 1fr) auto;
  }

  .brand-kicker {
    font-size: 0.68rem;
  }

  .topbar h1 {
    font-size: clamp(1.5rem, 1.7vw, 1.9rem);
  }

  .controls {
    gap: 0.62rem 0.78rem;
    padding: 0.86rem;
  }

  .controls label {
    font-size: 0.72rem;
  }

  button,
  select,
  input {
    font-size: 0.82rem;
  }

  .telemetry-strip {
    padding: 1rem 1.35rem 0.32rem;
    gap: 0.95rem;
  }

  .telemetry-card {
    padding: 0.88rem 0.95rem;
  }

  .layout-grid {
    padding: 1.18rem;
    min-height: calc(100vh - 272px);
  }

  .pane-title {
    font-size: 0.95rem;
  }

  .pane-content {
    padding: 0.78rem;
    font-size: 0.88rem;
  }

  .wallet-hover-card {
    width: min(420px, calc(100vw - 24px));
  }
}

@media (max-width: 980px) {
  .landing-hero h1 {
    max-width: 100%;
  }

  .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-cta {
    width: 100%;
  }
}

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

  .status-block {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .topbar {
    padding: 0.8rem;
  }

  .controls {
    padding: 0.58rem;
  }

  #trader-search,
  #market-search {
    width: 8.2rem;
  }
}

@media (max-width: 560px) {
  .telemetry-strip {
    grid-template-columns: 1fr;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .controls {
    gap: 0.38rem;
  }

  button,
  select,
  input {
    font-size: 0.72rem;
  }

  input[type="number"],
  input[type="text"] {
    width: 6.2rem;
  }

  #trader-search,
  #market-search {
    width: 7rem;
  }

  .wallet-hover-card {
    width: min(340px, calc(100vw - 14px));
    padding: 0.55rem;
  }

  .wallet-hover-name {
    font-size: 0.78rem;
  }

  .wallet-chart-svg {
    height: 70px;
  }
}
