.hm-toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.hm-toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.hm-top-n-wrap {
  display: flex;
  align-items: center;
}

.hm-top-n-wrap input[type="number"] {
  width: 56px;
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 5px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
}

/* hidden when top-n unchecked */
.hm-top-n-wrap.hm-hidden { display: none; }

.hm-label {
  font-size: 11px;
  color: var(--text-2);
}

/* pill radio group */
.hm-toggle-group {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hm-pill {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  transition: background 0.1s, color 0.1s;
}

.hm-pill:last-child { border-right: none; }

.hm-pill input[type="radio"] { display: none; }

.hm-pill:has(input:checked) {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 500;
}
.hm-pill-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Update button */
.hm-run-btn {
  margin-left: auto;
  padding: 4px 14px;
  font-size: 11px;
  font-family: var(--sans);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}

.hm-run-btn:hover { opacity: 0.85; }
.hm-run-btn:disabled { opacity: 0.5; cursor: default; }

/* Plot area */
.hm-plot-wrap {
  position: relative;
  min-height: 500px;
}

.hm-plot {
  width: 100%;
  min-height: 500px;
}

.hm-empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  pointer-events: none;
}

.hm-empty-msg.hm-hidden { display: none; }