:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-2: #0c1016;
  --panel: #111720;
  --panel-2: #151d27;
  --panel-3: #1b2531;
  --surface-hover: #1d2835;
  --line: #26313e;
  --line-2: #354252;
  --text: #eef2f7;
  --soft: #c8d0dc;
  --muted: #8d99aa;
  --faint: #657184;
  --accent: #f2b84b;
  --accent-hover: #ffd36d;
  --link: #68b6ff;
  --positive: #f6465d;
  --negative: #0ecb81;
  --flat: #8b95a5;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
  --focus: 0 0 0 3px rgba(242, 184, 75, 0.24);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(104, 182, 255, 0.045), transparent 280px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 80px 80px, auto;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }
svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svg-sprite { display: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; font-weight: 780; letter-spacing: 0; }
h2 { font-size: 1rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
button, input, select { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: rgba(242, 184, 75, 0.28); }

.terminal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.global-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  background: rgba(8, 11, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: #080b0f;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a, .logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.nav a:hover, .logout:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.nav a.active {
  color: var(--accent);
  background: rgba(242, 184, 75, 0.11);
  border-color: rgba(242, 184, 75, 0.24);
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.user-chip {
  text-decoration: none;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: var(--panel);
  font-size: 0.84rem;
}
.user-chip-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
}
.header-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.header-avatar.fallback {
  display: grid;
  place-items: center;
  color: #101114;
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 22px 18px 34px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 20px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.market-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 23, 32, 0.88);
  color: var(--soft);
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}
.market-status span {
  color: var(--negative);
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.market-status span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(14, 203, 129, 0.12);
}

.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.two-col { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr); align-items: start; }
.strategy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-strategy-grid { grid-template-columns: repeat(3, minmax(300px, 1fr)); align-items: stretch; }
.macro-grid, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.panel, .metric-card, .strategy-card, .strategy-market-card, .detail-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 78px), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.panel { padding: 16px; }
.panel.subtle { background: var(--panel-2); }
.panel-head, .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head { margin-bottom: 12px; }
.section-head {
  margin: 20px 0 12px;
  padding: 0 2px;
}
.section-head .muted { max-width: 520px; text-align: right; }

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  min-height: 104px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.metric-card:hover { transform: translateY(-1px); border-color: var(--line-2); background: var(--panel-2); }
.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(104, 182, 255, 0.82));
  opacity: 0.95;
}
.label { color: var(--muted); font-size: 0.78rem; margin-bottom: 9px; }
.value { font-size: 1.54rem; font-weight: 820; line-height: 1.05; letter-spacing: 0; }
.sub { color: var(--muted); font-size: 0.82rem; margin-top: 8px; line-height: 1.45; }
.muted, .is-muted { color: var(--muted); }
.is-positive { color: var(--positive); }
.is-negative { color: var(--negative); }
.left { text-align: left; }

.market-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 2px;
  border: 1px solid #2b3139;
  border-radius: 6px;
  background: #181a20;
}
.stock-market-head {
  align-items: flex-end;
}
.stock-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 920px);
  padding: 6px;
  border: 1px solid #2b3139;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), #0b0e11;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.stock-control-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.stock-search-field,
.stock-sort-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #2b3139;
  border-radius: 6px;
  background: #181a20;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.stock-search-field:hover,
