:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #000000;
  --panel-2: #000000;
  --paper: #f5f2ea;
  --paper-2: #fffcf3;
  --text: #ffffff;
  --muted: #a8b8ac;
  --soft: #d8ded8;
  --heading: #ffffff;
  --line: rgba(244, 240, 232, 0.14);
  --line-dark: rgba(14, 20, 22, 0.16);
  --green: #00a020;
  --green-dim: #007a18;
  --green-dark: #00280b;
  --blue: #1677b8;
  --gold: #d6a85c;
  --red: #e1685d;
  --ink: #0c1113;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p,
a,
span,
strong,
small,
button,
input,
label,
em,
b {
  font-family: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px 12px;
  border-right: 1px solid rgba(0, 209, 47, 0.24);
  background: #050706;
  color: #e8ecef;
}

.side-brand {
  display: grid;
  gap: 14px;
  min-height: 60px;
  padding: 0 0 18px;
  width: 170px;
}

.side-brand-row {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 4px;
  align-items: center;
  width: 170px;
}

.side-brand-mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: #020503;
  color: var(--green);
  font-weight: 850;
}

.side-brand strong,
.side-brand small {
  display: block;
}

.side-brand strong {
  color: var(--heading);
  font-size: 22px;
  letter-spacing: 4px;
  line-height: 23px;
  white-space: nowrap;
}

.side-brand small {
  color: #9ca6ad;
  width: 151px;
  font-size: 7.1px;
  line-height: 1;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.side-menu,
.side-group {
  display: grid;
  gap: 5px;
}

.side-menu {
  padding-top: 10px;
  border-top: 1px solid rgba(244, 240, 232, 0.08);
}

.side-solo {
  margin-top: 22px;
}

.side-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 240, 232, 0.08);
}

.side-group p {
  margin: 0 0 6px;
  padding: 0 10px;
  color: #8d969e;
  font-size: 12px;
}

.side-menu a,
.side-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
  border-left: 3px solid transparent;
  color: #b8c0c7;
  font-size: 11px;
  line-height: 1.25;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.side-menu a:hover,
.side-group a:hover {
  background: rgba(0, 209, 47, 0.09);
  color: #ffffff;
  box-shadow: inset 0 0 20px rgba(0, 209, 47, 0.06);
}

.side-menu a.active,
.side-group a.active {
  border-left-color: var(--green);
  background: rgba(0, 209, 47, 0.16);
  color: #ffffff;
  font-weight: 750;
  box-shadow: inset 0 0 22px rgba(0, 209, 47, 0.08);
}

.nav-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.8;
}

.icon-assets {
  border: 1px solid currentColor;
}

.icon-assets::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "$";
  font-size: 10px;
  line-height: 1;
}

.icon-macro::before {
  position: absolute;
  inset: 1px 0;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='64' height='32' viewBox='0 0 64 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 16 C10 4 18 4 26 16 C34 28 42 28 50 16 C54 10 58 7 62 7' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='64' height='32' viewBox='0 0 64 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 16 C10 4 18 4 26 16 C34 28 42 28 50 16 C54 10 58 7 62 7' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-candle::before {
  position: absolute;
  inset: 2px 1px;
  content: "";
  background:
    linear-gradient(currentColor, currentColor) 2px 1px / 2px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 4px / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 0 / 2px 14px no-repeat;
}

.icon-market::before {
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-market::after {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-35deg);
}

.icon-community::before,
.icon-star::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "★";
  font-size: 14px;
  line-height: 1;
}

.icon-star::before {
  content: "♥";
}

.icon-note {
  border: 1px solid currentColor;
  border-radius: 2px;
}

.icon-note::before {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 8px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
  content: "";
}

.side-bottom {
  margin-top: auto;
}

.app-main {
  min-width: 0;
  padding-top: 41px;
  font-size: 14px;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.placeholder-page {
  min-height: calc(100vh - 128px);
  background: #000000;
}

.placeholder-page h2 {
  max-width: var(--max);
  margin: 0 auto;
  color: var(--heading);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
}

.placeholder-page p {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.placeholder-page p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: #020503;
  color: var(--green);
  font-weight: 850;
  overflow: hidden;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000000;
}

.global-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 210px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 12px 24px 0;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.92) 72%, rgba(0, 0, 0, 0) 100%);
}

