:root {
  --bg: #030812;
  --panel: rgba(6, 18, 32, 0.78);
  --panel-strong: rgba(8, 24, 42, 0.92);
  --ink: #edf7ff;
  --muted: #94aabe;
  --line: rgba(128, 216, 255, 0.18);
  --cyan: #22e0bf;
  --cyan-soft: rgba(34, 224, 191, 0.14);
  --blue: #79a8ff;
  --violet: #aa8cff;
  --warn: #f3bd65;
  --bad: #ff6c7c;
  --good: #4ee6b3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cosmic-vortex {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 224, 191, 0.16), transparent 20%),
    radial-gradient(circle at 18% 20%, rgba(121, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 74%, rgba(170, 140, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #020712 0%, #05111e 44%, #020611 100%);
  pointer-events: none;
}

.cosmic-vortex::before,
.cosmic-vortex::after,
.cosmic-vortex span {
  position: absolute;
  content: "";
  pointer-events: none;
}

.cosmic-vortex::before {
  width: 92vmax;
  height: 92vmax;
  left: 50%;
  top: 50%;
  background:
    conic-gradient(
      from 18deg,
      rgba(34, 224, 191, 0) 0deg,
      rgba(34, 224, 191, 0.36) 42deg,
      rgba(121, 168, 255, 0.2) 96deg,
      rgba(170, 140, 255, 0.3) 154deg,
      rgba(34, 224, 191, 0.08) 218deg,
      rgba(121, 168, 255, 0.26) 286deg,
      rgba(34, 224, 191, 0) 360deg
    );
  border-radius: 50%;
  filter: blur(20px) saturate(1.25);
  opacity: 0.68;
  transform: translate(-50%, -50%);
  animation: vortexSpin 32s linear infinite;
}

.cosmic-vortex::after {
  width: 58vmax;
  height: 58vmax;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(3, 8, 18, 0.3) 0 18%, transparent 19% 100%),
    repeating-radial-gradient(circle, rgba(128, 216, 255, 0.08) 0 2px, transparent 3px 28px);
  box-shadow:
    inset 0 0 90px rgba(34, 224, 191, 0.12),
    0 0 120px rgba(121, 168, 255, 0.16);
  opacity: 0.58;
  transform: translate(-50%, -50%);
  animation: vortexPulse 8s ease-in-out infinite;
}

.cosmic-vortex span {
  width: 62vmax;
  height: 16vmax;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.34;
  transform-origin: center;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.cosmic-vortex span:nth-child(1) {
  left: -8vmax;
  top: 12vh;
  background: linear-gradient(90deg, transparent, rgba(34, 224, 191, 0.42), transparent);
  transform: rotate(-18deg);
}

.cosmic-vortex span:nth-child(2) {
  right: -14vmax;
  top: 42vh;
  background: linear-gradient(90deg, transparent, rgba(121, 168, 255, 0.38), transparent);
  animation-delay: -5s;
  transform: rotate(24deg);
}

.cosmic-vortex span:nth-child(3) {
  left: 16vmax;
  bottom: 2vh;
  background: linear-gradient(90deg, transparent, rgba(170, 140, 255, 0.3), transparent);
  animation-delay: -10s;
  transform: rotate(8deg);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(34, 224, 191, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.12), rgba(2, 8, 18, 0.88));
  content: "";
  pointer-events: none;
}

@keyframes vortexSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.96);
  }
}

@keyframes vortexPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.45;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.7;
  }
}

@keyframes auroraDrift {
  from {
    translate: 0 0;
  }

  to {
    translate: 7vw -4vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-vortex::before,
  .cosmic-vortex::after,
  .cosmic-vortex span,
  #newsTicker {
    animation: none;
  }
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(128, 216, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.72);
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(34, 224, 191, 0.48);
  box-shadow: 0 0 0 3px rgba(34, 224, 191, 0.08);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.strategy-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
}

.side-panel {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(3, 10, 22, 0.82);
  box-shadow: inset -1px 0 0 rgba(34, 224, 191, 0.08);
  padding: 24px;
  scrollbar-color: rgba(34, 224, 191, 0.38) transparent;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.2;
}

.brand p,
.scope-card p,
.radar-card p,
.focus-panel p,
.stage-panel p,
.strategy-item p,
.journal-item p,
.signal-row p {
  color: var(--muted);
  line-height: 1.68;
}

