.app.indicators-app,
.indicators-app {
  min-height: 100vh;
}

.indicators-app .topbar {
  gap: 12px;
}

.indicators-app .summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.indicators-app .summary-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 45%);
}

.indicators-app .heatmap-card {
  background: #0f172a;
  position: relative;
}

.indicators-app .source-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.indicators-app .source-badge[data-source="market"] {
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.44);
}

.indicators-app .source-badge[data-source="backend"] {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.44);
}

.indicators-app .summary-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.indicators-app .summary-value {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.indicators-app .summary-value.positive {
  color: #4ade80;
}

.indicators-app .summary-value.negative {
  color: #f87171;
}

.indicators-app .summary-value.warning {
  color: #fbbf24;
}

.indicators-app .summary-value.neutral {
  color: #94a3b8;
}

.indicators-app .summary-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.indicators-app .summary-filter:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.indicators-app .summary-filter.active {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(20, 83, 45, 0.5);
  color: #bbf7d0;
}

.indicators-app .summary-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
}

.indicators-app .summary-segmented[hidden] {
  display: none !important;
}

.indicators-app .summary-segmented .summary-filter {
  min-height: 24px;
  border-width: 0;
  border-radius: 0;
  background: transparent;
}

.indicators-app .summary-segmented .summary-filter + .summary-filter {
  border-left: 1px solid rgba(51, 65, 85, 0.72);
}

.indicators-app .summary-segmented .summary-filter.active {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.78), rgba(29, 78, 216, 0.58)),
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.16), transparent 50%);
  color: #eff6ff;
}

.tooltip .tooltip-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 2px;
  padding: 1px 5px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
}

.tooltip .tooltip-pill.positive {
  border-color: rgba(34, 197, 94, 0.44);
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.42);
}

.tooltip .tooltip-pill.muted {
  color: #94a3b8;
}

.indicators-app .weight-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.indicators-app .weight-filter-group[hidden] {
  display: none;
}

.indicators-app #squeezeWeightBtn,
.indicators-app #streakWeightBtn,
.indicators-app #sliNl8WeightBtn,
.indicators-app #sliSqueezeWeightBtn,
.indicators-app #sliHiLoWeightBtn,
.indicators-app #sliStreakWeightBtn {
  display: none !important;
}

.indicators-app .summary-filter.weight-filter {
  color: #cbd5e1;
}

.indicators-app .summary-filter.weight-filter.is-relevant {
  border-color: rgba(56, 189, 248, 0.36);
}

.indicators-app .summary-filter.weight-filter.active {
  border-color: rgba(59, 130, 246, 0.56);
  background: rgba(30, 64, 175, 0.42);
  color: #dbeafe;
}

.indicators-app .summary-filter.weight-filter.active.is-relevant {
  border-color: rgba(251, 191, 36, 0.56);
  background: rgba(120, 53, 15, 0.5);
  color: #fde68a;
}

.indicators-app .indicators-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  color: #cbd5e1;
}

.indicators-app .indicators-empty-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
}

.indicators-app .indicators-empty-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
  max-width: 560px;
}

.indicators-app .indicators-empty-text {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 640px;
}

.indicators-app .indicators-empty-meta {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.indicators-app .legend-note {
  color: #94a3b8;
}

.indicators-app .bottom-panels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.indicators-app .legend-bar-wrap,
.indicators-app .bottom-row-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.indicators-app .legend-bar-wrap::-webkit-scrollbar,
.indicators-app .bottom-row-inner::-webkit-scrollbar {
  display: none;
}

.indicators-app .legend-bar-wrap {
  font-size: 10px;
  color: #64748b;
}

.indicators-app .legend-bar-wrap > span {
  flex: 0 0 auto;
}

.indicators-app .legend-bar {
  flex: 1 1 auto;
  min-width: 120px;
  height: 7px;
  border-radius: 999px;
}

.indicators-app .bottom-row {
  min-width: 0;
}

.indicators-app .legend-title,
.indicators-app .mode-info,
.indicators-app .legend-rare-info {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.2;
}

.indicators-app .legend-title {
  font-weight: 800;
  color: #e2e8f0;
}

.indicators-app .mode-info {
  color: #94a3b8;
}

.indicators-app .legend-rare-info {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
}

#helpOverlay .help-content {
  max-width: 620px;
  border-color: rgba(59, 130, 246, 0.28);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

#helpOverlay .help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #1f2a3d;
}

#helpOverlay .help-title {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
}

#helpOverlay .map-overlay-close {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

#helpOverlay .map-overlay-close:hover {
  background: #172033;
}

#helpOverlay .help-body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#helpOverlay .help-section {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.52)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 45%);
}

#helpOverlay .help-section:last-child {
  margin-bottom: 0;
}

#helpOverlay .help-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#helpOverlay .help-section-title .hl-icon {
  margin-right: 0;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.22));
}

#helpOverlay .help-line {
  margin-bottom: 5px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.58;
}

#helpOverlay .help-line:last-child {
  margin-bottom: 0;
}

#helpOverlay .help-line b {
  color: #e2e8f0;
  font-weight: 800;
}

#helpOverlay .help-tip,
#helpOverlay .help-warn,
#helpOverlay .help-info {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.52;
}

#helpOverlay .help-tip {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.09);
  color: #bbf7d0;
}

#helpOverlay .help-warn {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.09);
  color: #fde68a;
}

#helpOverlay .help-info {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.09);
  color: #bfdbfe;
}

#helpOverlay .help-tag {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  vertical-align: baseline;
}

#helpOverlay .help-tag.green {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

#helpOverlay .help-tag.red {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

#helpOverlay .help-tag.amber {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

#helpOverlay .help-tag.blue {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

#helpOverlay .help-tag.purple {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(192, 132, 252, 0.14);
  color: #c084fc;
}

@media (max-width: 720px) {
  .indicators-app .summary {
    gap: 6px;
  }

  .indicators-app .summary-item {
    padding-inline: 7px;
  }

  .indicators-app .summary-value {
    max-width: 96px;
  }

  .indicators-app .legend-bar-wrap,
  .indicators-app .bottom-row-inner {
    gap: 6px;
  }

  .indicators-app .indicators-empty-title {
    font-size: 22px;
  }

  #helpOverlay .help-content {
    width: calc(100vw - 18px);
    max-height: 88vh;
    border-radius: 13px;
  }

  #helpOverlay .help-body {
    padding: 12px;
  }

  #helpOverlay .help-section {
    padding: 10px;
    margin-bottom: 10px;
  }
}