.stock-sort-field:hover {
  border-color: #474d57;
  background: #1e2329;
}
.stock-search-field:focus-within,
.stock-sort-field:focus-within {
  border-color: #f0b90b;
  box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.12);
}
.stock-search-field svg {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  color: #848e9c;
  stroke-width: 2;
}
.stock-search-field span,
.stock-sort-field span {
  color: #848e9c;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}
.stock-search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.stock-sort-field span {
  padding: 0 8px 0 10px;
  border-right: 1px solid #2b3139;
  text-transform: uppercase;
}
.stock-search-field input,
.stock-sort-field select {
  min-height: 34px;
  color: #eaecef;
  border: 0;
  background: transparent;
}
.stock-search-field input:focus,
.stock-sort-field select:focus {
  outline: none;
}
.stock-search-field input:focus-visible,
.stock-sort-field select:focus-visible {
  box-shadow: none;
}
.stock-search-field input {
  width: min(30vw, 300px);
  padding: 0 11px 0 8px;
}
.stock-sort-field select {
  width: 136px;
  padding: 0 28px 0 10px;
  appearance: none;
  cursor: pointer;
}
.stock-sort-field::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #848e9c;
  border-bottom: 1.5px solid #848e9c;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}
.stock-search-field input::placeholder { color: #848e9c; }
.market-tabs button,
.market-tabs span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #848e9c;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.market-tabs button:hover,
.market-tabs span:hover {
  color: #eaecef;
  background: #1e2329;
}
.market-tabs button.active,
.market-tabs span.active {
  color: #181a20;
  background: #f0b90b;
}

.button, .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button {
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  font-size: 0.86rem;
  font-weight: 760;
  cursor: pointer;
}
.button.primary {
  color: #101114;
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}
.button.primary:hover { background: var(--accent-hover); }
.button.ghost { border: 1px solid var(--line-2); color: var(--accent); background: rgba(242, 184, 75, 0.02); }
.button.ghost:hover { border-color: var(--accent); background: rgba(242, 184, 75, 0.1); }
.button:disabled { cursor: wait; opacity: 0.72; }
.icon-link {
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.icon-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link { color: var(--link); text-decoration: none; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  vertical-align: middle;
}
th:first-child, td:first-child { text-align: left; }
th {
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.024);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-scroll table { min-width: 680px; }
.table-scroll th { position: sticky; top: 0; z-index: 1; }
.cell-note { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 3px; }

.pill {
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.pill.long { color: var(--positive); border-color: rgba(246, 70, 93, 0.35); background: rgba(246, 70, 93, 0.08); }
.pill.short { color: var(--negative); border-color: rgba(14, 203, 129, 0.35); background: rgba(14, 203, 129, 0.08); }
.pill.flat { color: var(--flat); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}
.metric-row div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.metric-row span, .strategy-card-metrics span, .strategy-condition span, .detail-status span, .info-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
}
.metric-row strong { display: block; font-size: 1.06rem; overflow-wrap: anywhere; }

.mini-bars {
  display: flex;
  height: 8px;
  gap: 3px;
  margin-bottom: 12px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.mini-bars span { width: var(--w); min-width: 5px; border-radius: 999px; }
.mini-bars .long { background: var(--positive); }
.mini-bars .short { background: var(--negative); }
.mini-bars .flat { background: var(--flat); }

.strategy-list { display: grid; gap: 8px; }
.strategy-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--panel-2);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.strategy-line:hover { transform: translateX(1px); border-color: var(--line-2); background: var(--surface-hover); }
.strategy-card, .strategy-market-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}
.strategy-card {
  min-height: 210px;
  padding: 16px;
  background: var(--panel);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.strategy-card:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--panel-2); }
.strategy-card p, .strategy-summary, .detail-hero p, .info-list p {
  color: var(--soft);
  line-height: 1.55;
}
.strategy-card svg { color: var(--muted); }
.strategy-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strategy-market-card {
  min-height: 320px;
  padding: 14px;
  background: var(--panel);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.strategy-market-card:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--panel-2); }
.strategy-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.strategy-summary {
  min-height: 66px;
  color: var(--soft);
  font-size: 0.86rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.tag-row span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-size: 0.72rem;
  font-weight: 650;
}
.stock-card-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 10px;
}
.stock-card-metrics div {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.stock-card-metrics strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.stock-card-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 650;
}
.stock-empty {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.strategy-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.strategy-card-metrics div {
  min-width: 0;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.strategy-card-metrics strong { display: block; overflow-wrap: anywhere; font-size: 0.95rem; }
.strategy-card-metrics em {
  display: block;
  color: var(--faint);
  font-style: normal;
  font-size: 0.72rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.strategy-condition {
  min-height: 58px;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.strategy-condition strong { font-size: 0.84rem; color: var(--soft); line-height: 1.45; }
.strategy-market-card > .button { width: 100%; margin-top: auto; }
.card-actions,
.forum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.card-actions .button,
.card-actions form,
.forum-actions .button,
.forum-actions form { flex: 1 1 130px; }
.card-actions button,
.forum-actions button { width: 100%; }
.sparkline-card {
  position: relative;
  margin: 13px 0 12px;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg-2);
  background-size: 100% 28px, 52px 100%, auto;
}
.sparkline-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 4px;
}
.sparkline-meta span,
.sparkline-foot {
  color: var(--muted);
  font-size: 0.74rem;
}
.sparkline-meta strong {
  font-size: 0.9rem;
  font-weight: 820;
}
.sparkline-card svg {
  display: block;
  width: 100%;
  height: 94px;
  color: var(--negative);
}
.sparkline-card.down svg { color: var(--positive); }
.sparkline-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}
.sparkline-area {
  fill: color-mix(in srgb, currentColor 14%, transparent);
  stroke: none;
}
.sparkline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.sparkline-empty {
  height: 94px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--panel);
}
.detail-hero h2 { font-size: 1.22rem; margin-bottom: 9px; }
.detail-status {
  display: grid;
  align-content: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.detail-status strong { font-size: 1.38rem; line-height: 1.1; }
.detail-status em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  overflow-wrap: anywhere;
}
.info-list { display: grid; gap: 10px; }
.info-list div {
  padding: 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.chart-box {
  height: 360px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--bg-2);
  background-size: 42px 42px;
  border: 1px solid var(--line);
}
.chart-box.tall { height: 430px; }
.macro-list { display: grid; gap: 6px; }
.macro-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.macro-item:hover span, .macro-item:hover strong { color: var(--text); }
.macro-item:last-child { border-bottom: none; }
.macro-item span { color: var(--soft); }
.macro-item strong { color: var(--text); }
.macro-item em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}
.empty-panel { max-width: 720px; }

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.105), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.profile-identity h2 {
  margin: 6px 0 12px;
  font-size: 1.75rem;
  line-height: 1.15;
}