.brand p {
  margin-top: 4px;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.nav-link,
.theme-button,
.strategy-tabs button {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.nav-link {
  padding: 11px 12px;
  text-align: left;
}

.nav-link.active,
.nav-link:hover,
.theme-button.active,
.theme-button:hover,
.strategy-tabs button.active,
.strategy-tabs button:hover {
  border-color: rgba(34, 224, 191, 0.46);
  background: var(--cyan-soft);
  color: #bffdf1;
}

.scope-card,
.rating-card,
.panel-card,
.focus-panel,
.radar-card,
.strategy-board,
.journal-panel,
.theme-band,
.hot-news-panel,
.market-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
}

.scope-card,
.rating-card {
  padding: 16px;
}

.scope-card {
  margin-bottom: 12px;
}

.scope-card span,
.rating-card span,
.radar-card span,
.section-title span,
.focus-topline span,
.signal-row span,
.stage-grid span,
.next-check span,
.journal-item span,
.theme-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scope-card strong {
  color: var(--cyan);
}

.side-scope-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  cursor: pointer;
}

.side-scope-toggle input {
  width: auto;
  accent-color: var(--cyan);
}

.side-scope-toggle strong {
  display: block;
}

.rating-ladder {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.side-rating-button {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.side-rating-button:hover,
.side-rating-button.active {
  border-color: rgba(34, 224, 191, 0.42);
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  transform: translateX(2px);
}

.main-stage {
  min-width: 0;
  padding: 28px;
}

.top-market-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.24fr);
  gap: 12px;
  margin-bottom: 14px;
}

.market-dock-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.58);
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
}

.market-dock-card:hover {
  border-color: rgba(34, 224, 191, 0.38);
  background: rgba(5, 21, 35, 0.72);
}

.market-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.market-dock-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.market-index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.market-index {
  border: 1px solid rgba(128, 216, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  min-width: 0;
  padding: 7px 8px;
}

.market-index span,
.market-index em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-index strong {
  display: block;
  margin: 3px 0;
  font-size: 15px;
  line-height: 1.1;
}

.market-index.up strong,
.market-index.up em {
  color: var(--bad);
}

.market-index.down strong,
.market-index.down em {
  color: var(--good);
}

.market-breadth-panel,
.capital-flow-detail {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.58);
  margin-bottom: 16px;
  padding: 14px;
}

.market-breadth-panel[hidden] {
  display: none;
}

.breadth-summary,
.breadth-rows,
.capital-flow-map {
  display: grid;
  gap: 10px;
}

.breadth-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.breadth-pill,
.flow-route-card,
.flow-detail-row {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.breadth-pill span,
.flow-route-card span,
.flow-detail-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.breadth-pill strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

.flow-detail-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 5px;
}

.breadth-pill.up strong,
.flow-detail-row.up strong {
  color: var(--bad);
}

.breadth-pill.down strong,
.flow-detail-row.down strong {
  color: var(--good);
}

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

.flow-route-card {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.flow-route-card:hover,
.flow-route-card.active {
  border-color: rgba(34, 224, 191, 0.42);
  background: rgba(34, 224, 191, 0.1);
}

.flow-route-card strong {
  color: var(--ink);
  display: block;
  margin: 5px 0;
}

.flow-route-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.filter-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1fr);
  gap: 12px;
}

.check-control {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 44px;
  padding: 0 12px;
}

.check-control input {
  width: auto;
}

.check-control span {
  margin: 0;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(128, 216, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.hero,
.section-title,
.focus-topline,
.journal-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero {
  margin-bottom: 18px;
}

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

.mini-refresh-button {
  border: 1px solid rgba(34, 224, 191, 0.28);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 32px;
  padding: 0 10px;
}

.mini-refresh-button:hover {
  border-color: rgba(34, 224, 191, 0.52);
  background: rgba(34, 224, 191, 0.18);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  color: #b6c7d7;
  line-height: 1.75;
}

.hero-status {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 13, 28, 0.76);
  padding: 12px 14px;
  text-align: right;
}

.hero-status span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-status strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 20px;
}

.hero-status.loading span {
  color: var(--warn);
}

.hero-status.live span {
  color: var(--good);
}

.hero-status.error span {
  color: var(--bad);
}

