:root {
  color-scheme: dark;
  --bg: #070a0e;
  --bg-2: #0a1118;
  --panel: #101923;
  --panel-2: #0c141d;
  --panel-3: #142030;
  --line: rgba(165, 186, 207, 0.15);
  --line-strong: rgba(165, 186, 207, 0.28);
  --text: #eef5f8;
  --muted: #9badbc;
  --subtle: #687b8d;
  --cyan: #5ee6ff;
  --cyan-soft: rgba(94, 230, 255, 0.12);
  --green: #4df0a1;
  --green-soft: rgba(77, 240, 161, 0.12);
  --amber: #f6bd60;
  --amber-soft: rgba(246, 189, 96, 0.13);
  --red: #ff6464;
  --red-soft: rgba(255, 100, 100, 0.14);
  --violet: #a78bfa;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(94, 230, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 230, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #05070a 0%, #081018 46%, #11151b 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 14, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(94, 230, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(94, 230, 255, 0.2), rgba(77, 240, 161, 0.12)),
    #0b151d;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  display: none;
}

.brand-mark::before {
  content: "US";
  color: var(--cyan);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

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

.brand-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 760;
}

.nav-rail {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-item,
.tab,
.ghost-button,
.action-grid button,
.icon-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 780;
}

.nav-item {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(94, 230, 255, 0.28);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.sync-pill,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 20, 29, 0.7);
}

.sync-pill strong,
.live-badge em {
  color: var(--text);
  font-style: normal;
}

.sync-dot,
.live-badge b,
.status-stack b,
.risk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77, 240, 161, 0.12);
}

.ghost-button {
  min-height: 36px;
  padding: 0 13px;
  border-color: var(--line);
  background: #0b141d;
  color: var(--muted);
  font-size: 12px;
}

.ghost-button:hover,
.action-grid button:hover {
  border-color: rgba(94, 230, 255, 0.36);
  color: var(--cyan);
}

.workspace {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.panel,
.metric-card,
.workflow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 32, 48, 0.88), rgba(9, 15, 22, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px 300px;
  gap: 12px;
}

.market-index {
  min-height: 296px;
  padding: 22px;
}

.panel-kicker,
.panel-title {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.index-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-top: 24px;
}

.streak {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.streak b {
  color: var(--cyan);
}

.index-value {
  display: block;
  margin-top: 12px;
  font-size: clamp(62px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.index-change {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 860;
}

.session-line {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--subtle);
  font-size: 12px;
}

.hero-chart {
  width: 100%;
  min-height: 218px;
  overflow: visible;
  cursor: crosshair;
  touch-action: none;
}

.chart-grid path {
  fill: none;
  stroke: rgba(165, 186, 207, 0.11);
  stroke-width: 1;
}

.hero-grid-line.vertical {
  stroke-opacity: 0.7;
}

.hero-axis-line {
  fill: none;
  stroke: rgba(165, 186, 207, 0.2);
  stroke-width: 1;
}

.hero-axis-label,
.hero-axis-caption {
  fill: rgba(192, 211, 232, 0.72);
  font-size: 18px;
  font-weight: 760;
}

.hero-axis-label.x {
  fill: rgba(192, 211, 232, 0.64);
}

.hero-axis-caption {
  fill: rgba(94, 230, 255, 0.72);
  font-size: 18px;
}

.hero-area,
.chart-area {
  fill: url("#heroFill");
}

.hero-line,
.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(94, 230, 255, 0.9));
}

.hero-hit-area {
  fill: transparent;
  pointer-events: all;
}

.hero-cursor {
  pointer-events: none;
  opacity: 1;
  transition: opacity 120ms ease;
}

.hero-cursor.hidden {
  opacity: 0;
}

.hero-cursor-line {
  stroke: rgba(212, 232, 255, 0.38);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.hero-cursor-dot {
  fill: #ffffff;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(94, 230, 255, 0.85));
}

.hero-cursor-card {
  fill: rgba(8, 20, 33, 0.92);
  stroke: rgba(94, 230, 255, 0.32);
  stroke-width: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
}

.hero-cursor text {
  fill: var(--text);
  font-size: 18px;
  font-weight: 760;
}

.hero-cursor .hero-cursor-date {
  fill: rgba(192, 211, 232, 0.72);
}

.hero-cursor .hero-cursor-value {
  fill: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.hero-cursor .hero-cursor-change.positive {
  fill: var(--green);
}

.hero-cursor .hero-cursor-change.negative {
  fill: var(--red);
}

.market-pulse,
.risk-tape {
  min-height: 296px;
  padding: 18px;
}

.market-pulse strong {
  display: block;
  margin-top: 20px;
  font-size: 34px;
  line-height: 1;
}

.pulse-compare {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pulse-compare p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-stack,
.risk-tape-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.status-stack span,
.risk-tape-list p {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.42);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.status-stack b.warn {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 189, 96, 0.12);
}

.risk-tape-list {
  margin-top: 20px;
}

.risk-dot.high {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 100, 100, 0.12);
}

.risk-dot.mid {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 189, 96, 0.12);
}

.risk-dot.low {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77, 240, 161, 0.12);
}

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

.metric-card {
  min-height: 132px;
  padding: 16px;
}

.metric-card span,
.metric-card small,
.workflow-card span,
.workflow-card em {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.1;
}

.metric-card em {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 860;
}

.metric-card small {
  margin-top: 8px;
}

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

.workflow-card {
  min-height: 112px;
  padding: 16px;
  text-align: left;
}

.workflow-card:hover {
  border-color: rgba(94, 230, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(20, 40, 52, 0.9), rgba(9, 15, 22, 0.95)),
    var(--panel);
}

.workflow-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 17px;
}

.workflow-card em {
  margin-top: 10px;
  font-style: normal;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.ranking-panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 18px 0;
}

.panel-head h1,
.advisor-head h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.panel-head p,
.advisor-head p {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

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

.query-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  flex: 1 1 260px;
  max-width: 360px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 13, 0.55);
  color: var(--subtle);
}

.query-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.query-field input::placeholder {
  color: var(--subtle);
}

select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b141d;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 18px 0;
  overflow-x: auto;
}

.tab {
  min-height: 34px;
  padding: 0 14px;
  border-color: var(--line);
  background: rgba(9, 15, 22, 0.62);
  font-size: 12px;
  white-space: nowrap;
}

.tab:hover,
.tab.active {
  border-color: rgba(77, 240, 161, 0.32);
  background: var(--green-soft);
  color: var(--green);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
}

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

th,
td {
  padding: 14px 12px;
  border-top: 1px solid rgba(165, 186, 207, 0.09);
  text-align: left;
  vertical-align: middle;
}

th:first-child,
td:first-child {
  padding-left: 18px;
}

th:last-child,
td:last-child {
  padding-right: 18px;
}

thead th {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

tbody tr {
  color: var(--muted);
  transition: background 160ms ease;
}

tbody tr[data-route] {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: rgba(94, 230, 255, 0.08);
}

tbody tr[data-route]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  background: rgba(94, 230, 255, 0.12);
}

tbody td {
  font-size: 13px;
  white-space: nowrap;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
}

.sort-header span::before {
  content: "↕";
  color: var(--subtle);
  font-size: 10px;
}

.sort-header.active {
  color: var(--cyan);
}

.sort-header.active[data-direction="desc"] span::before {
  content: "↓";
}

.sort-header.active[data-direction="asc"] span::before {
  content: "↑";
}

.table-more-row td {
  text-align: center;
  white-space: normal;
}

.table-more-button {
  min-height: 36px;
  margin: 4px 6px;
  padding: 0 14px;
  border: 1px solid rgba(77, 240, 161, 0.28);
  border-radius: 8px;
  background: rgba(77, 240, 161, 0.12);
  color: var(--green);
  font-weight: 780;
}

.table-more-button.subtle {
  border-color: rgba(165, 186, 207, 0.18);
  background: rgba(165, 186, 207, 0.08);
  color: var(--muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(165, 186, 207, 0.08);
}

.page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.page-button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(165, 186, 207, 0.16);
  border-radius: 8px;
  background: rgba(9, 15, 22, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.page-button.nav {
  min-width: 74px;
}

.page-button:hover:not(:disabled),
.page-button.active {
  border-color: rgba(77, 240, 161, 0.36);
  background: var(--green-soft);
  color: var(--green);
}

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

.page-ellipsis,
.page-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.skin-cell {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 280px;
}

.skin-thumb {
  width: 64px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(94, 230, 255, 0.2);
  border-radius: var(--radius);
  background: #081018;
}

.skin-thumb img,
.skin-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skin-cell strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.skin-cell span span {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 12px;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  border: 1px solid rgba(94, 230, 255, 0.24);
  border-radius: var(--radius);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 860;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 820;
}

.tag.buy {
  background: var(--green-soft);
  color: var(--green);
}

.tag.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.avoid {
  background: var(--red-soft);
  color: var(--red);
}

.horizon-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(94, 230, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(94, 230, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.advisor-panel {
  overflow: hidden;
}

.detail-route .overview-grid,
.detail-route .metric-grid,
.detail-route .workflow-grid,
.detail-route .ranking-panel,
.detail-route .risk-grid {
  display: none;
}

.detail-route .market-layout {
  grid-template-columns: minmax(0, 1040px);
  justify-content: center;
}

.detail-route .advisor-panel {
  width: 100%;
  max-width: 1040px;
}

.detail-route .advisor-head {
  padding-top: 22px;
}

.ranking-route .detail-back-button {
  display: none;
}

.detail-back-button {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(94, 230, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(94, 230, 255, 0.1);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
}

.detail-back-button:hover {
  border-color: rgba(94, 230, 255, 0.46);
  background: rgba(94, 230, 255, 0.16);
}

.advisor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px 18px 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  background: rgba(9, 15, 22, 0.72);
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
}

.skin-artwork {
  height: 174px;
  margin: 16px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(94, 230, 255, 0.2);
  border-radius: var(--radius);
  background: #071018;
}

.detail-route .skin-artwork {
  height: clamp(220px, 34vw, 360px);
}

.detail-placeholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 850;
}

.quote-grid,
.target-grid {
  display: grid;
  gap: 8px;
  margin: 14px 18px 0;
}

.quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

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

.detail-route .quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

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

.quote-grid p,
.target-grid p {
  min-height: 58px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.46);
}

.quote-grid span,
.target-grid span {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
}

.quote-grid strong,
.target-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
}

.wear-control {
  display: grid;
  gap: 10px;
  margin: 16px 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.wear-control b {
  float: right;
  color: var(--text);
  font-weight: 820;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.mini-chart,
.reason-box,
.trade-panel,
.event-panel,
.seven-day-review-panel,
.score-panel,
.backtest-panel {
  margin: 16px 18px 0;
  padding: 14px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.42);
}

.mini-chart {
  padding: 16px;
  border-color: rgba(94, 230, 255, 0.16);
  background:
    radial-gradient(circle at 16% 0%, rgba(94, 230, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 29, 42, 0.82), rgba(5, 10, 15, 0.92)),
    rgba(7, 11, 16, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.mini-chart .panel-title {
  color: var(--text);
}

.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 18px 0;
}

.analysis-metric {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.46);
}

.analysis-metric.wide {
  grid-column: 1 / -1;
}

.analysis-metric span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 820;
}

.analysis-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.18;
}

.analysis-metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.price-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  overflow: visible;
  touch-action: none;
}

.chart-data-notice {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.45;
}

