/* ─── Results Section ────────────────────────────────────────── */
.results-section {
  margin-top: 36px;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Width Meter ────────────────────────────────────────────── */
.width-meter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.width-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.width-row-label {
  width: 72px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 600;
}
.width-bar-track {
  flex: 1;
  height: 16px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.width-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.width-bar-fill.reference-bar { background: var(--accent-ref); }
.width-bar-missing {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--amber);
  opacity: 0.5;
  border-radius: 0 99px 99px 0;
}
.width-score-label {
  width: 36px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  color: var(--text);
  flex-shrink: 0;
}
.width-delta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.width-delta-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(245,158,11,0.12);
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.25);
}
.width-delta-badge.good {
  background: rgba(34,197,94,0.1);
  color: var(--success);
  border-color: rgba(34,197,94,0.25);
}
.width-delta-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.width-legend {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.width-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.width-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.width-dot.target    { background: var(--accent); }
.width-dot.reference { background: var(--accent-ref); }
.width-dot.missing   { background: var(--amber); }

/* ─── Energy Timeline Labels ─────────────────────────────────── */
.energy-labels {
  position: relative;
  height: 22px;
  margin-bottom: 4px;
}
.energy-label-chip {
  position: absolute;
  top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* ─── Tech Cards with Checklist ──────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .tech-grid { grid-template-columns: 1fr; }
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, opacity 0.2s;
}
.tech-card.is-done {
  opacity: 0.5;
  border-color: var(--success);
}
.tech-card.is-done .tech-fix {
  text-decoration: line-through;
  opacity: 0.6;
}
.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tech-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.tech-observation {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}
.tech-fix {
  font-size: 0.82rem;
  color: var(--accent);
  padding: 8px 10px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ─── Checkbox ───────────────────────────────────────────────── */
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.check-label input[type="checkbox"] { display: none; }
.check-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.check-label input:checked + .check-custom {
  background: var(--success);
  border-color: var(--success);
}
.check-label input:checked + .check-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ─── Copy Fix Button ────────────────────────────────────────── */
.copy-fix-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-fix-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(108,99,255,0.06);
}