.refresh-button {
  width: 100%;
  border: 1px solid rgba(34, 224, 191, 0.32);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.1);
  color: #bffdf1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.refresh-button:hover {
  background: rgba(34, 224, 191, 0.17);
}

.radar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.focus-panel,
.radar-card,
.panel-card,
.strategy-board,
.journal-panel,
.theme-band,
.hot-news-panel {
  padding: 18px;
}

.focus-panel {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(34, 224, 191, 0.15), rgba(121, 168, 255, 0.08)),
    var(--panel-strong);
}

.focus-topline {
  margin-bottom: 18px;
}

.focus-topline span {
  border: 1px solid rgba(34, 224, 191, 0.42);
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.1);
  color: #bffdf1;
  padding: 7px 10px;
}

.focus-topline strong {
  color: var(--cyan);
  font-size: 18px;
}

.focus-topline em {
  font-style: normal;
  font-size: 30px;
}

.focus-panel h3 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.12;
}

.chip-row,
.reference-strip,
.news-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row span,
.reference-strip span {
  border: 1px solid rgba(128, 216, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dceeff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.reference-strip span {
  border-color: rgba(243, 189, 101, 0.34);
  color: #ffd79b;
}

.news-links {
  margin-top: 18px;
  border-top: 1px solid rgba(128, 216, 255, 0.12);
  padding-top: 15px;
}

.news-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-title span,
.news-link-grid span {
  color: var(--muted);
  font-size: 12px;
}

.news-title strong {
  color: var(--cyan);
  font-size: 13px;
}

.news-link-grid a {
  flex: 1 1 180px;
  border: 1px solid rgba(128, 216, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  padding: 11px 12px;
  text-decoration: none;
}

.news-link-grid a:hover {
  border-color: rgba(34, 224, 191, 0.45);
  background: rgba(34, 224, 191, 0.08);
}

.news-link-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #dffbf6;
  font-size: 13px;
}

.radar-cards {
  display: grid;
  gap: 12px;
}

.radar-card strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--cyan);
  font-size: 22px;
}

.theme-band,
.hot-news-panel,
.insight-grid,
.leaders-panel,
.strategy-board,
.journal-panel {
  margin-top: 16px;
}

.pinned-news {
  border: 1px solid rgba(34, 224, 191, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 224, 191, 0.13), rgba(121, 168, 255, 0.08));
  margin-bottom: 12px;
}

.pinned-news a,
.news-item,
.news-history a {
  color: var(--ink);
  text-decoration: none;
}

.pinned-news a {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.pinned-news span,
.news-item em,
.news-history span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.pinned-news strong {
  color: #dffbf6;
  font-size: 20px;
  line-height: 1.35;
}

.pinned-news p {
  color: #b9cddd;
  line-height: 1.65;
}

.news-ticker {
  overflow: hidden;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.55);
  margin-bottom: 12px;
  padding: 9px 0;
}

#newsTicker {
  display: inline-flex;
  gap: 28px;
  min-width: max-content;
  animation: newsScroll 38s linear infinite;
}

#newsTicker a {
  color: var(--cyan);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

@keyframes newsScroll {
  from {
    transform: translateX(18px);
  }

  to {
    transform: translateX(-55%);
  }
}

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

.news-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 11px;
}

.news-item.important {
  border-color: rgba(243, 189, 101, 0.38);
  background: rgba(243, 189, 101, 0.07);
}

.news-item > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.news-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.45;
}

.news-history {
  margin-top: 12px;
}

.news-history summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 900;
}

#newsHistoryList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.news-history a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(128, 216, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.stock-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
  padding: 14px;
}

.stock-search-button {
  min-height: 43px;
  border: 1px solid rgba(34, 224, 191, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 224, 191, 0.95), rgba(121, 168, 255, 0.9));
  color: #03111a;
  font-weight: 900;
}

.stock-rating-result:not(:empty) {
  margin-bottom: 14px;
}

.rating-result-card {
  border: 1px solid rgba(34, 224, 191, 0.24);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.07);
  padding: 14px;
}

.rating-result-card.warning {
  border-color: rgba(243, 189, 101, 0.34);
  background: rgba(243, 189, 101, 0.08);
}

.rating-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rating-result-head span,
.rating-result-card li {
  color: var(--muted);
  font-size: 12px;
}

