:root {
  --bg: #0a0e1a;
  --ink: #e0dce8;
  --muted: rgba(255,255,255,0.45);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.12);
  --panel: rgba(255,255,255,0.03);
  --panel-strong: rgba(255,255,255,0.05);
  --teal: #4fd1c5;
  --teal-strong: #38b2ac;
  --amber: #eab308;
  --red: #f87171;
  --blue: #60a5fa;
  --glow-teal: rgba(79,209,197,0.12);
  --glow-blue: rgba(96,165,250,0.1);
  --glow-rose: rgba(248,113,113,0.1);
  --glow-lavender: rgba(168,124,240,0.15);
  --glow-violet: rgba(142,110,184,0.12);
  --glow-periwinkle: rgba(131,145,212,0.1);
  --tint-sky: rgba(96,165,250,0.06);
  --tint-mint: rgba(79,209,197,0.06);
  --tint-rose: rgba(248,113,113,0.06);
  --tint-lavender: rgba(168,124,240,0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 36px rgba(0,0,0,0.2);
  --shadow-float: 0 18px 42px rgba(0,0,0,0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 6% -8%, var(--glow-lavender), transparent 42%),
    radial-gradient(circle at 92% 2%, var(--glow-periwinkle), transparent 42%),
    radial-gradient(circle at 48% -18%, var(--glow-violet), transparent 54%),
    radial-gradient(circle at 14% 52%, var(--tint-lavender), transparent 44%),
    radial-gradient(circle at 85% 68%, var(--tint-sky), transparent 44%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 14px
    ),
    linear-gradient(180deg, #0a0e1a 0%, #0d1220 44%, #0a0e1a 100%);
  background-size: 130% 130%, 130% 130%, 130% 130%, 100% 100%, 100% 100%, auto, 100% 100%;
  animation: breathGradient 16s ease-in-out infinite alternate;
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.25;
}

body::before {
  width: 280px;
  height: 280px;
  top: 8vh;
  left: 6vw;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(168, 124, 240, 0.2), rgba(168, 124, 240, 0));
  animation: auraFloat 14s ease-in-out infinite alternate, auraBreathe 9s ease-in-out infinite;
}

body::after {
  width: 360px;
  height: 360px;
  top: 22vh;
  right: 5vw;
  border-radius: 44% 56% 60% 40% / 40% 48% 52% 60%;
  background: radial-gradient(circle at 35% 38%, rgba(131, 145, 212, 0.18), rgba(131, 145, 212, 0));
  animation: auraFloat 17s ease-in-out infinite alternate-reverse, auraBreathe 11s ease-in-out infinite;
}

@keyframes breathGradient {
  0% {
    background-position:
      0% 0%,
      100% 0%,
      50% 0%,
      0% 50%,
      100% 70%,
      0 0,
      0 0;
  }
  100% {
    background-position:
      8% -4%,
      94% 5%,
      56% -8%,
      6% 54%,
      96% 62%,
      0 0,
      0 0;
  }
}

@keyframes auraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(12px, -14px, 0) scale(1.06);
  }
}