.chart-empty {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.quant-chart {
  min-height: 360px;
}

.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chart-title-row b {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.chart-mode-switcher {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(165, 186, 207, 0.12);
}

.chart-mode {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.chart-mode:hover,
.chart-mode.active {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.range-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  justify-content: flex-end;
}

.range-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(165, 186, 207, 0.15);
  border-radius: var(--radius);
  background: rgba(9, 15, 22, 0.74);
  color: var(--muted);
  font-size: 11px;
  font-weight: 840;
}

.range-button:hover,
.range-button.active {
  border-color: rgba(94, 230, 255, 0.42);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chart-shell-bg {
  fill: url("#chartShellGradient");
  stroke: rgba(94, 230, 255, 0.14);
  stroke-width: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.chart-panel-bg {
  fill: rgba(94, 230, 255, 0.026);
  stroke: rgba(165, 186, 207, 0.08);
  stroke-width: 1;
}

.chart-panel-bg.price {
  fill: url("#pricePanelGradient");
}

.chart-grid.small path,
.chart-grid-vertical {
  fill: none;
  stroke: rgba(165, 186, 207, 0.08);
  stroke-width: 1;
}

.chart-grid-vertical {
  stroke: rgba(165, 186, 207, 0.06);
  stroke-dasharray: 2 7;
}

.chart-grid-line {
  fill: none;
  stroke: rgba(165, 186, 207, 0.08);
  stroke-width: 1;
}

.chart-grid-line.sub {
  stroke: rgba(165, 186, 207, 0.055);
}

.chart-grid-line.zero {
  stroke: rgba(183, 200, 215, 0.18);
}

.chart-panel-label {
  fill: var(--subtle);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: 0.02em;
}

.finance-chart-title {
  fill: var(--text);
  font-size: 13px;
  font-weight: 880;
}

.chart-ohlc-line {
  fill: rgba(183, 200, 215, 0.82);
  font-size: 10px;
  font-weight: 780;
}

.candle {
  filter: none;
}

.candle path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.45;
}

.candle rect {
  stroke-width: 1;
}

.candle.up path,
.candle.up rect {
  stroke: var(--red);
}

.candle.up rect {
  fill: rgba(255, 100, 100, 0.84);
}

.candle.down path,
.candle.down rect {
  stroke: var(--green);
}

.candle.down rect {
  fill: rgba(77, 240, 161, 0.84);
}

.volume-bar.up {
  fill: rgba(255, 100, 100, 0.46);
}

.volume-bar.down {
  fill: rgba(77, 240, 161, 0.42);
}

.bollinger-band {
  fill: rgba(165, 186, 207, 0.07);
}

.price-area {
  fill: url("#priceAreaGradient");
  stroke: none;
}

.price-curve {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(94, 230, 255, 0.2));
}

.price-curve.muted {
  stroke-width: 1.45;
  opacity: 0.42;
}

.volume-bar {
  opacity: 0.46;
}

.macd-bar {
  opacity: 0.54;
}

.macd-bar.up {
  fill: rgba(255, 100, 100, 0.58);
}

.macd-bar.down {
  fill: rgba(77, 240, 161, 0.52);
}

.indicator-line {
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.indicator-line.ma5 {
  stroke: #ff9f1a;
}

.indicator-line.ma10 {
  stroke: #9c6ade;
}

.indicator-line.ma20 {
  stroke: #1478ff;
}

.indicator-line.ma60 {
  stroke: #f72585;
}

.indicator-line.boll {
  stroke: rgba(165, 186, 207, 0.42);
  stroke-dasharray: 4 5;
}

.indicator-line.rsi {
  stroke: var(--cyan);
}

.indicator-line.macd {
  stroke: #1478ff;
}

.indicator-line.macd-signal {
  stroke: #ff9f1a;
}

.indicator-line.t7 {
  stroke: var(--red);
  stroke-width: 1.35;
  opacity: 0.78;
}

.chart-legend {
  fill: var(--subtle);
  font-size: 10px;
  font-weight: 780;
}

.chart-legend-key line {
  stroke: #7b8aa0;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.chart-legend-key text {
  fill: rgba(183, 200, 215, 0.78);
  font-size: 9px;
  font-weight: 820;
}

.chart-legend-key.legend-candle line {
  stroke: var(--red);
}

.chart-legend-key.ma5 line {
  stroke: #ff9f1a;
}

.chart-legend-key.ma10 line {
  stroke: #9c6ade;
}

.chart-legend-key.ma20 line {
  stroke: #1478ff;
}

.chart-legend-key.ma60 line {
  stroke: #f72585;
}

.chart-legend-key.macd line {
  stroke: #1478ff;
}

.level-line {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.level-line.support {
  stroke: rgba(77, 240, 161, 0.62);
}

.level-line.resistance {
  stroke: rgba(246, 189, 96, 0.66);
}

.level-label {
  font-size: 9px;
  font-weight: 820;
}

.level-label.support {
  fill: var(--green);
}

.level-label.resistance {
  fill: var(--amber);
}

.last-price-line {
  fill: none;
  stroke-dasharray: 4 7;
  stroke-width: 1;
}

.last-price.up .last-price-line {
  stroke: rgba(255, 100, 100, 0.58);
}

.last-price.down .last-price-line {
  stroke: rgba(77, 240, 161, 0.58);
}

.last-price rect {
  stroke-width: 1;
}

.last-price.up rect {
  fill: rgba(255, 100, 100, 0.18);
  stroke: rgba(255, 100, 100, 0.5);
}

.last-price.down rect {
  fill: rgba(77, 240, 161, 0.16);
  stroke: rgba(77, 240, 161, 0.5);
}

.last-price text {
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}

.last-price.up text {
  fill: var(--red);
}

.last-price.down text {
  fill: var(--green);
}

.rsi-band,
.macd-zero {
  fill: none;
  stroke: rgba(183, 200, 215, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.axis-label {
  fill: var(--subtle);
  font-size: 8.5px;
  font-weight: 760;
  pointer-events: none;
}

.axis-label.y-axis {
  text-anchor: end;
}

.price-axis-label {
  text-anchor: start;
  fill: var(--subtle);
  font-size: 9px;
  font-weight: 820;
}

.sub-axis-label {
  text-anchor: start;
  fill: rgba(183, 200, 215, 0.72);
  font-size: 8px;
  font-weight: 780;
}

.axis-border {
  fill: none;
  stroke: rgba(165, 186, 207, 0.16);
  stroke-width: 1;
}

.axis-label.x-axis.middle {
  text-anchor: middle;
}

.axis-label.x-axis.end {
  text-anchor: end;
}

.axis-line {
  fill: none;
  stroke: rgba(165, 186, 207, 0.24);
  stroke-width: 1;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-cursor {
  pointer-events: none;
}

.chart-cursor.hidden {
  display: none;
}

.chart-cursor .cursor-x,
.chart-cursor .cursor-y {
  fill: none;
  stroke: rgba(238, 245, 248, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.cursor-card {
  fill: rgba(7, 11, 16, 0.92);
  stroke: rgba(94, 230, 255, 0.24);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.26));
}

.cursor-price-box,
.cursor-date-box {
  fill: rgba(94, 230, 255, 0.18);
  stroke: rgba(94, 230, 255, 0.5);
}

.chart-cursor text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 760;
}

.chart-cursor .cursor-price-label,
.chart-cursor .cursor-date-label {
  fill: var(--cyan);
  font-size: 9px;
  font-weight: 860;
  text-anchor: middle;
}

.chart-cursor .cursor-close {
  fill: var(--cyan);
}

.chart-cursor .cursor-range {
  fill: var(--amber);
}

.chart-cursor .cursor-extra {
  fill: var(--green);
}

.chart-cursor .cursor-macd {
  fill: #72e8ff;
}

.kline-toolbar-bg {
  fill: rgba(8, 17, 25, 0.62);
  stroke: rgba(94, 230, 255, 0.1);
  stroke-width: 1;
}

.kline-tool-rail {
  fill: rgba(94, 230, 255, 0.05);
  stroke: rgba(165, 186, 207, 0.12);
  stroke-width: 1;
}

.kline-tool-icons path,
.kline-tool-icons circle {
  fill: none;
  stroke: rgba(183, 200, 215, 0.74);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kline-chart-tabs text {
  fill: #b7c8d7;
  font-size: 12px;
  font-weight: 840;
}

.steamdt-chart-bg {
  fill: #081119;
  stroke: rgba(94, 230, 255, 0.14);
  stroke-width: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.steamdt-chart-glow {
  fill: url("#steamdtGlow");
  pointer-events: none;
}

.steamdt-item-title {
  fill: var(--text);
  font-size: 14px;
  font-weight: 840;
}

.steamdt-axis {
  fill: var(--subtle);
  font-size: 9px;
  font-weight: 760;
}

.steamdt-axis.title-meta {
  fill: rgba(183, 200, 215, 0.78);
  font-size: 10px;
  text-anchor: start;
}

.steamdt-axis.left {
  text-anchor: end;
}

.steamdt-axis.right {
  text-anchor: start;
}

.steamdt-axis.date {
  text-anchor: middle;
}

.steamdt-grid-line {
  fill: none;
  stroke: rgba(165, 186, 207, 0.08);
  stroke-width: 1;
}

.steamdt-volume {
  fill: url("#steamdtVolume");
  opacity: 0.46;
}

.steamdt-price-area {
  fill: url("#steamdtArea");
}

.steamdt-price-line,
.steamdt-sell-line,
.steamdt-stock-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steamdt-price-line {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 5px rgba(94, 230, 255, 0.14));
}

.steamdt-halo-line {
  fill: none;
  stroke: rgba(94, 230, 255, 0.12);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steamdt-last-dot {
  fill: var(--cyan);
  stroke: #081119;
  stroke-width: 2;
}

.steamdt-sell-line {
  stroke: var(--amber);
  opacity: 0.54;
}

.steamdt-stock-line {
  stroke: var(--green);
  stroke-width: 1.6;
  opacity: 0.48;
}

.steamdt-legend text {
  fill: rgba(183, 200, 215, 0.76);
  font-size: 10px;
  font-weight: 820;
}

.steamdt-legend circle,
.steamdt-legend rect {
  fill: transparent;
  stroke-width: 1.7;
}

.steamdt-legend .price {
  stroke: var(--cyan);
}

.steamdt-legend .sell {
  stroke: var(--amber);
}

.steamdt-legend .stock {
  stroke: var(--green);
}

.steamdt-legend rect {
  fill: rgba(94, 230, 255, 0.72);
  stroke: var(--cyan);
}

.steamdt-last-price path {
  fill: none;
  stroke: rgba(183, 200, 215, 0.32);
  stroke-dasharray: 4 7;
  stroke-width: 1;
}

.steamdt-last-price rect {
  fill: rgba(94, 230, 255, 0.18);
  stroke: rgba(94, 230, 255, 0.5);
}

.steamdt-last-price text {
  fill: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}

.steamdt-brush rect {
  fill: rgba(94, 230, 255, 0.14);
  stroke: rgba(94, 230, 255, 0.56);
  stroke-width: 1;
  opacity: 0.82;
}

.steamdt-brush path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.1;
}

.steamdt-cursor .cursor-x {
  stroke: rgba(238, 245, 248, 0.48);
}

.steamdt-cursor .cursor-card {
  fill: rgba(7, 11, 16, 0.92);
  stroke: rgba(94, 230, 255, 0.24);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.26));
}

.steamdt-cursor text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 760;
}

.steamdt-cursor .cursor-close {
  fill: var(--cyan);
}

.steamdt-cursor .cursor-range {
  fill: var(--amber);
}

.steamdt-cursor .cursor-extra {
  fill: var(--green);
}

.steamdt-cursor .cursor-macd {
  fill: #72e8ff;
}

.trade-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.trade-decision strong,
.trade-decision span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
}

.trade-decision strong {
  background: var(--green-soft);
  color: var(--green);
}

.trade-decision strong.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.trade-decision strong.avoid {
  background: var(--red-soft);
  color: var(--red);
}

.event-advice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.event-advice-row strong,
.event-advice-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
}

.event-advice-row strong.neutral,
.event-advice-row span {
  border: 1px solid rgba(165, 186, 207, 0.14);
  background: rgba(165, 186, 207, 0.08);
  color: var(--muted);
}

.event-advice-row strong.positive {
  background: var(--green-soft);
  color: var(--green);
}

.event-advice-row strong.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.event-advice-row strong.negative {
  background: var(--red-soft);
  color: var(--red);
}

.event-driver-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.event-driver {
  padding: 10px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.36);
}

.event-driver span,
.event-driver small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.event-driver strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.event-driver.advice {
  border-color: rgba(94, 230, 255, 0.22);
  background: rgba(94, 230, 255, 0.08);
}

.event-driver.advice strong {
  color: var(--cyan);
}

.event-driver small {
  margin-top: 5px;
  color: var(--muted);
}

.event-uncertainty-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.event-uncertainty-list p,
.event-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.trade-decision span {
  border: 1px solid rgba(165, 186, 207, 0.12);
  color: var(--muted);
}

.trade-panel p,
.seven-day-review-panel p,
.score-formula,
.backtest-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.score-grid,
.backtest-grid {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 42px;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.score-row meter {
  width: 100%;
  height: 9px;
}

.score-row strong {
  color: var(--text);
  text-align: right;
}

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

.backtest-grid p {
  min-height: 48px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.42);
}

.backtest-grid span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 820;
}

.backtest-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 12px;
}

.seven-day-review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.seven-day-review-card {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(165, 186, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(7, 11, 16, 0.42);
}

.seven-day-review-card.wide {
  grid-column: 1 / -1;
}

.seven-day-review-card span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 820;
}

.seven-day-review-card strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.22;
}

.seven-day-review-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.seven-day-review-card.hit strong {
  color: var(--green);
}

.seven-day-review-card.miss strong {
  color: var(--red);
}