.rating-result-head h4 em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rating-result-head strong {
  color: var(--cyan);
}

.rating-result-card p {
  color: #c7d8e8;
  line-height: 1.65;
}

.rating-result-card ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.trade-analysis {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 10px;
  padding: 10px;
}

.trade-analysis span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.trade-analysis strong {
  color: #dceeff;
  font-size: 13px;
  line-height: 1.5;
}

.section-title {
  margin-bottom: 14px;
}

.section-title.compact h3,
.section-title h3 {
  font-size: 20px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.theme-button {
  min-height: 104px;
  padding: 14px;
  text-align: left;
}

.theme-button strong {
  display: block;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.3;
}

.theme-button em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 900;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.signal-row strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

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

.tone-warn strong {
  color: var(--warn);
}

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

.tone-neutral strong {
  color: var(--blue);
}

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

.stage-grid div,
.next-check {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.stage-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 20px;
}

.next-check {
  margin-top: 14px;
}

.next-check p {
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  color: var(--muted);
  font-size: 12px;
}

td {
  color: #d9e8f5;
  line-height: 1.55;
}

td strong {
  display: block;
  color: var(--ink);
}

td span {
  color: var(--muted);
  font-size: 12px;
}

.stock-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 64px;
  border: 1px solid rgba(34, 224, 191, 0.32);
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.stock-rating-badge em {
  color: inherit;
  font-style: normal;
  opacity: 0.82;
}

.concept-leader-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.concept-group {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.concept-detail-button {
  border: 1px solid rgba(34, 224, 191, 0.28);
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.1);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.concept-detail-button:hover {
  border-color: rgba(34, 224, 191, 0.52);
  background: rgba(34, 224, 191, 0.16);
}

.concept-detail-panel {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.52);
  margin-top: 16px;
  padding: 14px;
}

.concept-detail-panel[hidden] {
  display: none;
}

.concept-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.concept-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.concept-group-head h4 {
  margin-top: 5px;
  font-size: 18px;
}

.concept-group-head strong {
  border: 1px solid rgba(34, 224, 191, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 12px;
}

.concept-stock-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.concept-stock-row {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.5);
  padding: 11px;
}

.concept-stock-row div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.concept-stock-row span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.concept-stock-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.concept-stock-row .stock-rating-badge {
  margin-left: auto;
}

.concept-stock-row p,
.concept-stock-row small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.concept-stock-row b {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 13px;
}

.concept-stock-row p {
  margin-bottom: 7px;
}

.buy-danger {
  border-top: 1px solid rgba(128, 216, 255, 0.1);
  margin-top: 8px;
  padding-top: 8px;
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.strategy-tabs button {
  min-width: 82px;
  padding: 10px 14px;
  font-weight: 900;
}

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

.strategy-item,
.journal-item {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.strategy-item h4,
.journal-item h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.strategy-item span {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.journal-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.journal-item strong {
  border: 1px solid rgba(34, 224, 191, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  padding: 5px 8px;
  font-size: 12px;
}

.journal-item h4 {
  margin-top: 12px;
}

.review-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.portfolio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  margin-bottom: 16px;
  padding: 18px;
}

.portfolio-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.portfolio-add-button,
.delete-portfolio-button {
  border: 1px solid rgba(34, 224, 191, 0.32);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.1);
  color: #bffdf1;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 12px;
}

.portfolio-add-button {
  background: linear-gradient(135deg, rgba(34, 224, 191, 0.95), rgba(121, 168, 255, 0.9));
  color: #03111a;
}

.delete-portfolio-button {
  border-color: rgba(255, 108, 124, 0.32);
  background: rgba(255, 108, 124, 0.08);
  color: #ffb8c0;
}

.portfolio-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.portfolio-card {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.5);
  padding: 14px;
}

.portfolio-card-head,
.portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-card-head span,
.portfolio-actions span,
.portfolio-note span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-card-head h4 {
  margin-top: 5px;
  font-size: 20px;
}

.portfolio-card-head em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.portfolio-card-head strong {
  border: 1px solid rgba(34, 224, 191, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  padding: 7px 10px;
  white-space: nowrap;
}

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

.portfolio-metrics span {
  border: 1px solid rgba(128, 216, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  padding: 9px;
}

.portfolio-metrics b {
  color: var(--ink);
  display: block;
  font-size: 15px;
  margin-top: 4px;
}

.portfolio-card p,
.portfolio-card li {
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-card ul {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding-left: 18px;
}

.portfolio-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.portfolio-actions {
  border-top: 1px solid rgba(128, 216, 255, 0.1);
  margin-top: 12px;
  padding-top: 12px;
}

.dragon-tiger-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  margin-bottom: 16px;
  padding: 18px;
}

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

.dragon-tiger-board {
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
}

.dragon-tiger-list {
  display: grid;
  gap: 9px;
}

.dragon-tiger-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(92px, 0.34fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(128, 216, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.5);
  padding: 9px;
}

.dragon-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 224, 191, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.dragon-main {
  min-width: 0;
}

.dragon-main strong,
.dragon-money strong {
  color: var(--ink);
  display: block;
}

.dragon-main span,
.dragon-main p,
.dragon-money span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dragon-tiger-row.up .dragon-money strong {
  color: var(--bad);
}

.dragon-tiger-row.down .dragon-money strong {
  color: var(--good);
}

.dragon-add-button {
  border: 1px solid rgba(34, 224, 191, 0.28);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.1);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 9px;
  white-space: nowrap;
}

.review-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 12px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-control {
  display: inline-flex;
  align-items: center;
}

.upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-control span,
.save-review-button {
  border: 1px solid rgba(34, 224, 191, 0.32);
  border-radius: 8px;
  background: rgba(34, 224, 191, 0.1);
  color: #bffdf1;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
}

.save-review-button {
  background: linear-gradient(135deg, rgba(34, 224, 191, 0.95), rgba(121, 168, 255, 0.9));
  color: #03111a;
}

.image-preview {
  display: none;
  align-items: center;
  gap: 10px;
}

.image-preview:not(:empty) {
  display: flex;
}

.image-preview img,
.saved-review-item img {
  display: block;
  max-width: 100%;
  border: 1px solid rgba(128, 216, 255, 0.14);
  border-radius: 8px;
  object-fit: cover;
}

.image-preview img {
  width: 96px;
  height: 72px;
}

.image-preview span,
.empty-review {
  color: var(--muted);
  font-size: 12px;
}

.saved-review-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.saved-review-item {
  position: relative;
  border: 1px solid rgba(128, 216, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.saved-review-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.saved-review-item span {
  color: var(--muted);
  font-size: 12px;
}

.saved-review-item strong {
  border: 1px solid rgba(34, 224, 191, 0.3);
  border-radius: 999px;
  color: var(--cyan);
  padding: 5px 8px;
  font-size: 12px;
}

.saved-review-item h4 {
  padding-right: 52px;
  margin-bottom: 8px;
}

.delete-review-button {
  position: absolute;
  top: 46px;
  right: 14px;
  border: 1px solid rgba(255, 108, 124, 0.32);
  border-radius: 8px;
  background: rgba(255, 108, 124, 0.08);
  color: #ffb8c0;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.saved-review-item p {
  color: var(--muted);
  line-height: 1.68;
  white-space: pre-wrap;
}

.saved-review-item img {
  max-height: 280px;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .strategy-shell {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .top-market-dock,
  .radar-hero,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .strategy-content,
  .theme-cards,
  .market-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .breadth-summary,
  .breadth-rows,
  .dragon-tiger-grid,
  .flow-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .side-panel,
  .main-stage {
    padding: 16px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-link {
    min-width: max-content;
  }

  .hero-status {
    width: 100%;
    text-align: left;
  }

  .focus-panel,
  .radar-card,
  .panel-card,
  .strategy-board,
  .journal-panel,
  .theme-band {
    padding: 14px;
  }

  .focus-panel h3 {
    font-size: 28px;
  }

  .theme-cards,
  .strategy-content,
  .stage-grid,
  .review-fields,
  .stock-search-form,
  .portfolio-form,
  .portfolio-metrics,
  .concept-stock-list,
  .news-list,
  .filter-controls,
  .market-index-list,
  .top-market-dock,
  .breadth-summary,
  .breadth-rows,
  .dragon-tiger-grid,
  .flow-detail-grid {
    grid-template-columns: 1fr;
  }

  .dragon-tiger-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dragon-money,
  .dragon-add-button {
    grid-column: 2;
  }

  .news-history a {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  table {
    min-width: 680px;
  }
}