.global-topbar + .site-header + main .hero .home-dashboard {
  padding-top: 8px;
}

.site-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 31px;
  height: 29px;
  margin-right: 4px;
}

.site-search input {
  min-width: 0;
  height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(244, 240, 232, 0.32);
  border-right: 0;
  background: #000000;
  color: var(--text);
  outline: none;
  font-size: 10px;
}

.site-search input::placeholder {
  color: rgba(184, 192, 199, 0.7);
}

.site-search input:focus {
  border-color: var(--green);
}

.site-search button {
  position: relative;
  display: grid;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.32);
  background: #000000;
  color: var(--text);
  cursor: pointer;
}

.site-search button:hover {
  border-color: var(--green);
  color: var(--green);
}

.site-search button span {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-search button span::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  display: none;
  width: min(360px, calc(100vw - 260px));
  border: 1px solid rgba(0, 160, 32, 0.46);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.site-search-results.open {
  display: grid;
}

.site-search-results a,
.site-search-empty {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.site-search-results a:last-child,
.site-search-empty:last-child {
  border-bottom: 0;
}

.site-search-results a:hover {
  background: rgba(0, 160, 32, 0.1);
  color: var(--text);
}

.site-search-results strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.site-search-results span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-entry {
  min-height: 29px;
  padding: 0 14px;
  border: 1px solid rgba(244, 240, 232, 0.58);
  background: #000000;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.auth-entry.primary {
  border-color: rgba(244, 240, 232, 0.58);
  background: #000000;
  color: var(--text);
}

.auth-entry:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 82px 24px 76px max(24px, calc((100vw - var(--max)) / 2));
}

.hero::before {
  display: none;
  content: "";
}

.home-dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(680px, 1.15fr);
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 24px 30px;
}

.home-left h1 {
  max-width: 700px;
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.05;
}

.strategy-display-title {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.05;
}

.market-panel,
.content-box,
.home-right {
  border: 1px solid rgba(0, 209, 47, 0.28);
  background: #000000;
  box-shadow: none;
}

.content-box {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.market-panel,
.home-left-stack {
  margin-top: 0;
}

.home-left-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 34px;
  height: calc(100vh - 92px);
  min-height: 620px;
  max-height: 780px;
}

.content-block {
  display: grid;
  grid-template-rows: 28px 1fr;
  min-height: 0;
}

.content-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding-left: 8px;
}

.content-block-title h2 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.05;
}

.content-block-title h2 a,
.section-title-main {
  color: inherit;
  font-size: inherit;
  font-weight: 850;
}

.content-block-title h2 small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.content-block-title > a,
.content-block-title em,
.section-more {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.content-block-title a:hover,
.section-more:hover,
.section-title-main:hover {
  color: var(--green);
}

.home-right-wrap {
  align-self: start;
}

.strategy-display-title {
  margin-bottom: 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(0, 209, 47, 0.14);
}

.panel-heading-link {
  justify-content: flex-end;
}

.panel-heading span {
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.image-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transform-origin: 50% 34%;
}

.panel-heading a {
  color: var(--muted);
  font-size: 9px;
}

.content-box-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(0, 209, 47, 0.14);
}

.content-box-heading span {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.content-box-heading a,
.content-box-heading em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
}

.content-box-heading a:hover {
  color: var(--green);
}

.content-link {
  display: flex;
  position: relative;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 0 16px 0 8px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.content-link::before {
  flex: 0 0 auto;
  width: 9px;
  color: var(--muted);
  content: "•";
  font-size: 11px;
  line-height: 1;
}

.content-link:last-child {
  border-bottom: 0;
}

.content-link:hover {
  background: rgba(0, 209, 47, 0.07);
}

.content-link.primary {
  min-height: 0;
}

.content-link strong {
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.content-link strong::after {
  content: "：";
}

.content-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.content-link.article-only span {
  color: var(--muted);
}

.panel-heading small {
  color: var(--muted);
  font-size: 12px;
}

.market-item {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
}

.market-item:last-child {
  border-bottom: 0;
}

.market-item.primary {
  min-height: 58px;
}

.market-item strong {
  font-size: 11px;
}

.market-item span {
  color: var(--muted);
  font-size: 8.5px;
}

.market-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 240, 232, 0.08);
}

.market-track-grid a {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 8px;
  border-right: 1px solid rgba(244, 240, 232, 0.08);
}

