:root { --bg: #101314; --text: #edf3f2; --muted: #9aa9ab; --line: #2b3437; }
body { background: var(--bg); font-family: Arial, "Microsoft JhengHei", sans-serif; letter-spacing: 0; }
.bg { background: #101314; }
.terminal { width: min(1920px, 100%); padding: 12px 16px 24px; }
.panel { background: #171d20; border-radius: 8px; box-shadow: none; backdrop-filter: none; }
.topbar { grid-template-columns: minmax(200px, 1fr) auto auto auto; gap: 16px; }
.brand { min-width: 0; }
.brand strong, .brand small, .status small { display: block; }
.brand small { margin-top: 5px; font-size: 11px; }
.logo { background: #74e1cc; border-radius: 8px; flex-shrink: 0; }
.tabs { background: #101517; padding: 4px; border-radius: 6px; }
.tab, .primary, .account-btn, .ghost-btn, input, select, .chart-action { border-radius: 6px; min-height: 38px; }
.tab.active { background: #334448; color: #f4ffff; }
.primary, .account-btn { background: #a6eadc; color: #10221e; }
.status { font-size: 12px; }
.status small { margin-top: 4px; font-size: 10px; }
.dot { width: 8px; height: 8px; flex-shrink: 0; box-shadow: none; }
.ticker { grid-template-columns: minmax(130px, 1.1fr) minmax(150px, 1.2fr) repeat(4, minmax(0, 1fr)) auto; gap: 16px; }
.ticker > div { min-width: 0; }
.ticker strong { font-size: 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.symbol-title h1 { font-size: 24px; }
.price-box strong { font-size: 25px; }
.price-pulse { display: none; }
.workspace { grid-template-columns: 224px minmax(0, 1fr) 270px; align-items: start; }
.center, .chart-panel, .signal-grid, .signal-card, .indicators, .right-col { min-width: 0; }
.left { height: 820px; }
.symbol-list { height: 738px; }
.symbol-item { padding: 10px 6px; border-radius: 4px; font-size: 13px; }
.symbol-item:hover, .symbol-item.active { transform: none; }
.symbol-item > div { min-width: 0; }
.symbol-item small { font-size: 10px; overflow-wrap: anywhere; }
.symbol-item .right { flex-shrink: 0; }
.chart-panel { padding: 12px; }
.chart-head { flex-wrap: wrap; }
.chart-action { padding: 8px 12px; }
.legend { border: 0; border-radius: 4px; background: #20292c; padding: 8px; line-height: 1.7; overflow-wrap: anywhere; }
.charts { border-radius: 4px; background: #101719; }
.price-chart { height: 420px; }
.sub-chart { height: 105px; }
.signal-grid { grid-template-columns: minmax(0, 1.6fr) minmax(210px, 1fr); align-items: start; }
.signal-card::before { display: none; }
.signal-hero { padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.signal-hero h2 { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.analysis-panel { border: 0; border-radius: 0; padding: 0; margin: 16px 0; background: none; }
.prediction-meter { grid-template-columns: 90px minmax(50px, 1fr) auto; background: none; padding: 8px 0; }
.prediction-meter small { font-size: 11px; }
.prediction-meter strong { font-size: 28px; }
.ai-action { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; background: none; }
.ai-analysis, .simple-reason, .signal-summary { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.risk-levels span { border-radius: 4px; padding: 10px 8px; background: #20292c; }
.risk-levels b { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.indicators div { border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 8px; min-height: 76px; background: none; }
.indicators b { overflow-wrap: anywhere; font-size: 14px; }
.book { height: auto; }
.right-col { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
.book-list { height: 286px; }
.book-row { min-height: 23px; padding: 5px 2px; font-size: 11px; border-radius: 2px; }
.book-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-row span:not(:first-of-type), .book-head span:not(:first-child) { text-align: right; }
.section-head { flex-wrap: wrap; gap: 6px; }
.section-head small { font-size: 10px; }
footer { font-size: 11px; line-height: 1.8; }
button:focus-visible, input:focus-visible, select:focus-visible, .symbol-item:focus-visible { outline: 2px solid #74e1cc; outline-offset: 2px; }
button:disabled { opacity: .55; cursor: wait; }
.charts[aria-busy="true"] { opacity: .5; }
@media (max-width: 1400px) {
  .workspace { grid-template-columns: 195px minmax(0, 1fr) 235px; }
  .topbar { grid-template-columns: 1fr auto auto; }
  .status { grid-column: 1 / -1; grid-row: 2; }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signal-grid { grid-template-columns: minmax(0, 1fr); }
  .indicators { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .right-col { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
  .book-list { height: 200px; }
}
@media (max-width: 650px) {
  .terminal { padding: 8px; }
  .topbar { grid-template-columns: 1fr auto; padding: 12px; gap: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; }
  .tabs .tab { flex: 1; }
  .status { grid-row: 3; }
  .brand small { max-width: 180px; }
  .ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .ticker strong { font-size: 15px; }
  .ticker .price-box strong { font-size: 24px; }
  .workspace, .signal-grid { grid-template-columns: minmax(0, 1fr); }
  .left { height: 230px; }
  .symbol-list { height: 140px; }
  .right-col { grid-column: 1; }
  .chart-head { flex-direction: column; align-items: stretch; }
  .price-chart { height: 340px; }
  .legend { font-size: 11px; }
  .signal-hero { flex-direction: row; }
  .prediction-meter { grid-template-columns: 80px minmax(30px, 1fr) auto; }
  .auth-card { background: #171d20; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
