/* AGENT_TARGET: body-compare — planet comparison panel styles */

.body-compare-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(5, 4, 20, 0.97);
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  overflow-y: auto;
}

.body-compare-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid #1e2a3a;
  position: sticky;
  top: 0;
  background: rgba(5, 4, 20, 0.98);
  z-index: 1;
  flex-shrink: 0;
}

.body-compare-title {
  color: #c8d8f0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.body-compare-close {
  background: none;
  border: none;
  color: #667788;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s;
  line-height: 1;
}
.body-compare-close:hover {
  color: #ffffff;
}

.body-compare-selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 20px 16px;
  flex-shrink: 0;
}

.body-compare-select {
  appearance: none;
  -webkit-appearance: none;
  background: #0d1827;
  border: 1px solid #2a3a50;
  border-radius: 8px;
  color: #c8d8f0;
  font-size: 1rem;
  padding: 9px 16px;
  cursor: pointer;
  min-width: 130px;
  text-align: center;
  transition: border-color 0.15s;
}
.body-compare-select:focus {
  outline: 2px solid #4a90d9;
  border-color: #4a90d9;
}

.body-compare-vs {
  color: #445566;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.body-compare-weight-card {
  width: min(600px, calc(100% - 40px));
  margin: 0 auto 14px;
  padding: 13px 14px;
  box-sizing: border-box;
  border: 1px solid rgba(110, 145, 210, 0.26);
  border-radius: 10px;
  background: rgba(11, 20, 38, 0.9);
}
.body-compare-weight-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #d8e7ff;
  margin-bottom: 9px;
}
.body-compare-weight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: baseline;
}
.body-compare-weight-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 700;
}
.body-compare-weight-grid strong {
  color: #ffffff;
  font-size: 0.84rem;
  white-space: nowrap;
}
.body-compare-weight-card p {
  margin: 10px 0 0;
  color: #9fb1d0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.body-compare-charts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 20px 28px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.body-compare-chart {
  background: #090f1d;
  border: 1px solid #1a2840;
  border-radius: 10px;
  padding: 14px 16px;
}

.body-compare-chart-label {
  color: #607080;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
}

.body-compare-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.body-compare-bar-row:last-child {
  margin-bottom: 0;
}

.body-compare-bar-name {
  font-size: 0.84rem;
  font-weight: 500;
  min-width: 72px;
  white-space: nowrap;
}

.body-compare-bar-track {
  flex: 1;
  height: 14px;
  background: #0d1827;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #1a2840;
}

.body-compare-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.4s ease;
  min-width: 3px;
  opacity: 0.85;
}

.body-compare-bar-val {
  font-size: 0.77rem;
  color: #778899;
  min-width: 96px;
  text-align: right;
  white-space: nowrap;
}