.market-track-grid a:last-child {
  border-right: 0;
}

.market-track-grid a:hover {
  background: rgba(0, 209, 47, 0.08);
}

.market-track-grid strong {
  color: var(--text);
  font-size: 9px;
  line-height: 1.1;
}

.market-track-grid span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.home-strategy-controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 163px 163px;
  gap: 14px;
  align-items: center;
  padding: 0;
  border-bottom: 0;
  margin-bottom: -1px;
}

.home-strategy-controls label {
  display: grid;
  grid-template-columns: auto 95px;
  align-items: center;
  justify-content: start;
  gap: 8px;
}

.home-strategy-controls label span {
  color: var(--muted);
  font-size: 8px;
  line-height: 18px;
  white-space: nowrap;
}

.home-strategy-controls input {
  width: 95px;
  min-height: 18px;
  border: 1px solid rgba(0, 209, 47, 0.22);
  background: #020503;
  color: var(--text);
  padding: 0 7px;
  font-size: 8px;
  outline: none;
}

.range-tabs.compact {
  gap: 5px;
}

.range-tabs.compact button {
  min-width: 34px;
  height: 18px;
  font-size: 8px;
}

.strategy-card-list {
  display: grid;
  gap: 9px;
  padding: 8px;
  background: transparent;
}

.strategy-mini-card {
  display: grid;
  gap: 6px;
  min-height: 242px;
  padding: 7px;
  border: 1px solid rgba(0, 209, 47, 0.18);
  background: #000000;
}

.strategy-mini-card.featured {
  min-height: 306px;
  background: #000000;
  box-shadow: none;
}

.strategy-mini-card.muted {
  opacity: 0.7;
}

.strategy-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, 104px);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.strategy-title-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-mini-card span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.strategy-mini-card strong {
  font-size: 13px;
  line-height: 1.1;
}

.strategy-mini-card em {
  color: var(--muted);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 4px;
  font-size: 8px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.strategy-mini-card em.metric-blue-text {
  color: var(--muted);
}

.strategy-mini-card b {
  color: var(--text);
  display: inline-block;
  min-width: 0;
  font-size: 8px;
  text-align: right;
}

.strategy-mini-card.featured strong {
  color: var(--text);
  font-size: 16px;
  text-shadow: none;
}

.strategy-mini-card.featured em {
  color: #d8e8dd;
  font-size: 11px;
}

.strategy-mini-card.featured b {
  color: var(--green);
}

.strategy-subtitle {
  margin: -5px 0 0;
  color: var(--text);
  font-size: 10px;
}

.strategy-title-row small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
}

.strategy-mini-card canvas {
  width: 100%;
  min-height: 198px;
  height: 198px;
  border: 0;
  background: rgba(0, 0, 0, 0.26);
  cursor: crosshair;
}

.strategy-mini-card.featured canvas {
  min-height: 226px;
  height: 226px;
}

.strategy-page-dashboard {
  width: 100%;
  max-width: none;
  border-color: rgba(0, 209, 47, 0.28);
  background: #000000;
}

.strategy-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 10px;
}

.strategy-page-list .strategy-mini-card {
  min-width: 0;
  min-height: 250px;
  padding: 8px;
  overflow: hidden;
}

.strategy-page-list .strategy-title-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.strategy-page-list .strategy-title-row strong {
  align-self: start;
  font-size: 12px;
  line-height: 1.12;
}

.strategy-page-list .strategy-title-row small {
  font-size: 6px;
}

.strategy-page-list .strategy-mini-card em,
.strategy-page-list .strategy-mini-card b {
  font-size: 7px;
}

.strategy-page-list .strategy-title-row em {
  display: inline-flex;
  min-width: 0;
  justify-content: flex-start;
  gap: 4px;
}

.strategy-page-list .strategy-title-row em:nth-of-type(1) {
  grid-column: 1;
}

.strategy-page-list .strategy-title-row em:nth-of-type(1),
.strategy-page-list .strategy-title-row em:nth-of-type(2),
.strategy-page-list .strategy-title-row em:nth-of-type(3) {
  grid-row: 2;
}

.strategy-page-list .strategy-title-row {
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
}

.strategy-page-list .strategy-title-row strong {
  grid-column: 1 / -1;
}

.strategy-page-list .home-strategy-controls {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  min-width: 0;
}