.profile-hero > *,
.profile-layout > *,
.chart-workbench,
.profile-table-panel {
  min-width: 0;
}

.profile-identity p {
  max-width: 850px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.75;
}

.profile-aside {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent),
    var(--panel-2);
}

.profile-aside span,
.profile-status span,
.research-memo section span,
.performance-strip span,
.workbench-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-aside strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

.profile-aside em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.45;
}

.profile-refresh { margin-top: 8px; }

.profile-status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-status article {
  min-width: 0;
  padding: 14px;
  background: var(--panel);
}

.profile-status strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.profile-layout.wide-left {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.research-memo,
.performance-panel,
.chart-workbench,
.profile-table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 78px),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.research-memo,
.performance-panel,
.chart-workbench {
  padding: 16px;
}

.research-memo section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.research-memo section:first-of-type {
  border-top: none;
}

.research-memo p {
  margin-top: 7px;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.72;
}

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

.performance-strip + .performance-strip {
  margin-top: 10px;
}

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

.performance-strip div {
  min-height: 88px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.performance-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 1.34rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.chart-workbench {
  margin-bottom: 14px;
}

.workbench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.workbench-head h2 {
  font-size: 1.08rem;
}

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

.workbench-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}

.chart-box.profile-chart {
  height: 460px;
}

.profile-table-panel {
  padding: 16px;
}

.profile-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(17, 23, 32, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

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

.monitor-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.monitor-tile {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent), var(--panel);
  box-shadow: var(--shadow-soft);
}
.monitor-tile span,
.monitor-tile em {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
}
.monitor-tile strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 1.26rem;
  line-height: 1;
  overflow-wrap: anywhere;
}
.market-tile strong { font-size: 1.06rem; }
.monitor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-height: calc(100vh - 218px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.monitor-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.monitor-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}
.monitor-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  height: 32px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.monitor-switch button {
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 760;
}
.monitor-switch button.active {
  color: #101114;
  background: var(--accent);
}
.monitor-view { display: none; }
.monitor-view.active { display: block; }
.refresh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-2);
  font-size: 0.78rem;
}
.refresh-chip span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--negative);
  box-shadow: 0 0 0 3px rgba(14, 203, 129, 0.14);
}
.monitor-table-wrap { padding: 0; overflow: auto; }
.monitor-table {
  table-layout: fixed;
  width: 100%;
}
.monitor-table th,
.monitor-table td {
  height: 38px;
  padding: 5px 9px;
  font-size: 0.82rem;
}
.monitor-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-2);
}
.monitor-table th:nth-child(1) { width: 18%; }
.monitor-table th:nth-child(2) { width: 9%; }
.monitor-table th:nth-child(3) { width: 12%; }
.monitor-table th:nth-child(4) { width: 16%; }
.monitor-table th:nth-child(5),
.monitor-table th:nth-child(6),
.monitor-table th:nth-child(7) { width: 10%; }
.monitor-table th:nth-child(8) { width: 15%; }
.monitor-table tbody tr.row-long { background: linear-gradient(90deg, rgba(246, 70, 93, 0.075), transparent 34%); }
.monitor-table tbody tr.row-short { background: linear-gradient(90deg, rgba(14, 203, 129, 0.075), transparent 34%); }
.monitor-table tbody tr.row-flat { color: var(--soft); }
.strategy-cell strong {
  display: block;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strategy-cell span {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 0.72rem;
}
.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--panel-2);
}
.signal-badge i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.signal-badge.long { color: var(--positive); border-color: rgba(246, 70, 93, 0.35); }
.signal-badge.short { color: var(--negative); border-color: rgba(14, 203, 129, 0.35); }
.signal-badge.flat { color: var(--flat); }
.pnl-cell { font-weight: 820; }

