/* ─── COMPARE ─── */
/* COMPARE VIEW — side-by-side */
/* Extracted verbatim από prototype_v2.html (authoritative <style>) */

/* ============ COMPARE VIEW (rich) ============ */
.cmp-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 18px;
}
.cmp-summary strong { color: var(--text); }

.cmp-grid {
  display: grid; gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr !important; } }

.cmp-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
}
.cmp-remove {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 11px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.cmp-remove:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.cmp-name {
  font-size: 16px; font-weight: 700;
  margin: 8px 0 4px 0; line-height: 1.3;
}
.cmp-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }

.cmp-vasi-block {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--petrol-soft) 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.cmp-vasi-label {
  font-size: 10px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.cmp-vasi-val {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.hi-up, .hi-down {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  -webkit-text-fill-color: initial; color: var(--text); background: white;
  border: 1px solid;
}
.hi-up { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.hi-down { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.cmp-bar {
  margin-top: 8px;
  height: 4px; background: rgba(15,23,42,0.06); border-radius: 2px; overflow: hidden;
}
.cmp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--petrol));
  border-radius: 2px;
}

.cmp-quick-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  margin-bottom: 14px;
}
.cmp-quick-stats > div {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 12px;
}
.cmp-quick-stats .ql { color: var(--text-dim); }
.cmp-quick-stats .qv { color: var(--text); font-weight: 600; }

.cmp-detail-btn {
  width: 100%; margin-top: 4px;
  font-size: 12px;
}

.cmp-section {
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cmp-section-title {
  font-size: 13px; font-weight: 700; color: var(--petrol);
  margin: 0 0 14px 0; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.cmp-row {
  display: grid; gap: 14px;
}
@media (max-width: 900px) { .cmp-row { grid-template-columns: 1fr !important; } }
.cmp-cell {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px; line-height: 1.55;
  color: var(--text);
}
.cmp-cell p { margin: 0 0 8px 0; }
.cmp-cell p:last-child { margin: 0; }
.cmp-empty {
  color: var(--text-faint);
  text-align: center;
  font-size: 12px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
}

.cmp-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