.strategy-page-list .range-tabs.compact {
  min-width: 0;
  flex-wrap: wrap;
}

.strategy-page-list .home-strategy-controls input {
  width: 86px;
  padding-right: 4px;
  padding-left: 5px;
}

.strategy-page-list .strategy-mini-card canvas {
  min-height: 186px;
  height: 186px;
}

.legacy-strategy-hooks {
  display: none;
}

.mini-legend {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.mini-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.mini-legend i {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 209, 47, 0.45);
}

.mini-legend i.blue-line {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(22, 119, 184, 0.45);
}

.mini-legend i.muted-line {
  background: var(--red);
  box-shadow: none;
}

.mini-legend i.raw-dd-line {
  background: #9b2f5f;
  box-shadow: none;
}

.mini-legend i.white-line {
  background: #f4f0e8;
  box-shadow: none;
}

.strategy-mini-metrics {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.strategy-mini-metrics em {
  display: grid;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid rgba(0, 209, 47, 0.12);
  background: rgba(0, 209, 47, 0.04);
  font-size: 12px;
}

.strategy-mini-metrics b {
  font-size: 15px;
}

.metric-blue {
  color: var(--blue) !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-modal.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(0, 209, 47, 0.42);
  background: #020503;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.72);
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.auth-dialog-heading {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0, 209, 47, 0.2);
}

.auth-dialog-heading span,
.auth-section h3 {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.auth-dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.auth-section {
  display: grid;
  gap: 9px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
}

.auth-section:last-child {
  border-bottom: 0;
}

.auth-section h3 {
  margin: 0 0 2px;
}

.social-auth,
.email-auth-submit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: #080b09;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.social-auth:hover,
.email-auth-submit:hover {
  border-color: var(--green);
}

.social-auth b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.16);
  font-size: 12px;
}

.social-auth.wechat b {
  color: var(--green);
}

.wechat-qr {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0, 209, 47, 0.2);
}

.wechat-qr[hidden] {
  display: none;
}

.qr-placeholder {
  width: 72px;
  height: 72px;
  background:
    linear-gradient(90deg, #f4f0e8 50%, transparent 50%) 0 0 / 10px 10px,
    linear-gradient(#f4f0e8 50%, transparent 50%) 0 0 / 10px 10px,
    #020503;
}

.wechat-qr p,
.auth-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
}

.auth-tabs button {
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.auth-tabs button.active {
  border-color: var(--green);
  color: var(--green);
}

#emailAuthForm {
  display: grid;
  gap: 10px;
}

#emailAuthForm label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

#emailAuthForm input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  background: #000000;
  color: var(--text);
  outline: none;
}

#emailAuthForm input:focus {
  border-color: var(--green);
}