.kline-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  min-height: calc(100vh - 270px);
}
.kline-main {
  min-width: 0;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(104, 182, 255, 0.04), transparent 240px),
    var(--panel);
}
.kline-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 220px minmax(360px, 0.9fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.kline-title strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}
.kline-select {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}
.kline-select select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-2);
  padding: 0 9px;
}
.kline-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.kline-stat-grid div {
  min-width: 0;
  height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 22, 0.72);
}
.kline-stat-grid span {
  display: block;
  color: var(--faint);
  font-size: 0.68rem;
}
.kline-stat-grid strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}
.kline-icon-button,
.mini-action {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: var(--bg-2);
  cursor: pointer;
}
.kline-icon-button {
  width: 36px;
  height: 36px;
}
.mini-action {
  min-width: 48px;
  height: 28px;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 760;
}
.kline-icon-button:hover,
.mini-action:hover {
  color: var(--accent);
  border-color: rgba(242, 184, 75, 0.34);
}
.kline-canvas-shell {
  position: relative;
  height: calc(100vh - 342px);
  min-height: 430px;
  overflow: hidden;
}
#realtimeKlineCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.kline-loading {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  background: rgba(8, 11, 15, 0.58);
  backdrop-filter: blur(4px);
}
.kline-loading.show { display: grid; }
.kline-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 248px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(12, 16, 22, 0.94);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}
.kline-tooltip.show { display: block; }
.kline-tooltip strong,
.kline-tooltip span,
.kline-tooltip em {
  display: block;
  line-height: 1.5;
}
.kline-tooltip strong { color: var(--text); }
.kline-tooltip span { color: var(--muted); font-size: 0.76rem; }
.kline-tooltip em {
  margin-top: 3px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 760;
}
.kline-tooltip em.long { color: var(--positive); }
.kline-tooltip em.short { color: var(--negative); }
.kline-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--panel-2);
}
.kline-side-head,
.kline-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.kline-side-head h3 {
  margin-top: 4px;
  font-size: 0.98rem;
}
.kline-signal-options {
  display: grid;
  align-content: start;
  gap: 7px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  overflow: auto;
}
.kline-signal-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 11, 15, 0.42);
  cursor: pointer;
}
.kline-signal-option:hover { border-color: var(--line-2); background: var(--surface-hover); }
.kline-signal-option input { accent-color: var(--accent); }
.kline-signal-option strong,
.kline-signal-option em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kline-signal-option strong { color: var(--text); font-size: 0.8rem; }
.kline-signal-option em {
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.7rem;
  font-style: normal;
}
.kline-signal-option b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  color: var(--soft);
  background: var(--panel-3);
  font-size: 0.74rem;
}
.kline-signal-option.long { border-left-color: rgba(246, 70, 93, 0.5); }
.kline-signal-option.short { border-left-color: rgba(14, 203, 129, 0.5); }
.kline-feed-head {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.kline-feed-head strong { color: var(--accent); }
.kline-feed-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kline-signal-feed {
  display: grid;
  gap: 7px;
  flex: 0 1 260px;
  max-height: calc(100vh - 690px);
  min-height: 150px;
  padding: 10px;
  overflow: auto;
}
.kline-side.feed-collapsed .kline-signal-feed {
  display: none;
}
.kline-feed-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 11, 15, 0.38);
}
.kline-feed-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 820;
  background: var(--panel-3);
}
.kline-feed-item.long span { color: var(--positive); }
.kline-feed-item.short span { color: var(--negative); }
.kline-feed-item strong,
.kline-feed-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kline-feed-item strong { font-size: 0.78rem; }
.kline-feed-item em { color: var(--faint); font-size: 0.7rem; font-style: normal; }
.kline-empty {
  margin: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.page-subtitle {
  max-width: 720px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cockpit-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(300px, 0.82fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.cockpit-brief,
.allocation-card,
.cockpit-metrics,
.market-card,
.module-card,
.panel-feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.cockpit-brief {
  min-height: 132px;
  padding: 16px 18px;
  background: rgba(8, 11, 15, 0.34);
}

.cockpit-brief h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 1.52rem;
  line-height: 1.12;
}

.cockpit-brief p {
  max-width: 820px;
  color: var(--soft);
  line-height: 1.7;
}

.status-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.status-ribbon span,
.module-foot span,
.refresh-chip {
  display: inline-flex;
  align-items: center;
}

.status-ribbon span {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(12, 16, 22, 0.72);
  font-size: 0.78rem;
  font-weight: 720;
}

.status-ribbon i,
.module-foot i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);
}

.cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.cockpit-metrics article {
  min-height: 64px;
  padding: 10px 12px;
  background: rgba(12, 16, 22, 0.7);
}

.cockpit-metrics span,
.market-card span,
.module-metrics span,
.holding-list span,
.signal-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.cockpit-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.allocation-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(12, 16, 22, 0.58);
}

.allocation-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
}

.allocation-donut {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.allocation-track,
.allocation-segment {
  fill: none;
  stroke-width: 16;
}

.allocation-track {
  stroke: rgba(53, 66, 82, 0.55);
}

.allocation-segment {
  --share: 0;
  --gap: 100;
  --offset: 0;
  stroke-dasharray: var(--share) var(--gap);
  stroke-dashoffset: calc(var(--offset) * -1);
  stroke-linecap: butt;
}

.allocation-segment-long { stroke: var(--positive); }
.allocation-segment-short { stroke: var(--negative); }
.allocation-segment-flat { stroke: var(--line-2); }

.allocation-center {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(8, 11, 15, 0.82);
}

.allocation-center span,
.allocation-center small {
  display: block;
}

.allocation-center span {
  font-size: 1.08rem;
  font-weight: 840;
  line-height: 1;
}

.allocation-center small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.allocation-legend {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.allocation-title {
  display: block;
  margin-bottom: 2px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 820;
}

.allocation-row {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto 42px;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  padding-bottom: 5px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.14);
  color: var(--soft);
  font-size: 0.78rem;
}

.allocation-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.allocation-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
}

.allocation-row i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-2);
}

.allocation-long i { background: var(--positive); }
.allocation-short i { background: var(--negative); }
.allocation-flat i { background: var(--line-2); }

.allocation-row strong,
.allocation-row em {
  font-style: normal;
  font-weight: 820;
  text-align: right;
}

.allocation-row em {
  color: var(--faint);
  font-size: 0.74rem;
}

.market-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.market-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 14px 16px;
  background: var(--panel);
}

.market-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.38rem;
  line-height: 1;
}

.market-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.module-section-head { margin-top: 18px; }

.button.is-loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 18px;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(104, 182, 255, 0.08), transparent 38%),
    var(--panel);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(104, 182, 255, 0.85));
  opacity: 0.8;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background:
    linear-gradient(150deg, rgba(242, 184, 75, 0.11), transparent 40%),
    var(--panel-2);
}

.module-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.module-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.module-card h3 {
  margin-top: 6px;
  font-size: 1.22rem;
}

.module-card p {
  color: var(--soft);
  line-height: 1.62;
  font-size: 0.9rem;
}

.module-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  background: rgba(12, 16, 22, 0.62);
}

.module-metrics {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.module-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 22, 0.5);
}

.module-metrics strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.module-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.module-foot span { font-weight: 760; }
.module-foot em { font-style: normal; text-align: right; }

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

.panel-feature {
  min-height: 280px;
}

.signal-list,
.holding-list,
.strategy-list.compact,
.macro-list.compact {
  display: grid;
  gap: 8px;
}

.signal-row,
.holding-list div,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
}

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

.signal-row em {
  color: var(--soft);
  font-style: normal;
  font-weight: 760;
}

.holding-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 16px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   登录 / 注册 — 双栏高级布局
   左侧: 品牌展示区（动画网格 + 浮动光球 + 功能介绍）
   右侧: 表单区（glassmorphism + 图标输入框）
   ═══════════════════════════════════════════════════════════ */

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(0.9); }
  66% { transform: translate(25px, -15px) scale(1.08); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 25px) scale(1.05); }
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.035; }
  50% { opacity: 0.07; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  overflow: hidden;
}

/* ── 左侧品牌展示区 ── */
.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background:
    linear-gradient(160deg, rgba(242, 184, 75, 0.06), transparent 40%),
    linear-gradient(200deg, rgba(104, 182, 255, 0.04), transparent 50%),
    var(--bg);
  overflow: hidden;
  border-right: 1px solid var(--line);
}

/* 动画网格背景 */
.showcase-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pulse 8s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* 浮动光球 */
.showcase-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.showcase-orb-1 {
  width: 280px;
  height: 280px;
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(242, 184, 75, 0.15), transparent 70%);
  animation: orb-drift-1 20s ease-in-out infinite;
}
.showcase-orb-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: 10%;
  background: radial-gradient(circle, rgba(104, 182, 255, 0.12), transparent 70%);
  animation: orb-drift-2 24s ease-in-out infinite;
}
.showcase-orb-3 {
  width: 160px;
  height: 160px;
  top: 55%;
  left: 50%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.08), transparent 70%);
  animation: orb-drift-3 18s ease-in-out infinite;
}

