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

:root {
  --bg: #07111a;
  --bg-2: #0b1722;
  --panel: rgba(8, 17, 27, 0.88);
  --panel-strong: rgba(7, 14, 22, 0.96);
  --line: rgba(136, 167, 201, 0.14);
  --line-strong: rgba(186, 212, 240, 0.2);
  --text: #edf4fd;
  --muted: #8fa4bb;
  --cyan: #60d7ff;
  --amber: #ffbc66;
  --emerald: #58d39f;
  --rose: #ff7f8f;
  --steel: #8fb7df;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 18%, rgba(96, 215, 255, 0.12), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(255, 188, 102, 0.12), transparent 18%),
    linear-gradient(180deg, #09131d 0%, #050b12 100%);
  color: var(--text);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
}

.backdrop,
.scan-grid,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 30%);
  opacity: 0.7;
}

.scan-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 92%);
}

.glow-a {
  background: radial-gradient(circle at 14% 78%, rgba(88, 211, 159, 0.13), transparent 22%);
}

.glow-b {
  background: radial-gradient(circle at 80% 74%, rgba(255, 127, 143, 0.12), transparent 24%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1660px, calc(100vw - 26px));
  margin: 14px auto 28px;
}

.panel-frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panel-rise 0.56s ease both;
}

.panel-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.topbar,
.telemetry,
.workspace-panel {
  backdrop-filter: blur(12px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.95fr);
  gap: 18px;
  padding: 24px 24px 20px;
}

.brand-block h1,
.section-head h2,
.panel-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-block h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.eyebrow,
.metric-label,
.meta-label,
.panel-kicker,
.tower-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.subline,
.note-copy {
  margin: 16px 0 0;
  max-width: 60ch;
  line-height: 1.65;
  color: #cad7e7;
}

.status-dock {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 211, 159, 0.28);
  background: rgba(88, 211, 159, 0.12);
  color: #d6ffee;
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-muted {
  border-color: rgba(143, 183, 223, 0.24);
  background: rgba(143, 183, 223, 0.11);
  color: #ddeaf7;
}

.pill-outline {
  border-color: rgba(255, 188, 102, 0.28);
  background: transparent;
  color: #ffd8a3;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-block {
  padding: 16px;
  background: var(--panel-strong);
  border-left: 2px solid rgba(143, 183, 223, 0.3);
}

.meta-value {
  display: block;
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.96rem;
  color: var(--text);
}

.meta-error {
  color: #ffd3d9;
}

.telemetry {
  margin-top: 14px;
  padding: 18px 20px 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.telemetry-cell {
  min-height: 122px;
  padding: 16px 16px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%),
    rgba(5, 11, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  display: grid;
  align-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.telemetry-cell:hover,
.signal-card:hover,
.hot-card:hover,
.feed-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.tone-cyan {
  border-top: 2px solid rgba(96, 215, 255, 0.72);
}

.tone-amber {
  border-top: 2px solid rgba(255, 188, 102, 0.72);
}

.tone-emerald {
  border-top: 2px solid rgba(88, 211, 159, 0.72);
}

.tone-rose {
  border-top: 2px solid rgba(255, 127, 143, 0.72);
}

.tone-steel {
  border-top: 2px solid rgba(143, 183, 223, 0.72);
}

.metric-value {
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.2rem, 1.9vw, 2rem);
  line-height: 1.05;
}

.metric-foot {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.workspace {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.rack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.86fr);
  gap: 14px;
}

.side-rail {
  display: grid;
  gap: 14px;
}

.workspace-panel {
  padding: 16px 18px 18px;
  min-height: 100%;
}

.panel-launch {
  border-top: 2px solid rgba(96, 215, 255, 0.52);
}

.panel-signal {
  border-top: 2px solid rgba(255, 188, 102, 0.52);
}

.panel-hot {
  border-top: 2px solid rgba(88, 211, 159, 0.52);
}

.panel-feed {
  border-top: 2px solid rgba(255, 127, 143, 0.52);
}

.panel-book {
  border-top: 2px solid rgba(88, 211, 159, 0.52);
}

.panel-tower {
  border-top: 2px solid rgba(143, 183, 223, 0.52);
}

.panel-note {
  border-top: 2px solid rgba(255, 188, 102, 0.52);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-count {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(3, 8, 13, 0.64);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 25, 38, 0.94);
}

th,
td {
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99b0c8;
}

td {
  font-size: 0.93rem;
  color: var(--text);
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

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

.mono,
.metric-value,
.meta-value,
.panel-count,
th,
td {
  font-family: "IBM Plex Mono", monospace;
}

.token-main {
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.token-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}

.signal-list,
.hot-list,
.feed-list {
  display: grid;
  gap: 10px;
}

.signal-card,
.hot-card,
.feed-item {
  padding: 14px 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%),
    rgba(5, 12, 19, 0.84);
}

.signal-head,
.hot-head,
.feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(143, 183, 223, 0.16);
  background: rgba(143, 183, 223, 0.08);
  color: #d9e7f5;
  font-size: 0.75rem;
}

.signal-reason,
.feed-message {
  margin-top: 10px;
  color: #d6e2ee;
  line-height: 1.55;
  font-size: 0.9rem;
}

.feed-list {
  max-height: 620px;
  overflow: auto;
}

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

.tower-cell {
  min-height: 118px;
  padding: 14px;
  border-left: 2px solid rgba(143, 183, 223, 0.34);
  background: rgba(5, 11, 17, 0.72);
  display: grid;
  align-content: space-between;
}

.tower-cell strong {
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.12rem;
  color: var(--text);
}

.tower-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.note-copy {
  margin-top: 0;
}

.positive {
  color: #7bf0bd;
}

.negative {
  color: #ff98a5;
}

.neutral {
  color: #dbe8f6;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 1120px) {
  .topbar,
  .ops-grid,
  .rack-grid {
    grid-template-columns: 1fr;
  }

  .status-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 12px, 100%);
    margin: 6px auto 18px;
  }

  .topbar,
  .telemetry,
  .workspace-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .brand-block h1 {
    font-size: 2.25rem;
  }

  .meta-strip,
  .tower-grid,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  .feed-list {
    -webkit-overflow-scrolling: touch;
  }

  .hide-mobile {
    display: none;
  }

  table {
    min-width: 580px;
  }

  th,
  td {
    padding: 10px 8px;
  }
}
