.chat-shell { max-width: 860px; width: 100%; margin: 0 auto; padding: 16px; }
.chat-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(2,6,23,0.06); }
.chat-header { padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 10px; }
.chat-header .title { font-weight: 600; }
.chat-body { height: 48vh; overflow-y: auto; padding: 16px; background: #fcfcfd; }
.msg { max-width: 80%; padding: 10px 12px; border-radius: 12px; margin: 8px 0; white-space: pre-wrap; line-height: 1.4; color: #1e293b; }
.msg.user { margin-left: auto; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; }
.msg.assistant { margin-right: auto; background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155; }
.msg.thinking { opacity: 0.75; font-style: italic; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.chat-input button { padding: 10px 16px; border-radius: 8px; border: 1px solid #6366f1; background: #6366f1; color: #fff; cursor: pointer; }
.chat-input button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Lightweight Charts Styling */
.chart-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(2,6,23,0.06); margin-bottom: 20px; }
.chart-header { padding: 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-title { margin: 0; font-size: 1em; font-weight: 600; color: #1e293b; }
.chart-controls { display: flex; gap: 12px; align-items: center; }
.chart-symbol-select { padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9em; background: #fff; cursor: pointer; color: #334155; }
.chart-symbol-select:hover { border-color: #94a3b8; }
.chart-symbol-select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); }

.lightweight-chart-container { position: relative; width: 100%; height: 420px; background: #fff; }
.lightweight-chart-container .tv-lightweight-charts { background: #fff; }

/* Interval Buttons */
.interval-buttons { display: flex; gap: 4px; padding: 2px; background: #f1f5f9; border-radius: 6px; }
.interval-btn { padding: 4px 10px; border: none; background: transparent; color: #64748b; font-size: 0.75em; font-weight: 600; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.interval-btn:hover { background: #e2e8f0; color: #475569; }
.interval-btn.active { background: #10b981; color: #fff; }
.interval-btn:focus { outline: none; }

/* Indicator Buttons */
.indicator-buttons { display: flex; gap: 4px; padding: 2px; background: #f1f5f9; border-radius: 6px; }
.indicator-btn { padding: 4px 8px; border: none; background: transparent; color: #64748b; font-size: 0.7em; font-weight: 600; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.indicator-btn:hover { background: #e2e8f0; color: #475569; }
.indicator-btn.active { background: #f59e0b; color: #fff; }
.indicator-btn:focus { outline: none; }

/* Timeframe Buttons */
.timeframe-buttons { display: flex; gap: 4px; padding: 2px; background: #f1f5f9; border-radius: 6px; }
.timeframe-btn { padding: 4px 10px; border: none; background: transparent; color: #64748b; font-size: 0.75em; font-weight: 600; cursor: pointer; border-radius: 4px; transition: all 0.2s; }
.timeframe-btn:hover { background: #e2e8f0; color: #475569; }
.timeframe-btn.active { background: #6366f1; color: #fff; }
.timeframe-btn:focus { outline: none; }
