.qv3-chart-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 96px);
  background: #f6f8fb;
  color: #101828;
}

.qv3-chart-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-bottom: 1px solid #d9e2ef;
  background: #f8fafc;
}

.qv3-chart-toolbar-left,
.qv3-chart-toolbar-right,
.qv3-timeframes {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qv3-chart-select,
.qv3-chart-input {
  height: 34px;
  min-width: 108px;
  border: 1px solid #c5d0df;
  border-radius: 4px;
  background: #fff;
  color: #101828;
  font: 600 12px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 10px;
}

.qv3-chart-version {
  min-width: 230px;
  max-width: 360px;
}

.qv3-timeframe-btn {
  height: 28px;
  min-width: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #344054;
  font: 600 12px/1 Inter, ui-sans-serif, system-ui;
  cursor: pointer;
}

.qv3-timeframe-btn.is-active {
  background: #f04438;
  border-color: #f04438;
  color: #fff;
}

.qv3-chart-button {
  height: 34px;
  border: 1px solid #c5d0df;
  border-radius: 4px;
  background: #fff;
  color: #101828;
  font: 700 12px/1 Inter, ui-sans-serif, system-ui;
  padding: 0 12px;
  cursor: pointer;
}

.qv3-chart-button.primary {
  border-color: #f04438;
  background: #f04438;
  color: #fff;
}

.qv3-chart-button:disabled,
.qv3-timeframe-btn:disabled,
.qv3-chart-select:disabled,
.qv3-chart-input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.qv3-chart-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.qv3-chart-symbol-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 10px 10px 0;
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
}

.qv3-chart-symbol-card strong {
  font-size: 17px;
  line-height: 1;
}

.qv3-chart-symbol-card b {
  font-size: 17px;
}

.qv3-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  border-radius: 999px;
  background: #eff4fb;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  white-space: nowrap;
}

.qv3-pill.ok {
  background: #dcfae6;
  color: #067647;
}

.qv3-pill.warn {
  background: #fff4d6;
  color: #a15c07;
}

.qv3-price-delta.pos {
  color: #12b76a;
}

.qv3-price-delta.neg {
  color: #f04438;
}

.qv3-chart-canvas-wrap {
  position: relative;
  height: 430px;
  min-height: 300px;
  border-bottom: 1px solid #e4e7ec;
  background: #fff;
}

.qv3-chart-canvas {
  width: 100%;
  height: 100%;
}

.qv3-tv-mark {
  position: absolute;
  left: 14px;
  bottom: 16px;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  color: #111827;
  pointer-events: none;
}

.qv3-chart-empty,
.qv3-chart-loading {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 36px;
  color: #667085;
  font-weight: 700;
  text-align: center;
}

.qv3-mini {
  padding: 12px 12px 20px;
  background: #fff;
}

.qv3-mini-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
}

.qv3-mini-help {
  margin: 0 0 10px;
  color: #667085;
  font-size: 12px;
}

.qv3-run-button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: #ff4545;
  color: #fff;
  font: 800 12px/1 Inter, ui-sans-serif, system-ui;
  cursor: pointer;
}

.qv3-run-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.qv3-mini-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 8px 0;
  border: 1px solid #b7ebc6;
  border-radius: 4px;
  background: #dcfae6;
  color: #12b76a;
  font-size: 12px;
  font-weight: 800;
}

.qv3-mini-status.warn {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.qv3-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.qv3-kpi {
  min-height: 86px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.qv3-kpi span {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-bottom: 10px;
}

.qv3-kpi strong {
  font-size: 22px;
  line-height: 1;
}

.qv3-kpi small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 11px;
}

.qv3-kpi .pos {
  color: #12b76a;
}

.qv3-kpi .neg {
  color: #f04438;
}

.qv3-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  border-bottom: 1px solid #e4e7ec;
}

.qv3-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 9px;
  cursor: pointer;
}

.qv3-tab.is-active {
  border-bottom-color: #f04438;
  color: #101828;
}

.qv3-tab-panel {
  padding-top: 14px;
}

.qv3-equity-panel {
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.qv3-equity-svg {
  width: 100%;
  height: 260px;
  display: block;
}

.qv3-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.qv3-list-filters,
.qv3-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qv3-list-filter {
  height: 28px;
  border: 1px solid #c5d0df;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  font: 700 12px/1 Inter, ui-sans-serif, system-ui;
  padding: 0 10px;
  cursor: pointer;
}

.qv3-list-filter.is-active {
  border-color: #2e90fa;
  background: #2e90fa;
  color: #fff;
}

.qv3-trades-table-wrap {
  overflow: auto;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
}

.qv3-trades-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 12px;
}

