:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0a0f16;
  --surface: #101823;
  --surface-2: #0d141d;
  --surface-3: #151f2b;
  --text: #e6edf3;
  --muted: #8b949e;
  --line: #223041;
  --line-strong: #31445c;
  --nav: #06090f;
  --nav-2: #111a24;
  --brand: #2f81f7;
  --brand-2: #102947;
  --green: #20c997;
  --red: #ff5c5c;
  --amber: #f5b942;
  --blue: #58a6ff;
  --shadow: rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 129, 247, .10), transparent 32rem),
    linear-gradient(180deg, #090d14 0%, var(--bg) 42%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
.layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #05080d 0%, #0a1018 100%);
  color: #eef6ff;
  padding: 18px 14px;
  border-right: 1px solid #172232;
  box-shadow: 12px 0 28px rgba(0,0,0,.22);
}
.brand {
  display: grid;
  gap: 5px;
  padding: 12px 10px 18px;
  border-bottom: 1px solid rgba(88, 166, 255, .16);
  margin-bottom: 14px;
}
.brand-title { font-size: 19px; font-weight: 900; letter-spacing: 0; color: #fff; }
.brand-sub { font-size: 12px; color: #7f9fbd; }
.nav-group { margin: 16px 0 8px; padding: 0 10px; color: #65778d; font-size: 12px; font-weight: 800; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #c7d5e5;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.nav a:hover, .nav a.active {
  background: linear-gradient(90deg, rgba(47,129,247,.22), rgba(47,129,247,.06));
  border-color: rgba(88,166,255,.25);
  color: #fff;
}
.main { padding: 20px 24px 34px; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
h1 { margin: 0; font-size: 22px; line-height: 1.3; color: #f6f8fa; }
h2 { margin: 0 0 12px; font-size: 16px; color: #f6f8fa; }
h3 { margin: 0 0 10px; font-size: 14px; color: #dbe7f5; }
.page-desc { margin-top: 4px; color: var(--muted); }
.user-chip {
  background: rgba(16,24,35,.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: #c9d7e6;
  white-space: nowrap;
}
.muted { color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
  background: linear-gradient(180deg, rgba(17,26,36,.98), rgba(12,18,26,.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 28px var(--shadow), inset 0 1px 0 rgba(255,255,255,.03);
}
.stat-label { color: #7f8ea3; font-size: 12px; font-weight: 800; }
.stat {
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: 0;
  color: #f6f8fa;
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid #1d2a3a; text-align: left; vertical-align: top; }
.table th {
  background: #0b121b;
  color: #8fa3bb;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(88,166,255,.035); }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid transparent;
}
.up, .bullish, .success {
  color: #7dffd6;
  background: rgba(32, 201, 151, .13);
  border-color: rgba(32, 201, 151, .24);
}
.down, .bearish, .failed {
  color: #ff9b9b;
  background: rgba(255, 92, 92, .13);
  border-color: rgba(255, 92, 92, .25);
}
.neutral {
  color: #ffd879;
  background: rgba(245, 185, 66, .13);
  border-color: rgba(245, 185, 66, .25);
}
.pending {
  background: rgba(88, 166, 255, .12);
  color: #9bcaff;
  border-color: rgba(88, 166, 255, .22);
}
.ok { background: rgba(32, 201, 151, .13); color: #7dffd6; border-color: rgba(32, 201, 151, .24); }
.bad { background: rgba(255, 92, 92, .13); color: #ff9b9b; border-color: rgba(255, 92, 92, .25); }
.btn {
  border: 1px solid rgba(88,166,255,.42);
  background: linear-gradient(180deg, #2f81f7, #1f6bd0);
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-shadow: 0 8px 18px rgba(47,129,247,.18);
}
.btn.secondary { background: #243245; border-color: #3b4e67; box-shadow: none; }
.btn.ghost { background: var(--brand-2); color: #9bcaff; border-color: rgba(88,166,255,.24); box-shadow: none; }
.btn.danger { background: #b42318; border-color: rgba(255,92,92,.4); }
.form {
  max-width: 440px;
  margin: 80px auto;
  background: linear-gradient(180deg, rgba(17,26,36,.98), rgba(10,15,22,.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
label { display: block; font-weight: 800; color: #b9c8da; }
input, select, textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  margin: 7px 0 14px;
  background: #080d14;
  color: var(--text);
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(88,166,255,.72);
  box-shadow: 0 0 0 3px rgba(47,129,247,.16);
}
textarea { min-height: 96px; resize: vertical; }
.reason { display: grid; grid-template-columns: 128px 1fr 76px; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1d2a3a; }
.reason:last-child { border-bottom: 0; }
.notice {
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(88,166,255,.12);
  color: #9bcaff;
  border: 1px solid rgba(88,166,255,.24);
  margin-bottom: 12px;
}
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.terminal-line {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 12px currentColor;
}
.dot.up { background: var(--green); color: var(--green); }
.dot.down { background: var(--red); color: var(--red); }
.dot.neutral { background: var(--amber); color: var(--amber); }
.prob {
  height: 7px;
  border-radius: 999px;
  background: #0a1018;
  overflow: hidden;
  border: 1px solid #1c2939;
}
.prob > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #20c997); }
.ticker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ticker-item {
  background: #090f17;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.ticker-head { display: flex; align-items: center; justify-content: space-between; color: #9fb3c8; font-size: 12px; font-weight: 900; }
.ticker-price { font-size: 24px; font-weight: 950; color: #f6f8fa; }
.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 14px;
}
.chart-panel {
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.chart-grid {
  height: 292px;
  border: 1px solid #1d2a3a;
  border-radius: 6px;
  background:
    linear-gradient(rgba(88,166,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32,201,151,.08), rgba(255,92,92,.05));
  background-size: 100% 48px, 72px 100%, 100% 100%;
  position: relative;
}
.chart-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--brand), transparent);
  box-shadow: 0 0 18px rgba(32,201,151,.4);
  transform: rotate(-3deg);
}
.forecast-band {
  position: absolute;
  left: 58%;
  right: 8%;
  top: 28%;
  bottom: 28%;
  border: 1px solid rgba(88,166,255,.35);
  background: rgba(47,129,247,.08);
  border-radius: 6px;
}
.matrix {
  display: grid;
  grid-template-columns: 86px repeat(3, minmax(0, 1fr)) 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #091017;
}
.matrix > div {
  padding: 10px 11px;
  border-right: 1px solid #1d2a3a;
  border-bottom: 1px solid #1d2a3a;
}
.matrix > div:nth-child(5n) { border-right: 0; }
.matrix-head { background: #0b121b; color: #8fa3bb; font-size: 12px; font-weight: 900; }
.ai-panel .reason { grid-template-columns: 104px 1fr 58px; }
.signal-score {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  color: #7dffd6;
}
.shell {
  min-height: 100vh;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 20px 36px;
}
.front-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.front-brand {
  display: grid;
  gap: 3px;
}
.front-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(8,13,20,.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  overflow-x: auto;
}
.front-nav a {
  padding: 8px 11px;
  border-radius: 6px;
  color: #9fb3c8;
  font-weight: 900;
  white-space: nowrap;
}
.front-nav a.active, .front-nav a:hover {
  background: rgba(47,129,247,.18);
  color: #fff;
}
.front-main { min-width: 0; }
.front-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.hero-prediction {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 14px;
}
.decision-card {
  border: 1px solid rgba(88,166,255,.28);
  background:
    radial-gradient(circle at top right, rgba(32,201,151,.13), transparent 24rem),
    linear-gradient(180deg, rgba(17,26,36,.98), rgba(9,15,23,.98));
}
.decision-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.decision-symbol {
  color: #9fb3c8;
  font-size: 13px;
  font-weight: 900;
}
.decision-title {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 950;
  margin: 10px 0;
}
.decision-score {
  text-align: right;
  min-width: 132px;
}
.score-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #0a1018 57%, transparent 58%),
    conic-gradient(var(--green) calc(var(--score, 70) * 1%), #1c2939 0);
  border: 1px solid rgba(32,201,151,.24);
  color: #7dffd6;
  font-size: 28px;
  font-weight: 950;
}
.prob-row {
  display: grid;
  grid-template-columns: 72px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.reason-list {
  display: grid;
  gap: 10px;
}
.reason-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid #1d2a3a;
  border-radius: 8px;
  background: rgba(8,13,20,.52);
}
.front-section { margin-top: 14px; }
.horizon-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}
.horizon-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17,26,36,.98), rgba(8,13,20,.98));
}
.horizon-card:hover {
  border-color: rgba(88,166,255,.5);
  box-shadow: 0 12px 28px rgba(47,129,247,.12);
}
.horizon-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9fb3c8;
  font-weight: 950;
}
.horizon-direction {
  font-size: 24px;
  font-weight: 950;
}
.mini-stat {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}
.mini-stat strong { color: var(--text); font-size: 14px; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .ticker { grid-template-columns: 1fr; }
  .terminal-grid { grid-template-columns: 1fr; }
  .front-header { grid-template-columns: 1fr; }
  .hero-prediction { grid-template-columns: 1fr; }
  .horizon-cards { grid-template-columns: 1fr; }
  .decision-main { grid-template-columns: 1fr; }
  .decision-score { text-align: left; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
