.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: 18px 22px 16px;
  background: #05070e;
  box-sizing: border-box;
}
.mal-quotes-host[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !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;
  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;
}
.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-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-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: min(58dvh, 560px);
  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;
}
