/* Chart */
.chartWrap {
  overflow: auto;
  padding: 12px;
  min-height: 0;
}

.chartHost {
  height: 100%;
  min-height: 320px;
  /* keeps it usable if the viewport is short */
}

.chartHost > para-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.manifestWrap {
  overflow: auto;
  padding: 12px;
  min-height: 0;
}

.manifestPre {
  margin: 0;
  min-height: 320px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface1);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  font:
    12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.pcTooltip {
  position: absolute;
  pointer-events: none;
  background: var(--tooltip-bg);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  max-width: 320px;
  display: none;
  transform: translate(10px, 10px);
}


/* Suggestions */

.pcSuggestions {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface1);
}

.pcSuggestion {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--surface2);
}

.pcSuggestionHeader {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 4px;
}

.pcSuggestionRationale {
  margin: 6px 0 8px 18px;
  font-size: 13px;
}

.pcSuggestionApply {
  font-size: 13px;
}

.pcSuggestionScore[data-tier="best_match"] {
  font-weight: 600;
}

.pcSuggestionScore[data-tier="strong_alternative"] {
  opacity: 0.9;
}

.pcSuggestionScore[data-tier="possible"] {
  opacity: 0.75;
}

.pcSuggestionScore[data-tier="unconventional"] {
  opacity: 0.6;
}
