/* MINUTKATRADING_CRYPTO_CHART_V41 */
.panel.signal.signal-v3 .mt-chart-open {
  font:700 11px/1.25 system-ui,-apple-system,sans-serif;
  color:#e2ecff!important;background:#31465c!important;
  border:1px solid #526b8a!important;border-radius:8px;
  padding:6px 10px;cursor:pointer;margin-left:auto;white-space:nowrap;
}
.panel.signal.signal-v3 .mt-chart-open:focus-visible{outline:2px solid #78a9ff;outline-offset:2px}
#mtCryptoChartDialog {
  box-sizing:border-box;width:min(96vw,980px);max-width:980px;max-height:94dvh;
  color:var(--text,#f3f6fb);background:var(--surface,#151d2b);
  padding:16px;border:1px solid var(--border,#334155);border-radius:16px;
  overflow:auto;box-shadow:0 20px 80px #0008;
}
#mtCryptoChartDialog::backdrop{background:rgba(2,5,12,.83)}
.mt-chart-top{display:flex;align-items:start;justify-content:space-between;gap:12px}
.mt-chart-top h2{margin:0;font-size:20px;line-height:1.4;color:var(--text,#fff)}
.mt-chart-sub{font-size:12px;color:var(--muted,#9faab8)}
#mtChartClose{padding:8px 12px;border-radius:8px;flex:none;font-size:12px}
.mt-chart-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 10px}
.mt-chart-toolbar label{display:flex;flex-direction:column;gap:4px;flex:1 1 140px;font-size:11px;color:var(--muted,#aab7c9)}
.mt-chart-toolbar select{padding:9px 10px;font-weight:700;font-size:13px;background:var(--bg,#0c1018);color:var(--text,#fff);border-color:var(--border,#334155)}
.mt-chart-status{font-size:12px;min-height:22px;color:var(--muted,#aab7c9);margin-bottom:8px}
.mt-chart-error{color:#f0828b!important}
#mtCandlesCanvas{height:min(56dvh,490px);min-height:270px;border-radius:10px;overflow:hidden;background:var(--surface,#151d2b)}
.mt-chart-info{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:12px 0;color:var(--text,#fff)}
.mt-chart-foot{font-size:11px;line-height:1.6;color:var(--muted,#9aa8ba);border-top:1px solid var(--border,#364357);padding-top:9px}
.mt-chart-foot a{color:#89b8ff;text-decoration:underline}
html[data-mt-theme="light"] .panel.signal.signal-v3 .mt-chart-open{background:#e8effd!important;border-color:#bbccdf!important;color:#213e70!important}
html[data-mt-theme="light"] .mt-chart-foot a{color:#2c5eae}
@media(max-width:520px){#mtCryptoChartDialog{padding:10px}#mtCandlesCanvas{height:46dvh;min-height:260px}.mt-chart-toolbar{gap:6px}.mt-chart-top h2{font-size:18px}.panel.signal.signal-v3 .mt-chart-open{padding:6px 9px;font-size:10px}}

/* MINUTKATRADING_CRYPTO_ANALYSIS_V42 */
#mtCryptoChartDialog .mt-analysis-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}
#mtCryptoChartDialog .mt-analysis-toolbar label{display:flex;flex-direction:column;gap:5px;flex:1 1 130px;font-size:11px;color:var(--muted,#aab7c9)}
#mtCryptoChartDialog .mt-analysis-toolbar select{width:100%;padding:9px 10px;border:1px solid var(--border,#465368);border-radius:8px;font-size:13px;font-weight:700;background:var(--bg,#0c1018);color:var(--text,#fff)}
#mtCryptoChartDialog .mt-analysis-box{border:1px solid var(--border,#364357);border-radius:12px;margin:12px 0;padding:12px;background:var(--surface,#151d2b);font-size:12px;line-height:1.6;color:var(--text,#f3f6fb)}
#mtCryptoChartDialog .mt-analysis-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;margin-bottom:9px}
#mtCryptoChartDialog .mt-analysis-heading button{font-size:12px;padding:7px 12px;border-radius:8px;background:#35465e;color:#fff;border:1px solid #566780}
#mtCryptoChartDialog .mt-analysis-pill{color:#e6eef9;background:#465770;font-size:10px;border-radius:6px;padding:3px 7px}
#mtCryptoChartDialog .mt-analysis-muted{color:var(--muted,#9cacc0);font-size:11px;line-height:1.6}
#mtCryptoChartDialog .mt-analysis-muted b{color:var(--text,#f3f6fb)}
#mtCryptoChartDialog .mt-analysis-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
#mtCryptoChartDialog .mt-analysis-metrics>div{display:flex;flex-direction:column;gap:3px;padding:11px;border:1px solid var(--border,#364357);border-radius:10px}
#mtCryptoChartDialog .mt-analysis-metrics small{font-size:10px;color:var(--muted,#9cacc0)}
#mtCryptoChartDialog .mt-analysis-metrics strong{font-size:19px;color:#37c891;line-height:1.2}
#mtCryptoChartDialog .mt-analysis-metrics>div+div strong{color:#ed7482}
#mtCryptoChartDialog .mt-analysis-metrics span{font-size:11px;color:var(--muted,#9cacc0)}
#mtCryptoChartDialog .mt-analysis-tablewrap{max-width:100%;overflow-x:auto;margin:9px 0}
#mtCryptoChartDialog .mt-analysis-tablewrap table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px;text-align:left}
#mtCryptoChartDialog .mt-analysis-tablewrap th,#mtCryptoChartDialog .mt-analysis-tablewrap td{padding:8px 7px;border-bottom:1px solid var(--border,#364357);color:var(--text,#f3f6fb)}
#mtCryptoChartDialog .mt-analysis-tablewrap th{color:var(--muted,#9cacc0);font-weight:700}
html[data-mt-theme="light"] #mtCryptoChartDialog .mt-analysis-heading button{background:#dae5f6;color:#263a58;border-color:#b8c8df}
html[data-mt-theme="light"] #mtCryptoChartDialog .mt-analysis-pill{background:#d9e6f3;color:#234360}
@media(max-width:520px){#mtCryptoChartDialog .mt-analysis-metrics strong{font-size:16px}#mtCryptoChartDialog .mt-analysis-box{padding:10px}}
/* V4.3: clean chart markers; comparison moved to full-history analytics. */
#mtCryptoChartDialog .mt-v43-markers{display:flex;align-items:center;gap:7px;
  font-size:11px;color:var(--muted,#abb4c2);margin:5px 0 9px}
#mtCryptoChartDialog .mt-v43-markers input{width:16px;height:16px;accent-color:#638ff0}
