/* ============================================================
   行情监控预警系统 - 浅色简洁主题
   约定：数值类（涨/跌、涨速）沿用 A 股习惯——涨=红、跌=绿
   ============================================================ */
:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --border: #e6e9ee;
    --border-strong: #d5dae2;
    --text: #303642;
    --heading: #232933;
    --muted: #707a89;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-weak: rgba(37, 99, 235, .08);
    --red: #d92d20;
    --red-weak: rgba(217, 45, 32, .1);
    --green: #16a34a;
    --green-weak: rgba(22, 163, 74, .1);
    --yellow: #b45309;
    --yellow-weak: rgba(217, 119, 6, .13);
    --shadow-sm: 0 1px 2px rgba(18, 26, 42, .04);
    --shadow-md: 0 4px 14px rgba(18, 26, 42, .08);
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-weak); }

/* 细滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd2da; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b3bcc7; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 208px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .logo {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 18px;
    font-size: 15px; font-weight: 700; color: var(--heading);
    letter-spacing: .2px;
}
.sidebar .logo::before { content: "📈"; font-size: 17px; }
.sidebar a.nav {
    display: block;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13.5px;
    transition: background .15s, color .15s;
}
.sidebar a.nav:hover { background: var(--panel-2); color: var(--heading); text-decoration: none; }
.sidebar a.nav.active {
    background: var(--accent-weak);
    color: var(--accent);
    font-weight: 600;
}

.main { flex: 1; min-width: 0; padding: 26px 30px; }

.page-title { font-size: 19px; font-weight: 700; color: var(--heading); letter-spacing: -.2px; }

.header-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.user-info { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.user-info .muted:hover { text-decoration: none; }

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 14px; }

/* 卡片头部：标题 + 右侧操作区（替代 float:right） */
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.card-header h3 { margin: 0; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-actions input[type="date"] { width: 148px; padding: 5px 8px; font-size: 12px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
th {
    color: var(--muted);
    font-weight: 500;
    font-size: 12.5px;
    white-space: nowrap;
    background: var(--panel-2);
}
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f7f9fc; }
tbody tr:last-child td { border-bottom: none; }
td { font-variant-numeric: tabular-nums; }
td.mono { font-family: Consolas, Menlo, monospace; }

/* 单元格宽幅控制 */
.ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-max { max-width: 260px; }

/* ---------------- 表单 ---------------- */
.form-row {
    display: flex; gap: 10px; margin-bottom: 12px;
    flex-wrap: wrap; align-items: center;
}
.form-row > label { color: var(--muted); font-size: 13px; min-width: 62px; flex-shrink: 0; }

input, select, textarea {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 7px 11px;
    border-radius: 8px;
    outline: none;
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
select[multiple] option { padding: 3px 4px; }

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input::placeholder, textarea::placeholder { color: #9aa3b0; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; min-width: 0; }
input[type="date"] { min-width: 0; }
select[multiple] { min-height: 82px; padding: 4px 6px; }
.form-row input, .form-row select, .form-row textarea { flex: 1; width: auto; min-width: 0; }

/* 弹窗/表单底部按钮行 */
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.result-block { white-space: pre-wrap; margin-top: 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 7px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-weak);
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.danger { border-color: transparent; background: var(--red-weak); color: var(--red); }
.btn.danger:hover { background: rgba(217, 45, 32, .18); color: var(--red); }
.btn.small { padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------------- 标签 ---------------- */
.badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
    background: #eef1f5;
    color: var(--muted);
}
.badge.red { color: var(--red); background: var(--red-weak); }
.badge.green { color: var(--green); background: var(--green-weak); }
.badge.yellow { color: var(--yellow); background: var(--yellow-weak); }
.badge.blue { color: var(--accent); background: var(--accent-weak); }

/* A股习惯：涨红跌绿 */
.up { color: var(--red); font-weight: 600; }
.down { color: var(--green); font-weight: 600; }
.muted { color: var(--muted); }
b, strong { color: var(--heading); }

/* ---------------- 弹窗 ---------------- */
.dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(17, 25, 40, .45);
    backdrop-filter: blur(2px);
    z-index: 100;
    align-items: center; justify-content: center;
    padding: 20px;
}
.dialog {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(17, 25, 40, .22);
    padding: 22px 24px;
    max-height: 86vh;
    overflow: auto;
    width: 100%;
}
.dialog h3 { font-size: 15px; font-weight: 600; color: var(--heading); margin-bottom: 16px; }

/* ---------------- 状态点 & 提示 ---------------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-weak); }
.dot.off { background: #c2c9d2; }

.toast {
    position: fixed; top: 20px; right: 20px; z-index: 999;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    color: var(--text);
    animation: toastIn .22s ease-out;
}
.toast.error { border-left: 3px solid var(--red); color: var(--red); }
.toast.success { border-left: 3px solid var(--green); color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.empty {
    color: var(--muted);
    text-align: center;
    padding: 30px 0;
    font-size: 13.5px;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    margin-top: 4px;
}
.card > .empty:first-child, .card > h3 + .empty { margin-top: 0; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef3fb 0%, var(--bg) 55%);
}
.login-card {
    width: 400px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 38px 34px;
    box-shadow: var(--shadow-md);
}
.login-card h1 { font-size: 21px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-card input { width: 100%; margin-bottom: 14px; padding: 9px 12px; }
.code-row { display: flex; gap: 10px; }
.code-row .btn { min-width: 112px; flex-shrink: 0; }

/* ---------------- 工具 ---------------- */
.pre-wrap { white-space: pre-wrap; }
.stat-line { font-size: 12.5px; margin: 2px 0 10px; }

/* ---------------- K线蜡烛图 ---------------- */
.chart-wrap { position: relative; height: 420px; }
.chart-wrap canvas { display: block; }
.chart-tip {
    position: absolute; z-index: 5; pointer-events: none;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
}

/* MACD 图上预警详情：允许换行，避免长预警把 tooltip 撑出屏幕 */
.chart-tip .tip-alerts {
    margin-top: 6px; padding-top: 6px;
    border-top: 1px dashed var(--border);
    max-width: 380px; white-space: normal; text-align: left;
}
.chart-tip .tip-alerts-title { color: #b45309; font-weight: 600; margin-bottom: 3px; }
.chart-tip .tip-alert { margin: 0 0 5px; line-height: 1.45; }
.chart-tip .tip-alert > div { white-space: pre-wrap; word-break: break-word; }

/* ---------------- 运行日志 ---------------- */
.log-view {
    margin: 0;
    max-height: 620px;
    overflow: auto;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
}
.log-line { white-space: pre-wrap; }
.log-line.log-error { color: var(--red); }
.log-line.log-warn { color: var(--yellow); }
.log-line.log-debug { color: var(--muted); }

/* ---------------- 页签（下划线式，像内嵌页面一样切换） ---------------- */
.tabs {
    display: flex; gap: 4px; margin: 0 0 18px;
    border-bottom: 1px solid var(--border);
}
.tab {
    padding: 9px 18px 8px; margin-bottom: -1px;
    font-size: 13.5px; cursor: pointer;
    background: none; color: var(--muted);
    border: none; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--heading); background: var(--panel-2); }
.tab.active {
    color: var(--accent); border-bottom-color: var(--accent);
    font-weight: 600; background: none;
}

/* ---------------- 工作区（Agent 对话 / 技能管理共用） ---------------- */
/* 卡片去内边距、固定可用高度：左列表/右对话各自滚动，输入区固定在底部，
   消息多少都不会把输入框顶下去或撑出大片空白 */
.ws-card {
    padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
    height: calc(100vh - 216px); min-height: 460px;
}
.ws-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.ws-toolbar .titles { flex: 1; min-width: 0; }
.ws-title { font-size: 15px; font-weight: 600; color: var(--heading); }
.ws-sub {
    font-size: 12px; color: var(--muted); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-toolbar select { width: 240px; flex: none; }
.ws-layout { flex: 1; display: flex; min-height: 0; }

/* 左侧：会话列表 */
.ws-side {
    width: 268px; flex: none; min-height: 0;
    display: flex; flex-direction: column;
    background: var(--panel-2); border-right: 1px solid var(--border);
}
.ws-side-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; font-size: 12.5px; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.session-list { flex: 1; min-height: 0; overflow: auto; padding: 8px; }
.session-item {
    padding: 9px 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid transparent;
}
.session-item + .session-item { margin-top: 2px; }
.session-item:hover { background: var(--panel); border-color: var(--border); }
.session-item.active {
    background: var(--panel); border-color: var(--accent);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.session-item .title {
    font-size: 13px; color: var(--heading); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.session-item .meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--muted);
}
.session-item .meta .badge { padding: 0 7px; font-size: 11px; }
.session-item .del {
    margin-left: auto; color: var(--muted); font-size: 11.5px; opacity: .6;
}
.session-item:hover .del { opacity: 1; }
.session-item .del:hover { color: var(--red); }

/* 右侧：消息 + 输入 */
.chat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-messages { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px; }
.msg { display: flex; gap: 10px; margin-bottom: 16px; }
.msg.user { flex-direction: row-reverse; }
.msg .avatar {
    width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; user-select: none;
}
.msg.user .avatar { background: var(--accent); color: #fff; }
.msg.assistant .avatar {
    background: var(--panel); color: var(--muted); border: 1px solid var(--border);
}
.msg .body { display: flex; flex-direction: column; max-width: min(78%, 760px); }
.msg.user .body { align-items: flex-end; }
.msg .bubble {
    padding: 10px 14px; border-radius: 14px;
    font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
.msg.user .bubble {
    background: var(--accent); color: #fff; border-bottom-right-radius: 4px;
}
.msg.assistant .bubble {
    background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.msg.assistant .bubble.failed {
    background: var(--red-weak); color: var(--red); border-color: transparent;
}
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 5px; padding: 0 2px; }
.chat-input-row {
    display: flex; gap: 10px; align-items: flex-end;
    padding: 12px 14px; border-top: 1px solid var(--border); background: var(--panel);
}
.chat-input-row textarea {
    flex: 1; resize: none; min-height: 46px; max-height: 140px; line-height: 1.6;
}
.chat-input-row .btn { height: 40px; flex: none; }

/* ---------------- 技能管理（skills.html） ---------------- */
.skill-editor { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 14px 16px; }
.skill-meta-grid {
    display: grid; grid-template-columns: 68px 1fr 68px 1fr;
    gap: 10px 12px; align-items: center; margin-bottom: 12px;
}
.skill-meta-grid > label { color: var(--muted); font-size: 13px; text-align: right; }
.skill-meta-grid input { width: 100%; }
.skill-meta-grid .span-2 { grid-column: span 3; }
.skill-body-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.skill-body-tabs { display: flex; gap: 2px; }
.skill-body-tabs .tab { padding: 6px 14px 5px; font-size: 13px; }
.skill-body-head .card-actions { padding-bottom: 6px; }
.skill-textarea {
    flex: 1; min-height: 260px; margin-top: 12px; width: 100%;
    font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.75;
    resize: none;
}
.skill-preview {
    flex: 1; min-height: 260px; margin-top: 12px; overflow: auto;
    border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px;
    background: var(--panel-2);
}
.skill-hint { font-size: 11.5px; color: var(--muted); }

/* Markdown 渲染样式（js/markdown.js 的输出） */
.md-body { font-size: 13.5px; line-height: 1.8; color: var(--text); }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
    color: var(--heading); margin: 14px 0 8px; line-height: 1.4;
}
.md-body h1 { font-size: 19px; }
.md-body h2 { font-size: 16px; }
.md-body h3 { font-size: 14.5px; }
.md-body h4 { font-size: 13.5px; }
.md-body > :first-child { margin-top: 0; }
.md-body p { margin: 8px 0; }
.md-body ul, .md-body ol { margin: 8px 0 8px 22px; }
.md-body li { margin: 3px 0; }
.md-body .md-code {
    font-family: Consolas, Menlo, monospace; font-size: 12.5px;
    background: #eef1f5; border-radius: 5px; padding: 1px 6px; color: #b02a20;
}
.md-body .md-pre {
    background: #232933; color: #e6e9ee; border-radius: 8px;
    padding: 11px 14px; margin: 10px 0; overflow: auto;
    font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.7;
}
.md-body .md-pre code { background: none; padding: 0; color: inherit; }
.md-body .md-quote {
    border-left: 3px solid var(--accent); background: var(--accent-weak);
    padding: 6px 12px; margin: 10px 0; border-radius: 0 8px 8px 0; color: var(--muted);
}
.md-body hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.md-body .md-table { width: 100%; margin: 10px 0; }
.md-body .md-table th, .md-body .md-table td { padding: 6px 10px; font-size: 12.5px; }

/* ---------------- 对话气泡内的 Markdown（紧凑版 .md-body） ---------------- */
/* 助手回答按 Markdown 渲染：气泡原本的 white-space:pre-wrap 会把 HTML 源码换行也渲染出来，
   必须改回 normal；同时把标题/表格/代码块压到适合气泡的字号与间距 */
.msg.assistant .bubble.md-chat {
    white-space: normal;
    padding: 10px 14px;
}
.msg.assistant .bubble.md-chat > :first-child { margin-top: 0; }
.msg.assistant .bubble.md-chat > :last-child { margin-bottom: 0; }
.msg.assistant .bubble.md-chat h1,
.msg.assistant .bubble.md-chat h2,
.msg.assistant .bubble.md-chat h3,
.msg.assistant .bubble.md-chat h4 {
    font-size: 14.5px; margin: 12px 0 6px; padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.msg.assistant .bubble.md-chat h1 { font-size: 15.5px; }
.msg.assistant .bubble.md-chat h3,
.msg.assistant .bubble.md-chat h4 { border-bottom: none; padding-bottom: 0; }
.msg.assistant .bubble.md-chat p { margin: 6px 0; }
.msg.assistant .bubble.md-chat ul,
.msg.assistant .bubble.md-chat ol { margin: 6px 0 6px 20px; }
.msg.assistant .bubble.md-chat li { margin: 2px 0; }
.msg.assistant .bubble.md-chat .md-pre {
    margin: 8px 0; padding: 9px 12px; font-size: 12px; border-radius: 6px;
}
.msg.assistant .bubble.md-chat .md-code { font-size: 12.5px; }
.msg.assistant .bubble.md-chat .md-quote {
    margin: 8px 0; padding: 5px 11px; color: var(--heading);
}
.msg.assistant .bubble.md-chat hr { margin: 12px 0; }
/* 宽表格在气泡里横向滚动，不撑破气泡 */
.msg.assistant .bubble.md-chat .md-table {
    display: block; overflow-x: auto; margin: 8px 0; max-width: 100%;
}
.msg.assistant .bubble.md-chat .md-table th,
.msg.assistant .bubble.md-chat .md-table td {
    padding: 5px 9px; font-size: 12.5px; white-space: nowrap;
}
.msg.assistant .bubble.md-chat .md-table th { background: #eef1f5; }

/* ---------------- MACD K线图交互 ---------------- */
#klineChart { cursor: grab; }
#klineChart.dragging { cursor: grabbing; }

/* ---------------- MACD K线页工作区（填满视口，避免底部留白） ---------------- */
.macd-layout {
    display: flex; gap: 16px; align-items: stretch;
    flex: 1; min-height: 0;   /* 高度由页面 flex 精确分配，不用 calc 估算 */
}
/* 本页整页高度固定为视口：header 固定、工作区吃掉剩余空间，
   这样底部时间轴一定落在视口内，不需要整页下拉 */
.main.macd-page {
    height: 100vh;
    display: flex; flex-direction: column;
}
.macd-page .header-bar { flex: none; }
.macd-page .macd-layout { flex: 1; min-height: 0; }
.macd-pool {
    width: 238px; flex: none; margin-bottom: 0;
    display: flex; flex-direction: column;
}
.macd-pool .card-header { margin-bottom: 10px; flex: none; }
.macd-pool-list { flex: 1; min-height: 0; overflow: auto; }
.macd-pool-hint { font-size: 11.5px; margin-top: 8px; line-height: 1.5; flex: none; }
.macd-main {
    flex: 1; min-width: 0; min-height: 0;
    display: flex; flex-direction: column;
}
.macd-main > .card { margin-bottom: 0; }
.macd-main > .card + .card { margin-top: 16px; }
.macd-chart-card {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
}
/* 图表区域占满卡片剩余高度（原固定 420px 会在高窗口下留白） */
.macd-chart-card .chart-wrap { flex: 1; min-height: 260px; height: auto; }
.macd-chart-card .chart-hint { flex: none; }
