/* M6-B Part D — Mobile QC chart + refined blue BSC language */

.qc-popup .qc-chart-shell {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}
.qc-popup .qc-chart-wrap {
  height: 168px;
  margin-bottom: 0;
}
.mobile-qc-chart {
  display: block;
}

.qc-popup .qc-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.qc-popup .qc-hdr-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.qc-popup .qc-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.qc-popup .qc-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.qc-popup .qc-title-block {
  min-width: 0;
  flex: 1;
}
.qc-popup .qc-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  width: fit-content; /* don't stretch across the header (was pushing proxy to CLOSED) */
}
.qc-popup .qc-name-row .qc-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.qc-popup .qc-name-row .qc-proxy {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  text-transform: none;
  flex: 0 0 auto;
  margin-left: 0;
}
/* Legacy: qc-name without wrapper (fallback pages) */
.qc-popup .qc-title-block > .qc-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}
.qc-popup .qc-sym-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  min-width: 0;
}
.qc-popup .qc-sym {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.qc-popup .qc-exchange {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qc-popup .qc-hdr-right {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.qc-popup .qc-sess {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1.5px solid;
  line-height: 1;
  white-space: nowrap;
}
.qc-popup .qc-sess.sess-open {
  color: #00e060;
  border-color: #00e060;
  background: rgba(0, 224, 96, 0.12);
}
.qc-popup .qc-sess.sess-pre,
.qc-popup .qc-sess.sess-ah {
  color: #5FB4FF;
  border-color: #1E90FF;
  background: rgba(30, 144, 255, 0.14);
}
.qc-popup .qc-sess.sess-closed,
.qc-popup .qc-sess.sess-spot-closed {
  color: #a0a0a0;
  border-color: #a0a0a0;
  background: rgba(160, 160, 160, 0.12);
}
.qc-popup .qc-sess.sess-spot {
  color: #FFB300;
  border-color: #FFB300;
  background: rgba(255, 179, 0, 0.12);
}

.qc-popup .qc-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qc-popup .qc-price-main {
  min-width: 0;
  flex: 1;
}
.qc-popup .qc-price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.qc-popup .qc-chg {
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.2;
}
.qc-popup .qc-day-range {
  text-align: right;
  flex-shrink: 0;
}
.qc-popup .qc-day-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}
.qc-popup .qc-day-val {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.qc-popup .qc-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 12px;
  margin: 0;
}
.qc-popup .qc-brand-lockup {
  height: 22px;
  width: auto;
  max-width: 200px;
  opacity: 0.95;
  display: block;
  pointer-events: none;
}
.qc-popup .qc-stamp {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.2;
}