.showcase-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
  animation: fade-in-up 0.8s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.login-brand {
  margin-bottom: 32px;
}

.showcase-headline {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-tagline {
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

/* 功能特性列表 */
.showcase-features {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.showcase-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent),
    var(--panel);
  transition: border-color 0.3s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.showcase-feature:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateX(3px);
}

.showcase-feature > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.showcase-feature strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 720;
  margin-bottom: 3px;
}

.showcase-feature span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* 底部指标 */
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.showcase-stats > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
  transition: border-color 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.showcase-stats > div:hover {
  border-color: var(--accent);
}

.showcase-stats strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 820;
  color: var(--accent);
  margin-bottom: 4px;
}

.showcase-stats span {
  color: var(--muted);
  font-size: 0.76rem;
}

.showcase-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.74rem;
}

/* ── 右侧表单区 ── */
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 40%),
    var(--panel);
  animation: fade-in-up 0.8s 0.15s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.login-panel-inner {
  width: min(400px, 100%);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 780;
  margin: 0 0 8px;
}

.login-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
  font-size: 0.92rem;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* 图标输入框 */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 1;
}

.input-wrap > input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  padding: 0 14px 0 40px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.input-wrap > input::placeholder {
  color: var(--faint);
  font-weight: 400;
}

.input-wrap > input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.15), 0 0 16px rgba(242, 184, 75, 0.06);
  background: rgba(12, 16, 22, 0.9);
}

.input-wrap:focus-within > svg {
  color: var(--accent);
}

/* 验证码行 */
.captcha-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.captcha-row img {
  width: 140px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  object-fit: cover;
}

.captcha-row img:hover {
  border-color: var(--line-2);
  opacity: 0.85;
}

/* 提交按钮 */
.login-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e8a832);
  color: #101114;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 2px 12px rgba(242, 184, 75, 0.18);
}

.login-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(242, 184, 75, 0.28);
}

.login-form button:hover::before {
  opacity: 1;
}

.login-form button:active {
  transform: translateY(0) scale(0.985);
}

.login-form button > svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.login-form button:hover > svg {
  transform: translateX(3px);
}

/* 底部链接 */
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-links a {
  color: var(--link);
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s ease;
}

.auth-links a:hover {
  color: var(--accent);
}

.auth-links span {
  color: var(--faint);
  font-size: 0.8rem;
}

/* 错误提示 */
.alert {
  border: 1px solid rgba(246, 70, 93, 0.42);
  color: var(--positive);
  background: rgba(246, 70, 93, 0.08);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fade-in-up 0.4s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* ── 响应式：移动端堆叠 ── */
@media (max-width: 900px) {
  .login-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-showcase {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 24px;
  }

  .showcase-content {
    max-width: 100%;
  }

  .showcase-headline {
    font-size: 1.75rem;
  }

  .showcase-tagline {
    margin-bottom: 24px;
  }

  .showcase-features {
    margin-bottom: 24px;
  }

  .showcase-footer {
    margin-top: 24px;
  }

  .login-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .showcase-stats {
    grid-template-columns: 1fr;
  }

  .showcase-features {
    display: none;
  }

  .captcha-row {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .captcha-row img {
    width: 110px;
  }
}
.data-monitor-panel { overflow: hidden; }
.data-monitor-table td { white-space: nowrap; }
.data-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}
.data-status.ok {
  color: var(--negative);
  border-color: rgba(14, 203, 129, 0.34);
  background: rgba(14, 203, 129, 0.08);
}
.data-status.missing {
  color: var(--accent);
  border-color: rgba(242, 184, 75, 0.42);
  background: rgba(242, 184, 75, 0.08);
}
.data-status.attention {
  color: var(--positive);
  border-color: rgba(246, 70, 93, 0.34);
  background: rgba(246, 70, 93, 0.08);
}
.data-job {
  min-height: 38px;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.account-form {
  display: grid;
  gap: 16px;
}
.account-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.88rem;
}
.account-form label > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.account-form label > span > svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.account-form input,
.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.account-form input::placeholder,
.account-form textarea::placeholder {
  color: var(--faint);
  font-weight: 400;
}
.account-form input { min-height: 44px; }
.account-form input[type="file"] {
  padding: 8px 10px;
}
.account-form input:focus,
.account-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.12), 0 0 12px rgba(242, 184, 75, 0.04);
  background: rgba(12, 16, 22, 0.9);
}
.account-form .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e8a832);
  box-shadow: 0 2px 10px rgba(242, 184, 75, 0.15);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.account-form .button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(242, 184, 75, 0.25);
}
.account-form .button.primary > svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.account-form .button.primary:hover > svg {
  transform: translateX(2px);
}
.form-hint {
  color: var(--faint);
  font-size: 0.78rem;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   用户信息页面
   ═══════════════════════════════════════════════════════════ */
.profile-user-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.account-card {
  padding: 0;
  overflow: hidden;
}

.account-hero {
  position: relative;
  padding: 24px 20px 18px;
}

.account-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.1), transparent 50%),
    linear-gradient(225deg, rgba(104, 182, 255, 0.06), transparent 50%);
  border-bottom: 1px solid var(--line);
}

