.home-market-chart {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(123,151,161,.12);
}

.home-market-chart-loading,
.home-market-chart-error {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(123,151,161,.08);
  background: rgba(0,0,0,.08);
  padding: 14px;
}

.home-market-chart-loading,
.home-market-chart-error span {
  color: #60757d;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6675rem;
  letter-spacing: .08em;
}

.home-market-chart-error p {
  margin: 7px 0 0;
  color: #71858d;
  font-size: .7275rem;
}

.home-tech-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.home-tech-header span,
.home-tech-state-grid span,
.home-tech-source span {
  display: block;
  color: #596e77;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6175rem;
  letter-spacing: .08em;
}

.home-tech-header strong {
  display: block;
  margin-top: 5px;
  color: #cbd7da;
  font-family: "IBM Plex Mono", monospace;
  font-size: .8675rem;
  font-weight: 500;
}

.home-tech-header small {
  display: block;
  margin-top: 4px;
  color: #60757d;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6075rem;
  letter-spacing: .04em;
}

.home-tech-source {
  text-align: right;
  flex: 0 0 auto;
}

.home-tech-source span {
  color: #78909a;
}

.home-tech-state-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.home-tech-state-grid > div {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(123,151,161,.09);
  background: rgba(0,0,0,.08);
}

.home-tech-state-grid strong {
  display: block;
  margin-top: 5px;
  color: #9aabb0;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6475rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-tech-state-grid .state-constructive,
.home-tech-state-grid .state-above-200dma {
  color: #91b7ae;
}

.home-tech-state-grid .state-weak,
.home-tech-state-grid .state-below-200dma {
  color: #b78f80;
}

.home-tech-state-grid .state-extended {
  color: #d9ad64;
}

.home-tech-state-grid .state-mixed,
.home-tech-state-grid .state-neutral,
.home-tech-state-grid .state-normal {
  color: #9aabb0;
}

.home-tech-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: #5f747c;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5875rem;
  letter-spacing: .05em;
}

.home-tech-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-tech-swatch {
  display: inline-block;
  width: 12px;
  height: 2px;
}

.home-tech-swatch.sma20 {
  background: #d9ad64;
}

.home-tech-swatch.sma50 {
  background: #72a6b6;
}

.home-tech-swatch.rsi {
  background: #b5a7c8;
}

.home-tech-canvas {
  margin-top: 7px;
  width: 100%;
  overflow: hidden;
}

.home-tech-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
}

.wom-chart-grid {
  stroke: rgba(123,151,161,.10);
  stroke-width: 1;
}

.wom-panel-separator {
  stroke: rgba(123,151,161,.12);
  stroke-width: 1;
}

.wom-axis-label,
.wom-date-label,
.wom-rsi-label,
.wom-panel-label {
  fill: #52676f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.wom-panel-label {
  fill: #617880;
  letter-spacing: .08em;
}

.wom-candle-up line,
.wom-candle-up rect {
  stroke: #7fa69e;
  fill: #7fa69e;
}

.wom-candle-down line,
.wom-candle-down rect {
  stroke: #a17b70;
  fill: #a17b70;
}

.wom-candle-up line,
.wom-candle-down line {
  stroke-width: 1;
}

.wom-sma20,
.wom-sma50,
.wom-rsi-line {
  fill: none;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wom-sma20 {
  stroke: #d9ad64;
}

.wom-sma50 {
  stroke: #72a6b6;
}

.wom-rsi-line {
  stroke: #b5a7c8;
}

.wom-volume-up {
  fill: rgba(127,166,158,.45);
}

.wom-volume-down {
  fill: rgba(161,123,112,.42);
}

.wom-rsi-threshold {
  stroke: rgba(217,173,100,.24);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.home-tech-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(123,151,161,.08);
  color: #52676f;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5775rem;
  letter-spacing: .05em;
}

@media (max-width: 1180px) {
  .home-tech-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-tech-header {
    gap: 10px;
  }

  .home-tech-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tech-svg {
    min-height: 210px;
  }

  .home-tech-footer {
    flex-direction: column;
    gap: 4px;
  }
}

/* v2.5 DYNAMIC CHARTS */

.home-tech-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(123,151,161,.08);
  border-bottom: 1px solid rgba(123,151,161,.08);
}

.home-tech-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.home-tech-controls > span {
  margin-right: 3px;
  color: #536970;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5775rem;
  letter-spacing: .09em;
}

.wom-chart-control {
  appearance: none;
  padding: 5px 7px;
  border: 1px solid rgba(123,151,161,.13);
  background: rgba(0,0,0,.10);
  color: #60757d;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5875rem;
  letter-spacing: .05em;
  transition:
    color .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.wom-chart-control:hover {
  color: #a7b9be;
  border-color: rgba(128,224,189,.28);
}

.wom-chart-control.is-active {
  color: #9fd9c4;
  border-color: rgba(128,224,189,.34);
  background: rgba(128,224,189,.055);
}

.home-tech-canvas {
  position: relative;
  overflow: visible;
}

.home-tech-swatch.sma200 {
  background: #8f9ca4;
}

.wom-sma200 {
  fill: none;
  stroke: #8f9ca4;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 3;
}

.wom-chart-hitarea {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.wom-crosshair-v,
.wom-crosshair-h {
  visibility: hidden;
  pointer-events: none;
  stroke: rgba(207,224,228,.40);
  stroke-width: .8;
  stroke-dasharray: 2 2;
}

.home-tech-svg.is-hovering .wom-crosshair-v,
.home-tech-svg.is-hovering .wom-crosshair-h {
  visibility: visible;
}

.home-tech-tooltip {
  position: absolute;
  z-index: 5;
  top: 18px;
  width: 178px;
  padding: 10px;
  border: 1px solid rgba(128,224,189,.22);
  background: rgba(4,10,13,.94);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.wom-tooltip-date {
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(123,151,161,.12);
  color: #b9c9cd;
  font-family: "IBM Plex Mono", monospace;
  font-size: .6675rem;
  letter-spacing: .05em;
}

.wom-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 9px;
}

.wom-tooltip-grid span {
  color: #5d7279;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5575rem;
  letter-spacing: .045em;
}

.wom-tooltip-grid b {
  display: block;
  margin-top: 2px;
  color: #aebfc4;
  font-size: .6175rem;
  font-weight: 500;
}

@media (max-width: 620px) {
  .home-tech-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wom-chart-control {
    padding: 5px 6px;
  }

  .home-tech-tooltip {
    width: 164px;
  }
}
