/* 20261111mk —— 综合数据「聚合行情」本页 K 线优先面板（本页专用，不改 app.css / base.html）
   层级：本面板 90 < deep drawer 94，深浮层始终盖在上面。 */

/* 行内「分析」入口（不再用 .deep-chip，避免 coin_ui.js 直接开深浮层） */
.mk-analyze-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 9px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 650; line-height: 1.5;
  border: 1px solid rgba(59,130,246,.45); background: rgba(59,130,246,.12); color: #bfdbfe;
}
.mk-analyze-chip:hover { background: rgba(59,130,246,.2); }
.mk-analyze-chip:focus-visible { outline: 2px solid rgba(147,197,253,.7); outline-offset: 1px; }

/* 面板外壳 */
.mk-kline-panel[hidden] { display: none !important; }
.mk-kline-panel {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 3vw;
}
.mk-kline-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.66); }
.mk-kline-shell {
  position: relative; z-index: 1;
  width: min(1240px, 96vw); max-height: 94vh;
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
  animation: mkKlineIn .18s ease-out;
}
@keyframes mkKlineIn {
  from { transform: translateY(14px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
body.mk-kline-open { overflow: hidden; }

.mk-kline-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0;
}
.mk-kline-head-main { flex: 1 1 auto; min-width: 0; }
.mk-kline-title {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-kline-title span { font-variant-numeric: tabular-nums; }
.mk-kline-sub {
  display: block; margin-top: 2px; font-size: 11px; line-height: 1.5;
  color: var(--muted); overflow-wrap: anywhere;
}
.mk-kline-head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

.mk-kline-body {
  flex: 1 1 auto; min-height: 0; min-width: 0;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: 12px 14px 16px;
}
.mk-kline-body .cd-chart { margin: 0 0 14px; }
.mk-kline-body .cd-chart:last-child { margin-bottom: 0; }
/* 以 K 线为主：首屏给足图高，手机也能先看到图（不是「先结论」） */
.mk-kline-body .cd-kline-box { height: min(56vh, 520px); min-height: 300px; }
.mk-kline-body .cd-vs-box { height: 220px; }

@media (max-width: 720px) {
  .mk-kline-panel { padding: 0; align-items: stretch; }
  .mk-kline-shell {
    width: 100%; max-width: 100vw; height: 100%; max-height: 100%;
    border: 0; border-radius: 0; box-shadow: none;
    animation: mkKlineUp .18s ease-out;
  }
  .mk-kline-head { padding: 10px 12px 8px; }
  .mk-kline-body { padding: 10px 12px 14px; }
  .mk-kline-body .cd-kline-box { height: min(52vh, 440px); min-height: 240px; }
  .mk-kline-body .cd-vs-box { height: 200px; }
}
@keyframes mkKlineUp {
  from { transform: translateY(18px); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}

/* 20261111zs：主图指标叠加层宿主（副图/芯片样式见 mk_kline_indicators.css） */
.mk-kline-body .cd-kline-box { position: relative; }