.account-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-identity h2 {
  margin-bottom: 4px;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.08);
}

.account-avatar.fallback {
  display: grid;
  place-items: center;
  color: #101114;
  background: var(--accent);
  font-weight: 900;
  font-size: 1.6rem;
  border-color: var(--accent);
}

.account-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.1);
  border: 1px solid rgba(242, 184, 75, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-signature {
  padding: 14px 20px;
  color: var(--soft);
  line-height: 1.65;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

.account-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.account-stats-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  text-align: center;
  transition: background 0.2s ease;
}

.account-stats-row > div:first-child {
  border-right: 1px solid var(--line);
}

.account-stats-row > div:hover {
  background: var(--panel-2);
}

.account-stats-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-bottom: 2px;
}

.account-stats-row strong {
  font-size: 1.35rem;
  font-weight: 820;
  line-height: 1;
}

.account-stats-row span {
  color: var(--muted);
  font-size: 0.76rem;
}

.account-info-list {
  padding: 12px 16px;
  display: grid;
  gap: 0;
}

.account-info-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.account-info-list > div:last-child {
  border-bottom: none;
}

.account-info-list > div:hover {
  background: rgba(255, 255, 255, 0.015);
}

.account-info-list > div > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.account-info-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.account-info-list strong {
  display: block;
  font-size: 0.9rem;
}

.form-panel {
  padding: 20px;
}

.profile-form-panel .panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-form-panel .panel-head h2 > svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.account-head p,
.forum-post-card p,
.forum-post-full p,
.comment-card p {
  color: var(--soft);
  line-height: 1.65;
  white-space: pre-wrap;
}

.account-message.ok {
  color: var(--negative);
  border-color: rgba(14, 203, 129, 0.34);
  background: rgba(14, 203, 129, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   论坛页面
   ═══════════════════════════════════════════════════════════ */
.forum-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: start;
}

.community-layout {
  grid-template-columns: minmax(280px, 0.7fr) minmax(460px, 1.35fr) minmax(220px, 0.55fr);
}

.forum-feed,
.forum-detail {
  display: grid;
  gap: 12px;
}

/* 发帖区 */
.forum-composer {
  padding: 20px;
}

.forum-composer .panel-head h2,
.forum-comment-form .panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.forum-composer .panel-head h2 > svg,
.forum-comment-form .panel-head h2 > svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

/* 帖子卡片 */
.forum-post-card,
.forum-post-full,
.comment-card {
  padding: 18px 20px;
  transition: border-color 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.25s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.forum-post-card:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.forum-post-header {
  margin-bottom: 10px;
}

.forum-post-card h2 {
  margin-top: 8px;
}

.forum-post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forum-post-card h2 a:hover {
  color: var(--accent);
}

.forum-post-body {
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.forum-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.forum-post-meta em {
  font-style: normal;
  color: var(--faint);
  font-size: 0.78rem;
}

.forum-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--soft);
  font-weight: 760;
}

.forum-author img,
.forum-author b {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}

.forum-author img {
  object-fit: cover;
}

.forum-author b {
  display: grid;
  place-items: center;
  color: #101114;
  background: var(--accent);
  font-size: 0.72rem;
  border-color: var(--accent);
}

/* 操作按钮（点赞/评论） */
.forum-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.forum-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.forum-actions .button > svg {
  width: 14px;
  height: 14px;
}

.forum-actions form {
  flex: 0 0 auto;
}

.forum-actions .button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(242, 184, 75, 0.06);
}

/* 空状态 */
.forum-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  text-align: center;
}

.forum-empty > svg {
  width: 32px;
  height: 32px;
  color: var(--faint);
  opacity: 0.5;
}

