/* ── Metrics Sidebar Viewport ── */
.sidebar-section {
  padding: var(--sp-4);
  border-bottom: var(--border-subtle);
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── AI Risk Dial (160px Radial SVG) ── */
.dial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--sp-2) 0;
}

.dial-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.dial-bg-track {
  fill: none;
  stroke: var(--bg-surface);
  stroke-width: 10;
}

.dial-fill-arc {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.dial-value-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.dial-percent {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.dial-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ── Feature Gauges ── */
.gauge-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.gauge-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gauge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.gauge-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.gauge-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.gauge-val {
  color: var(--text-primary);
}

.gauge-status-icon {
  font-size: 10px;
}

.gauge-track {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.5s ease, background-color 0.3s;
}

/* ── Scorecard Data List ── */
.scorecard-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  font-size: 11.5px;
}

.sc-label {
  color: var(--text-secondary);
}

.sc-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.sc-val.verified {
  color: var(--accent-primary);
}