.email-auth-submit {
  justify-content: center;
  border-color: var(--green-dim);
  background: var(--green-dark);
  color: var(--text);
  text-align: center;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-slogan {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-brand-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(0, 209, 47, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.mini-logo {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--green);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  background: rgba(244, 240, 232, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-stats div {
  padding: 14px;
  background: rgba(17, 24, 27, 0.92);
}

.hero-stats dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.notice-band,
.section,
.community-section,
.site-footer {
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
}

.notice-band {
  border-bottom: 1px solid var(--line);
  background: #0f1517;
}

.notice-band p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto 34px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 22px);
  line-height: 1.55;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.purpose-grid article {
  min-height: 280px;
  padding: 28px;
  background: var(--panel);
}

.card-index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.purpose-grid h3 {
  margin: 44px 0 12px;
  font-size: 23px;
}

.purpose-grid p {
  margin: 0;
  color: var(--muted);
}

.home-focus-section {
  background: #000000;
}

.home-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.focus-card {
  min-height: 190px;
  padding: 26px;
  background: #000000;
}

.focus-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.focus-card strong {
  display: block;
  margin-top: 38px;
  font-size: 24px;
}

.focus-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.research-section {
  background: #101618;
}

.research-list {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.research-list a {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.research-list span,
.research-list em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.research-list strong {
  font-size: 21px;
}

.strategy-section {
  background: var(--bg);
  padding-top: 58px;
  padding-right: 24px;
  padding-left: 24px;
}

.strategy-section .section-heading.compact {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
}

.strategy-section .section-heading.compact h2 {
  font-size: 26px;
  line-height: 1.15;
}

.strategy-section .section-heading.compact p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.dashboard {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.strategy-note {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #0d1315;
}

.strategy-note strong {
  color: var(--text);
  font-size: 15px;
}

.strategy-note span {
  color: var(--muted);
  font-size: 14px;
}

.strategy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #0d1315;
}

.strategy-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
}

.strategy-tabs button.active {
  border-color: var(--green);
    background: rgba(0, 209, 47, 0.14);
  color: var(--text);
}

.strategy-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.metric-strip > div {
  min-height: 82px;
  padding: 18px;
  background: var(--panel-2);
}

.metric-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-strip strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #0f1719;
}

.chart-controls label {
  display: grid;
  gap: 6px;
}

.chart-controls label span {
  color: var(--muted);
  font-size: 12px;
}

.chart-controls input {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #0d1315;
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.chart-controls input:focus {
  border-color: var(--green);
}

.range-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.range-tabs button {
  min-width: 54px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.range-tabs button.active {
  border-color: var(--green);
  color: var(--text);
}

canvas {
  display: block;
  width: 100%;
  min-height: 300px;
}

.drawdown-panel {
  position: relative;
  border-top: 1px solid var(--line);
  background: #11181b;
}

.drawdown-panel > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px 0;
}

.drawdown-panel strong {
  font-size: 15px;
}

.drawdown-panel span {
  color: var(--muted);
  font-size: 13px;
}

#drawdownChart {
  min-height: 180px;
}

.chart-tooltip {
  position: fixed;
  z-index: 50;
  display: none;
  min-width: 154px;
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  background: rgba(13, 19, 21, 0.94);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  font-size: 9px;
  line-height: 1.45;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
}

.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.chart-tooltip b {
  color: var(--text);
  font-weight: 500;
}

.channels-section {
  padding-top: 76px;
  border-top: 1px solid rgba(244, 240, 232, 0.18);
  background: var(--paper);
  color: var(--ink);
}

.channels-section .eyebrow {
  color: #247a6c;
}

.channels-section .section-heading p {
  color: #55625c;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.channel-card {
  min-height: 170px;
  padding: 24px;
  background: var(--paper-2);
}

.channel-card:hover {
  background: #ffffff;
}

.channel-card span {
  color: #5f6d67;
  font-size: 14px;
}

.channel-card strong {
  display: block;
  margin-top: 54px;
  font-size: 20px;
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 58px;
  padding-top: 96px;
  padding-bottom: 96px;
  background: #101819;
}

.community-section > div,
.join-form {
  max-width: 570px;
}

.community-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 62px);
  line-height: 1.08;
}

.community-section p {
  color: var(--muted);
}

.join-form {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.join-form label {
  display: grid;
  gap: 8px;
}

.join-form span,
.join-form small {
  color: var(--muted);
  font-size: 13px;
}

.join-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #0d1315;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.join-form input:focus {
  border-color: var(--green);
}

.join-form button {
  min-height: 48px;
  border: 0;
  background: var(--green);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: relative;
    min-height: auto;
    padding: 14px;
  }

  .side-brand {
    padding-bottom: 12px;
  }

  .side-menu,
  .side-group {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-top: 10px;
  }

  .side-group {
    margin-top: 10px;
  }

  .side-group p,
  .side-bottom {
    display: none;
  }

  .side-menu a,
  .side-group a {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(244, 240, 232, 0.1);
    border-left: 1px solid rgba(244, 240, 232, 0.1);
  }

  .side-menu a.active {
    border-color: var(--green);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-topbar {
    left: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-search {
    grid-template-columns: minmax(110px, 1fr) 31px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-right: 4px;
    padding-left: 4px;
  }

  .hero-copy {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-dashboard {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .strategy-page-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .community-section {
    grid-template-columns: 1fr;
  }

  .purpose-grid,
  .channel-grid,
  .home-focus-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .research-list a {
    grid-template-columns: 1fr;
  }

  .strategy-note {
    grid-template-columns: 1fr;
  }

  .drawdown-panel > div {
    grid-template-columns: 1fr;
  }

  .metric-strip > div {
    min-height: auto;
  }

  .research-list a {
    gap: 6px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section,
  .community-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-brand-links,
  .button {
    width: 100%;
  }

  .hero-brand-links a {
    flex: 1 1 100%;
  }
}