.forum-empty > span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* 侧边栏 */
.forum-sidebar {
  padding: 20px;
  position: sticky;
  top: 74px;
  border-left: 3px solid var(--accent);
}

.forum-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.forum-sidebar-head > svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.forum-sidebar-head > span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forum-sidebar strong {
  display: block;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 820;
  line-height: 1.1;
}

.forum-sidebar em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.forum-sidebar p {
  color: var(--soft);
  line-height: 1.7;
  font-size: 0.88rem;
}

.forum-sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.forum-sidebar-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(14, 203, 129, 0.05);
  border: 1px solid rgba(14, 203, 129, 0.15);
}

.forum-sidebar-tip > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--negative);
}

.forum-sidebar-tip > span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* 评论卡片 */
.comment-card {
  border-left: 2px solid var(--line-2);
}

.comment-card:hover {
  border-left-color: var(--accent);
}

/* 登录页两列指标 */
.showcase-stats-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1280px) {
  .stock-strategy-grid { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
  .monitor-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kline-workbench { grid-template-columns: minmax(0, 1fr) 300px; }
  .kline-toolbar { grid-template-columns: minmax(160px, 1fr) 200px 36px; }
  .kline-stat-grid { grid-column: 1 / -1; }
  .module-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); }
  .cockpit-metrics { grid-column: 1 / -1; }
  .profile-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-user-grid { grid-template-columns: 1fr 1fr; }
  .account-card { grid-column: 1 / -1; }
  .community-layout { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); }
  .forum-sidebar { position: static; grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .cards-5, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .two-col, .macro-grid, .detail-grid, .profile-layout, .profile-layout.wide-left { grid-template-columns: 1fr; }
  .profile-user-grid, .forum-layout { grid-template-columns: 1fr; }
  .market-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kline-workbench { grid-template-columns: 1fr; }
  .kline-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .kline-signal-options { max-height: 360px; }
  .kline-signal-feed { max-height: 260px; }
}

@media (max-width: 760px) {
  .global-header {
    height: auto;
    min-height: 56px;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav { order: 3; width: 100%; }
  .header-actions { margin-left: 0; }
  .brand { flex: 1 1 auto; }
  .user-chip { display: none; }
  .main { padding: 14px 10px 24px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .cards-5, .cards-4, .strategy-cards, .stock-strategy-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .stock-controls { width: 100%; justify-content: flex-start; }
  .stock-control-tools { width: 100%; }
  .stock-search-field { flex: 1 1 100%; }
  .stock-search-field input { width: 100%; }
  .stock-sort-field { flex: 1 1 160px; }
  .stock-sort-field select { width: 100%; }
  .market-tabs { width: 100%; overflow-x: auto; }
  .stock-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-hero, .profile-hero { grid-template-columns: 1fr; }
  .strategy-card-metrics { grid-template-columns: 1fr; }
  .value { font-size: 1.28rem; }
  th, td { padding: 9px 8px; font-size: 0.8rem; }
  .chart-box, .chart-box.tall { height: 320px; }
  .chart-box.profile-chart { height: 340px; }
  .monitor-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-panel { min-height: auto; overflow-x: auto; }
  .monitor-table { min-width: 980px; }
  .monitor-head { height: auto; min-height: 58px; align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .monitor-actions { width: 100%; justify-content: space-between; }
  .monitor-switch { width: min(100%, 260px); }
  .kline-workbench { min-width: 720px; }
  .kline-toolbar { grid-template-columns: 1fr; }
  .kline-select { grid-template-columns: 1fr; }
  .kline-canvas-shell { height: 440px; }
  .cockpit-brief { min-height: auto; padding: 18px; }
  .cockpit-brief h2 { font-size: 1.52rem; }
  .cockpit-hero, .cockpit-metrics, .market-overview, .module-grid, .insight-grid { grid-template-columns: 1fr; }
  .cockpit-metrics { grid-column: auto; }
  .allocation-card { grid-template-columns: 104px minmax(0, 1fr); }
  .allocation-visual { width: 96px; }
  .module-card { min-height: 0; }
  .module-foot, .market-card { align-items: flex-start; flex-direction: column; }
  .signal-row { grid-template-columns: 1fr; }
  .profile-hero { padding: 18px; }
  .profile-identity h2 { font-size: 1.42rem; }
  .profile-status, .performance-strip, .performance-strip.risk { grid-template-columns: 1fr; }
  .workbench-head { align-items: flex-start; flex-direction: column; }
  .workbench-meta { justify-content: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  .brand span:last-child { display: none; }
  .logout span { display: none; }
  .monitor-strip, .cards-5, .cards-4 { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
}

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