.review-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.research-advice-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(90, 222, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 18, 28, 0.88), rgba(5, 10, 16, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.advice-summary-line span {
  display: block;
  padding: 12px;
  border: 1px solid rgba(165, 186, 207, 0.12);
  border-radius: var(--radius);
  background: rgba(2, 7, 12, 0.42);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.advice-summary-line strong {
  display: inline;
  margin: 0;
  color: var(--cyan);
  font-size: 17px;
}

.advice-section {
  display: grid;
  gap: 8px;
}

.advice-section h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 860;
}

.advice-section p {
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.advice-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.advice-list li::marker {
  color: var(--cyan);
  font-weight: 900;
}

.advice-section.statement {
  padding-top: 2px;
  border-top: 1px solid rgba(165, 186, 207, 0.1);
}

.prediction-explain {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(90, 222, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(6, 18, 27, 0.62);
}

.prediction-explain b {
  color: var(--cyan);
  font-size: 12px;
}

.prediction-explain p {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1.5;
}

.prediction-explain p span,
.prediction-explain p strong,
.prediction-explain p em {
  display: inline;
  margin: 0 8px 0 0;
}

.prediction-explain p em {
  color: var(--subtle);
  font-style: normal;
}

.prediction-explain.risk {
  border-color: rgba(255, 99, 110, 0.22);
}

.prediction-explain.risk b {
  color: var(--red);
}

.report-list {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.report-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.report-list b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
}

.reason-box ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reason-box li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reason-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 18px 0;
}

.action-grid button {
  min-height: 38px;
  border-color: var(--line);
  background: #0b141d;
  font-size: 12px;
}

.decision-button {
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 16px 18px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #07110d;
  font-size: 14px;
  font-weight: 920;
}

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

.risk-panel {
  min-height: 118px;
  padding: 16px;
}

.risk-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.risk-panel p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: 340px;
  padding: 13px 15px;
  border: 1px solid rgba(94, 230, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(8, 14, 20, 0.97);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

.price-tick {
  animation: priceTick 680ms ease;
}

@keyframes priceTick {
  0% {
    background: rgba(94, 230, 255, 0.16);
  }
  100% {
    background: transparent;
  }
}

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

@media (max-width: 1280px) {
  .overview-grid,
  .market-layout,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .market-pulse,
  .risk-tape {
    min-height: auto;
  }

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

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

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

  .advisor-panel {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 18px 0;
  }

  .nav-rail {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .index-layout,
  .panel-head {
    grid-template-columns: 1fr;
  }

  .controls {
    justify-content: flex-start;
  }

  .query-field {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    padding: 16px 14px 0;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-actions .ghost-button {
    width: 100%;
  }

  .workspace {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .market-index,
  .market-pulse,
  .risk-tape,
  .ranking-panel,
  .advisor-panel,
  .risk-panel {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  }

  .market-index {
    min-height: auto;
    padding: 18px;
    overflow: hidden;
  }

  .index-value {
    font-size: 56px;
  }

  .hero-chart {
    min-height: 150px;
  }

  .metric-grid,
  .workflow-grid,
  .quote-grid,
  .target-grid,
  .action-grid,
  .analysis-metrics,
  .seven-day-review-grid,
  .backtest-grid {
    grid-template-columns: 1fr;
  }

  .advice-summary-line {
    grid-template-columns: 1fr;
  }

  .research-advice-card {
    padding: 14px;
  }

  .detail-route .quote-grid,
  .detail-route .target-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .advisor-head {
    padding: 16px 16px 0;
  }

  .filter-tabs,
  .skin-artwork,
  .quote-grid,
  .target-grid,
    .wear-control,
    .mini-chart,
    .reason-box,
    .trade-panel,
    .event-panel,
    .seven-day-review-panel,
    .score-panel,
    .backtest-panel,
    .analysis-metrics,
    .action-grid {
    margin-left: 16px;
    margin-right: 16px;
  }

  .decision-button {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .controls,
  .query-field,
  .live-badge,
  select,
  .controls .ghost-button {
    width: 100%;
  }

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

  .page-list {
    order: -1;
    justify-content: flex-start;
  }

  .page-button.nav {
    width: 100%;
  }

  .page-status {
    justify-content: center;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Lando-inspired editorial market cockpit */
:root {
  color-scheme: light dark;
  --bg: #070806;
  --bg-2: #0d120c;
  --panel: #0d120e;
  --panel-2: #11170f;
  --panel-3: #171d15;
  --paper: #f3f3eb;
  --paper-2: #e7e8dd;
  --ink: #11130f;
  --line: rgba(225, 239, 205, 0.18);
  --line-strong: rgba(200, 255, 0, 0.55);
  --text: #f6f7ee;
  --muted: #b8bdb0;
  --subtle: #7d8677;
  --cyan: #c8ff00;
  --cyan-soft: rgba(200, 255, 0, 0.13);
  --green: #35e982;
  --green-soft: rgba(53, 233, 130, 0.13);
  --amber: #ffd332;
  --amber-soft: rgba(255, 211, 50, 0.14);
  --red: #ff4242;
  --red-soft: rgba(255, 66, 66, 0.14);
  --violet: #ff7a18;
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --display-serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --ui-sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--ui-sans);
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(rgba(200, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, 0.028) 1px, transparent 1px),
    radial-gradient(120% 110% at 50% -8%, #20281a 0%, #0b0f0a 48%, #050604 100%);
  background-size: 84px 84px, 84px 84px, auto;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-radial-gradient(
      ellipse at 18% 8%,
      transparent 0 54px,
      rgba(200, 255, 0, 0.08) 55px 56px,
      transparent 57px 116px
    ),
    repeating-radial-gradient(
      ellipse at 86% 28%,
      transparent 0 72px,
      rgba(244, 244, 236, 0.07) 73px 74px,
      transparent 75px 148px
    );
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

.app-shell {
  background:
    linear-gradient(180deg, rgba(243, 243, 235, 0.02), transparent 34%),
    transparent;
}

.topbar {
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(200, 255, 0, 0.18);
  background: rgba(4, 5, 4, 0.93);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-color: rgba(200, 255, 0, 0.72);
  border-radius: 12px;
  background: #050604;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.brand-copy small {
  color: rgba(246, 247, 238, 0.62);
  font-size: 12px;
  font-weight: 720;
}

.nav-rail {
  gap: 18px;
}

.nav-item {
  min-height: 44px;
  padding: 0 22px;
  border-color: transparent;
  border-radius: var(--radius);
  color: rgba(246, 247, 238, 0.78);
  font-size: 14px;
  font-weight: 860;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.09);
}

.top-actions {
  gap: 16px;
}

.sync-pill,
.live-badge {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(246, 247, 238, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(246, 247, 238, 0.7);
}

.sync-pill strong,
.live-badge em {
  color: #ffffff;
  font-weight: 920;
}

.sync-dot,
.live-badge b,
.status-stack b,
.risk-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(200, 255, 0, 0.14);
}

.ghost-button,
.action-grid button,
.detail-back-button,
.page-button,
.table-more-button,
.range-button,
.chart-mode,
select {
  border-radius: var(--radius);
}

.ghost-button {
  min-height: 42px;
  padding: 0 18px;
  border-color: rgba(246, 247, 238, 0.16);
  background: #111510;
  color: #f6f7ee;
  font-size: 12px;
  font-weight: 900;
}

.ghost-button:hover,
.action-grid button:hover,
.detail-back-button:hover {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
}

.workspace {
  width: min(1588px, calc(100% - 32px));
  padding: 18px 0 52px;
}

.panel,
.metric-card,
.workflow-card,
.risk-panel,
.research-advice-card {
  border-color: var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23, 29, 21, 0.92), rgba(7, 9, 7, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.workflow-card,
.advisor-panel,
.ranking-panel,
.risk-panel {
  clip-path: polygon(
    0 12px,
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
}

.overview-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(270px, 0.48fr) minmax(284px, 0.5fr);
  gap: 14px;
}

.market-index {
  position: relative;
  min-height: 354px;
  overflow: hidden;
  padding: 24px 24px 20px;
  border-color: rgba(17, 19, 15, 0.18);
  background:
    repeating-radial-gradient(
      ellipse at 40% 0%,
      transparent 0 76px,
      rgba(17, 19, 15, 0.075) 77px 78px,
      transparent 79px 156px
    ),
    linear-gradient(180deg, #fbfbf4 0%, var(--paper) 100%);
  color: var(--ink);
  box-shadow: none;
}

.market-index::before {
  content: "";
  position: absolute;
  inset: auto 22px 16px 22px;
  height: 1px;
  background: rgba(17, 19, 15, 0.14);
}

.market-hero-layer {
  position: absolute;
  inset: 22px 24px auto 360px;
  height: 176px;
  pointer-events: none;
}

.market-hero-layer span,
.market-hero-layer strong {
  position: absolute;
  left: 0;
  display: block;
  font-family: var(--display-serif);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: 0;
  white-space: nowrap;
}

.market-hero-layer span {
  top: 6px;
  color: rgba(17, 19, 15, 0.92);
}

.market-hero-layer strong {
  top: 72px;
  color: var(--cyan);
  text-shadow: 0 1px 0 rgba(17, 19, 15, 0.35);
}

.market-hero-layer img {
  position: absolute;
  right: -34px;
  top: 82px;
  width: min(42vw, 500px);
  max-width: none;
  mix-blend-mode: multiply;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 16px 24px rgba(17, 19, 15, 0.16));
}

.index-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
  min-height: 278px;
  margin-top: 8px;
}

.panel-kicker,
.panel-title {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.market-index .panel-kicker,
.market-index .streak,
.market-index .session-line {
  color: rgba(17, 19, 15, 0.68);
}

.streak {
  font-size: 16px;
}

.streak b,
.market-index .streak b {
  color: #497200;
}

.index-value {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--display-serif);
  font-size: clamp(72px, 8.4vw, 116px);
  font-weight: 700;
  line-height: 0.88;
}

.index-change {
  color: var(--red);
  font-size: 22px;
  font-weight: 940;
}

.session-line {
  gap: 7px;
  margin-top: 20px;
  font-size: 13px;
}

.hero-chart {
  min-height: 218px;
  padding-top: 24px;
}

.market-index .hero-chart {
  position: relative;
  top: 42px;
}

.market-index .chart-grid path,
.market-index .hero-axis-line {
  stroke: rgba(17, 19, 15, 0.12);
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  fill: rgba(17, 19, 15, 0.6);
  font-size: 17px;
}

.market-index .hero-axis-caption,
.hero-line,
.chart-line,
.steamdt-price-line,
.price-curve {
  stroke: var(--cyan);
}

.hero-line {
  stroke-width: 5;
}

.chart-point,
.steamdt-last-dot {
  fill: var(--cyan);
  filter: drop-shadow(0 0 9px rgba(200, 255, 0, 0.72));
}

.hero-cursor-dot {
  stroke: var(--cyan);
}

.hero-cursor-card,
.cursor-card,
.steamdt-cursor .cursor-card {
  fill: rgba(7, 9, 7, 0.95);
  stroke: rgba(200, 255, 0, 0.38);
}

.hero-cursor .hero-cursor-value,
.chart-cursor .cursor-price-label,
.chart-cursor .cursor-date-label,
.steamdt-cursor .cursor-close,
.steamdt-last-price text {
  fill: var(--cyan);
}

.market-pulse,
.risk-tape {
  min-height: 354px;
  padding: 22px;
  border-color: rgba(17, 19, 15, 0.2);
  background:
    repeating-radial-gradient(
      ellipse at 44% 4%,
      transparent 0 62px,
      rgba(17, 19, 15, 0.06) 63px 64px,
      transparent 65px 124px
    ),
    linear-gradient(180deg, rgba(251, 251, 244, 0.96), rgba(231, 232, 221, 0.94));
  color: var(--ink);
  box-shadow: none;
}

.market-pulse .panel-kicker,
.risk-tape .panel-kicker {
  color: rgba(17, 19, 15, 0.58);
}

.market-pulse strong {
  margin-top: 24px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 940;
}

.pulse-compare {
  gap: 12px;
}

.pulse-compare p,
.risk-tape-list p,
.status-stack span {
  color: rgba(17, 19, 15, 0.72);
}

.status-stack span,
.risk-tape-list p {
  min-height: 42px;
  border-color: rgba(17, 19, 15, 0.13);
  background: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  font-weight: 860;
}

.risk-tape-list p:last-child {
  border-color: rgba(200, 255, 0, 0.42);
}

.metric-grid {
  gap: 0;
  margin-top: 0;
  border: 1px solid rgba(200, 255, 0, 0.16);
  border-top: 0;
  background:
    repeating-radial-gradient(
      ellipse at 70% 0%,
      transparent 0 72px,
      rgba(200, 255, 0, 0.05) 73px 74px,
      transparent 75px 146px
    ),
    #070907;
}

.metric-card {
  min-height: 138px;
  padding: 21px 26px;
  border: 0;
  border-right: 1px solid rgba(246, 247, 238, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.metric-card span,
.metric-card small,
.workflow-card span,
.workflow-card em {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.metric-card span {
  color: rgba(246, 247, 238, 0.56);
}

.metric-card strong {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 940;
}

.metric-card em {
  color: var(--green);
  font-size: 14px;
  font-weight: 920;
}

.workflow-grid {
  gap: 12px;
  margin-top: 12px;
}

.workflow-card {
  position: relative;
  min-height: 104px;
  padding: 18px 18px 16px 62px;
  border-color: rgba(200, 255, 0, 0.26);
  background:
    linear-gradient(180deg, rgba(18, 26, 15, 0.96), rgba(7, 9, 7, 0.96)),
    var(--panel);
}

.workflow-card::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(200, 255, 0, 0.08);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 5px rgba(200, 255, 0, 0.08);
}

.workflow-card:nth-child(2)::before {
  content: "↔";
}

.workflow-card:nth-child(3)::before {
  content: "★";
}

.workflow-card:nth-child(4)::before {
  content: "!";
}

.workflow-card:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(35, 47, 23, 0.98), rgba(9, 12, 7, 0.98)),
    var(--panel);
  transform: translateY(-1px);
}

.workflow-card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 920;
}

.workflow-card em {
  color: rgba(246, 247, 238, 0.5);
}

.market-layout {
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 14px;
  margin-top: 14px;
}

.ranking-panel,
.advisor-panel,
.risk-panel {
  border-color: rgba(200, 255, 0, 0.24);
  background:
    repeating-radial-gradient(
      ellipse at 70% 4%,
      transparent 0 62px,
      rgba(200, 255, 0, 0.05) 63px 64px,
      transparent 65px 124px
    ),
    linear-gradient(180deg, rgba(16, 22, 14, 0.97), rgba(7, 9, 7, 0.98));
}

.panel-head {
  padding: 22px 22px 0;
}

.panel-head h1,
.advisor-head h2 {
  color: var(--text);
  font-size: 29px;
  font-weight: 940;
}

.panel-head h1 {
  letter-spacing: 0;
}

.panel-head p,
.advisor-head p {
  color: rgba(246, 247, 238, 0.52);
  font-size: 13px;
}

.controls {
  gap: 10px;
}

.query-field {
  min-height: 44px;
  border-color: rgba(246, 247, 238, 0.16);
  background: rgba(3, 4, 3, 0.66);
}

.query-field input {
  color: var(--text);
}

select {
  min-height: 44px;
  border-color: rgba(246, 247, 238, 0.16);
  background-color: #080a07;
  color: rgba(246, 247, 238, 0.78);
}

.filter-tabs {
  margin: 18px 22px 0;
}

.tab {
  min-height: 38px;
  padding: 0 17px;
  border-color: rgba(246, 247, 238, 0.14);
  background: rgba(246, 247, 238, 0.04);
  color: rgba(246, 247, 238, 0.72);
  font-size: 13px;
}

.tab:hover,
.tab.active {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
}

.table-wrap {
  margin-top: 18px;
  border-top: 1px solid rgba(200, 255, 0, 0.14);
}

table {
  min-width: 1080px;
}

th,
td {
  padding: 15px 14px;
  border-top-color: rgba(246, 247, 238, 0.09);
}

thead th {
  color: rgba(246, 247, 238, 0.46);
  font-size: 11px;
  font-weight: 900;
}

tbody tr {
  color: rgba(246, 247, 238, 0.68);
}

tbody tr:hover,
tbody tr.selected {
  background: rgba(200, 255, 0, 0.075);
}

tbody tr[data-route]:focus-visible {
  outline-color: var(--cyan);
  background: rgba(200, 255, 0, 0.12);
}

.sort-header.active {
  color: var(--cyan);
}

.skin-cell {
  grid-template-columns: 68px minmax(190px, 1fr);
}

.skin-thumb {
  width: 68px;
  border-color: rgba(200, 255, 0, 0.22);
  background: #080a07;
}

.skin-cell strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.score {
  border-color: rgba(200, 255, 0, 0.38);
  background: rgba(200, 255, 0, 0.13);
  color: var(--cyan);
  font-weight: 940;
}

.tag.buy,
.trade-decision strong,
.event-advice-row strong.positive {
  background: rgba(200, 255, 0, 0.16);
  color: var(--cyan);
}

.tag.watch,
.trade-decision strong.watch,
.event-advice-row strong.watch {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.avoid,
.trade-decision strong.avoid,
.event-advice-row strong.negative {
  background: var(--red-soft);
  color: var(--red);
}

.horizon-chip {
  border-color: rgba(200, 255, 0, 0.2);
  background: rgba(200, 255, 0, 0.07);
  color: rgba(246, 247, 238, 0.68);
}

.pagination-controls {
  padding: 16px 22px 20px;
  border-top-color: rgba(246, 247, 238, 0.09);
}

.page-button,
.table-more-button {
  border-color: rgba(200, 255, 0, 0.24);
  background: rgba(246, 247, 238, 0.04);
  color: rgba(246, 247, 238, 0.72);
}

.page-button:hover:not(:disabled),
.page-button.active,
.table-more-button:hover {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
}

.advisor-panel {
  overflow: hidden;
}

.advisor-head {
  padding: 22px 22px 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: rgba(246, 247, 238, 0.16);
  background: rgba(3, 4, 3, 0.56);
  color: var(--cyan);
  font-size: 24px;
  font-weight: 800;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
}

.skin-artwork {
  height: 196px;
  margin: 18px 22px 0;
  border-color: rgba(200, 255, 0, 0.2);
  background:
    repeating-radial-gradient(
      ellipse at 44% 22%,
      transparent 0 52px,
      rgba(200, 255, 0, 0.05) 53px 54px,
      transparent 55px 108px
    ),
    #080a07;
}

.skin-artwork img {
  object-fit: contain;
  padding: 12px;
}

.quote-grid,
.target-grid,
.analysis-metrics,
.action-grid,
.wear-control,
.mini-chart,
.reason-box,
.trade-panel,
.event-panel,
.seven-day-review-panel,
.score-panel,
.backtest-panel {
  margin-left: 22px;
  margin-right: 22px;
}

.quote-grid p,
.target-grid p,
.analysis-metric,
.backtest-grid p,
.seven-day-review-card,
.event-driver,
.mini-chart,
.reason-box,
.trade-panel,
.event-panel,
.seven-day-review-panel,
.score-panel,
.backtest-panel,
.research-advice-card {
  border-color: rgba(246, 247, 238, 0.1);
  background: rgba(3, 4, 3, 0.42);
}

.quote-grid span,
.target-grid span,
.analysis-metric span,
.backtest-grid span,
.seven-day-review-card span {
  color: rgba(246, 247, 238, 0.48);
}

.quote-grid strong,
.target-grid strong,
.analysis-metric strong,
.backtest-grid strong,
.seven-day-review-card strong {
  color: var(--text);
}

.mini-chart {
  border-color: rgba(200, 255, 0, 0.18);
  background:
    repeating-radial-gradient(
      ellipse at 22% 0%,
      transparent 0 58px,
      rgba(200, 255, 0, 0.055) 59px 60px,
      transparent 61px 118px
    ),
    linear-gradient(180deg, rgba(16, 22, 14, 0.85), rgba(4, 5, 4, 0.88));
}

.chart-mode:hover,
.chart-mode.active {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.range-button:hover,
.range-button.active {
  border-color: var(--line-strong);
  background: var(--cyan);
  color: var(--ink);
}

.price-area {
  fill: url("#priceAreaGradient");
}

.steamdt-chart-bg,
.chart-shell-bg {
  fill: rgba(5, 7, 5, 0.92);
  stroke: rgba(200, 255, 0, 0.16);
}

.indicator-line.ma5 {
  stroke: #ff8b22;
}

.indicator-line.ma10 {
  stroke: #c8ff00;
}

.indicator-line.ma20 {
  stroke: #7bdfff;
}

.indicator-line.ma60 {
  stroke: #ff4d6d;
}

.decision-button {
  min-height: 48px;
  margin-right: 22px;
  margin-left: 22px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.risk-grid {
  gap: 14px;
}

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

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

.toast {
  border-color: rgba(200, 255, 0, 0.36);
  background: rgba(7, 9, 7, 0.97);
}

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

  .market-hero-layer {
    inset: 14px 22px auto 350px;
  }

  .market-pulse,
  .risk-tape {
    min-height: auto;
  }
}

@media (max-width: 1280px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-card {
    border-bottom: 1px solid rgba(246, 247, 238, 0.08);
  }

  .market-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 14px 18px 0;
  }

  .market-index {
    min-height: 420px;
  }

  .market-hero-layer {
    inset: 56px 16px auto 22px;
    height: 148px;
    opacity: 0.62;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(56px, 14vw, 104px);
  }

  .market-hero-layer strong {
    top: 70px;
  }

  .market-hero-layer img {
    right: -200px;
    top: 74px;
    width: min(900px, 100vw);
    opacity: 0.55;
  }

  .index-layout,
  .panel-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .topbar .nav-rail {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .topbar .nav-item {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
  }

  body {
    background:
      linear-gradient(180deg, var(--paper) 0 260px, #070806 260px 100%),
      #070806;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 14px 0;
    background: rgba(244, 244, 236, 0.92);
    border-bottom-color: rgba(17, 19, 15, 0.16);
    overflow: hidden;
  }

  .brand {
    color: var(--ink);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    color: rgba(17, 19, 15, 0.66);
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
  }

  .top-actions .ghost-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .top-actions .ghost-button::before {
    content: "!";
    color: var(--ink);
    font-weight: 950;
  }

  .sync-pill {
    display: none;
  }

  .nav-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 10px;
    overflow: visible;
  }

  .nav-item {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-color: rgba(17, 19, 15, 0.14);
    background: rgba(255, 255, 255, 0.45);
    color: rgba(17, 19, 15, 0.76);
    font-size: 14px;
  }

  .nav-item.active,
  .nav-item:hover {
    background: var(--cyan);
    color: var(--ink);
  }

  .workspace {
    width: calc(100% - 12px);
    padding-top: 10px;
  }

  .overview-grid {
    gap: 8px;
  }

  .market-index {
    min-height: auto;
    padding: 20px 18px 18px;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-index .panel-kicker,
  .market-index .streak,
  .market-index .session-line {
    color: rgba(246, 247, 238, 0.68);
  }

  .market-index .streak b {
    color: var(--cyan);
  }

  .market-index .index-value {
    color: var(--cyan);
  }

  .market-index .chart-grid path,
  .market-index .hero-axis-line {
    stroke: rgba(246, 247, 238, 0.11);
  }

  .market-index .hero-axis-label,
  .market-index .hero-axis-caption {
    fill: rgba(246, 247, 238, 0.6);
  }

  .market-pulse,
  .risk-tape {
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-pulse .panel-kicker,
  .risk-tape .panel-kicker {
    color: rgba(246, 247, 238, 0.58);
  }

  .market-pulse strong {
    color: var(--text);
  }

  .pulse-compare p,
  .risk-tape-list p,
  .status-stack span {
    color: rgba(246, 247, 238, 0.74);
  }

  .status-stack span,
  .risk-tape-list p {
    border-color: rgba(246, 247, 238, 0.12);
    background: rgba(255, 255, 255, 0.05);
  }

  .market-hero-layer {
    display: none;
  }

  .index-layout {
    min-height: auto;
    gap: 18px;
    margin-top: 22px;
  }

  .index-value {
    font-size: 76px;
  }

  .index-change {
    font-size: 20px;
  }

  .hero-chart {
    min-height: 176px;
    padding-top: 0;
  }

  .market-pulse,
  .risk-tape,
  .ranking-panel,
  .advisor-panel,
  .risk-panel {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .metric-grid {
    grid-template-columns: repeat(5, minmax(144px, 1fr));
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .metric-grid::-webkit-scrollbar {
    display: none;
  }

  .metric-card {
    min-height: 126px;
    padding: 17px 18px;
    border-right: 1px solid rgba(246, 247, 238, 0.09);
    border-bottom: 0;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .workflow-card {
    min-height: 96px;
    padding: 54px 12px 14px;
  }

  .workflow-card::before {
    left: 14px;
    top: 14px;
  }

  .workflow-card strong {
    font-size: 16px;
  }

  .panel-head,
  .advisor-head {
    padding: 18px 18px 0;
  }

  .panel-head h1,
  .advisor-head h2 {
    font-size: 26px;
  }

  .controls,
  .query-field,
  .live-badge,
  select,
  .controls .ghost-button {
    width: 100%;
  }

  .filter-tabs,
  .skin-artwork,
  .quote-grid,
  .target-grid,
  .wear-control,
  .mini-chart,
  .reason-box,
  .trade-panel,
  .event-panel,
  .seven-day-review-panel,
  .score-panel,
  .backtest-panel,
  .analysis-metrics,
  .action-grid {
    margin-left: 18px;
    margin-right: 18px;
  }

  .quote-grid,
  .target-grid,
  .analysis-metrics,
  .seven-day-review-grid,
  .backtest-grid {
    grid-template-columns: 1fr;
  }

  .decision-button {
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }

  .topbar .nav-rail {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .topbar .nav-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .topbar .nav-rail {
    display: flex !important;
    width: min(calc(100vw - 28px), 362px) !important;
    max-width: min(calc(100vw - 28px), 362px) !important;
    flex-wrap: nowrap;
  }

  .topbar .nav-item {
    flex: 1 1 0 !important;
    inline-size: 0;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* Focused fixes: clearer market index panel and long item-name truncation. */
.market-index {
  min-height: 332px;
  padding: 22px;
  border-color: rgba(17, 19, 15, 0.2);
  background:
    linear-gradient(135deg, rgba(200, 255, 0, 0.13) 0 26%, transparent 26% 100%),
    repeating-radial-gradient(
      ellipse at 78% -10%,
      transparent 0 92px,
      rgba(17, 19, 15, 0.055) 93px 94px,
      transparent 95px 178px
    ),
    linear-gradient(180deg, #f9f9f0 0%, #ededdf 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.market-index::before {
  inset: 13px;
  height: auto;
  border: 1px solid rgba(17, 19, 15, 0.11);
  background: transparent;
  pointer-events: none;
}

.market-index::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 68px;
  height: 68px;
  border-top: 5px solid var(--cyan);
  border-right: 5px solid var(--cyan);
  pointer-events: none;
}

.market-hero-layer {
  inset: 18px 24px auto auto;
  z-index: 0;
  width: 230px;
  height: 72px;
  opacity: 0.14;
}

.market-hero-layer span,
.market-hero-layer strong {
  right: 0;
  left: auto;
  width: max-content;
  font-size: 42px;
  line-height: 0.84;
  text-align: right;
}

.market-hero-layer span {
  top: 0;
}

.market-hero-layer strong {
  top: 34px;
}

.market-hero-layer img {
  display: none;
}

.index-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 248px;
  margin-top: 16px;
}

.index-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(200, 255, 0, 0.3);
  background:
    linear-gradient(145deg, rgba(200, 255, 0, 0.11), transparent 42%),
    #070906;
  color: var(--text);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.market-index .panel-kicker {
  position: relative;
  z-index: 1;
  color: rgba(17, 19, 15, 0.62);
}

.market-index .streak,
.market-index .session-line {
  color: rgba(246, 247, 238, 0.66);
}

.market-index .streak {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.35;
}

.market-index .streak b {
  color: var(--cyan);
}

.market-index .index-value {
  margin-top: 14px;
  color: var(--cyan);
  font-size: clamp(60px, 5.4vw, 86px);
  line-height: 0.9;
}

.market-index .index-change {
  margin-top: 12px;
  font-size: 21px;
}

.market-index .session-line {
  gap: 7px;
  margin-top: 18px;
  font-size: 12px;
}

.index-chart-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border: 1px solid rgba(17, 19, 15, 0.14);
  background: rgba(250, 250, 241, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 34px rgba(17, 19, 15, 0.08);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.index-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  color: rgba(17, 19, 15, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.index-chart-head em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 15, 0.14);
  background: var(--cyan);
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  top: auto;
  display: block;
  width: 100%;
  height: 214px;
  min-height: 0;
  padding-top: 0;
  overflow: visible;
}

.market-index .chart-grid path,
.market-index .hero-axis-line {
  stroke: rgba(17, 19, 15, 0.13);
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  fill: rgba(17, 19, 15, 0.58);
  font-size: 16px;
}

.market-index .hero-axis-caption {
  fill: #5e8600;
}

.ranking-panel table {
  table-layout: fixed;
  min-width: 1120px;
}

.ranking-panel th:first-child,
.ranking-panel td:first-child {
  width: 350px;
  max-width: 350px;
}

.skin-cell {
  width: 100%;
  min-width: 0;
  grid-template-columns: 68px minmax(0, 1fr);
}

.skin-info,
.skin-cell > span:last-child {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.skin-cell strong,
.skin-name,
.skin-info > span,
.skin-cell span span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-name {
  cursor: help;
}

@media (max-width: 1280px) {
  .market-hero-layer {
    display: none;
  }

  .index-layout {
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .market-index {
    min-height: auto;
  }

  .index-layout {
    grid-template-columns: 1fr;
  }

  .index-copy {
    min-height: 190px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 220px;
  }
}

@media (max-width: 720px) {
  .market-index {
    padding: 18px;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-index::after {
    width: 48px;
    height: 48px;
    border-width: 4px;
  }

  .market-index .panel-kicker {
    color: rgba(246, 247, 238, 0.62);
  }

  .index-layout {
    gap: 12px;
    margin-top: 14px;
  }

  .index-copy {
    min-height: 184px;
    padding: 16px;
  }

  .market-index .index-value {
    font-size: 64px;
  }

  .index-chart-panel {
    padding: 12px 12px 8px;
    border-color: rgba(246, 247, 238, 0.12);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
  }

  .index-chart-head {
    color: rgba(246, 247, 238, 0.64);
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
  }

  .market-index .chart-grid path,
  .market-index .hero-axis-line {
    stroke: rgba(246, 247, 238, 0.12);
  }

  .market-index .hero-axis-label,
  .market-index .hero-axis-caption {
    fill: rgba(246, 247, 238, 0.62);
    font-size: 15px;
  }

  .ranking-panel table {
    min-width: 1040px;
  }

  .ranking-panel th:first-child,
  .ranking-panel td:first-child {
    width: 300px;
    max-width: 300px;
  }

  .skin-cell {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .skin-thumb {
    width: 58px;
  }
}

/* Reference pass: broad market poster plus stable ranking columns. */
.workspace {
  width: min(1900px, calc(100% - 28px));
  padding-top: 18px;
}

.overview-grid {
  grid-template-columns: minmax(760px, 1fr) minmax(260px, 0.28fr) minmax(286px, 0.32fr);
  gap: 10px;
  align-items: stretch;
}

.market-index,
.market-pulse,
.risk-tape {
  min-height: 374px;
  border-radius: 0;
  border-color: rgba(20, 23, 16, 0.16);
  background:
    repeating-radial-gradient(
      ellipse at 52% 4%,
      transparent 0 74px,
      rgba(20, 23, 16, 0.06) 75px 76px,
      transparent 77px 148px
    ),
    linear-gradient(180deg, #fbfaf1 0%, #efefe4 100%);
  color: var(--ink);
  box-shadow: none;
}

.market-index {
  position: relative;
  overflow: hidden;
  padding: 24px 30px 22px;
}

.market-index::before {
  inset: 0;
  height: auto;
  border: 0;
  background:
    linear-gradient(90deg, rgba(200, 255, 0, 0.13), transparent 24%),
    linear-gradient(180deg, transparent 0 calc(100% - 126px), rgba(200, 255, 0, 0.08) calc(100% - 126px), transparent 100%);
  pointer-events: none;
}

.market-index::after {
  top: 68px;
  right: 18px;
  width: 110px;
  height: 110px;
  border-top: 0;
  border-right: 0;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 68px 5px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 5px 68px no-repeat;
  opacity: 0.96;
  pointer-events: none;
}

.market-index .panel-kicker {
  position: relative;
  z-index: 4;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.index-layout {
  position: static;
  display: block;
  min-height: 318px;
  margin-top: 0;
}

.index-copy {
  position: absolute;
  z-index: 5;
  top: 66px;
  left: 30px;
  width: min(34%, 360px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  clip-path: none;
}

.market-index .streak {
  color: rgba(20, 23, 16, 0.68);
  font-size: 15px;
  font-weight: 850;
}

.market-index .index-value {
  margin-top: 10px;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(78px, 7.2vw, 124px);
  font-weight: 950;
  line-height: 0.84;
}

.market-index .index-change {
  margin-top: 14px;
  color: #df1515;
  font-size: clamp(22px, 1.9vw, 31px);
  font-weight: 950;
}

.market-index .index-change.positive {
  color: #0bbf55;
}

.market-index .index-change.negative {
  color: #df1515;
}

.market-index .session-line {
  gap: 8px;
  margin-top: 21px;
  color: rgba(20, 23, 16, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.market-index .session-line span:nth-child(3) {
  position: relative;
  padding-left: 14px;
}

.market-index .session-line span:nth-child(3)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17b956;
}

.market-hero-layer {
  display: block;
  position: absolute;
  z-index: 3;
  inset: 30px 0 auto 44%;
  height: 206px;
  width: 56%;
  opacity: 1;
  pointer-events: none;
}

.market-hero-layer span,
.market-hero-layer strong {
  position: absolute;
  right: auto;
  left: 0;
  width: auto;
  font-family: var(--display-serif);
  font-size: clamp(72px, 6vw, 112px);
  font-weight: 700;
  line-height: 0.75;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
}

.market-hero-layer span {
  top: 0;
  color: rgba(20, 23, 16, 0.92);
}

.market-hero-layer strong {
  top: 74px;
  color: var(--cyan);
  text-shadow: none;
}

.market-hero-layer img {
  display: block;
  position: absolute;
  right: -14px;
  top: 40px;
  width: min(36vw, 520px);
  max-width: none;
  opacity: 0.98;
  mix-blend-mode: multiply;
  transform: rotate(-1.4deg);
  filter: drop-shadow(0 22px 24px rgba(20, 23, 16, 0.15));
}

.index-chart-panel {
  position: absolute;
  z-index: 5;
  left: 30px;
  right: 26px;
  bottom: 16px;
  display: block;
  height: 124px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.index-chart-head {
  position: absolute;
  z-index: 6;
  top: -88px;
  right: 54px;
  display: block;
  min-height: 0;
  color: var(--ink);
  font-size: 0;
}

.index-chart-head span {
  display: none;
}

.index-chart-head em {
  display: inline-flex;
  min-height: 50px;
  min-width: 58px;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 17px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow: 0 12px 20px rgba(20, 23, 16, 0.14);
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  display: block;
  width: 100%;
  height: 124px;
  min-height: 0;
  padding: 0;
}

.market-index .hero-line {
  stroke-width: 3.4;
}

.market-index .chart-grid path,
.market-index .hero-axis-line {
  stroke: rgba(20, 23, 16, 0.12);
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  fill: rgba(20, 23, 16, 0.62);
  font-size: 15px;
  font-weight: 850;
}

.market-index .hero-axis-caption {
  fill: #4f7200;
}

.market-pulse,
.risk-tape {
  padding: 24px 22px;
}

.market-pulse .panel-kicker,
.risk-tape .panel-kicker {
  color: var(--ink) !important;
  font-size: 16px;
  font-weight: 940;
}

.market-pulse .panel-kicker::after {
  content: "›";
  float: right;
  color: rgba(20, 23, 16, 0.58);
  font-size: 28px;
  line-height: 0.6;
}

.market-pulse strong {
  margin-top: 14px;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(34px, 2.7vw, 48px);
  font-weight: 950;
}

.pulse-compare {
  gap: 8px;
  margin-top: 22px;
}

.pulse-compare p,
.status-stack span,
.risk-tape-list p {
  color: rgba(20, 23, 16, 0.74);
}

.pulse-compare p {
  font-size: 13px;
  font-weight: 680;
}

.status-stack,
.risk-tape-list {
  gap: 12px;
  margin-top: 24px;
}

.status-stack span,
.risk-tape-list p {
  min-height: 42px;
  padding: 0 13px;
  border-color: rgba(20, 23, 16, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.34);
  font-weight: 820;
}

.status-stack span::after {
  content: "›";
  margin-left: auto;
  color: rgba(20, 23, 16, 0.42);
  font-size: 19px;
}

.risk-tape {
  border-color: rgba(200, 255, 0, 0.9);
  box-shadow: inset 0 0 0 1px rgba(200, 255, 0, 0.34);
}

.risk-tape .panel-kicker::after {
  content: "⌁";
  float: right;
  color: var(--cyan);
  font-size: 22px;
}

.risk-tape::after {
  content: "风险等级\A 中等风险";
  display: block;
  min-height: 82px;
  margin-top: 18px;
  padding: 17px 20px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(135deg, rgba(200, 255, 0, 0.24) 0 3px, transparent 3px 7px) 0 0 / 100% 16px no-repeat,
    linear-gradient(180deg, #10140c, #070906);
  color: rgba(246, 247, 238, 0.68);
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.7;
}

.risk-tape::first-line {
  color: rgba(246, 247, 238, 0.58);
}

.risk-tape-list {
  margin-top: 18px;
}

.metric-grid {
  margin-top: 0;
  border: 1px solid rgba(200, 255, 0, 0.16);
  border-right: 0;
  border-left: 0;
}

.ranking-panel table {
  table-layout: fixed;
  width: max(100%, 1260px);
  min-width: 1260px;
}

.ranking-panel col.col-skin {
  width: 318px;
}

.ranking-panel col.col-price,
.ranking-panel col.col-target {
  width: 112px;
}

.ranking-panel col.col-upside {
  width: 118px;
}

.ranking-panel col.col-score {
  width: 92px;
}

.ranking-panel col.col-horizon {
  width: 145px;
}

.ranking-panel col.col-liquidity {
  width: 92px;
}

.ranking-panel col.col-spread {
  width: 96px;
}

.ranking-panel col.col-volume {
  width: 112px;
}

.ranking-panel col.col-status {
  width: 120px;
}

.ranking-panel th:first-child,
.ranking-panel td:first-child {
  width: auto;
  max-width: none;
}

.ranking-panel th,
.ranking-panel td {
  height: 64px;
  padding: 13px 14px;
  vertical-align: middle;
}

.ranking-panel thead th {
  height: 48px;
  color: rgba(246, 247, 238, 0.48);
  font-size: 12px;
  line-height: 1.2;
}

.skin-cell {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.skin-thumb {
  width: 72px;
  border-radius: 7px;
}

.skin-cell strong,
.skin-name {
  font-size: 14px;
  line-height: 1.25;
}

.skin-info > span,
.skin-cell span span {
  font-size: 12px;
  line-height: 1.25;
}

.horizon-chip,
.tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1380px) {
  .overview-grid {
    grid-template-columns: minmax(650px, 1fr) minmax(246px, 0.28fr) minmax(260px, 0.31fr);
  }

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: 346px;
  }

  .index-copy {
    width: 330px;
  }

  .market-hero-layer {
    left: 43%;
    width: 57%;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(66px, 6.4vw, 100px);
  }

  .market-hero-layer strong {
    top: 68px;
  }

  .market-hero-layer img {
    top: 50px;
    width: min(35vw, 460px);
  }
}

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

  .market-index {
    grid-column: 1 / -1;
  }

  .market-pulse,
  .risk-tape {
    min-height: 272px;
  }
}

@media (max-width: 720px) {
  .workspace {
    width: calc(100% - 12px);
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-index {
    min-height: 548px;
    padding: 18px;
    border-radius: 0;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-index .panel-kicker {
    color: rgba(246, 247, 238, 0.78);
    font-size: 14px;
  }

  .index-layout {
    min-height: 496px;
  }

  .index-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    padding: 17px 16px;
    border: 1px solid rgba(200, 255, 0, 0.16);
    background: rgba(0, 0, 0, 0.36);
    color: var(--text);
  }

  .market-index .streak,
  .market-index .session-line {
    color: rgba(246, 247, 238, 0.72);
  }

  .market-index .index-value {
    color: var(--cyan);
    font-size: 66px;
  }

  .market-hero-layer {
    display: block;
    inset: 242px 14px auto 18px;
    width: auto;
    height: 96px;
    opacity: 0.2;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: 42px;
  }

  .market-hero-layer strong {
    top: 34px;
  }

  .market-hero-layer img {
    display: none;
  }

  .index-chart-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 204px;
    padding: 12px;
    border: 1px solid rgba(246, 247, 238, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  .index-chart-head {
    top: 16px;
    right: 12px;
  }

  .index-chart-head em {
    min-height: 34px;
    min-width: 48px;
    font-size: 13px;
    transform: none;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
    margin-top: 18px;
  }

  .market-pulse,
  .risk-tape {
    min-height: auto;
    border-radius: 0;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-pulse .panel-kicker,
  .risk-tape .panel-kicker,
  .market-pulse strong {
    color: var(--text);
  }

  .pulse-compare p,
  .status-stack span,
  .risk-tape-list p {
    color: rgba(246, 247, 238, 0.74);
  }

  .status-stack span,
  .risk-tape-list p {
    border-color: rgba(246, 247, 238, 0.12);
    background: rgba(255, 255, 255, 0.05);
  }

  .risk-tape::after {
    min-height: 72px;
  }

  .ranking-panel table {
    width: 1180px;
    min-width: 1180px;
  }

  .ranking-panel col.col-skin {
    width: 300px;
  }

  .skin-cell {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
  }

  .skin-thumb {
    width: 58px;
  }
}

/* UI polish pass: tuned typography, density, and readable market tooling. */
:root {
  --ui-font:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  --num-font: Arial, "Helvetica Neue", var(--ui-font);
  --type-xs: 12px;
  --type-sm: 13px;
  --type-md: 14px;
  --type-lg: 16px;
  --type-xl: 22px;
  --type-panel: clamp(24px, 1.75vw, 30px);
  --soft-text: rgba(246, 247, 238, 0.72);
  --faint-text: rgba(246, 247, 238, 0.52);
  --glass-dark: rgba(4, 7, 4, 0.58);
}

html {
  font-family: var(--ui-font);
  font-size: 15px;
  text-rendering: geometricPrecision;
}

body {
  font-family: var(--ui-font);
  font-size: var(--type-md);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select {
  font-family: var(--ui-font);
}

.topbar {
  min-height: 72px;
  padding-inline: clamp(18px, 2.2vw, 32px);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
}

.brand-mark::before {
  font-size: 16px;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 19px;
  line-height: 1.02;
  font-weight: 940;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.15;
  color: rgba(246, 247, 238, 0.58);
}

.nav-rail {
  gap: 8px;
}

.nav-item {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
}

.sync-pill,
.live-badge,
.ghost-button,
select,
.query-field {
  min-height: 42px;
  font-size: 13px;
}

.workspace {
  width: min(1840px, calc(100% - 32px));
  padding-top: 16px;
}

.overview-grid,
.workflow-grid,
.market-layout {
  gap: 12px;
}

.market-index,
.market-pulse,
.risk-tape {
  min-height: 350px;
}

.market-index {
  padding: 24px 28px 22px;
}

.market-index .panel-kicker,
.market-pulse .panel-kicker,
.risk-tape .panel-kicker,
.panel-kicker,
.panel-title {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 940;
}

.market-index .panel-kicker {
  font-size: 16px;
}

.market-index .index-value {
  font-family: var(--num-font);
  font-size: clamp(74px, 6.4vw, 108px);
  line-height: 0.88;
}

.market-index .index-change {
  font-size: clamp(21px, 1.55vw, 27px);
  line-height: 1.05;
}

.market-index .streak {
  font-size: 15px;
  line-height: 1.35;
}

.market-index .session-line {
  font-size: 13px;
  line-height: 1.45;
}

.market-hero-layer span,
.market-hero-layer strong {
  font-size: clamp(64px, 5.2vw, 96px);
}

.market-hero-layer strong {
  top: 64px;
}

.market-hero-layer img {
  width: min(34vw, 470px);
}

.index-chart-panel {
  height: 132px;
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  height: 132px;
}

.index-chart-head em {
  min-height: 40px;
  min-width: 52px;
  font-size: 14px;
}

.market-pulse strong {
  font-family: var(--num-font);
  font-size: clamp(34px, 2.35vw, 44px);
  line-height: 1;
}

.pulse-compare p,
.status-stack span,
.risk-tape-list p,
.risk-tape::after {
  font-size: 13px;
  line-height: 1.5;
}

.metric-card {
  min-height: 134px;
  padding: 22px 26px;
}

.metric-card span,
.metric-card small,
.workflow-card span,
.workflow-card em {
  font-size: 12px;
  line-height: 1.25;
}

.metric-card strong {
  font-family: var(--num-font);
  font-size: clamp(28px, 2.25vw, 34px);
  line-height: 1.02;
}

.metric-card em {
  font-size: 13px;
  line-height: 1.25;
}

.workflow-card {
  min-height: 112px;
  padding: 52px 18px 18px;
}

.workflow-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.market-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 420px);
}

.panel-head,
.advisor-head {
  padding: 22px 22px 0;
}

.panel-head {
  grid-template-columns: minmax(260px, 0.76fr) minmax(480px, 1.24fr);
  align-items: start;
  gap: 18px;
}

.panel-head h1,
.advisor-head h2 {
  font-size: var(--type-panel);
  line-height: 1.08;
  font-weight: 940;
}

.panel-head p,
.advisor-head p {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.45;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto repeat(3, minmax(116px, auto)) auto;
  gap: 8px;
  justify-content: stretch;
  align-items: center;
}

.query-field {
  max-width: none;
  min-width: 0;
  padding-inline: 13px;
}

.query-field input {
  font-size: 13px;
}

select {
  min-width: 112px;
  padding-inline: 12px 30px;
}

.controls .ghost-button {
  min-width: 92px;
  padding-inline: 14px;
}

.filter-tabs {
  gap: 7px;
  margin: 16px 22px 0;
  padding-bottom: 2px;
  flex-wrap: wrap;
  overflow-x: visible;
}

.tab {
  min-height: 36px;
  padding-inline: 15px;
  font-size: 12px;
  line-height: 1;
}

.ranking-panel table {
  width: max(100%, 1240px);
  min-width: 1240px;
}

.ranking-panel th,
.ranking-panel td {
  height: 60px;
  padding: 12px 13px;
}

.ranking-panel thead th {
  height: 44px;
  font-size: 11px;
  line-height: 1.15;
}

tbody td {
  font-size: 13px;
  line-height: 1.35;
}

.skin-cell {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 13px;
}

.skin-thumb {
  width: 68px;
}

.skin-cell strong,
.skin-name {
  font-size: 13px;
  line-height: 1.25;
}

.skin-info > span,
.skin-cell span span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(246, 247, 238, 0.5);
}

.score,
.horizon-chip,
.tag,
.page-button {
  font-size: 12px;
  line-height: 1;
}

.advisor-panel {
  align-self: start;
}

.advisor-head {
  gap: 10px;
}

.advisor-head h2 {
  font-size: clamp(24px, 1.55vw, 28px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.skin-artwork {
  min-height: 188px;
  margin-top: 16px;
}

.quote-grid,
.target-grid,
.analysis-metrics,
.action-grid,
.wear-control,
.mini-chart,
.reason-box,
.trade-panel,
.event-panel,
.seven-day-review-panel,
.score-panel,
.backtest-panel {
  margin-left: 20px;
  margin-right: 20px;
}

.quote-grid,
.target-grid {
  gap: 7px;
}

.quote-grid p,
.target-grid p,
.analysis-metric,
.backtest-grid p,
.seven-day-review-card {
  min-height: 56px;
  padding: 10px 11px;
}

.quote-grid span,
.target-grid span,
.analysis-metric span,
.backtest-grid span,
.seven-day-review-card span {
  font-size: 11px;
  line-height: 1.2;
}

.quote-grid strong,
.target-grid strong,
.analysis-metric strong,
.backtest-grid strong,
.seven-day-review-card strong {
  font-size: 15px;
  line-height: 1.15;
}

.trade-panel p,
.seven-day-review-panel p,
.score-formula,
.backtest-panel p,
.reason-box li,
.event-advice-row,
.research-advice-card {
  font-size: 12px;
  line-height: 1.6;
}

.action-grid button {
  min-height: 40px;
  font-size: 12px;
}

.decision-button {
  min-height: 50px;
  font-size: 14px;
  font-weight: 940;
}

@media (max-width: 1500px) {
  .workspace {
    width: min(1540px, calc(100% - 28px));
  }

  .overview-grid {
    grid-template-columns: minmax(690px, 1fr) minmax(250px, 0.3fr) minmax(260px, 0.32fr);
  }

  .market-index .index-value {
    font-size: clamp(70px, 6vw, 96px);
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(58px, 5vw, 86px);
  }

  .market-hero-layer strong {
    top: 58px;
  }

  .controls {
    grid-template-columns: minmax(240px, 1fr) auto repeat(3, minmax(108px, auto)) auto;
  }
}

@media (max-width: 1280px) {
  .panel-head {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: minmax(240px, 1fr) auto repeat(2, minmax(108px, auto));
    justify-content: start;
  }

  .controls .ghost-button,
  #sortDirectionSelect {
    grid-column: span 1;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .advisor-panel {
    max-width: none;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 14px;
  }

  .topbar {
    min-height: auto;
  }

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

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: auto;
  }

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

  .query-field,
  .live-badge,
  .controls .ghost-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 14px;
  }

  .topbar {
    padding: 12px 14px 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    font-size: 12px;
  }

  .nav-item {
    min-height: 46px;
    padding-inline: 6px;
    font-size: 14px;
  }

  .workspace {
    width: calc(100% - 12px);
    padding-top: 10px;
  }

  .market-index {
    min-height: 530px;
    padding: 17px;
  }

  .market-index .panel-kicker {
    font-size: 13px;
  }

  .index-layout {
    min-height: 480px;
  }

  .index-copy {
    padding: 16px;
  }

  .market-index .streak {
    font-size: 14px;
  }

  .market-index .index-value {
    font-size: clamp(58px, 16vw, 68px);
  }

  .market-index .index-change {
    font-size: 20px;
  }

  .market-index .session-line {
    font-size: 12px;
  }

  .market-hero-layer {
    display: none;
  }

  .index-chart-panel {
    height: 192px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 162px;
  }

  .market-pulse strong {
    font-size: 42px;
  }

  .metric-card {
    min-height: 118px;
    padding: 16px 17px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .workflow-card {
    min-height: 94px;
    padding: 50px 12px 13px;
  }

  .workflow-card strong {
    font-size: 15px;
  }

  .panel-head,
  .advisor-head {
    padding: 18px 18px 0;
  }

  .panel-head h1,
  .advisor-head h2 {
    font-size: 25px;
  }

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

  .query-field,
  .live-badge,
  select,
  .controls .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .filter-tabs {
    margin-inline: 18px;
  }

  .ranking-panel table {
    width: 1100px;
    min-width: 1100px;
  }

  .ranking-panel col.col-skin {
    width: 286px;
  }

  .ranking-panel th,
  .ranking-panel td {
    height: 58px;
    padding: 11px 12px;
  }

  .skin-cell {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .skin-thumb {
    width: 56px;
  }

  .skin-cell strong,
  .skin-name {
    font-size: 13px;
  }

  .quote-grid,
  .target-grid,
  .analysis-metrics,
  .action-grid,
  .wear-control,
  .mini-chart,
  .reason-box,
  .trade-panel,
  .event-panel,
  .seven-day-review-panel,
  .score-panel,
  .backtest-panel {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* Stability pass: keep market hero readable before and after live data hydration. */
.market-hero-layer {
  display: none !important;
}

.market-index {
  min-height: 342px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(200, 255, 0, 0.12) 0 25%, transparent 25% 100%),
    repeating-radial-gradient(
      ellipse at 72% 0%,
      transparent 0 86px,
      rgba(17, 19, 15, 0.055) 87px 88px,
      transparent 89px 168px
    ),
    linear-gradient(180deg, #fbfaf1 0%, #ededdf 100%);
}

.market-index::after {
  top: 18px;
  right: 18px;
  width: 68px;
  height: 68px;
  border: 0;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 54px 5px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 5px 54px no-repeat;
}

.index-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(286px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 250px;
  margin-top: 16px;
}

.index-copy {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  width: auto;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(200, 255, 0, 0.3);
  background:
    linear-gradient(145deg, rgba(200, 255, 0, 0.1), transparent 44%),
    #070906;
  color: var(--text);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.market-index .streak,
.market-index .session-line {
  color: rgba(246, 247, 238, 0.68);
}

.market-index .index-value {
  color: var(--cyan);
  font-size: clamp(66px, 5.7vw, 92px);
  line-height: 0.9;
}

.market-index .index-change {
  font-size: clamp(20px, 1.45vw, 24px);
}

.market-index .index-change.positive {
  color: #32e886;
}

.market-index .index-change.negative {
  color: #ff4d4d;
}

.index-chart-panel {
  position: relative;
  z-index: 2;
  inset: auto;
  display: flex;
  min-width: 0;
  height: auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border: 1px solid rgba(17, 19, 15, 0.13);
  background: rgba(250, 250, 241, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 34px rgba(17, 19, 15, 0.08);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.index-chart-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: rgba(17, 19, 15, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.index-chart-head span {
  display: inline;
}

.index-chart-head em {
  min-width: 0;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 15, 0.14);
  border-radius: 0;
  background: var(--cyan);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  transform: none;
  box-shadow: none;
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  width: 100%;
  height: 214px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

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

.query-field {
  flex: 1 1 280px;
  max-width: 420px;
}

.live-badge {
  flex: 0 0 auto;
  min-width: 112px;
  justify-content: center;
  white-space: nowrap;
}

.controls select {
  flex: 0 0 112px;
}

.controls .ghost-button {
  flex: 0 0 auto;
}

@media (max-width: 1280px) {
  .index-layout {
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  }

  .query-field {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .index-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .index-copy {
    min-height: 190px;
  }

  .controls {
    justify-content: stretch;
  }

  .query-field,
  .live-badge,
  .controls select,
  .controls .ghost-button {
    flex: 1 1 calc(50% - 8px);
    max-width: none;
  }
}

@media (max-width: 720px) {
  .brand-copy small {
    color: rgba(17, 19, 15, 0.64);
  }

  .market-index {
    min-height: auto;
    padding: 18px;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
  }

  .index-layout {
    gap: 12px;
    margin-top: 14px;
  }

  .index-copy {
    min-height: 184px;
    padding: 16px;
  }

  .market-index .index-value {
    font-size: clamp(58px, 16vw, 66px);
  }

  .index-chart-panel {
    padding: 12px 12px 8px;
    border-color: rgba(246, 247, 238, 0.12);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
  }

  .index-chart-head {
    color: rgba(246, 247, 238, 0.64);
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
  }

  .query-field,
  .live-badge,
  .controls select,
  .controls .ghost-button {
    flex-basis: 100%;
  }
}

/* Market poster restore: match the supplied Unextskin reference hero. */
.topbar {
  min-height: 60px;
  padding-inline: 18px 24px;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1;
}

.brand-copy small {
  font-size: 11px;
  line-height: 1.2;
}

.nav-item {
  min-height: 36px;
  padding: 0 20px;
}

.sync-pill,
.top-actions .ghost-button {
  min-height: 36px;
}

.workspace {
  padding-top: 0;
  width: 100%;
}

.overview-grid {
  grid-template-columns: minmax(760px, 1fr) minmax(260px, 0.28fr) minmax(286px, 0.32fr);
  gap: 10px;
}

.market-index,
.market-pulse,
.risk-tape {
  min-height: 347px;
}

.market-index {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 20px;
  border-color: rgba(20, 23, 16, 0.16);
  border-radius: 0;
  background:
    repeating-radial-gradient(
      ellipse at 58% 0%,
      transparent 0 74px,
      rgba(20, 23, 16, 0.052) 75px 76px,
      transparent 77px 150px
    ),
    linear-gradient(90deg, rgba(200, 255, 0, 0.11), transparent 24%),
    linear-gradient(180deg, #fbfaf1 0%, #efefe4 100%);
  color: var(--ink);
  box-shadow: none;
}

.market-index::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  border: 0;
  background:
    linear-gradient(180deg, transparent 0 calc(100% - 126px), rgba(200, 255, 0, 0.08) calc(100% - 126px), transparent 100%),
    radial-gradient(circle at 33% 25%, rgba(20, 23, 16, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 6%, rgba(20, 23, 16, 0.1) 0 1px, transparent 2px);
  pointer-events: none;
}

.market-index::after {
  display: none;
}

.market-index .panel-kicker {
  position: relative;
  z-index: 6;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.index-layout {
  position: static;
  display: block;
  min-height: 318px;
  margin-top: 0;
}

.index-copy {
  position: absolute;
  z-index: 6;
  top: 50px;
  left: 24px;
  width: min(33%, 338px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  clip-path: none;
}

.market-index .streak {
  display: none;
}

.market-index .index-value {
  position: relative;
  display: inline-block;
  margin-top: 0;
  color: var(--ink);
  font-family: var(--num-font);
  font-size: clamp(70px, 5.35vw, 82px);
  font-weight: 950;
  line-height: 0.84;
}

.market-index .index-value::after {
  content: none;
  display: none;
}

.market-index .index-change {
  margin-top: 10px;
  color: #df1515;
  font-size: clamp(22px, 1.8vw, 31px);
  font-weight: 950;
  line-height: 1.05;
}

.market-index .index-change.positive {
  color: #0bbf55;
}

.market-index .index-change.negative {
  color: #df1515;
}

.market-index .session-line {
  gap: 8px;
  margin-top: 17px;
  color: rgba(20, 23, 16, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.market-index .session-line span:nth-child(3) {
  position: relative;
  padding-left: 14px;
}

.market-index .session-line span:nth-child(3)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17b956;
}

.market-hero-layer {
  display: block !important;
  position: absolute;
  z-index: 3;
  inset: 48px 0 auto 43.5%;
  width: 56.5%;
  height: 208px;
  opacity: 1;
  pointer-events: none;
}

.market-hero-layer span,
.market-hero-layer strong {
  position: absolute;
  right: auto;
  left: 0;
  width: auto;
  font-family: var(--display-serif);
  font-size: clamp(76px, 7vw, 116px);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.market-hero-layer span {
  top: 0;
  color: rgba(20, 23, 16, 0.92);
}

.market-hero-layer strong {
  top: 76px;
  color: var(--cyan);
  text-shadow: none;
}

.market-hero-layer img {
  display: block;
  position: absolute;
  right: -30px;
  top: -8px;
  width: min(38vw, 470px);
  max-width: none;
  opacity: 0.98;
  mix-blend-mode: multiply;
  transform: rotate(-1.4deg);
  filter: drop-shadow(0 22px 24px rgba(20, 23, 16, 0.15));
}

.index-chart-panel {
  position: absolute;
  z-index: 5;
  left: 222px;
  right: 44px;
  bottom: -4px;
  display: block;
  height: 232px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.index-chart-head {
  position: absolute;
  z-index: 7;
  top: 10px;
  right: 100px;
  display: block;
  min-height: 0;
  color: var(--ink);
  font-size: 0;
}

.index-chart-head > span {
  display: none;
}

.index-chart-head em {
  display: grid;
  width: 72px;
  min-width: 72px;
  height: 72px;
  min-height: 72px;
  place-items: center;
  padding: 8px 6px 6px;
  border: 0;
  border-radius: 9px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--ui-sans);
  font-style: normal;
  line-height: 0.92;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 12px 20px rgba(20, 23, 16, 0.14);
}

.index-chart-head em span,
.index-chart-head em small,
.index-chart-head em strong {
  display: block;
  line-height: 0.9;
}

.index-chart-head em span {
  font-size: 17px;
  font-weight: 950;
}

.index-chart-head em small {
  margin-top: -3px;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0;
}

.index-chart-head em strong {
  margin-top: -1px;
  font-size: 29px;
  font-weight: 950;
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  display: block;
  width: 100%;
  height: 232px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.market-index .hero-area {
  opacity: 0.96;
}

.market-index .hero-line {
  stroke-width: 3.9;
}

.market-index .chart-grid path,
.market-index .hero-axis-line {
  stroke: rgba(20, 23, 16, 0.12);
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  fill: rgba(20, 23, 16, 0.62);
  font-size: 17px;
  font-weight: 850;
}

.market-index .hero-axis-caption {
  fill: #4f7200;
}

.risk-tape {
  position: relative;
  padding: 34px 28px 28px;
  border-color: rgba(200, 255, 0, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(200, 255, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.risk-tape .panel-kicker {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 24px;
  color: rgba(20, 23, 16, 0.88) !important;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.risk-tape .panel-kicker::after {
  content: "⌁";
  float: right;
  color: var(--cyan);
  font-size: 26px;
  line-height: 0.65;
  text-shadow: 0 0 12px rgba(200, 255, 0, 0.38);
}

.risk-tape .risk-tape-list {
  gap: 14px;
  margin-top: 22px;
}

.risk-tape .risk-tape-list p {
  min-height: 58px;
  padding: 0 20px;
  border-color: rgba(20, 23, 16, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.16);
  color: rgba(20, 23, 16, 0.72);
  font-size: 15px;
  font-weight: 880;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.risk-tape .risk-tape-list p:last-child {
  border-color: rgba(200, 255, 0, 0.72);
  background:
    linear-gradient(180deg, rgba(200, 255, 0, 0.08), transparent),
    rgba(255, 255, 255, 0.18);
}

.risk-tape .risk-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 8px rgba(53, 233, 130, 0.1);
}

.risk-tape::after {
  min-height: 112px;
  margin-top: 30px;
  padding: 28px 34px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(200, 255, 0, 0.26) 0 4px, transparent 4px 9px) 0 0 / 100% 20px no-repeat,
    radial-gradient(circle at 88% 18%, rgba(200, 255, 0, 0.12), transparent 26%),
    linear-gradient(180deg, #10150c, #070906);
  color: rgba(246, 247, 238, 0.74);
  font-size: 16px;
  line-height: 1.65;
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 0, 0.13),
    0 18px 34px rgba(7, 9, 6, 0.14);
}

@media (max-width: 1500px) {
  .market-index .index-value {
    font-size: clamp(70px, 6vw, 90px);
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(62px, 6.1vw, 92px);
  }

  .market-hero-layer strong {
    top: 66px;
  }

  .market-hero-layer img {
    top: -4px;
    width: min(37vw, 430px);
  }

  .index-chart-panel {
    left: 200px;
    right: 44px;
    height: 224px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 224px;
  }
}

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

  .market-index {
    grid-column: 1 / -1;
  }
}

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

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .market-index {
    min-height: auto;
    padding: 18px;
    background:
      repeating-radial-gradient(
        ellipse at 48% 0%,
        transparent 0 52px,
        rgba(200, 255, 0, 0.07) 53px 54px,
        transparent 55px 108px
      ),
      linear-gradient(180deg, rgba(14, 20, 12, 0.98), rgba(5, 7, 5, 0.98));
    color: var(--text);
  }

  .market-index .panel-kicker,
  .market-index .streak,
  .market-index .session-line {
    color: rgba(246, 247, 238, 0.72);
  }

  .index-layout {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: auto;
    margin-top: 14px;
  }

  .index-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 184px;
    padding: 16px;
    border: 1px solid rgba(200, 255, 0, 0.3);
    background:
      linear-gradient(145deg, rgba(200, 255, 0, 0.1), transparent 44%),
      #070906;
    color: var(--text);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .market-index .index-value {
    color: var(--cyan);
    font-size: clamp(58px, 16vw, 66px);
  }

  .market-index .index-value::after {
    display: none;
  }

  .market-index .index-change {
    font-size: 20px;
  }

  .market-hero-layer {
    display: none !important;
  }

  .index-chart-panel {
    position: relative;
    inset: auto;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    padding: 12px 12px 8px;
    border: 1px solid rgba(246, 247, 238, 0.12);
    background: rgba(255, 255, 255, 0.055);
  }

  .index-chart-head {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }

  .index-chart-head em {
    width: auto;
    min-width: 58px;
    height: 28px;
    min-height: 28px;
    display: inline-flex;
    gap: 2px;
    padding: 0 8px;
    transform: none;
  }

  .index-chart-head em small,
  .index-chart-head em strong {
    display: none;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
  }
}

/* Current polish pass: flatter hero curve and lighter risk rail. */
.index-chart-panel {
  left: 210px;
  right: 46px;
  bottom: 12px;
  height: 188px;
}

.index-chart-head {
  top: -2px;
  right: 92px;
}

.index-chart-panel .hero-chart,
.market-index .hero-chart {
  height: 188px;
}

.market-index .hero-area {
  opacity: 0.58;
}

.market-index .hero-line {
  stroke-width: 3.2;
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  font-size: 15px;
}

.risk-tape {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
  border-color: rgba(200, 255, 0, 0.76);
  background:
    radial-gradient(circle at 76% 4%, rgba(200, 255, 0, 0.13), transparent 23%),
    repeating-radial-gradient(
      ellipse at 50% 0%,
      transparent 0 78px,
      rgba(20, 23, 16, 0.052) 79px 80px,
      transparent 81px 152px
    ),
    linear-gradient(180deg, rgba(253, 252, 242, 0.98), rgba(238, 238, 224, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(200, 255, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.risk-tape::after {
  content: none;
  display: none;
}

.risk-tape .panel-kicker {
  position: relative;
  min-height: 24px;
  color: rgba(20, 23, 16, 0.9) !important;
  font-size: 17px;
  font-weight: 950;
}

.risk-tape .panel-kicker::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 36px;
  height: 18px;
  background: var(--cyan);
  clip-path: polygon(0 56%, 22% 56%, 32% 28%, 43% 78%, 56% 36%, 66% 56%, 100% 56%, 100% 68%, 62% 68%, 55% 54%, 43% 96%, 31% 48%, 24% 68%, 0 68%);
  filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.34));
}

.risk-tape .risk-tape-list {
  display: grid;
  flex: 1;
  grid-auto-rows: minmax(72px, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.risk-tape .risk-tape-list p {
  position: relative;
  min-height: 72px;
  overflow: hidden;
  padding: 0 22px;
  border-color: rgba(20, 23, 16, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.2);
  color: rgba(20, 23, 16, 0.76);
  font-size: 15px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 24px rgba(20, 23, 16, 0.045);
}

.risk-tape .risk-tape-list p::after {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.12), rgba(200, 255, 0, 0.72), rgba(200, 255, 0, 0.12));
}

.risk-tape .risk-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 8px rgba(53, 233, 130, 0.1);
}

@media (max-width: 1500px) {
  .index-chart-panel {
    left: 196px;
    right: 44px;
    height: 184px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 184px;
  }
}

@media (max-width: 720px) {
  .index-chart-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .index-chart-head {
    display: none;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
  }
}

/* Web-only requested refinements: target only the trend chart, hide arbitrage entry, use new neon icon. */
.brand-mark {
  border: 0;
  border-radius: 10px;
  background: #010200;
  box-shadow: 0 0 18px rgba(185, 255, 0, 0.16);
}

.brand-mark::before {
  content: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-grid .workflow-card:nth-child(2) {
  display: none;
}

@media (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: minmax(760px, 1fr) minmax(250px, 0.27fr) minmax(270px, 0.3fr);
  }

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: 320px;
  }

  .market-index {
    padding: 20px 22px 18px;
  }

  .index-layout {
    min-height: 278px;
  }

  .index-copy {
    top: 44px;
    left: 22px;
    width: min(30%, 306px);
  }

  .market-index .index-value {
    font-size: clamp(66px, 5vw, 78px);
  }

  .market-index .index-change {
    font-size: clamp(20px, 1.55vw, 27px);
  }

  .market-index .session-line {
    margin-top: 14px;
  }

  .market-hero-layer {
    inset: 38px 0 auto 42%;
    width: 58%;
    height: 174px;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(64px, 5.8vw, 100px);
  }

  .market-hero-layer strong {
    top: 66px;
  }

  .market-hero-layer img {
    right: -18px;
    top: -2px;
    width: min(34vw, 390px);
  }

  .index-chart-panel {
    left: clamp(292px, 31%, 420px);
    right: clamp(24px, 1.6vw, 34px);
    bottom: 18px;
    height: 142px;
  }

  .index-chart-head {
    top: -8px;
    right: 70px;
  }

  .index-chart-head em {
    width: 62px;
    min-width: 62px;
    height: 62px;
    min-height: 62px;
  }

  .index-chart-head em span {
    font-size: 15px;
  }

  .index-chart-head em strong {
    font-size: 25px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 142px;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .index-chart-panel {
    left: 284px;
    right: 28px;
  }
}

@media (max-width: 1180px) and (min-width: 721px) {
  .market-index {
    min-height: 300px;
    padding: 18px 20px 16px;
  }

  .index-layout {
    min-height: 264px;
  }

  .index-copy {
    top: 42px;
    left: 20px;
    width: min(31%, 280px);
  }

  .market-index .index-value {
    font-size: clamp(58px, 8vw, 76px);
  }

  .market-index .index-change {
    font-size: clamp(19px, 2.6vw, 26px);
  }

  .market-index .session-line {
    margin-top: 14px;
    font-size: 13px;
  }

  .market-hero-layer {
    inset: 34px 0 auto 39%;
    width: 61%;
    height: 168px;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(58px, 8.6vw, 88px);
  }

  .market-hero-layer strong {
    top: 60px;
  }

  .market-hero-layer img {
    right: -22px;
    top: 0;
    width: min(41vw, 360px);
  }

  .index-chart-panel {
    left: 34%;
    right: clamp(132px, 17vw, 190px);
    bottom: 16px;
    height: 124px;
  }

  .index-chart-head {
    top: -8px;
    right: 60px;
  }

  .index-chart-head em {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
  }

  .index-chart-head em span {
    font-size: 14px;
  }

  .index-chart-head em strong {
    font-size: 23px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 124px;
  }
}

@media (max-width: 720px) {
  .market-index {
    padding: 16px;
  }

  .index-layout {
    gap: 10px;
  }

  .index-copy {
    min-height: 156px;
    padding: 14px;
  }

  .market-index .index-value {
    font-size: clamp(54px, 15vw, 62px);
  }

  .market-index .session-line {
    margin-top: 12px;
    font-size: 12px;
  }

  .index-chart-panel {
    padding: 8px 8px 6px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 126px;
  }
}

.market-index .hero-line {
  stroke-width: 4.5;
}

.market-index .hero-area {
  opacity: 0.78;
}

.market-index .hero-axis-label,
.market-index .hero-axis-caption {
  font-size: 18px;
  font-weight: 950;
}

.market-index .hero-grid-line,
.market-index .hero-axis-line {
  stroke-width: 1.35;
}

@media (max-width: 720px) {
  .market-index .hero-line {
    stroke-width: 5;
  }

  .market-index .hero-axis-label,
  .market-index .hero-axis-caption {
    font-size: 19px;
  }
}

/* Requested homepage expansion: let the index trend occupy the poster whitespace. */
@media (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .market-index {
    grid-column: 1 / -1;
    min-height: clamp(390px, 21vw, 460px);
    padding: clamp(24px, 1.7vw, 34px) clamp(28px, 1.9vw, 40px) clamp(20px, 1.5vw, 30px);
  }

  .market-pulse,
  .risk-tape {
    min-height: 270px;
  }

  .index-layout {
    min-height: clamp(334px, 18vw, 402px);
  }

  .index-copy {
    top: clamp(54px, 4vw, 78px);
    left: clamp(28px, 1.9vw, 40px);
    width: clamp(320px, 21vw, 440px);
  }

  .market-index .index-value {
    font-size: clamp(92px, 7vw, 148px);
  }

  .market-index .index-change {
    font-size: clamp(26px, 2.2vw, 42px);
  }

  .market-index .session-line {
    margin-top: clamp(18px, 1.2vw, 24px);
    font-size: clamp(14px, 0.92vw, 18px);
  }

  .market-hero-layer {
    z-index: 3;
    inset: clamp(38px, 3vw, 58px) 0 auto 42%;
    width: 58%;
    height: clamp(190px, 12vw, 246px);
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(84px, 6.5vw, 138px);
  }

  .market-hero-layer strong {
    top: clamp(68px, 5.1vw, 104px);
  }

  .market-hero-layer img {
    right: clamp(-58px, -1.8vw, -24px);
    top: clamp(8px, 1vw, 20px);
    width: min(30vw, 540px);
  }

  .index-chart-panel {
    z-index: 2;
    left: clamp(380px, 24vw, 520px);
    right: clamp(42px, 5vw, 108px);
    bottom: clamp(18px, 1.3vw, 28px);
    height: clamp(184px, 10.4vw, 226px);
  }

  .index-chart-head {
    top: clamp(-24px, -1vw, -10px);
    right: clamp(96px, 8.5vw, 176px);
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 100%;
  }

  .market-index .hero-line {
    stroke-width: 5.2;
  }

  .market-index .hero-area {
    opacity: 0.72;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .index-chart-panel {
    left: clamp(330px, 23vw, 390px);
    right: 44px;
    height: 188px;
  }

  .market-hero-layer img {
    right: -38px;
    top: 12px;
    width: min(33vw, 470px);
  }
}

@media (max-width: 1180px) and (min-width: 721px) {
  .market-index {
    min-height: 350px;
  }

  .index-layout {
    min-height: 310px;
  }

  .index-chart-panel {
    left: clamp(284px, 34%, 360px);
    right: 24px;
    bottom: 18px;
    height: 170px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 100%;
  }
}

@media (max-width: 720px) {
  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 176px;
  }

  .market-index .hero-axis-label {
    fill: rgba(246, 247, 238, 0.56);
    font-size: 13px;
    font-weight: 850;
  }

  .market-index .hero-axis-caption {
    fill: var(--cyan);
    font-size: 15px;
  }

  .market-index .chart-grid path,
  .market-index .hero-axis-line {
    stroke: rgba(246, 247, 238, 0.12);
  }
}

/* Requested reference layout: poster + online + risk in one hero row. */
@media (min-width: 1181px) {
  .workspace {
    width: 100%;
    padding-top: 0;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 240px 240px;
    gap: 10px;
    align-items: stretch;
  }

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: 394px;
  }

  .market-index {
    grid-column: auto;
    padding: 22px 18px 20px;
  }

  .market-index::before {
    background:
      linear-gradient(90deg, rgba(200, 255, 0, 0.13), transparent 22%),
      linear-gradient(180deg, transparent 0 66%, rgba(200, 255, 0, 0.08) 66%, transparent 100%);
  }

  .market-index .panel-kicker {
    font-size: 18px;
  }

  .index-layout {
    min-height: 348px;
  }

  .index-copy {
    top: 50px;
    left: 18px;
    width: 300px;
  }

  .market-index .index-value {
    font-size: clamp(72px, 4.45vw, 92px);
    line-height: 0.86;
  }

  .market-index .index-change {
    margin-top: 12px;
    font-size: clamp(24px, 1.55vw, 32px);
    line-height: 1;
  }

  .market-index .session-line {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .market-hero-layer {
    inset: 50px 0 auto 43.2%;
    width: 56.8%;
    height: 210px;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(84px, 5.9vw, 118px);
  }

  .market-hero-layer strong {
    top: 76px;
  }

  .market-hero-layer img {
    right: -12px;
    top: -6px;
    width: min(31vw, 496px);
  }

  .index-chart-panel {
    z-index: 4;
    left: clamp(270px, 30%, 470px);
    right: clamp(18px, 22.5%, 360px);
    bottom: 48px;
    height: 158px;
  }

  .index-chart-head {
    top: -96px;
    right: -328px;
  }

  .index-chart-head em {
    width: 64px;
    min-width: 64px;
    height: 64px;
    min-height: 64px;
  }

  .index-chart-head em span {
    font-size: 15px;
  }

  .index-chart-head em strong {
    font-size: 26px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 100%;
  }

  .market-index .hero-line {
    stroke-width: 4.8;
  }

  .market-index .hero-area {
    opacity: 0.62;
  }

  .market-index .hero-axis-label,
  .market-index .hero-axis-caption {
    font-size: 16px;
    font-weight: 900;
  }

  .market-pulse,
  .risk-tape {
    padding: 24px 24px 26px;
  }

  .market-pulse .panel-kicker,
  .risk-tape .panel-kicker {
    font-size: 16px;
  }

  .market-pulse strong {
    margin-top: 14px;
    font-size: 44px;
    line-height: 0.95;
  }

  .pulse-compare {
    gap: 12px;
    margin-top: 22px;
  }

  .status-stack {
    gap: 13px;
    margin-top: 28px;
  }

  .status-stack span {
    min-height: 44px;
    padding: 0 14px;
  }

  .risk-tape .risk-tape-list {
    grid-auto-rows: minmax(84px, 1fr);
    gap: 16px;
    margin-top: 22px;
  }

  .risk-tape .risk-tape-list p {
    min-height: 84px;
    padding: 0 22px;
    font-size: 16px;
    line-height: 1.35;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 226px 226px;
  }

  .index-copy {
    width: 264px;
  }

  .market-index .index-value {
    font-size: clamp(66px, 4.65vw, 78px);
  }

  .market-hero-layer {
    inset-inline-start: 40%;
    width: 60%;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(72px, 6vw, 94px);
  }

  .market-hero-layer strong {
    top: 66px;
  }

  .market-hero-layer img {
    right: -18px;
    top: -4px;
    width: min(35vw, 440px);
  }

  .index-chart-panel {
    left: clamp(250px, 30%, 360px);
    right: clamp(16px, 22%, 260px);
    bottom: 46px;
    height: 148px;
  }

  .index-chart-head {
    top: -86px;
    right: -286px;
  }
}

/* Compact market index poster and refined 24h trend chart. */
@media (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: minmax(560px, 0.88fr) minmax(280px, 0.42fr) minmax(300px, 0.45fr);
    gap: 14px;
  }

  .market-index,
  .market-pulse,
  .risk-tape {
    min-height: clamp(344px, 18vw, 382px);
  }

  .market-index {
    padding: 20px 22px 18px;
  }

  .market-index .panel-kicker {
    font-size: 16px;
  }

  .index-layout {
    min-height: clamp(302px, 16.2vw, 338px);
  }

  .index-copy {
    top: clamp(48px, 3.1vw, 64px);
    left: 22px;
    width: clamp(276px, 19vw, 350px);
  }

  .market-index .index-value {
    font-size: clamp(76px, 5.35vw, 112px);
    line-height: 0.84;
  }

  .market-index .index-change {
    margin-top: 10px;
    font-size: clamp(23px, 1.8vw, 34px);
  }

  .market-index .session-line {
    margin-top: 14px;
    font-size: clamp(13px, 0.82vw, 16px);
  }

  .market-hero-layer {
    inset: clamp(40px, 2.7vw, 56px) 0 auto 42.5%;
    width: 57.5%;
    height: clamp(164px, 10.4vw, 214px);
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(72px, 5.55vw, 116px);
  }

  .market-hero-layer strong {
    top: clamp(60px, 4.28vw, 88px);
  }

  .market-hero-layer img {
    right: clamp(-18px, -0.4vw, -6px);
    top: clamp(18px, 1.35vw, 30px);
    z-index: 8;
    width: min(26vw, 390px);
  }

  .index-chart-panel {
    left: clamp(158px, calc(19.2vw - 100px), 280px);
    right: clamp(140px, calc(9.6vw + 60px), 220px);
    bottom: clamp(4px, 0.45vw, 10px);
    height: clamp(176px, 9.55vw, 214px);
  }

  .index-chart-head {
    top: clamp(-72px, -3.7vw, -48px);
    right: clamp(6px, 2vw, 38px);
  }

  .index-chart-head em {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    border-radius: 8px;
  }

  .index-chart-head em span {
    font-size: 14px;
  }

  .index-chart-head em strong {
    font-size: 24px;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 100%;
  }

  .market-index .hero-area {
    opacity: 0.5;
  }

  .market-index .hero-line {
    stroke-width: clamp(3.1px, 0.24vw, 4.2px);
    filter: drop-shadow(0 0 7px rgba(200, 255, 0, 0.52));
  }

  .market-index .chart-point {
    stroke: rgba(251, 250, 241, 0.96);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.72));
  }

  .market-index .hero-grid-line,
  .market-index .hero-axis-line {
    stroke: rgba(20, 23, 16, 0.105);
    stroke-width: 1;
  }

  .market-index .hero-grid-line.vertical {
    opacity: 0.44;
  }

  .market-index .hero-axis-label {
    fill: rgba(20, 23, 16, 0.56);
    font-size: clamp(12px, 0.72vw, 14px);
    font-weight: 850;
  }

  .market-index .hero-axis-caption {
    fill: #78a600;
    font-size: clamp(13px, 0.78vw, 15px);
    font-weight: 950;
  }

  .market-pulse,
  .risk-tape {
    padding: 24px 26px 26px;
  }

  .market-pulse strong {
    font-size: clamp(42px, 2.7vw, 58px);
  }

  .risk-tape .risk-tape-list p {
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(276px, 0.42fr) minmax(292px, 0.44fr);
  }

  .index-copy {
    width: 262px;
  }

  .market-index .index-value {
    font-size: clamp(64px, 4.6vw, 78px);
  }

  .market-hero-layer {
    inset-inline-start: 40%;
    width: 60%;
  }

  .market-hero-layer span,
  .market-hero-layer strong {
    font-size: clamp(66px, 5.4vw, 88px);
  }

  .market-hero-layer img {
    right: -12px;
    top: 18px;
    width: min(27vw, 370px);
  }

  .index-chart-panel {
    left: 124px;
    right: 104px;
    height: 168px;
  }

  .index-chart-head {
    top: -56px;
    right: 20px;
  }
}

@media (max-width: 1280px) and (min-width: 1181px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .market-index {
    min-height: 330px;
  }

  .market-pulse,
  .risk-tape {
    min-height: 230px;
  }
}

/* Market chart beauty pass: glass plot bed, glow stroke, and latest-value tag. */
.index-chart-panel {
  isolation: isolate;
}

.index-chart-panel::before {
  content: none;
  display: none;
}

.index-chart-panel .hero-chart {
  position: relative;
  z-index: 1;
}

.index-chart-head em[aria-label="LIVE MARVEX 24/7"] {
  display: none;
}

.market-index .hero-line-glow {
  fill: none;
  stroke: #79a900;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: clamp(6px, 0.48vw, 9px);
  opacity: 0.18;
  filter: blur(2.6px);
}

.market-index .hero-line {
  stroke: #79a900;
  stroke-width: clamp(2.6px, 0.21vw, 3.8px);
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.42))
    drop-shadow(0 0 7px rgba(121, 169, 0, 0.4));
}

.market-index .hero-area {
  opacity: 0.64;
}

.market-index .hero-grid-line,
.market-index .hero-axis-line {
  stroke: rgba(20, 23, 16, 0.13);
}

.market-index .hero-grid-line.vertical {
  stroke-dasharray: 5 8;
  opacity: 0.42;
}

.market-index .chart-point-halo {
  fill: url("#heroPointHaloFill");
}

.market-index .chart-point {
  fill: #79a900;
  stroke: rgba(255, 255, 244, 0.98);
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(121, 169, 0, 0.42));
}

.hero-value-tag {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 140ms ease,
    visibility 0s linear 140ms;
}

.hero-chart:hover .hero-value-tag,
.hero-chart:focus .hero-value-tag,
.hero-chart:focus-visible .hero-value-tag {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-value-tag rect {
  fill: #79a900;
  stroke: rgba(20, 23, 16, 0.14);
  stroke-width: 1;
  filter: drop-shadow(0 8px 14px rgba(20, 23, 16, 0.13));
}

.hero-value-tag text {
  fill: rgba(255, 255, 244, 0.96);
  font-family: var(--num-font);
  font-size: 13px;
  font-weight: 950;
  text-anchor: middle;
}

.market-index .hero-axis-label {
  fill: rgba(20, 23, 16, 0.6);
  font-size: clamp(12px, 0.68vw, 13px);
}

.market-index .hero-axis-label.y {
  font-family: var(--num-font);
  font-weight: 850;
}

.market-index .hero-axis-caption {
  fill: #79a900;
  paint-order: stroke;
  stroke: rgba(248, 249, 235, 0.76);
  stroke-width: 3px;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .index-chart-panel::before {
    inset: -4px;
  }

  .market-index .hero-axis-caption.x-caption {
    display: none;
  }

  .market-index .hero-line-glow {
    stroke-width: 7px;
  }

  .hero-value-tag text {
    font-size: 12px;
  }
}

/* Mobile UI tightening pass: cleaner first screen, readable cards, wider trend plot. */
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 12px 10px;
    background: rgba(244, 244, 236, 0.96);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 9px;
  }

  .brand-copy strong {
    font-size: 20px;
    line-height: 1;
  }

  .brand-copy small {
    margin-top: 4px;
    color: rgba(17, 19, 15, 0.66);
    font-size: 11px;
    line-height: 1.18;
  }

  .top-actions {
    display: none;
  }

  .topbar .nav-rail {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 6px;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
    padding-bottom: 0;
    overflow: visible !important;
  }

  .topbar .nav-item {
    flex: 0 0 calc((100vw - 36px) / 3) !important;
    width: calc((100vw - 36px) / 3) !important;
    max-width: calc((100vw - 36px) / 3) !important;
    min-width: 0 !important;
    min-height: 36px;
    padding: 0 2px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    text-overflow: clip;
  }

  .workspace {
    width: 100%;
    padding: 0 0 28px;
  }

  .overview-grid {
    gap: 10px;
  }

  .market-index {
    min-height: auto;
    padding: 16px;
  }

  .market-index .panel-kicker {
    color: rgba(246, 247, 238, 0.84);
    font-size: 16px;
  }

  .index-layout {
    display: grid;
    min-height: 0;
    gap: 10px;
    margin-top: 12px;
  }

  .index-copy {
    padding: 16px;
    border: 1px solid rgba(200, 255, 0, 0.18);
    background: rgba(2, 4, 2, 0.5);
  }

  .market-index .index-value {
    font-size: clamp(56px, 18vw, 72px);
  }

  .market-index .index-change {
    margin-top: 8px;
    font-size: clamp(18px, 5.5vw, 22px);
  }

  .market-index .session-line {
    gap: 6px;
    margin-top: 14px;
    color: rgba(246, 247, 238, 0.78);
    font-size: 13px;
  }

  .index-chart-panel {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    height: 178px;
    margin-top: 0;
    padding: 8px 6px 4px;
    border: 1px solid rgba(246, 247, 238, 0.1);
    background: rgba(255, 255, 255, 0.045);
  }

  .index-chart-head {
    display: none;
  }

  .index-chart-panel .hero-chart,
  .market-index .hero-chart {
    height: 162px;
    min-height: 0;
    margin: 0;
  }

  .market-index .hero-axis-label {
    fill: rgba(246, 247, 238, 0.62);
    font-size: 12px;
    font-weight: 850;
  }

  .market-index .hero-axis-caption {
    fill: #79a900;
    stroke: rgba(5, 7, 5, 0.72);
    stroke-width: 2px;
    font-size: 13px;
  }

  .market-index .hero-line {
    stroke-width: 2.4px;
  }

  .market-index .hero-line-glow {
    stroke-width: 6px;
    opacity: 0.14;
  }

  .market-index .chart-point {
    stroke-width: 1.8;
  }

  .hero-value-tag {
    display: none;
  }

  .market-pulse,
  .risk-tape {
    min-height: auto;
    padding: 18px;
    border-radius: 0;
  }

  .market-pulse .panel-kicker,
  .risk-tape .panel-kicker {
    color: rgba(246, 247, 238, 0.84) !important;
    font-size: 15px;
  }

  .market-pulse strong {
    margin-top: 10px;
    font-size: clamp(38px, 12vw, 48px);
    line-height: 0.98;
  }

  .pulse-compare {
    gap: 8px;
    margin-top: 14px;
  }

  .pulse-compare p {
    font-size: 13px;
  }

  .status-stack {
    gap: 8px;
    margin-top: 16px;
  }

  .status-stack span,
  .risk-tape .risk-tape-list p {
    min-height: 44px;
    padding: 0 14px;
    color: rgba(246, 247, 238, 0.78);
    font-size: 13px;
  }

  .risk-tape {
    padding: 22px 18px 20px;
  }

  .risk-tape .risk-tape-list {
    grid-auto-rows: auto;
    gap: 10px;
    margin-top: 14px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 10px;
    overflow: visible;
  }

  .metric-card {
    min-width: 0;
    min-height: 112px;
    padding: 15px 14px;
    border-right: 1px solid rgba(246, 247, 238, 0.09);
    border-bottom: 1px solid rgba(246, 247, 238, 0.09);
  }

  .metric-card:nth-child(even) {
    border-right: 0;
  }

  .metric-card strong {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .metric-card span,
  .metric-card small,
  .workflow-card span,
  .workflow-card em {
    font-size: 11px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .workflow-card {
    min-height: 86px;
    padding: 16px 16px 16px 58px;
  }

  .workflow-card::before {
    top: 16px;
    left: 16px;
    width: 30px;
    height: 30px;
  }

  .workflow-card strong {
    font-size: 16px;
  }
}