@keyframes auraBreathe {
  0% {
    opacity: 0.34;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.52;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.36;
    transform: scale(1);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.lp-locked .topbar,
body.lp-locked .shell {
  pointer-events: none;
  user-select: none;
  filter: blur(3px);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(8px);
}

body.lp-locked .auth-gate {
  display: flex;
}

.auth-card {
  width: min(420px, 96vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 6% 4%, rgba(168, 124, 240, 0.1), transparent 34%);
  box-shadow: var(--shadow-float);
  padding: 1rem;
}

.auth-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.auth-card p {
  margin: 0.45rem 0 0;
  color: rgba(255,255,255,0.55);
}

.auth-form {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.55rem;
}

.auth-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  padding: 0.44rem 0.64rem;
  background: rgba(255,255,255,0.05);
  color: #e0dce8;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", monospace;
}

.auth-hint {
  margin-top: 0.62rem;
  min-height: 1.1em;
  font-size: 0.72rem;
}

.auth-hint.error {
  color: var(--red);
}

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

.shell {
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding-bottom: 2.4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10,14,26,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.topbar-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.nav {
  display: inline-flex;
  gap: 0.44rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.nav a:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.nav a.is-active {
  background: linear-gradient(135deg, var(--teal-strong), var(--blue));
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 22px rgba(56, 178, 172, 0.2);
}

.nav-current {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.hero {
  padding: 1.45rem 0 1.05rem;
  display: grid;
  gap: 0.68rem;
  animation: cardRise 0.55s ease both;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    radial-gradient(circle at 88% 16%, rgba(248,113,113,0.06), transparent 34%);
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: 0.012em;
  background: linear-gradient(132deg, #60a5fa 0%, #4fd1c5 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  max-width: 78ch;
  line-height: 1.68;
}

.meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-chip {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}

.layout {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.02rem;
  min-width: 0;
}

.layout > * {
  opacity: 0;
  animation: cardRise 0.5s ease forwards;
  min-width: 0;
}

.layout > *:nth-child(1) { animation-delay: 0.03s; }
.layout > *:nth-child(2) { animation-delay: 0.06s; }
.layout > *:nth-child(3) { animation-delay: 0.09s; }
.layout > *:nth-child(4) { animation-delay: 0.12s; }
.layout > *:nth-child(5) { animation-delay: 0.15s; }
.layout > *:nth-child(6) { animation-delay: 0.18s; }
.layout > *:nth-child(7) { animation-delay: 0.21s; }
.layout > *:nth-child(8) { animation-delay: 0.24s; }
.layout > *:nth-child(9) { animation-delay: 0.27s; }
.layout > *:nth-child(10) { animation-delay: 0.3s; }
.layout > *:nth-child(n + 11) { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .layout > * {
    opacity: 1;
    animation: none;
  }

  body::before,
  body::after {
    animation: none;
  }
}

.card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, var(--panel-strong), var(--panel)),
    radial-gradient(circle at 8% 6%, rgba(248,113,113,0.04), transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(96,165,250,0.05), transparent 46%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  min-width: 0;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
  border-color: rgba(255,255,255,0.1);
}

.card-head {
  padding: 0.8rem 0.94rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.02);
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.card-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  letter-spacing: 0.012em;
}

.card-body {
  padding: 0.94rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 0.72rem 0.76rem;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    radial-gradient(circle at 80% -18%, rgba(96,165,250,0.06), transparent 42%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat label {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 0.34rem;
  font-size: 1.18rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.01em;
}

.stat strong.is-pos {
  color: var(--teal);
}

.stat strong.is-neg {
  color: var(--red);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

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

.stack-vertical {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.stack-vertical > * {
  min-width: 0;
}

.modules-split .module-right {
  position: relative;
}

.modules-split .module-right::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -0.46rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06) 10%, rgba(255,255,255,0.06) 90%, transparent);
}

.modules-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    radial-gradient(circle at 8% 6%, rgba(248,113,113,0.03), transparent 36%);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem 0.46rem;
  text-align: left;
  white-space: nowrap;
}

th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.reason-cell {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
}

.history-table {
  min-width: 1180px;
  table-layout: fixed;
}

.history-table th,
.history-table td {
  vertical-align: top;
  padding-top: 0.56rem;
  padding-bottom: 0.56rem;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
  width: 64px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  width: 76px;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 250px;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  width: 82px;
}

.history-table th:nth-child(5),
.history-table td:nth-child(5) {
  width: 86px;
}

.history-table th:nth-child(6),
.history-table td:nth-child(6) {
  width: 142px;
}

.history-table th:nth-child(7),
.history-table td:nth-child(7) {
  width: 126px;
}

.history-table th:nth-child(8),
.history-table td:nth-child(8) {
  width: 96px;
}

.history-table th:nth-child(9),
.history-table td:nth-child(9) {
  width: 200px;
}

.history-table th:nth-child(10),
.history-table td:nth-child(10) {
  width: 96px;
}

.history-table th:nth-child(11),
.history-table td:nth-child(11) {
  width: 178px;
}

.history-table th:nth-child(12),
.history-table td:nth-child(12) {
  width: 86px;
}

.history-pool-cell,
.history-cost-cell,
.history-reason-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.36;
}

.history-pool-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.running-table {
  min-width: 1780px;
  table-layout: fixed;
}

.running-table th,
.running-table td {
  vertical-align: top;
}

.running-table th:nth-child(1),
.running-table td:nth-child(1) { width: 64px; }
.running-table th:nth-child(2),
.running-table td:nth-child(2) { width: 250px; }
.running-table th:nth-child(3),
.running-table td:nth-child(3) { width: 86px; }
.running-table th:nth-child(4),
.running-table td:nth-child(4) { width: 84px; }
.running-table th:nth-child(5),
.running-table td:nth-child(5) { width: 88px; }
.running-table th:nth-child(6),
.running-table td:nth-child(6) { width: 104px; }
.running-table th:nth-child(7),
.running-table td:nth-child(7) { width: 86px; }
.running-table th:nth-child(8),
.running-table td:nth-child(8) { width: 86px; }
.running-table th:nth-child(9),
.running-table td:nth-child(9) { width: 86px; }
.running-table th:nth-child(10),
.running-table td:nth-child(10) { width: 86px; }
.running-table th:nth-child(11),
.running-table td:nth-child(11) { width: 68px; }
.running-table th:nth-child(12),
.running-table td:nth-child(12) { width: 108px; }
.running-table th:nth-child(13),
.running-table td:nth-child(13) { width: 94px; }
.running-table th:nth-child(14),
.running-table td:nth-child(14) { width: 90px; }
.running-table th:nth-child(15),
.running-table td:nth-child(15) { width: 106px; }
.running-table th:nth-child(16),
.running-table td:nth-child(16) { width: 90px; }
.running-table th:nth-child(17),
.running-table td:nth-child(17) { width: 142px; }
.running-table th:nth-child(18),
.running-table td:nth-child(18) { width: 82px; }

.running-table td:nth-child(2),
.running-table td:nth-child(12) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.36;
}

.hot-table-wrap {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}

.hot-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.hot-table th,
.hot-table td {
  padding: 0.42rem 0.34rem;
  vertical-align: middle;
  font-size: 0.8rem;
}

.hot-table th:nth-child(1),
.hot-table td:nth-child(1) { width: 40px; }
.hot-table th:nth-child(2),
.hot-table td:nth-child(2) { width: 220px; }
.hot-table th:nth-child(3),
.hot-table td:nth-child(3) { width: 54px; }
.hot-table th:nth-child(4),
.hot-table td:nth-child(4) { width: 88px; }
.hot-table th:nth-child(5),
.hot-table td:nth-child(5) { width: 88px; }
.hot-table th:nth-child(6),
.hot-table td:nth-child(6) { width: 62px; }
.hot-table th:nth-child(7),
.hot-table td:nth-child(7) { width: 78px; }
.hot-table th:nth-child(8),
.hot-table td:nth-child(8) { width: 96px; }
.hot-table th:nth-child(9),
.hot-table td:nth-child(9) { width: 182px; }

.hot-table .actions {
  gap: 0.24rem;
}

.hot-table .actions button {
  padding: 0.22rem 0.46rem;
  font-size: 0.66rem;
}

.row-note {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}

.value-pos {
  color: #4fd1c5;
}

.value-neg {
  color: #f87171;
}

.value-flat {
  color: rgba(255,255,255,0.5);
}

.value-na {
  color: rgba(255,255,255,0.35);
}

.manual-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.1rem 0.45rem;
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
}

