/* multi chart */
.mc-panel { --mc-ma1: var(--amber-deep); --mc-ma2: #8a6fb0; --mc-ma3: var(--text-2); }
html[data-theme="dark"] .mc-panel { --mc-ma2: #a790d8; }
.mc-n button { display: inline-flex; align-items: center; gap: 6px; }
.mc-n .i { width: 15px; height: 15px; }
.mc-all { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mc-all button { white-space: nowrap; }

.mc-grid { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-grid[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mc-cell { position: relative; min-width: 0; background: var(--bg); }
html[data-theme="dark"] .mc-cell { background: var(--bg-soft); }
.mc-h { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-height: 52px; }
.mc-pick { position: relative; min-width: 0; flex: 0 1 auto; }
.mc-cur { display: inline-flex; align-items: center; gap: 7px; height: 34px; max-width: 100%; padding: 0 10px 0 6px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg); overflow: hidden; }
.mc-cur:hover { border-color: var(--text-3); }
.mc-cur b { font-size: 14px; font-weight: 680; white-space: nowrap; }
.mc-cur small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cur .i { width: 13px; height: 13px; color: var(--text-3); flex: none; }
.mc-cur img, .mc-cur .cbadge { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.mc-q { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; white-space: nowrap; }
.mc-px { font-size: 14.5px; font-weight: 680; border-radius: 5px; padding: 0 2px; }
.mc-ch { font-size: 12.5px; font-weight: 620; }
.mc-iv { height: 32px; font-size: 13px; padding: 0 26px 0 10px; flex: none; }
.mc-open { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-2); flex: none; }
.mc-open:hover { color: var(--text); border-color: var(--text-3); }
.mc-open .i { width: 16px; height: 16px; }
.mc-body { position: relative; }
.mc-box { position: relative; z-index: 0; height: 380px; }
.mc-grid[data-n="2"] .mc-box { height: 540px; }
.mc-grid[data-n="6"] .mc-box { height: 330px; }
.mc-msg { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 16px; font-size: 13.5px; color: var(--text-3); text-align: center; pointer-events: none; }
.mc-msg[hidden] { display: none; }

.mc-dd { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(380px, calc(100vw - 40px)); padding: 10px; display: grid; gap: 8px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(10, 6, 16, .38); }
.mc-dd[hidden] { display: none; }
.mc-dd .search-in { min-width: 0; }
.mc-res { max-height: 320px; overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.mc-it { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 9px; border-radius: 9px; text-align: left; }
.mc-it[aria-selected="true"] { background: var(--bg-soft); }
.mc-it img, .mc-it .cbadge { width: 20px; height: 20px; border-radius: 50%; }
.mc-in { display: grid; min-width: 0; line-height: 1.3; }
.mc-in b { font-size: 13.5px; font-weight: 650; }
.mc-in small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-it em { font-style: normal; font-size: 12px; font-weight: 620; }
.mc-empty { padding: 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }

@media (max-width: 1100px) {
  .mc-grid[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-cur small { display: none; }
}
@media (max-width: 760px) {
  .mc-grid, .mc-grid[data-n="6"] { grid-template-columns: minmax(0, 1fr); }
  .mc-box, .mc-grid[data-n="2"] .mc-box, .mc-grid[data-n="6"] .mc-box { height: 320px; }
  .mc-n span { display: none; }
}
@media (max-width: 420px) {
  .mc-h { flex-wrap: wrap; gap: 6px 8px; }
  .mc-q { order: 3; margin-left: 0; flex: 1 1 100%; }
}
