.chart-panel,
.signal-panel {
  min-height: 540px;
}

.chart {
  height: 455px;
}

.chart canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #080b0fcc;
  color: #aab6c0;
  font: 10px 'DM Mono';
  pointer-events: none;
}

.voice-btn {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.voice-btn.active {
  border-color: #42e8a655;
  color: var(--green);
}

.position-plan {
  margin: 16px 0 2px;
  padding: 13px 14px;
  border: 1px solid #42e8a635;
  border-radius: 10px;
  background: #42e8a60a;
  text-align: left;
}

.position-plan span {
  display: block;
  color: var(--green);
  font: 500 9px 'DM Mono';
  letter-spacing: .08em;
}

.position-plan strong {
  display: block;
  margin: 5px 0;
  font: 600 20px 'DM Mono';
}

.position-plan small {
  display: block;
  color: #aab6c0;
  line-height: 1.6;
}

.position-plan .risk {
  margin-top: 3px;
  color: var(--amber);
}

.position-plan.wait {
  border-color: var(--line);
  background: #7784910a;
  text-align: center;
}

.position-plan.wait strong {
  color: var(--muted);
  font-size: 14px;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.risk-note {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.learning-panel {
  grid-column: 1 / -1;
}

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

.model-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080b0f55;
}

.model-card .model-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.model-card b {
  font: 500 11px 'DM Mono';
}

.model-card .accuracy {
  color: var(--green);
}

.model-card small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.signal-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(360px, calc(100vw - 30px));
  padding: 15px 16px;
  border: 1px solid #42e8a655;
  border-radius: 11px;
  background: #101820f2;
  box-shadow: 0 18px 55px #000a;
  opacity: 0;
  transform: translateY(18px);
  transition: .25s ease;
  pointer-events: none;
}

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

.signal-toast b,
.signal-toast span {
  display: block;
}

.account-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #101820, #0d141a);
}

.account-intro h2 {
  margin: 5px 0;
  font-size: 19px;
}

.account-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.paper-badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #ffca6344;
  border-radius: 7px;
  background: #ffca630d;
  color: var(--amber);
  font: 500 10px 'DM Mono';
}

.account-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 12px;
  margin-bottom: 12px;
}

.equity-chart {
  min-height: 230px;
}

.equity-chart svg {
  width: 100%;
  height: 230px;
}

.allocation-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.allocation-row:first-child {
  border-top: 0;
}

.allocation-row span {
  color: var(--muted);
  font-size: 11px;
}

.allocation-row b {
  font: 500 12px 'DM Mono';
}

.allocation-bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: #202a35;
}

.allocation-bar i {
  display: block;
  height: 100%;
  background: var(--green);
}

.account-trades {
  margin-top: 0;
}

.account-table-head {
  padding: 17px 18px 0;
}

.trade-reason {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.5;
}

.signal-toast b {
  margin-bottom: 5px;
}

.signal-toast span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

table {
  min-width: 1120px;
}

@media (max-width: 650px) {
  .chart-panel { min-height: 360px; }
  .chart { height: 275px; }
  .signal-panel { min-height: 540px; }
  .model-grid { grid-template-columns: 1fr; }
  .voice-btn { width: 34px; overflow: hidden; padding: 0 7px; color: transparent; }
  .voice-btn::first-letter { color: var(--text); }
  .account-grid { grid-template-columns: 1fr; }
  .account-intro { align-items: flex-start; }
}
