/* Refinery page styles */

.refinery-list {
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.refinery-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.refinery-item:hover {
  border-color: var(--accent);
}
.refinery-item.active {
  border-color: var(--accent);
  background: rgba(91, 138, 245, 0.08);
}

.refinery-item h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.refinery-item .meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.refinery-bars {
  display: flex;
  gap: 8px;
  align-items: center;
}
.refinery-bar-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.refinery-bar-group .label {
  font-size: 0.65rem;
  color: var(--text-dim);
  width: 32px;
}
.refinery-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.refinery-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.refinery-bar-group .pct {
  font-size: 0.72rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Hover chart panel — overlays map with transparency */
.refinery-hover-panel {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 560px;
  z-index: 10;
  background: rgba(26, 29, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  box-sizing: border-box;
  overflow: hidden;
}
.refinery-hover-panel.visible {
  display: block;
}
.refinery-hover-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.refinery-hover-panel .meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.refinery-hover-panel canvas {
  display: block;
  width: 100%;
  height: 420px;
}
.refinery-hover-panel .chart-legend {
  display: flex;
  gap: 12px;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.refinery-hover-panel .chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.refinery-hover-panel .chart-legend .swatch {
  width: 12px;
  height: 3px;
  border-radius: 1px;
}
