.dash-quotes:has(.mal-quotes-host) .tv-root,
.dash-quotes:has(.mal-quotes-host) .dq-chart-section,
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .dash-quotes > :not(.mal-quotes-host) {
  display: none !important;
}
.dash-quotes:has(.mal-quotes-host) {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.menu-panel-root:has(.mal-quotes-host:not([hidden])) {
  padding: 0 !important;
  place-items: stretch !important;
}
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .menu-panel-wealth,
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .menu-panel-wealth-veil {
  display: none;
}
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .menu-panel-card {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: #05070e !important;
  box-shadow: none !important;
}
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .menu-panel-head {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 6;
  margin: 0 !important;
}
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .menu-panel-body,
.menu-panel-root:has(.mal-quotes-host:not([hidden])) .dash-quotes {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.menu-panel-root > .mal-quotes-host,
.dash-quotes > .mal-quotes-host {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 10px 12px 8px;
  background: #05070e;
  box-sizing: border-box;
  pointer-events: auto !important;
}
.mal-quotes-host[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
body:has(.mal-quotes-host:not([hidden])) #mal-dca-store {
  display: none !important;
}
.mal-quotes-host {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
  color: #e8e6df;
}
.dq-back {
  align-self: flex-start;
  position: relative;
  z-index: 20;
  padding: 6px 12px;
  border: 1px solid rgba(232, 199, 107, 0.32);
  background: rgba(232, 199, 107, 0.08);
  color: #e8c76b;
  font: 700 0.72rem/1.2 inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  pointer-events: auto !important;
}
.dq-back:hover {
  border-color: rgba(232, 199, 107, 0.65);
  background: rgba(232, 199, 107, 0.16);
}
.mq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mq-chip,
.mq-tool,
.mq-ma {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #9aa0b8;
  font: 650 12px/1 inherit;
  cursor: pointer;
}
.mq-chip.is-on,
.mq-tool.is-on,
.mq-ma.is-on {
  color: #0a0e1a;
  background: linear-gradient(180deg, rgba(226, 192, 96, 0.95), rgba(173, 130, 33, 0.95));
  border-color: transparent;
}
.mq-chip.is-pos:not(.is-on) {
  border-color: rgba(240, 215, 138, 0.55);
  color: #f0d78a;
}
.mq-chip.is-pos.is-on {
  box-shadow: 0 0 0 1px rgba(255, 236, 180, 0.55);
}
.mq-save,
.mq-edit {
  padding: 6px 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: #f0d78a;
  font: 700 12px/1 inherit;
  cursor: pointer;
}
.mq-save:disabled,
.mq-edit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.mq-hint {
  font-size: 11px;
  color: #6a708a;
}
.mq-read {
  font: 750 12px/1 inherit;
  color: #e8c76b;
  letter-spacing: 0.02em;
}
.mq-read.is-low { color: #3dce8a; }
.mq-read.is-high { color: #ff8a5b; }
.mq-sig {
  font: 800 12px/1 inherit;
  font-style: normal;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9aa0b8;
  background: rgba(255, 255, 255, 0.04);
}
.mq-sig.is-long {
  color: #0a0e1a;
  background: #3dce8a;
  border-color: transparent;
}
.mq-sig.is-short {
  color: #0a0e1a;
  background: #ff8a5b;
  border-color: transparent;
}
.mq-sig.is-low {
  color: #0a0e1a;
  background: #6ec8ff;
  border-color: transparent;
}
.mq-sig.is-hold {
  color: #3dce8a;
  background: rgba(61, 206, 138, 0.16);
  border-color: rgba(61, 206, 138, 0.5);
}
.mq-sig.is-exit {
  color: #0a0e1a;
  background: #e8c76b;
  border-color: transparent;
}
.mq-sig.is-stop {
  color: #0a0e1a;
  background: #ff8a5b;
  border-color: transparent;
}
.mq-sig.is-watch {
  color: #f0d78a;
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.5);
}
.mq-tf {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: auto;
}
.mq-tf-btn {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.72);
  color: #9aa0b8;
  font: 700 11px/1 inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.mq-tf-btn.is-on {
  color: #0a0e1a;
  background: linear-gradient(180deg, rgba(226, 192, 96, 0.95), rgba(173, 130, 33, 0.95));
  border-color: transparent;
}
.mq-draw {
  position: static;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
}
.mq-leg-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.72);
  color: #9aa0b8;
  font: 700 11px/1 inherit;
  cursor: pointer;
}
.mq-leg-btn.is-off {
  opacity: 0.42;
}
.mq-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.mq-dot.is-exit { background: #c4b07a; }
.mq-dot.is-low { background: #6ec8ff; }
.mq-dot.is-long { background: #3dce8a; }
.mq-draw-svg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mq-draw-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.mq-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1px solid #0a0e16;
  background: #c5cad6;
  box-shadow: 0 0 0 1px rgba(180, 186, 202, 0.45);
  pointer-events: auto;
  cursor: grab;
}
.mq-handle:active {
  cursor: grabbing;
}
.mq-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0e16;
}
.mq-chart {
  position: absolute;
  inset: 0;
}
.mq-status {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(5, 7, 13, 0.72);
  color: #9aa0b8;
  font-size: 13px;
  z-index: 3;
  pointer-events: none;
}
.mq-status.is-on {
  display: grid;
}
.mq-status.is-err {
  color: #e0a060;
}
.mq-marks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow: auto;
}
.mq-mark {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}
.mq-mark.is-edit {
  border-color: rgba(212, 175, 55, 0.5);
}
.mq-mark input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #e8e6df;
  font: inherit;
}
.mq-mark button {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c7cbdb;
  cursor: pointer;
  font: 650 11px/1 inherit;
}
.mq-empty {
  font-size: 12px;
  color: #6a708a;
}