.manual-chip.ok {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
}

.manual-chip.need {
  color: #f87171;
  border-color: rgba(248,113,113,0.3);
  background: rgba(248,113,113,0.08);
}

.range-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.1rem 0.5rem;
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
}

.range-state-active {
  color: #4fd1c5;
  border-color: rgba(79,209,197,0.3);
  background: rgba(79,209,197,0.08);
}

.range-state-inactive {
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.range-state-unknown {
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

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

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: rgba(79,209,197,0.06);
}

.chip {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  padding: 0.18rem 0.45rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
}

.chain-base {
  border-color: rgba(79,209,197,0.25);
  color: #4fd1c5;
}

.chain-bsc {
  border-color: rgba(96,165,250,0.25);
  color: #60a5fa;
}

.actions {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}

button,
.btn,
select {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  padding: 0.42rem 0.68rem;
  background: rgba(255,255,255,0.05);
  color: #e0dce8;
  font-size: 0.77rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover,
.btn:hover,
select:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

button.primary,
.btn.primary {
  background: linear-gradient(135deg, var(--teal-strong), var(--blue));
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
  box-shadow: 0 10px 22px rgba(56, 178, 172, 0.18);
}

.sort-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

.kline-tabs {
  gap: 0.28rem;
}

.kline-tabs button {
  padding: 0.34rem 0.52rem;
  min-width: 48px;
  font-size: 0.72rem;
}

.kline-meta {
  margin-bottom: 0.2rem;
}

.kline-axis-note {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.narrative-panel {
  margin-top: 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 0.6rem 0.72rem;
}

.narrative-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.narrative-panel-head strong {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
}

.narrative-panel-body {
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  white-space: normal;
  word-break: break-word;
}

select {
  min-width: 110px;
}

tbody tr.is-selected {
  background: linear-gradient(90deg, rgba(79,209,197,0.1), rgba(79,209,197,0.02));
}

.gold-number {
  color: #eab308;
  font-weight: 700;
}

.red-number {
  color: #f87171;
  font-weight: 700;
}

.dex-short {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.55);
}

.chart-wrap {
  width: 100%;
  height: 330px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(10,14,26,0.6);
}

.chart-wrap.small {
  height: 220px;
}

.empty {
  padding: 0.95rem 0.4rem;
  color: rgba(255,255,255,0.4);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

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

.footer-note {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  padding-left: 0.1rem;
}

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

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

  .modules-split .module-right::before {
    left: 1rem;
    right: 1rem;
    top: -0.46rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  body::after {
    width: 280px;
    height: 280px;
    right: -6vw;
    top: 26vh;
  }
}

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

  .hero h1 {
    font-size: 1.58rem;
  }

  .chart-wrap {
    height: 260px;
  }

  .chart-wrap.small {
    height: 200px;
  }

  body::before,
  body::after {
    opacity: 0.15;
    filter: blur(32px);
  }

  .card-head,
  .card-body {
    padding-left: 0.72rem;
    padding-right: 0.72rem;
  }
}