.qv3-trades-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f4f7;
  color: #344054;
  text-align: left;
  padding: 10px;
  white-space: nowrap;
}

.qv3-trades-table td {
  padding: 12px 10px;
  border-top: 1px solid #e4e7ec;
  white-space: nowrap;
}

.qv3-trades-table tr.good {
  background: #c8f7dc;
}

.qv3-trades-table tr.bad {
  background: #ffc7d3;
}

.qv3-trades-table .pos {
  color: #00a85a;
  font-weight: 800;
}

.qv3-trades-table .neg {
  color: #e60033;
  font-weight: 800;
}

.qv3-empty-applied {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px dashed #c5d0df;
  border-radius: 10px;
  background: #fff;
  color: #667085;
  text-align: center;
  padding: 36px;
}

.qv3-empty-applied strong {
  display: block;
  color: #101828;
  font-size: 18px;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .qv3-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .qv3-chart-toolbar-left,
  .qv3-chart-toolbar-right {
    flex-wrap: wrap;
  }

  .qv3-chart-select,
  .qv3-chart-input,
  .qv3-chart-version {
    flex: 1 1 140px;
    min-width: 0;
  }

  .qv3-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .qv3-chart-canvas-wrap {
    height: 360px;
  }

  .qv3-kpis {
    grid-template-columns: 1fr;
  }

  .qv3-list-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@font-face {
  font-family: "Source Sans";
  src: url("./fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3aPw.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("./fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rAkA.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.chart-route-active .qv3-chart-shell {
  min-height: calc(100vh - 128px);
  height: auto;
  background: #ffffff;
  color: #0f172a;
  font-family: "Source Sans", Arial, sans-serif;
  font-size: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  overflow: visible;
}

.chart-route-active .qv3-chart-toolbar {
  min-height: 48px;
  padding: 7px 10px;
  border-bottom: 1px solid #d7dde8;
  background: #f3f4f6;
}

.chart-route-active .qv3-chart-select,
.chart-route-active .qv3-chart-input {
  height: 31px;
  border-color: #bfc7d3;
  border-radius: 4px;
  color: #111827;
  font: 600 12px/1.2 "Source Sans", Arial, sans-serif;
}

.chart-route-active .qv3-chart-button {
  height: 31px;
  border-color: #bfc7d3;
  border-radius: 4px;
  font: 700 12px/1 "Source Sans", Arial, sans-serif;
}

.chart-route-active .qv3-timeframe-btn {
  min-width: 32px;
  height: 28px;
  font: 600 12px/1 "Source Sans", Arial, sans-serif;
}

.chart-route-active .qv3-chart-symbol-card {
  gap: 6px;
  margin: 8px 10px 0;
  padding: 9px 11px;
  border-color: #d4dce8;
  border-radius: 7px;
}

.chart-route-active .qv3-chart-symbol-card strong,
.chart-route-active .qv3-chart-symbol-card b {
  font-size: 15px;
}

.chart-route-active .qv3-pill {
  height: 18px;
  font-size: 10px;
  padding: 0 7px;
}

.chart-route-active .qv3-chart-canvas-wrap {
  height: clamp(380px, 50vh, 620px);
  min-height: 320px;
  overflow: visible;
}

.chart-route-active .qv3-chart-canvas {
  min-height: 0;
  overflow: visible;
}

.chart-route-active .qv3-mini {
  min-height: 330px;
  max-height: none;
  overflow: visible;
  padding: 10px 10px 18px;
}

.chart-route-active .qv3-mini-title {
  margin-bottom: 6px;
  font-size: 14px;
}

.chart-route-active .qv3-run-button {
  height: 28px;
  border-radius: 5px;
  font: 800 12px/1 "Source Sans", Arial, sans-serif;
}

.chart-route-active .qv3-kpis {
  gap: 10px;
  margin-top: 10px;
}

.chart-route-active .qv3-kpi {
  min-height: 76px;
  border-color: #d8dde7;
  border-radius: 7px;
  padding: 11px;
}

.chart-route-active .qv3-kpi span {
  margin-bottom: 8px;
  font-size: 11px;
}

.chart-route-active .qv3-kpi strong {
  font-size: 20px;
}

.chart-route-active .qv3-tabs {
  margin-top: 16px;
}

.chart-route-active .qv3-equity-panel,
.chart-route-active .qv3-trades-table-wrap {
  border-radius: 7px;
}

.chart-route-active .qv3-trades-table th,
.chart-route-active .qv3-trades-table td {
  font-family: "Source Sans", Arial, sans-serif;
}
